@aws-sdk/client-mturk 3.121.0 → 3.127.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 +8 -0
- package/dist-cjs/protocols/Aws_json1_1.js +213 -322
- package/dist-es/protocols/Aws_json1_1.js +110 -219
- package/package.json +26 -26
|
@@ -2596,13 +2596,10 @@ var deserializeAws_json1_1ServiceFaultResponse = function (parsedOutput, context
|
|
|
2596
2596
|
});
|
|
2597
2597
|
}); };
|
|
2598
2598
|
var serializeAws_json1_1AcceptQualificationRequestRequest = function (input, context) {
|
|
2599
|
-
return __assign(__assign({}, (input.IntegerValue
|
|
2600
|
-
input.QualificationRequestId !== null && { QualificationRequestId: input.QualificationRequestId }));
|
|
2599
|
+
return __assign(__assign({}, (input.IntegerValue != null && { IntegerValue: input.IntegerValue })), (input.QualificationRequestId != null && { QualificationRequestId: input.QualificationRequestId }));
|
|
2601
2600
|
};
|
|
2602
2601
|
var serializeAws_json1_1ApproveAssignmentRequest = function (input, context) {
|
|
2603
|
-
return __assign(__assign(__assign({}, (input.AssignmentId
|
|
2604
|
-
input.OverrideRejection !== null && { OverrideRejection: input.OverrideRejection })), (input.RequesterFeedback !== undefined &&
|
|
2605
|
-
input.RequesterFeedback !== null && { RequesterFeedback: input.RequesterFeedback }));
|
|
2602
|
+
return __assign(__assign(__assign({}, (input.AssignmentId != null && { AssignmentId: input.AssignmentId })), (input.OverrideRejection != null && { OverrideRejection: input.OverrideRejection })), (input.RequesterFeedback != null && { RequesterFeedback: input.RequesterFeedback }));
|
|
2606
2603
|
};
|
|
2607
2604
|
var serializeAws_json1_1AssignmentStatusList = function (input, context) {
|
|
2608
2605
|
return input
|
|
@@ -2615,71 +2612,47 @@ var serializeAws_json1_1AssignmentStatusList = function (input, context) {
|
|
|
2615
2612
|
});
|
|
2616
2613
|
};
|
|
2617
2614
|
var serializeAws_json1_1AssociateQualificationWithWorkerRequest = function (input, context) {
|
|
2618
|
-
return __assign(__assign(__assign(__assign({}, (input.IntegerValue
|
|
2619
|
-
input.QualificationTypeId !== null && { QualificationTypeId: input.QualificationTypeId })), (input.SendNotification !== undefined &&
|
|
2620
|
-
input.SendNotification !== null && { SendNotification: input.SendNotification })), (input.WorkerId !== undefined && input.WorkerId !== null && { WorkerId: input.WorkerId }));
|
|
2615
|
+
return __assign(__assign(__assign(__assign({}, (input.IntegerValue != null && { IntegerValue: input.IntegerValue })), (input.QualificationTypeId != null && { QualificationTypeId: input.QualificationTypeId })), (input.SendNotification != null && { SendNotification: input.SendNotification })), (input.WorkerId != null && { WorkerId: input.WorkerId }));
|
|
2621
2616
|
};
|
|
2622
2617
|
var serializeAws_json1_1CreateAdditionalAssignmentsForHITRequest = function (input, context) {
|
|
2623
|
-
return __assign(__assign(__assign({}, (input.HITId
|
|
2624
|
-
input.NumberOfAdditionalAssignments !== null && {
|
|
2618
|
+
return __assign(__assign(__assign({}, (input.HITId != null && { HITId: input.HITId })), (input.NumberOfAdditionalAssignments != null && {
|
|
2625
2619
|
NumberOfAdditionalAssignments: input.NumberOfAdditionalAssignments,
|
|
2626
|
-
})), (input.UniqueRequestToken
|
|
2627
|
-
input.UniqueRequestToken !== null && { UniqueRequestToken: input.UniqueRequestToken }));
|
|
2620
|
+
})), (input.UniqueRequestToken != null && { UniqueRequestToken: input.UniqueRequestToken }));
|
|
2628
2621
|
};
|
|
2629
2622
|
var serializeAws_json1_1CreateHITRequest = function (input, context) {
|
|
2630
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AssignmentDurationInSeconds
|
|
2631
|
-
|
|
2632
|
-
|
|
2623
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AssignmentDurationInSeconds != null && {
|
|
2624
|
+
AssignmentDurationInSeconds: input.AssignmentDurationInSeconds,
|
|
2625
|
+
})), (input.AssignmentReviewPolicy != null && {
|
|
2633
2626
|
AssignmentReviewPolicy: serializeAws_json1_1ReviewPolicy(input.AssignmentReviewPolicy, context),
|
|
2634
|
-
})), (input.AutoApprovalDelayInSeconds
|
|
2635
|
-
input.AutoApprovalDelayInSeconds !== null && { AutoApprovalDelayInSeconds: input.AutoApprovalDelayInSeconds })), (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.HITLayoutId !== undefined && input.HITLayoutId !== null && { HITLayoutId: input.HITLayoutId })), (input.HITLayoutParameters !== undefined &&
|
|
2636
|
-
input.HITLayoutParameters !== null && {
|
|
2627
|
+
})), (input.AutoApprovalDelayInSeconds != null && { AutoApprovalDelayInSeconds: input.AutoApprovalDelayInSeconds })), (input.Description != null && { Description: input.Description })), (input.HITLayoutId != null && { HITLayoutId: input.HITLayoutId })), (input.HITLayoutParameters != null && {
|
|
2637
2628
|
HITLayoutParameters: serializeAws_json1_1HITLayoutParameterList(input.HITLayoutParameters, context),
|
|
2638
|
-
})), (input.HITReviewPolicy
|
|
2639
|
-
input.HITReviewPolicy !== null && {
|
|
2629
|
+
})), (input.HITReviewPolicy != null && {
|
|
2640
2630
|
HITReviewPolicy: serializeAws_json1_1ReviewPolicy(input.HITReviewPolicy, context),
|
|
2641
|
-
})), (input.Keywords
|
|
2642
|
-
input.LifetimeInSeconds !== null && { LifetimeInSeconds: input.LifetimeInSeconds })), (input.MaxAssignments !== undefined &&
|
|
2643
|
-
input.MaxAssignments !== null && { MaxAssignments: input.MaxAssignments })), (input.QualificationRequirements !== undefined &&
|
|
2644
|
-
input.QualificationRequirements !== null && {
|
|
2631
|
+
})), (input.Keywords != null && { Keywords: input.Keywords })), (input.LifetimeInSeconds != null && { LifetimeInSeconds: input.LifetimeInSeconds })), (input.MaxAssignments != null && { MaxAssignments: input.MaxAssignments })), (input.QualificationRequirements != null && {
|
|
2645
2632
|
QualificationRequirements: serializeAws_json1_1QualificationRequirementList(input.QualificationRequirements, context),
|
|
2646
|
-
})), (input.Question
|
|
2647
|
-
input.RequesterAnnotation !== null && { RequesterAnnotation: input.RequesterAnnotation })), (input.Reward !== undefined && input.Reward !== null && { Reward: input.Reward })), (input.Title !== undefined && input.Title !== null && { Title: input.Title })), (input.UniqueRequestToken !== undefined &&
|
|
2648
|
-
input.UniqueRequestToken !== null && { UniqueRequestToken: input.UniqueRequestToken }));
|
|
2633
|
+
})), (input.Question != null && { Question: input.Question })), (input.RequesterAnnotation != null && { RequesterAnnotation: input.RequesterAnnotation })), (input.Reward != null && { Reward: input.Reward })), (input.Title != null && { Title: input.Title })), (input.UniqueRequestToken != null && { UniqueRequestToken: input.UniqueRequestToken }));
|
|
2649
2634
|
};
|
|
2650
2635
|
var serializeAws_json1_1CreateHITTypeRequest = function (input, context) {
|
|
2651
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AssignmentDurationInSeconds
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
input.QualificationRequirements !== null && {
|
|
2636
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AssignmentDurationInSeconds != null && {
|
|
2637
|
+
AssignmentDurationInSeconds: input.AssignmentDurationInSeconds,
|
|
2638
|
+
})), (input.AutoApprovalDelayInSeconds != null && { AutoApprovalDelayInSeconds: input.AutoApprovalDelayInSeconds })), (input.Description != null && { Description: input.Description })), (input.Keywords != null && { Keywords: input.Keywords })), (input.QualificationRequirements != null && {
|
|
2655
2639
|
QualificationRequirements: serializeAws_json1_1QualificationRequirementList(input.QualificationRequirements, context),
|
|
2656
|
-
})), (input.Reward
|
|
2640
|
+
})), (input.Reward != null && { Reward: input.Reward })), (input.Title != null && { Title: input.Title }));
|
|
2657
2641
|
};
|
|
2658
2642
|
var serializeAws_json1_1CreateHITWithHITTypeRequest = function (input, context) {
|
|
2659
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AssignmentReviewPolicy
|
|
2660
|
-
input.AssignmentReviewPolicy !== null && {
|
|
2643
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AssignmentReviewPolicy != null && {
|
|
2661
2644
|
AssignmentReviewPolicy: serializeAws_json1_1ReviewPolicy(input.AssignmentReviewPolicy, context),
|
|
2662
|
-
})), (input.HITLayoutId
|
|
2663
|
-
input.HITLayoutParameters !== null && {
|
|
2645
|
+
})), (input.HITLayoutId != null && { HITLayoutId: input.HITLayoutId })), (input.HITLayoutParameters != null && {
|
|
2664
2646
|
HITLayoutParameters: serializeAws_json1_1HITLayoutParameterList(input.HITLayoutParameters, context),
|
|
2665
|
-
})), (input.HITReviewPolicy
|
|
2666
|
-
input.HITReviewPolicy !== null && {
|
|
2647
|
+
})), (input.HITReviewPolicy != null && {
|
|
2667
2648
|
HITReviewPolicy: serializeAws_json1_1ReviewPolicy(input.HITReviewPolicy, context),
|
|
2668
|
-
})), (input.HITTypeId
|
|
2669
|
-
input.LifetimeInSeconds !== null && { LifetimeInSeconds: input.LifetimeInSeconds })), (input.MaxAssignments !== undefined &&
|
|
2670
|
-
input.MaxAssignments !== null && { MaxAssignments: input.MaxAssignments })), (input.Question !== undefined && input.Question !== null && { Question: input.Question })), (input.RequesterAnnotation !== undefined &&
|
|
2671
|
-
input.RequesterAnnotation !== null && { RequesterAnnotation: input.RequesterAnnotation })), (input.UniqueRequestToken !== undefined &&
|
|
2672
|
-
input.UniqueRequestToken !== null && { UniqueRequestToken: input.UniqueRequestToken }));
|
|
2649
|
+
})), (input.HITTypeId != null && { HITTypeId: input.HITTypeId })), (input.LifetimeInSeconds != null && { LifetimeInSeconds: input.LifetimeInSeconds })), (input.MaxAssignments != null && { MaxAssignments: input.MaxAssignments })), (input.Question != null && { Question: input.Question })), (input.RequesterAnnotation != null && { RequesterAnnotation: input.RequesterAnnotation })), (input.UniqueRequestToken != null && { UniqueRequestToken: input.UniqueRequestToken }));
|
|
2673
2650
|
};
|
|
2674
2651
|
var serializeAws_json1_1CreateQualificationTypeRequest = function (input, context) {
|
|
2675
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AnswerKey
|
|
2676
|
-
input.AutoGrantedValue !== null && { AutoGrantedValue: input.AutoGrantedValue })), (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.Keywords !== undefined && input.Keywords !== null && { Keywords: input.Keywords })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.QualificationTypeStatus !== undefined &&
|
|
2677
|
-
input.QualificationTypeStatus !== null && { QualificationTypeStatus: input.QualificationTypeStatus })), (input.RetryDelayInSeconds !== undefined &&
|
|
2678
|
-
input.RetryDelayInSeconds !== null && { RetryDelayInSeconds: input.RetryDelayInSeconds })), (input.Test !== undefined && input.Test !== null && { Test: input.Test })), (input.TestDurationInSeconds !== undefined &&
|
|
2679
|
-
input.TestDurationInSeconds !== null && { TestDurationInSeconds: input.TestDurationInSeconds }));
|
|
2652
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AnswerKey != null && { AnswerKey: input.AnswerKey })), (input.AutoGranted != null && { AutoGranted: input.AutoGranted })), (input.AutoGrantedValue != null && { AutoGrantedValue: input.AutoGrantedValue })), (input.Description != null && { Description: input.Description })), (input.Keywords != null && { Keywords: input.Keywords })), (input.Name != null && { Name: input.Name })), (input.QualificationTypeStatus != null && { QualificationTypeStatus: input.QualificationTypeStatus })), (input.RetryDelayInSeconds != null && { RetryDelayInSeconds: input.RetryDelayInSeconds })), (input.Test != null && { Test: input.Test })), (input.TestDurationInSeconds != null && { TestDurationInSeconds: input.TestDurationInSeconds }));
|
|
2680
2653
|
};
|
|
2681
2654
|
var serializeAws_json1_1CreateWorkerBlockRequest = function (input, context) {
|
|
2682
|
-
return __assign(__assign({}, (input.Reason
|
|
2655
|
+
return __assign(__assign({}, (input.Reason != null && { Reason: input.Reason })), (input.WorkerId != null && { WorkerId: input.WorkerId }));
|
|
2683
2656
|
};
|
|
2684
2657
|
var serializeAws_json1_1CustomerIdList = function (input, context) {
|
|
2685
2658
|
return input
|
|
@@ -2692,18 +2665,16 @@ var serializeAws_json1_1CustomerIdList = function (input, context) {
|
|
|
2692
2665
|
});
|
|
2693
2666
|
};
|
|
2694
2667
|
var serializeAws_json1_1DeleteHITRequest = function (input, context) {
|
|
2695
|
-
return __assign({}, (input.HITId
|
|
2668
|
+
return __assign({}, (input.HITId != null && { HITId: input.HITId }));
|
|
2696
2669
|
};
|
|
2697
2670
|
var serializeAws_json1_1DeleteQualificationTypeRequest = function (input, context) {
|
|
2698
|
-
return __assign({}, (input.QualificationTypeId
|
|
2699
|
-
input.QualificationTypeId !== null && { QualificationTypeId: input.QualificationTypeId }));
|
|
2671
|
+
return __assign({}, (input.QualificationTypeId != null && { QualificationTypeId: input.QualificationTypeId }));
|
|
2700
2672
|
};
|
|
2701
2673
|
var serializeAws_json1_1DeleteWorkerBlockRequest = function (input, context) {
|
|
2702
|
-
return __assign(__assign({}, (input.Reason
|
|
2674
|
+
return __assign(__assign({}, (input.Reason != null && { Reason: input.Reason })), (input.WorkerId != null && { WorkerId: input.WorkerId }));
|
|
2703
2675
|
};
|
|
2704
2676
|
var serializeAws_json1_1DisassociateQualificationFromWorkerRequest = function (input, context) {
|
|
2705
|
-
return __assign(__assign(__assign({}, (input.QualificationTypeId
|
|
2706
|
-
input.QualificationTypeId !== null && { QualificationTypeId: input.QualificationTypeId })), (input.Reason !== undefined && input.Reason !== null && { Reason: input.Reason })), (input.WorkerId !== undefined && input.WorkerId !== null && { WorkerId: input.WorkerId }));
|
|
2677
|
+
return __assign(__assign(__assign({}, (input.QualificationTypeId != null && { QualificationTypeId: input.QualificationTypeId })), (input.Reason != null && { Reason: input.Reason })), (input.WorkerId != null && { WorkerId: input.WorkerId }));
|
|
2707
2678
|
};
|
|
2708
2679
|
var serializeAws_json1_1EventTypeList = function (input, context) {
|
|
2709
2680
|
return input
|
|
@@ -2719,25 +2690,22 @@ var serializeAws_json1_1GetAccountBalanceRequest = function (input, context) {
|
|
|
2719
2690
|
return {};
|
|
2720
2691
|
};
|
|
2721
2692
|
var serializeAws_json1_1GetAssignmentRequest = function (input, context) {
|
|
2722
|
-
return __assign({}, (input.AssignmentId
|
|
2693
|
+
return __assign({}, (input.AssignmentId != null && { AssignmentId: input.AssignmentId }));
|
|
2723
2694
|
};
|
|
2724
2695
|
var serializeAws_json1_1GetFileUploadURLRequest = function (input, context) {
|
|
2725
|
-
return __assign(__assign({}, (input.AssignmentId
|
|
2726
|
-
input.QuestionIdentifier !== null && { QuestionIdentifier: input.QuestionIdentifier }));
|
|
2696
|
+
return __assign(__assign({}, (input.AssignmentId != null && { AssignmentId: input.AssignmentId })), (input.QuestionIdentifier != null && { QuestionIdentifier: input.QuestionIdentifier }));
|
|
2727
2697
|
};
|
|
2728
2698
|
var serializeAws_json1_1GetHITRequest = function (input, context) {
|
|
2729
|
-
return __assign({}, (input.HITId
|
|
2699
|
+
return __assign({}, (input.HITId != null && { HITId: input.HITId }));
|
|
2730
2700
|
};
|
|
2731
2701
|
var serializeAws_json1_1GetQualificationScoreRequest = function (input, context) {
|
|
2732
|
-
return __assign(__assign({}, (input.QualificationTypeId
|
|
2733
|
-
input.QualificationTypeId !== null && { QualificationTypeId: input.QualificationTypeId })), (input.WorkerId !== undefined && input.WorkerId !== null && { WorkerId: input.WorkerId }));
|
|
2702
|
+
return __assign(__assign({}, (input.QualificationTypeId != null && { QualificationTypeId: input.QualificationTypeId })), (input.WorkerId != null && { WorkerId: input.WorkerId }));
|
|
2734
2703
|
};
|
|
2735
2704
|
var serializeAws_json1_1GetQualificationTypeRequest = function (input, context) {
|
|
2736
|
-
return __assign({}, (input.QualificationTypeId
|
|
2737
|
-
input.QualificationTypeId !== null && { QualificationTypeId: input.QualificationTypeId }));
|
|
2705
|
+
return __assign({}, (input.QualificationTypeId != null && { QualificationTypeId: input.QualificationTypeId }));
|
|
2738
2706
|
};
|
|
2739
2707
|
var serializeAws_json1_1HITLayoutParameter = function (input, context) {
|
|
2740
|
-
return __assign(__assign({}, (input.Name
|
|
2708
|
+
return __assign(__assign({}, (input.Name != null && { Name: input.Name })), (input.Value != null && { Value: input.Value }));
|
|
2741
2709
|
};
|
|
2742
2710
|
var serializeAws_json1_1HITLayoutParameterList = function (input, context) {
|
|
2743
2711
|
return input
|
|
@@ -2760,50 +2728,41 @@ var serializeAws_json1_1IntegerList = function (input, context) {
|
|
|
2760
2728
|
});
|
|
2761
2729
|
};
|
|
2762
2730
|
var serializeAws_json1_1ListAssignmentsForHITRequest = function (input, context) {
|
|
2763
|
-
return __assign(__assign(__assign(__assign({}, (input.AssignmentStatuses
|
|
2764
|
-
input.AssignmentStatuses !== null && {
|
|
2731
|
+
return __assign(__assign(__assign(__assign({}, (input.AssignmentStatuses != null && {
|
|
2765
2732
|
AssignmentStatuses: serializeAws_json1_1AssignmentStatusList(input.AssignmentStatuses, context),
|
|
2766
|
-
})), (input.HITId
|
|
2733
|
+
})), (input.HITId != null && { HITId: input.HITId })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
|
|
2767
2734
|
};
|
|
2768
2735
|
var serializeAws_json1_1ListBonusPaymentsRequest = function (input, context) {
|
|
2769
|
-
return __assign(__assign(__assign(__assign({}, (input.AssignmentId
|
|
2736
|
+
return __assign(__assign(__assign(__assign({}, (input.AssignmentId != null && { AssignmentId: input.AssignmentId })), (input.HITId != null && { HITId: input.HITId })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
|
|
2770
2737
|
};
|
|
2771
2738
|
var serializeAws_json1_1ListHITsForQualificationTypeRequest = function (input, context) {
|
|
2772
|
-
return __assign(__assign(__assign({}, (input.MaxResults
|
|
2773
|
-
input.QualificationTypeId !== null && { QualificationTypeId: input.QualificationTypeId }));
|
|
2739
|
+
return __assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.QualificationTypeId != null && { QualificationTypeId: input.QualificationTypeId }));
|
|
2774
2740
|
};
|
|
2775
2741
|
var serializeAws_json1_1ListHITsRequest = function (input, context) {
|
|
2776
|
-
return __assign(__assign({}, (input.MaxResults
|
|
2742
|
+
return __assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
|
|
2777
2743
|
};
|
|
2778
2744
|
var serializeAws_json1_1ListQualificationRequestsRequest = function (input, context) {
|
|
2779
|
-
return __assign(__assign(__assign({}, (input.MaxResults
|
|
2780
|
-
input.QualificationTypeId !== null && { QualificationTypeId: input.QualificationTypeId }));
|
|
2745
|
+
return __assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.QualificationTypeId != null && { QualificationTypeId: input.QualificationTypeId }));
|
|
2781
2746
|
};
|
|
2782
2747
|
var serializeAws_json1_1ListQualificationTypesRequest = function (input, context) {
|
|
2783
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.MaxResults
|
|
2784
|
-
input.MustBeOwnedByCaller !== null && { MustBeOwnedByCaller: input.MustBeOwnedByCaller })), (input.MustBeRequestable !== undefined &&
|
|
2785
|
-
input.MustBeRequestable !== null && { MustBeRequestable: input.MustBeRequestable })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.Query !== undefined && input.Query !== null && { Query: input.Query }));
|
|
2748
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.MustBeOwnedByCaller != null && { MustBeOwnedByCaller: input.MustBeOwnedByCaller })), (input.MustBeRequestable != null && { MustBeRequestable: input.MustBeRequestable })), (input.NextToken != null && { NextToken: input.NextToken })), (input.Query != null && { Query: input.Query }));
|
|
2786
2749
|
};
|
|
2787
2750
|
var serializeAws_json1_1ListReviewableHITsRequest = function (input, context) {
|
|
2788
|
-
return __assign(__assign(__assign(__assign({}, (input.HITTypeId
|
|
2751
|
+
return __assign(__assign(__assign(__assign({}, (input.HITTypeId != null && { HITTypeId: input.HITTypeId })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.Status != null && { Status: input.Status }));
|
|
2789
2752
|
};
|
|
2790
2753
|
var serializeAws_json1_1ListReviewPolicyResultsForHITRequest = function (input, context) {
|
|
2791
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.HITId
|
|
2792
|
-
input.PolicyLevels !== null && {
|
|
2754
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.HITId != null && { HITId: input.HITId })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.PolicyLevels != null && {
|
|
2793
2755
|
PolicyLevels: serializeAws_json1_1ReviewPolicyLevelList(input.PolicyLevels, context),
|
|
2794
|
-
})), (input.RetrieveActions
|
|
2795
|
-
input.RetrieveActions !== null && { RetrieveActions: input.RetrieveActions })), (input.RetrieveResults !== undefined &&
|
|
2796
|
-
input.RetrieveResults !== null && { RetrieveResults: input.RetrieveResults }));
|
|
2756
|
+
})), (input.RetrieveActions != null && { RetrieveActions: input.RetrieveActions })), (input.RetrieveResults != null && { RetrieveResults: input.RetrieveResults }));
|
|
2797
2757
|
};
|
|
2798
2758
|
var serializeAws_json1_1ListWorkerBlocksRequest = function (input, context) {
|
|
2799
|
-
return __assign(__assign({}, (input.MaxResults
|
|
2759
|
+
return __assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
|
|
2800
2760
|
};
|
|
2801
2761
|
var serializeAws_json1_1ListWorkersWithQualificationTypeRequest = function (input, context) {
|
|
2802
|
-
return __assign(__assign(__assign(__assign({}, (input.MaxResults
|
|
2803
|
-
input.QualificationTypeId !== null && { QualificationTypeId: input.QualificationTypeId })), (input.Status !== undefined && input.Status !== null && { Status: input.Status }));
|
|
2762
|
+
return __assign(__assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.QualificationTypeId != null && { QualificationTypeId: input.QualificationTypeId })), (input.Status != null && { Status: input.Status }));
|
|
2804
2763
|
};
|
|
2805
2764
|
var serializeAws_json1_1Locale = function (input, context) {
|
|
2806
|
-
return __assign(__assign({}, (input.Country
|
|
2765
|
+
return __assign(__assign({}, (input.Country != null && { Country: input.Country })), (input.Subdivision != null && { Subdivision: input.Subdivision }));
|
|
2807
2766
|
};
|
|
2808
2767
|
var serializeAws_json1_1LocaleList = function (input, context) {
|
|
2809
2768
|
return input
|
|
@@ -2816,16 +2775,13 @@ var serializeAws_json1_1LocaleList = function (input, context) {
|
|
|
2816
2775
|
});
|
|
2817
2776
|
};
|
|
2818
2777
|
var serializeAws_json1_1NotificationSpecification = function (input, context) {
|
|
2819
|
-
return __assign(__assign(__assign(__assign({}, (input.Destination
|
|
2820
|
-
input.EventTypes !== null && { EventTypes: serializeAws_json1_1EventTypeList(input.EventTypes, context) })), (input.Transport !== undefined && input.Transport !== null && { Transport: input.Transport })), (input.Version !== undefined && input.Version !== null && { Version: input.Version }));
|
|
2778
|
+
return __assign(__assign(__assign(__assign({}, (input.Destination != null && { Destination: input.Destination })), (input.EventTypes != null && { EventTypes: serializeAws_json1_1EventTypeList(input.EventTypes, context) })), (input.Transport != null && { Transport: input.Transport })), (input.Version != null && { Version: input.Version }));
|
|
2821
2779
|
};
|
|
2822
2780
|
var serializeAws_json1_1NotifyWorkersRequest = function (input, context) {
|
|
2823
|
-
return __assign(__assign(__assign({}, (input.MessageText
|
|
2824
|
-
input.WorkerIds !== null && { WorkerIds: serializeAws_json1_1CustomerIdList(input.WorkerIds, context) }));
|
|
2781
|
+
return __assign(__assign(__assign({}, (input.MessageText != null && { MessageText: input.MessageText })), (input.Subject != null && { Subject: input.Subject })), (input.WorkerIds != null && { WorkerIds: serializeAws_json1_1CustomerIdList(input.WorkerIds, context) }));
|
|
2825
2782
|
};
|
|
2826
2783
|
var serializeAws_json1_1ParameterMapEntry = function (input, context) {
|
|
2827
|
-
return __assign(__assign({}, (input.Key
|
|
2828
|
-
input.Values !== null && { Values: serializeAws_json1_1StringList(input.Values, context) }));
|
|
2784
|
+
return __assign(__assign({}, (input.Key != null && { Key: input.Key })), (input.Values != null && { Values: serializeAws_json1_1StringList(input.Values, context) }));
|
|
2829
2785
|
};
|
|
2830
2786
|
var serializeAws_json1_1ParameterMapEntryList = function (input, context) {
|
|
2831
2787
|
return input
|
|
@@ -2838,11 +2794,9 @@ var serializeAws_json1_1ParameterMapEntryList = function (input, context) {
|
|
|
2838
2794
|
});
|
|
2839
2795
|
};
|
|
2840
2796
|
var serializeAws_json1_1PolicyParameter = function (input, context) {
|
|
2841
|
-
return __assign(__assign(__assign({}, (input.Key
|
|
2842
|
-
input.MapEntries !== null && {
|
|
2797
|
+
return __assign(__assign(__assign({}, (input.Key != null && { Key: input.Key })), (input.MapEntries != null && {
|
|
2843
2798
|
MapEntries: serializeAws_json1_1ParameterMapEntryList(input.MapEntries, context),
|
|
2844
|
-
})), (input.Values
|
|
2845
|
-
input.Values !== null && { Values: serializeAws_json1_1StringList(input.Values, context) }));
|
|
2799
|
+
})), (input.Values != null && { Values: serializeAws_json1_1StringList(input.Values, context) }));
|
|
2846
2800
|
};
|
|
2847
2801
|
var serializeAws_json1_1PolicyParameterList = function (input, context) {
|
|
2848
2802
|
return input
|
|
@@ -2855,12 +2809,9 @@ var serializeAws_json1_1PolicyParameterList = function (input, context) {
|
|
|
2855
2809
|
});
|
|
2856
2810
|
};
|
|
2857
2811
|
var serializeAws_json1_1QualificationRequirement = function (input, context) {
|
|
2858
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.ActionsGuarded
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
input.LocaleValues !== null && { LocaleValues: serializeAws_json1_1LocaleList(input.LocaleValues, context) })), (input.QualificationTypeId !== undefined &&
|
|
2862
|
-
input.QualificationTypeId !== null && { QualificationTypeId: input.QualificationTypeId })), (input.RequiredToPreview !== undefined &&
|
|
2863
|
-
input.RequiredToPreview !== null && { RequiredToPreview: input.RequiredToPreview }));
|
|
2812
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.ActionsGuarded != null && { ActionsGuarded: input.ActionsGuarded })), (input.Comparator != null && { Comparator: input.Comparator })), (input.IntegerValues != null && {
|
|
2813
|
+
IntegerValues: serializeAws_json1_1IntegerList(input.IntegerValues, context),
|
|
2814
|
+
})), (input.LocaleValues != null && { LocaleValues: serializeAws_json1_1LocaleList(input.LocaleValues, context) })), (input.QualificationTypeId != null && { QualificationTypeId: input.QualificationTypeId })), (input.RequiredToPreview != null && { RequiredToPreview: input.RequiredToPreview }));
|
|
2864
2815
|
};
|
|
2865
2816
|
var serializeAws_json1_1QualificationRequirementList = function (input, context) {
|
|
2866
2817
|
return input
|
|
@@ -2873,16 +2824,13 @@ var serializeAws_json1_1QualificationRequirementList = function (input, context)
|
|
|
2873
2824
|
});
|
|
2874
2825
|
};
|
|
2875
2826
|
var serializeAws_json1_1RejectAssignmentRequest = function (input, context) {
|
|
2876
|
-
return __assign(__assign({}, (input.AssignmentId
|
|
2877
|
-
input.RequesterFeedback !== null && { RequesterFeedback: input.RequesterFeedback }));
|
|
2827
|
+
return __assign(__assign({}, (input.AssignmentId != null && { AssignmentId: input.AssignmentId })), (input.RequesterFeedback != null && { RequesterFeedback: input.RequesterFeedback }));
|
|
2878
2828
|
};
|
|
2879
2829
|
var serializeAws_json1_1RejectQualificationRequestRequest = function (input, context) {
|
|
2880
|
-
return __assign(__assign({}, (input.QualificationRequestId
|
|
2881
|
-
input.QualificationRequestId !== null && { QualificationRequestId: input.QualificationRequestId })), (input.Reason !== undefined && input.Reason !== null && { Reason: input.Reason }));
|
|
2830
|
+
return __assign(__assign({}, (input.QualificationRequestId != null && { QualificationRequestId: input.QualificationRequestId })), (input.Reason != null && { Reason: input.Reason }));
|
|
2882
2831
|
};
|
|
2883
2832
|
var serializeAws_json1_1ReviewPolicy = function (input, context) {
|
|
2884
|
-
return __assign(__assign({}, (input.Parameters
|
|
2885
|
-
input.Parameters !== null && { Parameters: serializeAws_json1_1PolicyParameterList(input.Parameters, context) })), (input.PolicyName !== undefined && input.PolicyName !== null && { PolicyName: input.PolicyName }));
|
|
2833
|
+
return __assign(__assign({}, (input.Parameters != null && { Parameters: serializeAws_json1_1PolicyParameterList(input.Parameters, context) })), (input.PolicyName != null && { PolicyName: input.PolicyName }));
|
|
2886
2834
|
};
|
|
2887
2835
|
var serializeAws_json1_1ReviewPolicyLevelList = function (input, context) {
|
|
2888
2836
|
return input
|
|
@@ -2895,14 +2843,12 @@ var serializeAws_json1_1ReviewPolicyLevelList = function (input, context) {
|
|
|
2895
2843
|
});
|
|
2896
2844
|
};
|
|
2897
2845
|
var serializeAws_json1_1SendBonusRequest = function (input, context) {
|
|
2898
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.AssignmentId
|
|
2899
|
-
input.UniqueRequestToken !== null && { UniqueRequestToken: input.UniqueRequestToken })), (input.WorkerId !== undefined && input.WorkerId !== null && { WorkerId: input.WorkerId }));
|
|
2846
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.AssignmentId != null && { AssignmentId: input.AssignmentId })), (input.BonusAmount != null && { BonusAmount: input.BonusAmount })), (input.Reason != null && { Reason: input.Reason })), (input.UniqueRequestToken != null && { UniqueRequestToken: input.UniqueRequestToken })), (input.WorkerId != null && { WorkerId: input.WorkerId }));
|
|
2900
2847
|
};
|
|
2901
2848
|
var serializeAws_json1_1SendTestEventNotificationRequest = function (input, context) {
|
|
2902
|
-
return __assign(__assign({}, (input.Notification
|
|
2903
|
-
input.Notification !== null && {
|
|
2849
|
+
return __assign(__assign({}, (input.Notification != null && {
|
|
2904
2850
|
Notification: serializeAws_json1_1NotificationSpecification(input.Notification, context),
|
|
2905
|
-
})), (input.TestEventType
|
|
2851
|
+
})), (input.TestEventType != null && { TestEventType: input.TestEventType }));
|
|
2906
2852
|
};
|
|
2907
2853
|
var serializeAws_json1_1StringList = function (input, context) {
|
|
2908
2854
|
return input
|
|
@@ -2915,28 +2861,21 @@ var serializeAws_json1_1StringList = function (input, context) {
|
|
|
2915
2861
|
});
|
|
2916
2862
|
};
|
|
2917
2863
|
var serializeAws_json1_1UpdateExpirationForHITRequest = function (input, context) {
|
|
2918
|
-
return __assign(__assign({}, (input.ExpireAt
|
|
2919
|
-
input.ExpireAt !== null && { ExpireAt: Math.round(input.ExpireAt.getTime() / 1000) })), (input.HITId !== undefined && input.HITId !== null && { HITId: input.HITId }));
|
|
2864
|
+
return __assign(__assign({}, (input.ExpireAt != null && { ExpireAt: Math.round(input.ExpireAt.getTime() / 1000) })), (input.HITId != null && { HITId: input.HITId }));
|
|
2920
2865
|
};
|
|
2921
2866
|
var serializeAws_json1_1UpdateHITReviewStatusRequest = function (input, context) {
|
|
2922
|
-
return __assign(__assign({}, (input.HITId
|
|
2867
|
+
return __assign(__assign({}, (input.HITId != null && { HITId: input.HITId })), (input.Revert != null && { Revert: input.Revert }));
|
|
2923
2868
|
};
|
|
2924
2869
|
var serializeAws_json1_1UpdateHITTypeOfHITRequest = function (input, context) {
|
|
2925
|
-
return __assign(__assign({}, (input.HITId
|
|
2870
|
+
return __assign(__assign({}, (input.HITId != null && { HITId: input.HITId })), (input.HITTypeId != null && { HITTypeId: input.HITTypeId }));
|
|
2926
2871
|
};
|
|
2927
2872
|
var serializeAws_json1_1UpdateNotificationSettingsRequest = function (input, context) {
|
|
2928
|
-
return __assign(__assign(__assign({}, (input.Active
|
|
2929
|
-
input.Notification !== null && {
|
|
2873
|
+
return __assign(__assign(__assign({}, (input.Active != null && { Active: input.Active })), (input.HITTypeId != null && { HITTypeId: input.HITTypeId })), (input.Notification != null && {
|
|
2930
2874
|
Notification: serializeAws_json1_1NotificationSpecification(input.Notification, context),
|
|
2931
2875
|
}));
|
|
2932
2876
|
};
|
|
2933
2877
|
var serializeAws_json1_1UpdateQualificationTypeRequest = function (input, context) {
|
|
2934
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AnswerKey
|
|
2935
|
-
input.AutoGrantedValue !== null && { AutoGrantedValue: input.AutoGrantedValue })), (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.QualificationTypeId !== undefined &&
|
|
2936
|
-
input.QualificationTypeId !== null && { QualificationTypeId: input.QualificationTypeId })), (input.QualificationTypeStatus !== undefined &&
|
|
2937
|
-
input.QualificationTypeStatus !== null && { QualificationTypeStatus: input.QualificationTypeStatus })), (input.RetryDelayInSeconds !== undefined &&
|
|
2938
|
-
input.RetryDelayInSeconds !== null && { RetryDelayInSeconds: input.RetryDelayInSeconds })), (input.Test !== undefined && input.Test !== null && { Test: input.Test })), (input.TestDurationInSeconds !== undefined &&
|
|
2939
|
-
input.TestDurationInSeconds !== null && { TestDurationInSeconds: input.TestDurationInSeconds }));
|
|
2878
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AnswerKey != null && { AnswerKey: input.AnswerKey })), (input.AutoGranted != null && { AutoGranted: input.AutoGranted })), (input.AutoGrantedValue != null && { AutoGrantedValue: input.AutoGrantedValue })), (input.Description != null && { Description: input.Description })), (input.QualificationTypeId != null && { QualificationTypeId: input.QualificationTypeId })), (input.QualificationTypeStatus != null && { QualificationTypeStatus: input.QualificationTypeStatus })), (input.RetryDelayInSeconds != null && { RetryDelayInSeconds: input.RetryDelayInSeconds })), (input.Test != null && { Test: input.Test })), (input.TestDurationInSeconds != null && { TestDurationInSeconds: input.TestDurationInSeconds }));
|
|
2940
2879
|
};
|
|
2941
2880
|
var deserializeAws_json1_1AcceptQualificationRequestResponse = function (output, context) {
|
|
2942
2881
|
return {};
|
|
@@ -2946,29 +2885,23 @@ var deserializeAws_json1_1ApproveAssignmentResponse = function (output, context)
|
|
|
2946
2885
|
};
|
|
2947
2886
|
var deserializeAws_json1_1Assignment = function (output, context) {
|
|
2948
2887
|
return {
|
|
2949
|
-
AcceptTime: output.AcceptTime
|
|
2950
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.AcceptTime)))
|
|
2951
|
-
: undefined,
|
|
2888
|
+
AcceptTime: output.AcceptTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.AcceptTime))) : undefined,
|
|
2952
2889
|
Answer: __expectString(output.Answer),
|
|
2953
|
-
ApprovalTime: output.ApprovalTime
|
|
2890
|
+
ApprovalTime: output.ApprovalTime != null
|
|
2954
2891
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ApprovalTime)))
|
|
2955
2892
|
: undefined,
|
|
2956
2893
|
AssignmentId: __expectString(output.AssignmentId),
|
|
2957
2894
|
AssignmentStatus: __expectString(output.AssignmentStatus),
|
|
2958
|
-
AutoApprovalTime: output.AutoApprovalTime
|
|
2895
|
+
AutoApprovalTime: output.AutoApprovalTime != null
|
|
2959
2896
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.AutoApprovalTime)))
|
|
2960
2897
|
: undefined,
|
|
2961
|
-
Deadline: output.Deadline
|
|
2962
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.Deadline)))
|
|
2963
|
-
: undefined,
|
|
2898
|
+
Deadline: output.Deadline != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.Deadline))) : undefined,
|
|
2964
2899
|
HITId: __expectString(output.HITId),
|
|
2965
|
-
RejectionTime: output.RejectionTime
|
|
2900
|
+
RejectionTime: output.RejectionTime != null
|
|
2966
2901
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.RejectionTime)))
|
|
2967
2902
|
: undefined,
|
|
2968
2903
|
RequesterFeedback: __expectString(output.RequesterFeedback),
|
|
2969
|
-
SubmitTime: output.SubmitTime
|
|
2970
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.SubmitTime)))
|
|
2971
|
-
: undefined,
|
|
2904
|
+
SubmitTime: output.SubmitTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.SubmitTime))) : undefined,
|
|
2972
2905
|
WorkerId: __expectString(output.WorkerId),
|
|
2973
2906
|
};
|
|
2974
2907
|
};
|
|
@@ -2990,9 +2923,7 @@ var deserializeAws_json1_1BonusPayment = function (output, context) {
|
|
|
2990
2923
|
return {
|
|
2991
2924
|
AssignmentId: __expectString(output.AssignmentId),
|
|
2992
2925
|
BonusAmount: __expectString(output.BonusAmount),
|
|
2993
|
-
GrantTime: output.GrantTime
|
|
2994
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.GrantTime)))
|
|
2995
|
-
: undefined,
|
|
2926
|
+
GrantTime: output.GrantTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.GrantTime))) : undefined,
|
|
2996
2927
|
Reason: __expectString(output.Reason),
|
|
2997
2928
|
WorkerId: __expectString(output.WorkerId),
|
|
2998
2929
|
};
|
|
@@ -3013,7 +2944,7 @@ var deserializeAws_json1_1CreateAdditionalAssignmentsForHITResponse = function (
|
|
|
3013
2944
|
};
|
|
3014
2945
|
var deserializeAws_json1_1CreateHITResponse = function (output, context) {
|
|
3015
2946
|
return {
|
|
3016
|
-
HIT: output.HIT
|
|
2947
|
+
HIT: output.HIT != null ? deserializeAws_json1_1HIT(output.HIT, context) : undefined,
|
|
3017
2948
|
};
|
|
3018
2949
|
};
|
|
3019
2950
|
var deserializeAws_json1_1CreateHITTypeResponse = function (output, context) {
|
|
@@ -3023,12 +2954,12 @@ var deserializeAws_json1_1CreateHITTypeResponse = function (output, context) {
|
|
|
3023
2954
|
};
|
|
3024
2955
|
var deserializeAws_json1_1CreateHITWithHITTypeResponse = function (output, context) {
|
|
3025
2956
|
return {
|
|
3026
|
-
HIT: output.HIT
|
|
2957
|
+
HIT: output.HIT != null ? deserializeAws_json1_1HIT(output.HIT, context) : undefined,
|
|
3027
2958
|
};
|
|
3028
2959
|
};
|
|
3029
2960
|
var deserializeAws_json1_1CreateQualificationTypeResponse = function (output, context) {
|
|
3030
2961
|
return {
|
|
3031
|
-
QualificationType: output.QualificationType
|
|
2962
|
+
QualificationType: output.QualificationType != null
|
|
3032
2963
|
? deserializeAws_json1_1QualificationType(output.QualificationType, context)
|
|
3033
2964
|
: undefined,
|
|
3034
2965
|
};
|
|
@@ -3056,10 +2987,8 @@ var deserializeAws_json1_1GetAccountBalanceResponse = function (output, context)
|
|
|
3056
2987
|
};
|
|
3057
2988
|
var deserializeAws_json1_1GetAssignmentResponse = function (output, context) {
|
|
3058
2989
|
return {
|
|
3059
|
-
Assignment: output.Assignment
|
|
3060
|
-
|
|
3061
|
-
: undefined,
|
|
3062
|
-
HIT: output.HIT !== undefined && output.HIT !== null ? deserializeAws_json1_1HIT(output.HIT, context) : undefined,
|
|
2990
|
+
Assignment: output.Assignment != null ? deserializeAws_json1_1Assignment(output.Assignment, context) : undefined,
|
|
2991
|
+
HIT: output.HIT != null ? deserializeAws_json1_1HIT(output.HIT, context) : undefined,
|
|
3063
2992
|
};
|
|
3064
2993
|
};
|
|
3065
2994
|
var deserializeAws_json1_1GetFileUploadURLResponse = function (output, context) {
|
|
@@ -3069,19 +2998,17 @@ var deserializeAws_json1_1GetFileUploadURLResponse = function (output, context)
|
|
|
3069
2998
|
};
|
|
3070
2999
|
var deserializeAws_json1_1GetHITResponse = function (output, context) {
|
|
3071
3000
|
return {
|
|
3072
|
-
HIT: output.HIT
|
|
3001
|
+
HIT: output.HIT != null ? deserializeAws_json1_1HIT(output.HIT, context) : undefined,
|
|
3073
3002
|
};
|
|
3074
3003
|
};
|
|
3075
3004
|
var deserializeAws_json1_1GetQualificationScoreResponse = function (output, context) {
|
|
3076
3005
|
return {
|
|
3077
|
-
Qualification: output.Qualification
|
|
3078
|
-
? deserializeAws_json1_1Qualification(output.Qualification, context)
|
|
3079
|
-
: undefined,
|
|
3006
|
+
Qualification: output.Qualification != null ? deserializeAws_json1_1Qualification(output.Qualification, context) : undefined,
|
|
3080
3007
|
};
|
|
3081
3008
|
};
|
|
3082
3009
|
var deserializeAws_json1_1GetQualificationTypeResponse = function (output, context) {
|
|
3083
3010
|
return {
|
|
3084
|
-
QualificationType: output.QualificationType
|
|
3011
|
+
QualificationType: output.QualificationType != null
|
|
3085
3012
|
? deserializeAws_json1_1QualificationType(output.QualificationType, context)
|
|
3086
3013
|
: undefined,
|
|
3087
3014
|
};
|
|
@@ -3090,13 +3017,11 @@ var deserializeAws_json1_1HIT = function (output, context) {
|
|
|
3090
3017
|
return {
|
|
3091
3018
|
AssignmentDurationInSeconds: __expectLong(output.AssignmentDurationInSeconds),
|
|
3092
3019
|
AutoApprovalDelayInSeconds: __expectLong(output.AutoApprovalDelayInSeconds),
|
|
3093
|
-
CreationTime: output.CreationTime
|
|
3020
|
+
CreationTime: output.CreationTime != null
|
|
3094
3021
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
|
|
3095
3022
|
: undefined,
|
|
3096
3023
|
Description: __expectString(output.Description),
|
|
3097
|
-
Expiration: output.Expiration
|
|
3098
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.Expiration)))
|
|
3099
|
-
: undefined,
|
|
3024
|
+
Expiration: output.Expiration != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.Expiration))) : undefined,
|
|
3100
3025
|
HITGroupId: __expectString(output.HITGroupId),
|
|
3101
3026
|
HITId: __expectString(output.HITId),
|
|
3102
3027
|
HITLayoutId: __expectString(output.HITLayoutId),
|
|
@@ -3108,7 +3033,7 @@ var deserializeAws_json1_1HIT = function (output, context) {
|
|
|
3108
3033
|
NumberOfAssignmentsAvailable: __expectInt32(output.NumberOfAssignmentsAvailable),
|
|
3109
3034
|
NumberOfAssignmentsCompleted: __expectInt32(output.NumberOfAssignmentsCompleted),
|
|
3110
3035
|
NumberOfAssignmentsPending: __expectInt32(output.NumberOfAssignmentsPending),
|
|
3111
|
-
QualificationRequirements: output.QualificationRequirements
|
|
3036
|
+
QualificationRequirements: output.QualificationRequirements != null
|
|
3112
3037
|
? deserializeAws_json1_1QualificationRequirementList(output.QualificationRequirements, context)
|
|
3113
3038
|
: undefined,
|
|
3114
3039
|
Question: __expectString(output.Question),
|
|
@@ -3141,36 +3066,28 @@ var deserializeAws_json1_1IntegerList = function (output, context) {
|
|
|
3141
3066
|
};
|
|
3142
3067
|
var deserializeAws_json1_1ListAssignmentsForHITResponse = function (output, context) {
|
|
3143
3068
|
return {
|
|
3144
|
-
Assignments: output.Assignments
|
|
3145
|
-
? deserializeAws_json1_1AssignmentList(output.Assignments, context)
|
|
3146
|
-
: undefined,
|
|
3069
|
+
Assignments: output.Assignments != null ? deserializeAws_json1_1AssignmentList(output.Assignments, context) : undefined,
|
|
3147
3070
|
NextToken: __expectString(output.NextToken),
|
|
3148
3071
|
NumResults: __expectInt32(output.NumResults),
|
|
3149
3072
|
};
|
|
3150
3073
|
};
|
|
3151
3074
|
var deserializeAws_json1_1ListBonusPaymentsResponse = function (output, context) {
|
|
3152
3075
|
return {
|
|
3153
|
-
BonusPayments: output.BonusPayments
|
|
3154
|
-
? deserializeAws_json1_1BonusPaymentList(output.BonusPayments, context)
|
|
3155
|
-
: undefined,
|
|
3076
|
+
BonusPayments: output.BonusPayments != null ? deserializeAws_json1_1BonusPaymentList(output.BonusPayments, context) : undefined,
|
|
3156
3077
|
NextToken: __expectString(output.NextToken),
|
|
3157
3078
|
NumResults: __expectInt32(output.NumResults),
|
|
3158
3079
|
};
|
|
3159
3080
|
};
|
|
3160
3081
|
var deserializeAws_json1_1ListHITsForQualificationTypeResponse = function (output, context) {
|
|
3161
3082
|
return {
|
|
3162
|
-
HITs: output.HITs
|
|
3163
|
-
? deserializeAws_json1_1HITList(output.HITs, context)
|
|
3164
|
-
: undefined,
|
|
3083
|
+
HITs: output.HITs != null ? deserializeAws_json1_1HITList(output.HITs, context) : undefined,
|
|
3165
3084
|
NextToken: __expectString(output.NextToken),
|
|
3166
3085
|
NumResults: __expectInt32(output.NumResults),
|
|
3167
3086
|
};
|
|
3168
3087
|
};
|
|
3169
3088
|
var deserializeAws_json1_1ListHITsResponse = function (output, context) {
|
|
3170
3089
|
return {
|
|
3171
|
-
HITs: output.HITs
|
|
3172
|
-
? deserializeAws_json1_1HITList(output.HITs, context)
|
|
3173
|
-
: undefined,
|
|
3090
|
+
HITs: output.HITs != null ? deserializeAws_json1_1HITList(output.HITs, context) : undefined,
|
|
3174
3091
|
NextToken: __expectString(output.NextToken),
|
|
3175
3092
|
NumResults: __expectInt32(output.NumResults),
|
|
3176
3093
|
};
|
|
@@ -3179,7 +3096,7 @@ var deserializeAws_json1_1ListQualificationRequestsResponse = function (output,
|
|
|
3179
3096
|
return {
|
|
3180
3097
|
NextToken: __expectString(output.NextToken),
|
|
3181
3098
|
NumResults: __expectInt32(output.NumResults),
|
|
3182
|
-
QualificationRequests: output.QualificationRequests
|
|
3099
|
+
QualificationRequests: output.QualificationRequests != null
|
|
3183
3100
|
? deserializeAws_json1_1QualificationRequestList(output.QualificationRequests, context)
|
|
3184
3101
|
: undefined,
|
|
3185
3102
|
};
|
|
@@ -3188,35 +3105,29 @@ var deserializeAws_json1_1ListQualificationTypesResponse = function (output, con
|
|
|
3188
3105
|
return {
|
|
3189
3106
|
NextToken: __expectString(output.NextToken),
|
|
3190
3107
|
NumResults: __expectInt32(output.NumResults),
|
|
3191
|
-
QualificationTypes: output.QualificationTypes
|
|
3108
|
+
QualificationTypes: output.QualificationTypes != null
|
|
3192
3109
|
? deserializeAws_json1_1QualificationTypeList(output.QualificationTypes, context)
|
|
3193
3110
|
: undefined,
|
|
3194
3111
|
};
|
|
3195
3112
|
};
|
|
3196
3113
|
var deserializeAws_json1_1ListReviewableHITsResponse = function (output, context) {
|
|
3197
3114
|
return {
|
|
3198
|
-
HITs: output.HITs
|
|
3199
|
-
? deserializeAws_json1_1HITList(output.HITs, context)
|
|
3200
|
-
: undefined,
|
|
3115
|
+
HITs: output.HITs != null ? deserializeAws_json1_1HITList(output.HITs, context) : undefined,
|
|
3201
3116
|
NextToken: __expectString(output.NextToken),
|
|
3202
3117
|
NumResults: __expectInt32(output.NumResults),
|
|
3203
3118
|
};
|
|
3204
3119
|
};
|
|
3205
3120
|
var deserializeAws_json1_1ListReviewPolicyResultsForHITResponse = function (output, context) {
|
|
3206
3121
|
return {
|
|
3207
|
-
AssignmentReviewPolicy: output.AssignmentReviewPolicy
|
|
3122
|
+
AssignmentReviewPolicy: output.AssignmentReviewPolicy != null
|
|
3208
3123
|
? deserializeAws_json1_1ReviewPolicy(output.AssignmentReviewPolicy, context)
|
|
3209
3124
|
: undefined,
|
|
3210
|
-
AssignmentReviewReport: output.AssignmentReviewReport
|
|
3125
|
+
AssignmentReviewReport: output.AssignmentReviewReport != null
|
|
3211
3126
|
? deserializeAws_json1_1ReviewReport(output.AssignmentReviewReport, context)
|
|
3212
3127
|
: undefined,
|
|
3213
3128
|
HITId: __expectString(output.HITId),
|
|
3214
|
-
HITReviewPolicy: output.HITReviewPolicy
|
|
3215
|
-
|
|
3216
|
-
: undefined,
|
|
3217
|
-
HITReviewReport: output.HITReviewReport !== undefined && output.HITReviewReport !== null
|
|
3218
|
-
? deserializeAws_json1_1ReviewReport(output.HITReviewReport, context)
|
|
3219
|
-
: undefined,
|
|
3129
|
+
HITReviewPolicy: output.HITReviewPolicy != null ? deserializeAws_json1_1ReviewPolicy(output.HITReviewPolicy, context) : undefined,
|
|
3130
|
+
HITReviewReport: output.HITReviewReport != null ? deserializeAws_json1_1ReviewReport(output.HITReviewReport, context) : undefined,
|
|
3220
3131
|
NextToken: __expectString(output.NextToken),
|
|
3221
3132
|
};
|
|
3222
3133
|
};
|
|
@@ -3224,16 +3135,14 @@ var deserializeAws_json1_1ListWorkerBlocksResponse = function (output, context)
|
|
|
3224
3135
|
return {
|
|
3225
3136
|
NextToken: __expectString(output.NextToken),
|
|
3226
3137
|
NumResults: __expectInt32(output.NumResults),
|
|
3227
|
-
WorkerBlocks: output.WorkerBlocks
|
|
3228
|
-
? deserializeAws_json1_1WorkerBlockList(output.WorkerBlocks, context)
|
|
3229
|
-
: undefined,
|
|
3138
|
+
WorkerBlocks: output.WorkerBlocks != null ? deserializeAws_json1_1WorkerBlockList(output.WorkerBlocks, context) : undefined,
|
|
3230
3139
|
};
|
|
3231
3140
|
};
|
|
3232
3141
|
var deserializeAws_json1_1ListWorkersWithQualificationTypeResponse = function (output, context) {
|
|
3233
3142
|
return {
|
|
3234
3143
|
NextToken: __expectString(output.NextToken),
|
|
3235
3144
|
NumResults: __expectInt32(output.NumResults),
|
|
3236
|
-
Qualifications: output.Qualifications
|
|
3145
|
+
Qualifications: output.Qualifications != null
|
|
3237
3146
|
? deserializeAws_json1_1QualificationList(output.Qualifications, context)
|
|
3238
3147
|
: undefined,
|
|
3239
3148
|
};
|
|
@@ -3275,7 +3184,7 @@ var deserializeAws_json1_1NotifyWorkersFailureStatusList = function (output, con
|
|
|
3275
3184
|
};
|
|
3276
3185
|
var deserializeAws_json1_1NotifyWorkersResponse = function (output, context) {
|
|
3277
3186
|
return {
|
|
3278
|
-
NotifyWorkersFailureStatuses: output.NotifyWorkersFailureStatuses
|
|
3187
|
+
NotifyWorkersFailureStatuses: output.NotifyWorkersFailureStatuses != null
|
|
3279
3188
|
? deserializeAws_json1_1NotifyWorkersFailureStatusList(output.NotifyWorkersFailureStatuses, context)
|
|
3280
3189
|
: undefined,
|
|
3281
3190
|
};
|
|
@@ -3283,9 +3192,7 @@ var deserializeAws_json1_1NotifyWorkersResponse = function (output, context) {
|
|
|
3283
3192
|
var deserializeAws_json1_1ParameterMapEntry = function (output, context) {
|
|
3284
3193
|
return {
|
|
3285
3194
|
Key: __expectString(output.Key),
|
|
3286
|
-
Values: output.Values
|
|
3287
|
-
? deserializeAws_json1_1StringList(output.Values, context)
|
|
3288
|
-
: undefined,
|
|
3195
|
+
Values: output.Values != null ? deserializeAws_json1_1StringList(output.Values, context) : undefined,
|
|
3289
3196
|
};
|
|
3290
3197
|
};
|
|
3291
3198
|
var deserializeAws_json1_1ParameterMapEntryList = function (output, context) {
|
|
@@ -3302,12 +3209,8 @@ var deserializeAws_json1_1ParameterMapEntryList = function (output, context) {
|
|
|
3302
3209
|
var deserializeAws_json1_1PolicyParameter = function (output, context) {
|
|
3303
3210
|
return {
|
|
3304
3211
|
Key: __expectString(output.Key),
|
|
3305
|
-
MapEntries: output.MapEntries
|
|
3306
|
-
|
|
3307
|
-
: undefined,
|
|
3308
|
-
Values: output.Values !== undefined && output.Values !== null
|
|
3309
|
-
? deserializeAws_json1_1StringList(output.Values, context)
|
|
3310
|
-
: undefined,
|
|
3212
|
+
MapEntries: output.MapEntries != null ? deserializeAws_json1_1ParameterMapEntryList(output.MapEntries, context) : undefined,
|
|
3213
|
+
Values: output.Values != null ? deserializeAws_json1_1StringList(output.Values, context) : undefined,
|
|
3311
3214
|
};
|
|
3312
3215
|
};
|
|
3313
3216
|
var deserializeAws_json1_1PolicyParameterList = function (output, context) {
|
|
@@ -3323,13 +3226,9 @@ var deserializeAws_json1_1PolicyParameterList = function (output, context) {
|
|
|
3323
3226
|
};
|
|
3324
3227
|
var deserializeAws_json1_1Qualification = function (output, context) {
|
|
3325
3228
|
return {
|
|
3326
|
-
GrantTime: output.GrantTime
|
|
3327
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.GrantTime)))
|
|
3328
|
-
: undefined,
|
|
3229
|
+
GrantTime: output.GrantTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.GrantTime))) : undefined,
|
|
3329
3230
|
IntegerValue: __expectInt32(output.IntegerValue),
|
|
3330
|
-
LocaleValue: output.LocaleValue
|
|
3331
|
-
? deserializeAws_json1_1Locale(output.LocaleValue, context)
|
|
3332
|
-
: undefined,
|
|
3231
|
+
LocaleValue: output.LocaleValue != null ? deserializeAws_json1_1Locale(output.LocaleValue, context) : undefined,
|
|
3333
3232
|
QualificationTypeId: __expectString(output.QualificationTypeId),
|
|
3334
3233
|
Status: __expectString(output.Status),
|
|
3335
3234
|
WorkerId: __expectString(output.WorkerId),
|
|
@@ -3351,9 +3250,7 @@ var deserializeAws_json1_1QualificationRequest = function (output, context) {
|
|
|
3351
3250
|
Answer: __expectString(output.Answer),
|
|
3352
3251
|
QualificationRequestId: __expectString(output.QualificationRequestId),
|
|
3353
3252
|
QualificationTypeId: __expectString(output.QualificationTypeId),
|
|
3354
|
-
SubmitTime: output.SubmitTime
|
|
3355
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.SubmitTime)))
|
|
3356
|
-
: undefined,
|
|
3253
|
+
SubmitTime: output.SubmitTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.SubmitTime))) : undefined,
|
|
3357
3254
|
Test: __expectString(output.Test),
|
|
3358
3255
|
WorkerId: __expectString(output.WorkerId),
|
|
3359
3256
|
};
|
|
@@ -3373,12 +3270,8 @@ var deserializeAws_json1_1QualificationRequirement = function (output, context)
|
|
|
3373
3270
|
return {
|
|
3374
3271
|
ActionsGuarded: __expectString(output.ActionsGuarded),
|
|
3375
3272
|
Comparator: __expectString(output.Comparator),
|
|
3376
|
-
IntegerValues: output.IntegerValues
|
|
3377
|
-
|
|
3378
|
-
: undefined,
|
|
3379
|
-
LocaleValues: output.LocaleValues !== undefined && output.LocaleValues !== null
|
|
3380
|
-
? deserializeAws_json1_1LocaleList(output.LocaleValues, context)
|
|
3381
|
-
: undefined,
|
|
3273
|
+
IntegerValues: output.IntegerValues != null ? deserializeAws_json1_1IntegerList(output.IntegerValues, context) : undefined,
|
|
3274
|
+
LocaleValues: output.LocaleValues != null ? deserializeAws_json1_1LocaleList(output.LocaleValues, context) : undefined,
|
|
3382
3275
|
QualificationTypeId: __expectString(output.QualificationTypeId),
|
|
3383
3276
|
RequiredToPreview: __expectBoolean(output.RequiredToPreview),
|
|
3384
3277
|
};
|
|
@@ -3399,7 +3292,7 @@ var deserializeAws_json1_1QualificationType = function (output, context) {
|
|
|
3399
3292
|
AnswerKey: __expectString(output.AnswerKey),
|
|
3400
3293
|
AutoGranted: __expectBoolean(output.AutoGranted),
|
|
3401
3294
|
AutoGrantedValue: __expectInt32(output.AutoGrantedValue),
|
|
3402
|
-
CreationTime: output.CreationTime
|
|
3295
|
+
CreationTime: output.CreationTime != null
|
|
3403
3296
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
|
|
3404
3297
|
: undefined,
|
|
3405
3298
|
Description: __expectString(output.Description),
|
|
@@ -3440,7 +3333,7 @@ var deserializeAws_json1_1ReviewActionDetail = function (output, context) {
|
|
|
3440
3333
|
return {
|
|
3441
3334
|
ActionId: __expectString(output.ActionId),
|
|
3442
3335
|
ActionName: __expectString(output.ActionName),
|
|
3443
|
-
CompleteTime: output.CompleteTime
|
|
3336
|
+
CompleteTime: output.CompleteTime != null
|
|
3444
3337
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CompleteTime)))
|
|
3445
3338
|
: undefined,
|
|
3446
3339
|
ErrorCode: __expectString(output.ErrorCode),
|
|
@@ -3463,18 +3356,16 @@ var deserializeAws_json1_1ReviewActionDetailList = function (output, context) {
|
|
|
3463
3356
|
};
|
|
3464
3357
|
var deserializeAws_json1_1ReviewPolicy = function (output, context) {
|
|
3465
3358
|
return {
|
|
3466
|
-
Parameters: output.Parameters
|
|
3467
|
-
? deserializeAws_json1_1PolicyParameterList(output.Parameters, context)
|
|
3468
|
-
: undefined,
|
|
3359
|
+
Parameters: output.Parameters != null ? deserializeAws_json1_1PolicyParameterList(output.Parameters, context) : undefined,
|
|
3469
3360
|
PolicyName: __expectString(output.PolicyName),
|
|
3470
3361
|
};
|
|
3471
3362
|
};
|
|
3472
3363
|
var deserializeAws_json1_1ReviewReport = function (output, context) {
|
|
3473
3364
|
return {
|
|
3474
|
-
ReviewActions: output.ReviewActions
|
|
3365
|
+
ReviewActions: output.ReviewActions != null
|
|
3475
3366
|
? deserializeAws_json1_1ReviewActionDetailList(output.ReviewActions, context)
|
|
3476
3367
|
: undefined,
|
|
3477
|
-
ReviewResults: output.ReviewResults
|
|
3368
|
+
ReviewResults: output.ReviewResults != null
|
|
3478
3369
|
? deserializeAws_json1_1ReviewResultDetailList(output.ReviewResults, context)
|
|
3479
3370
|
: undefined,
|
|
3480
3371
|
};
|
|
@@ -3537,7 +3428,7 @@ var deserializeAws_json1_1UpdateNotificationSettingsResponse = function (output,
|
|
|
3537
3428
|
};
|
|
3538
3429
|
var deserializeAws_json1_1UpdateQualificationTypeResponse = function (output, context) {
|
|
3539
3430
|
return {
|
|
3540
|
-
QualificationType: output.QualificationType
|
|
3431
|
+
QualificationType: output.QualificationType != null
|
|
3541
3432
|
? deserializeAws_json1_1QualificationType(output.QualificationType, context)
|
|
3542
3433
|
: undefined,
|
|
3543
3434
|
};
|