@@ -326,6 +326,9 @@ async function searchChallenges (currentUser, criteria) {
326
326
if ( criteria . selfService ) {
327
327
boolQuery . push ( { match_phrase : { 'legacy.selfService' : criteria . selfService } } )
328
328
}
329
+ if ( criteria . selfServiceCopilot ) {
330
+ boolQuery . push ( { match_phrase : { 'legacy.selfServiceCopilot' : criteria . selfServiceCopilot } } )
331
+ }
329
332
if ( criteria . forumId ) {
330
333
boolQuery . push ( { match_phrase : { 'legacy.forumId' : criteria . forumId } } )
331
334
}
@@ -696,6 +699,7 @@ searchChallenges.schema = {
696
699
perPage : Joi . perPage ( ) ,
697
700
id : Joi . optionalId ( ) ,
698
701
selfService : Joi . boolean ( ) ,
702
+ selfServiceCopilot : Joi . string ( ) ,
699
703
confidentialityType : Joi . string ( ) ,
700
704
directProjectId : Joi . number ( ) ,
701
705
typeIds : Joi . array ( ) . items ( Joi . optionalId ( ) ) ,
@@ -1085,7 +1089,8 @@ createChallenge.schema = {
1085
1089
useSchedulingAPI : Joi . boolean ( ) ,
1086
1090
pureV5Task : Joi . boolean ( ) ,
1087
1091
pureV5 : Joi . boolean ( ) ,
1088
- selfService : Joi . boolean ( )
1092
+ selfService : Joi . boolean ( ) ,
1093
+ selfServiceCopilot : Joi . string ( )
1089
1094
} ) ,
1090
1095
billing : Joi . object ( ) . keys ( {
1091
1096
billingAccountId : Joi . string ( ) ,
@@ -1888,7 +1893,8 @@ function sanitizeChallenge (challenge) {
1888
1893
'useSchedulingAPI' ,
1889
1894
'pureV5Task' ,
1890
1895
'pureV5' ,
1891
- 'selfService'
1896
+ 'selfService' ,
1897
+ 'selfServiceCopilot'
1892
1898
] )
1893
1899
}
1894
1900
if ( challenge . billing ) {
@@ -1957,6 +1963,7 @@ fullyUpdateChallenge.schema = {
1957
1963
pureV5Task : Joi . boolean ( ) ,
1958
1964
pureV5 : Joi . boolean ( ) ,
1959
1965
selfService : Joi . boolean ( ) ,
1966
+ selfServiceCopilot : Joi . string ( ) ,
1960
1967
} ) . unknown ( true ) ,
1961
1968
cancelReason : Joi . string ( ) ,
1962
1969
billing : Joi . object ( ) . keys ( {
@@ -2062,7 +2069,8 @@ partiallyUpdateChallenge.schema = {
2062
2069
useSchedulingAPI : Joi . boolean ( ) ,
2063
2070
pureV5Task : Joi . boolean ( ) ,
2064
2071
pureV5 : Joi . boolean ( ) ,
2065
- selfService : Joi . boolean ( )
2072
+ selfService : Joi . boolean ( ) ,
2073
+ selfServiceCopilot : Joi . string ( )
2066
2074
} ) . unknown ( true ) ,
2067
2075
cancelReason : Joi . string ( ) ,
2068
2076
task : Joi . object ( ) . keys ( {
0 commit comments