@@ -209,6 +209,11 @@ <h6><b>Methods</b></h6>
209209 < span class ="modifier "> Async</ span >
210210 < a href ="#update " > update</ a >
211211 </ li >
212+ < li >
213+ < span class ="modifier "> Public</ span >
214+ < span class ="modifier "> Async</ span >
215+ < a href ="#updateLifecycle " > updateLifecycle</ a >
216+ </ li >
212217 < li >
213218 < span class ="modifier "> Public</ span >
214219 < span class ="modifier "> Async</ span >
@@ -590,8 +595,8 @@ <h3 id="methods">
590595
591596 < tr >
592597 < td class ="col-md-4 ">
593- < div class ="io-line "> Defined in < a href ="" data-line ="171 "
594- class ="link-to-prism "> src/management/identities/identities-crud.service.ts:171 </ a > </ div >
598+ < div class ="io-line "> Defined in < a href ="" data-line ="182 "
599+ class ="link-to-prism "> src/management/identities/identities-crud.service.ts:182 </ a > </ div >
595600 </ td >
596601 </ tr >
597602
@@ -686,7 +691,7 @@ <h3 id="methods">
686691 </ tr >
687692 < tr >
688693 < td class ="col-md-4 ">
689- < div class ="io-line "> Defined in < code > < a href ="../injectables/AbstractServiceSchema.html#source " target ="_self " > AbstractServiceSchema:13 </ a > </ code >
694+ < div class ="io-line "> Defined in < code > < a href ="../injectables/AbstractServiceSchema.html#source " target ="_self " > AbstractServiceSchema:14 </ a > </ code >
690695</ div >
691696 </ td >
692697 </ tr >
@@ -782,7 +787,7 @@ <h3 id="methods">
782787 </ tr >
783788 < tr >
784789 < td class ="col-md-4 ">
785- < div class ="io-line "> Defined in < code > < a href ="../injectables/AbstractServiceSchema.html#source " target ="_self " > AbstractServiceSchema:162 </ a > </ code >
790+ < div class ="io-line "> Defined in < code > < a href ="../injectables/AbstractServiceSchema.html#source " target ="_self " > AbstractServiceSchema:173 </ a > </ code >
786791</ div >
787792 </ td >
788793 </ tr >
@@ -878,7 +883,7 @@ <h3 id="methods">
878883 </ tr >
879884 < tr >
880885 < td class ="col-md-4 ">
881- < div class ="io-line "> Defined in < code > < a href ="../injectables/AbstractServiceSchema.html#source " target ="_self " > AbstractServiceSchema:66 </ a > </ code >
886+ < div class ="io-line "> Defined in < code > < a href ="../injectables/AbstractServiceSchema.html#source " target ="_self " > AbstractServiceSchema:67 </ a > </ code >
882887</ div >
883888 </ td >
884889 </ tr >
@@ -956,6 +961,107 @@ <h3 id="methods">
956961 </ tr >
957962 </ tbody >
958963 </ table >
964+ < table class ="table table-sm table-bordered ">
965+ < tbody >
966+ < tr >
967+ < td class ="col-md-4 ">
968+ < a name ="updateLifecycle "> </ a >
969+ < span class ="name ">
970+ < span class ="modifier "> Public</ span >
971+ < span class ="modifier "> Async</ span >
972+ < span > < b > updateLifecycle</ b > </ span >
973+ < a href ="#updateLifecycle "> < span class ="icon ion-ios-link "> </ span > </ a >
974+ </ span >
975+ </ td >
976+ </ tr >
977+ < tr >
978+ < td class ="col-md-4 ">
979+ < span class ="modifier-icon icon ion-ios-reset "> </ span >
980+ < code > updateLifecycle(_id: Types.ObjectId | any, lifecycle: < a href ="../classes/Lifecycle.html " target ="_self "> IdentityLifecycleDefault | string</ a > , options?)</ code >
981+ </ td >
982+ </ tr >
983+
984+
985+ < tr >
986+ < td class ="col-md-4 ">
987+ < div class ="io-line "> Defined in < a href ="" data-line ="132 "
988+ class ="link-to-prism "> src/management/identities/identities-crud.service.ts:132</ a > </ div >
989+ </ td >
990+ </ tr >
991+
992+ < tr >
993+ < td class ="col-md-4 ">
994+ < b > Type parameters :</ b >
995+ < ul class ="type-parameters ">
996+ < li > T</ li >
997+ </ ul >
998+ </ td >
999+ </ tr >
1000+
1001+ < tr >
1002+ < td class ="col-md-4 ">
1003+
1004+ < div class ="io-description ">
1005+ < b > Parameters :</ b >
1006+
1007+ < table class ="params ">
1008+ < thead >
1009+ < tr >
1010+ < td > Name</ td >
1011+ < td > Type</ td >
1012+ < td > Optional</ td >
1013+ </ tr >
1014+ </ thead >
1015+ < tbody >
1016+ < tr >
1017+ < td > _id</ td >
1018+ < td >
1019+ < code > Types.ObjectId | any</ code >
1020+ </ td >
1021+
1022+ < td >
1023+ No
1024+ </ td >
1025+
1026+
1027+ </ tr >
1028+ < tr >
1029+ < td > lifecycle</ td >
1030+ < td >
1031+ < code > < a href ="../classes/Lifecycle.html " target ="_self " > IdentityLifecycleDefault | string</ a > </ code >
1032+ </ td >
1033+
1034+ < td >
1035+ No
1036+ </ td >
1037+
1038+
1039+ </ tr >
1040+ < tr >
1041+ < td > options</ td >
1042+ < td >
1043+ </ td >
1044+
1045+ < td >
1046+ Yes
1047+ </ td >
1048+
1049+
1050+ </ tr >
1051+ </ tbody >
1052+ </ table >
1053+ </ div >
1054+ < div class ="io-description ">
1055+ < b > Returns : </ b > < code > Promise<ModifyResult<Query<T, T, any, T>>></ code >
1056+
1057+ </ div >
1058+ < div class ="io-description ">
1059+
1060+ </ div >
1061+ </ td >
1062+ </ tr >
1063+ </ tbody >
1064+ </ table >
9591065 < table class ="table table-sm table-bordered ">
9601066 < tbody >
9611067 < tr >
@@ -979,8 +1085,8 @@ <h3 id="methods">
9791085
9801086 < tr >
9811087 < td class ="col-md-4 ">
982- < div class ="io-line "> Defined in < a href ="" data-line ="131 "
983- class ="link-to-prism "> src/management/identities/identities-crud.service.ts:131 </ a > </ div >
1088+ < div class ="io-line "> Defined in < a href ="" data-line ="141 "
1089+ class ="link-to-prism "> src/management/identities/identities-crud.service.ts:141 </ a > </ div >
9841090 </ td >
9851091 </ tr >
9861092
@@ -1080,8 +1186,8 @@ <h3 id="methods">
10801186
10811187 < tr >
10821188 < td class ="col-md-4 ">
1083- < div class ="io-line "> Defined in < a href ="" data-line ="139 "
1084- class ="link-to-prism "> src/management/identities/identities-crud.service.ts:139 </ a > </ div >
1189+ < div class ="io-line "> Defined in < a href ="" data-line ="150 "
1190+ class ="link-to-prism "> src/management/identities/identities-crud.service.ts:150 </ a > </ div >
10851191 </ td >
10861192 </ tr >
10871193
@@ -2774,6 +2880,7 @@ <h3 id="methods">
27742880import { Identities } from '~/management/identities/_schemas/identities.schema';
27752881import { BadRequestException, HttpException } from '@nestjs/common';
27762882import { CountOptions } from 'mongodb';
2883+ import { IdentityLifecycleDefault, IdentityLifecycleState } from './_enums/lifecycle.enum';
27772884
27782885export const COUNT_ALL_MAX_ITERATIONS = 500;
27792886
@@ -2896,6 +3003,15 @@ <h3 id="methods">
28963003 return await this.generateFingerprint(updated as unknown as Identities);
28973004 }
28983005
3006+ public async updateLifecycle<T extends AbstractSchema | Document>(
3007+ _id: Types.ObjectId | any,
3008+ lifecycle: IdentityLifecycleDefault | string,
3009+ options?: QueryOptions<T> & { rawResult: true },
3010+ ): Promise<ModifyResult<Query<T, T, any, T>>> {
3011+ const updated = await super.update(_id, { lifecycle }, options);
3012+ return updated;
3013+ }
3014+
28993015 public async updateState<T extends AbstractSchema | Document>(
29003016 _id: Types.ObjectId | any,
29013017 state: IdentityState,
@@ -2904,6 +3020,7 @@ <h3 id="methods">
29043020 const updated = await super.update(_id, { state }, options);
29053021 return updated;
29063022 }
3023+
29073024 public async updateStateMany<T extends AbstractSchema | Document>(body: {
29083025 ids: Types.ObjectId[];
29093026 targetState: IdentityState;
0 commit comments