Skip to content

Commit

Permalink
feat(AWSConnect): update models to latest (#5157)
Browse files Browse the repository at this point in the history
  • Loading branch information
awsmobilesdk authored Jan 29, 2024
1 parent bd7760b commit 5ebc427
Show file tree
Hide file tree
Showing 9 changed files with 154 additions and 101 deletions.
2 changes: 1 addition & 1 deletion AWSConnect/AWSConnect.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
// Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License").
// You may not use this file except in compliance with the License.
Expand Down
86 changes: 44 additions & 42 deletions AWSConnect/AWSConnectModel.h

Large diffs are not rendered by default.

42 changes: 41 additions & 1 deletion AWSConnect/AWSConnectModel.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
// Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License").
// You may not use this file except in compliance with the License.
Expand Down Expand Up @@ -1195,6 +1195,9 @@ + (NSValueTransformer *)attributeTypeJSONTransformer {
if ([value caseInsensitiveCompare:@"ENHANCED_CONTACT_MONITORING"] == NSOrderedSame) {
return @(AWSConnectInstanceAttributeTypeEnhancedContactMonitoring);
}
if ([value caseInsensitiveCompare:@"ENHANCED_CHAT_MONITORING"] == NSOrderedSame) {
return @(AWSConnectInstanceAttributeTypeEnhancedChatMonitoring);
}
return @(AWSConnectInstanceAttributeTypeUnknown);
} reverseBlock:^NSString *(NSNumber *value) {
switch ([value integerValue]) {
Expand All @@ -1218,6 +1221,8 @@ + (NSValueTransformer *)attributeTypeJSONTransformer {
return @"HIGH_VOLUME_OUTBOUND";
case AWSConnectInstanceAttributeTypeEnhancedContactMonitoring:
return @"ENHANCED_CONTACT_MONITORING";
case AWSConnectInstanceAttributeTypeEnhancedChatMonitoring:
return @"ENHANCED_CHAT_MONITORING";
default:
return nil;
}
Expand Down Expand Up @@ -7468,6 +7473,9 @@ + (NSValueTransformer *)attributeTypeJSONTransformer {
if ([value caseInsensitiveCompare:@"ENHANCED_CONTACT_MONITORING"] == NSOrderedSame) {
return @(AWSConnectInstanceAttributeTypeEnhancedContactMonitoring);
}
if ([value caseInsensitiveCompare:@"ENHANCED_CHAT_MONITORING"] == NSOrderedSame) {
return @(AWSConnectInstanceAttributeTypeEnhancedChatMonitoring);
}
return @(AWSConnectInstanceAttributeTypeUnknown);
} reverseBlock:^NSString *(NSNumber *value) {
switch ([value integerValue]) {
Expand All @@ -7491,6 +7499,8 @@ + (NSValueTransformer *)attributeTypeJSONTransformer {
return @"HIGH_VOLUME_OUTBOUND";
case AWSConnectInstanceAttributeTypeEnhancedContactMonitoring:
return @"ENHANCED_CONTACT_MONITORING";
case AWSConnectInstanceAttributeTypeEnhancedChatMonitoring:
return @"ENHANCED_CHAT_MONITORING";
default:
return nil;
}
Expand Down Expand Up @@ -15348,6 +15358,9 @@ + (NSValueTransformer *)participantRoleJSONTransformer {
if ([value caseInsensitiveCompare:@"CUSTOM_BOT"] == NSOrderedSame) {
return @(AWSConnectParticipantRoleCustomBot);
}
if ([value caseInsensitiveCompare:@"SUPERVISOR"] == NSOrderedSame) {
return @(AWSConnectParticipantRoleSupervisor);
}
return @(AWSConnectParticipantRoleUnknown);
} reverseBlock:^NSString *(NSNumber *value) {
switch ([value integerValue]) {
Expand All @@ -15359,6 +15372,8 @@ + (NSValueTransformer *)participantRoleJSONTransformer {
return @"SYSTEM";
case AWSConnectParticipantRoleCustomBot:
return @"CUSTOM_BOT";
case AWSConnectParticipantRoleSupervisor:
return @"SUPERVISOR";
default:
return nil;
}
Expand Down Expand Up @@ -17713,6 +17728,9 @@ + (NSValueTransformer *)participantRoleJSONTransformer {
if ([value caseInsensitiveCompare:@"CUSTOM_BOT"] == NSOrderedSame) {
return @(AWSConnectParticipantRoleCustomBot);
}
if ([value caseInsensitiveCompare:@"SUPERVISOR"] == NSOrderedSame) {
return @(AWSConnectParticipantRoleSupervisor);
}
return @(AWSConnectParticipantRoleUnknown);
} reverseBlock:^NSString *(NSNumber *value) {
switch ([value integerValue]) {
Expand All @@ -17724,6 +17742,8 @@ + (NSValueTransformer *)participantRoleJSONTransformer {
return @"SYSTEM";
case AWSConnectParticipantRoleCustomBot:
return @"CUSTOM_BOT";
case AWSConnectParticipantRoleSupervisor:
return @"SUPERVISOR";
default:
return nil;
}
Expand Down Expand Up @@ -17789,6 +17809,9 @@ + (NSValueTransformer *)participantRoleJSONTransformer {
if ([value caseInsensitiveCompare:@"CUSTOM_BOT"] == NSOrderedSame) {
return @(AWSConnectParticipantRoleCustomBot);
}
if ([value caseInsensitiveCompare:@"SUPERVISOR"] == NSOrderedSame) {
return @(AWSConnectParticipantRoleSupervisor);
}
return @(AWSConnectParticipantRoleUnknown);
} reverseBlock:^NSString *(NSNumber *value) {
switch ([value integerValue]) {
Expand All @@ -17800,6 +17823,8 @@ + (NSValueTransformer *)participantRoleJSONTransformer {
return @"SYSTEM";
case AWSConnectParticipantRoleCustomBot:
return @"CUSTOM_BOT";
case AWSConnectParticipantRoleSupervisor:
return @"SUPERVISOR";
default:
return nil;
}
Expand Down Expand Up @@ -17864,6 +17889,9 @@ + (NSValueTransformer *)participantRoleJSONTransformer {
if ([value caseInsensitiveCompare:@"CUSTOM_BOT"] == NSOrderedSame) {
return @(AWSConnectParticipantRoleCustomBot);
}
if ([value caseInsensitiveCompare:@"SUPERVISOR"] == NSOrderedSame) {
return @(AWSConnectParticipantRoleSupervisor);
}
return @(AWSConnectParticipantRoleUnknown);
} reverseBlock:^NSString *(NSNumber *value) {
switch ([value integerValue]) {
Expand All @@ -17875,6 +17903,8 @@ + (NSValueTransformer *)participantRoleJSONTransformer {
return @"SYSTEM";
case AWSConnectParticipantRoleCustomBot:
return @"CUSTOM_BOT";
case AWSConnectParticipantRoleSupervisor:
return @"SUPERVISOR";
default:
return nil;
}
Expand Down Expand Up @@ -22638,6 +22668,9 @@ + (NSValueTransformer *)participantRoleJSONTransformer {
if ([value caseInsensitiveCompare:@"CUSTOM_BOT"] == NSOrderedSame) {
return @(AWSConnectParticipantRoleCustomBot);
}
if ([value caseInsensitiveCompare:@"SUPERVISOR"] == NSOrderedSame) {
return @(AWSConnectParticipantRoleSupervisor);
}
return @(AWSConnectParticipantRoleUnknown);
} reverseBlock:^NSString *(NSNumber *value) {
switch ([value integerValue]) {
Expand All @@ -22649,6 +22682,8 @@ + (NSValueTransformer *)participantRoleJSONTransformer {
return @"SYSTEM";
case AWSConnectParticipantRoleCustomBot:
return @"CUSTOM_BOT";
case AWSConnectParticipantRoleSupervisor:
return @"SUPERVISOR";
default:
return nil;
}
Expand Down Expand Up @@ -23234,6 +23269,9 @@ + (NSValueTransformer *)attributeTypeJSONTransformer {
if ([value caseInsensitiveCompare:@"ENHANCED_CONTACT_MONITORING"] == NSOrderedSame) {
return @(AWSConnectInstanceAttributeTypeEnhancedContactMonitoring);
}
if ([value caseInsensitiveCompare:@"ENHANCED_CHAT_MONITORING"] == NSOrderedSame) {
return @(AWSConnectInstanceAttributeTypeEnhancedChatMonitoring);
}
return @(AWSConnectInstanceAttributeTypeUnknown);
} reverseBlock:^NSString *(NSNumber *value) {
switch ([value integerValue]) {
Expand All @@ -23257,6 +23295,8 @@ + (NSValueTransformer *)attributeTypeJSONTransformer {
return @"HIGH_VOLUME_OUTBOUND";
case AWSConnectInstanceAttributeTypeEnhancedContactMonitoring:
return @"ENHANCED_CONTACT_MONITORING";
case AWSConnectInstanceAttributeTypeEnhancedChatMonitoring:
return @"ENHANCED_CHAT_MONITORING";
default:
return nil;
}
Expand Down
2 changes: 1 addition & 1 deletion AWSConnect/AWSConnectResources.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
// Copyright 2010-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License").
// You may not use this file except in compliance with the License.
Expand Down
Loading

0 comments on commit 5ebc427

Please sign in to comment.