Skip to content

Commit 983d687

Browse files
committed
deploy: 1bd62c2
1 parent 6ff15a5 commit 983d687

File tree

17 files changed

+109
-108
lines changed

17 files changed

+109
-108
lines changed

classes/AbstractSchema.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,6 @@ <h6><b>Properties</b></h6>
148148
<li>
149149
<span class="modifier">Public</span>
150150
<span class="modifier">Readonly</span>
151-
<span class="modifier">Optional</span>
152151
<a href="#_id" >_id</a>
153152
</li>
154153
<li>
@@ -184,7 +183,6 @@ <h3 id="inputs">
184183
<span class="name">
185184
<span class="modifier">Public</span>
186185
<span class="modifier">Readonly</span>
187-
<span class="modifier">Optional</span>
188186
<span ><b>_id</b></span>
189187
<a href="#_id"><span class="icon ion-ios-link"></span></a>
190188
</span>
@@ -260,7 +258,7 @@ <h3 id="inputs">
260258
import { MetadataPart, MetadataPartSchema } from &#x27;~/_common/abstracts/schemas/parts/metadata.part.schema&#x27;;
261259

262260
export abstract class AbstractSchema extends Document {
263-
public readonly _id?: Types.ObjectId | any // eslint-disable-line
261+
public readonly _id: Types.ObjectId | any // eslint-disable-line
264262

265263
@Prop({ type: MetadataPartSchema })
266264
public metadata?: MetadataPart;

classes/additionalFieldsPartDto.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ <h3 id="inputs">
205205
<b>Decorators : </b>
206206
<br />
207207
<code>
208-
@ApiProperty({type: &#x27;object&#x27;, name: &#x27;attributes&#x27;})<br />@IsOptional()<br />
208+
@ApiProperty({type: Object, name: &#x27;attributes&#x27;})<br />@IsOptional()<br />
209209
</code>
210210
</td>
211211
</tr>
@@ -285,7 +285,7 @@ <h3 id="inputs">
285285
<b>Decorators : </b>
286286
<br />
287287
<code>
288-
@ApiProperty({type: &#x27;object&#x27;, name: &#x27;validations&#x27;})<br />
288+
@ApiProperty({type: Object, name: &#x27;validations&#x27;})<br />
289289
</code>
290290
</td>
291291
</tr>
@@ -323,14 +323,14 @@ <h3 id="inputs">
323323
public objectClasses: string[] &#x3D; [];
324324

325325
@ApiProperty({
326-
type: &#x27;object&#x27;,
326+
type: Object,
327327
name: &#x27;attributes&#x27;,
328328
})
329329
@IsOptional()
330330
public attributes: { [key: string]: any } &#x3D; {};
331331

332332
@ApiProperty({
333-
type: &#x27;object&#x27;,
333+
type: Object,
334334
name: &#x27;validations&#x27;,
335335
})
336336
public validations?: { [key: string]: { [key: string]: string } };

controllers/IdentitiesCrudController.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1179,7 +1179,7 @@ <h3 id="methods">
11791179
const data &#x3D; await this._service.create&lt;Identities&gt;(body);
11801180
// If the state is TO_COMPLETE, the identity is created but additional fields are missing or invalid
11811181
// Else the state is TO_VALIDATE, we return a 201 status code
1182-
if ((data as Identities).state &#x3D;&#x3D;&#x3D; IdentityState.TO_COMPLETE) {
1182+
if (data.toObject().state &#x3D;&#x3D;&#x3D; IdentityState.TO_COMPLETE) {
11831183
statusCode &#x3D; HttpStatus.ACCEPTED;
11841184
message &#x3D; &#x27;Identitée créée avec succès, mais des champs additionnels sont manquants ou invalides.&#x27;;
11851185
}
@@ -1327,7 +1327,7 @@ <h3 id="methods">
13271327
public async updateStateMany(
13281328
@Res() res: Response,
13291329
@Body()
1330-
body: {
1330+
body: {
13311331
originState: IdentityState;
13321332
targetState: IdentityState;
13331333
ids: Types.ObjectId[];

injectables/FilestorageService.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2073,9 +2073,9 @@ <h3 id="inputs">
20732073
return {
20742074
...data.toObject(),
20752075
_exists: storageRequest.exists,
2076-
}
2076+
} as any
20772077
}
2078-
return data.toObject()
2078+
return data.toObject() as any
20792079
}
20802080

20812081
public async findByIdWithRawData&lt;T extends Filestorage | Document&gt;(
@@ -2103,9 +2103,9 @@ <h3 id="inputs">
21032103
return {
21042104
...data.toObject(),
21052105
_exists: storageRequest.exists,
2106-
}
2106+
} as any
21072107
}
2108-
return data.toObject()
2108+
return data.toObject() as any
21092109
}
21102110

21112111
public async findOneWithRawData&lt;T extends Filestorage | Document&gt;(
@@ -2158,7 +2158,7 @@ <h3 id="inputs">
21582158
) {
21592159
let stored: Document&lt;any, any, Filestorage&gt; &amp; Filestorage
21602160
try {
2161-
stored &#x3D; await this.findOne&lt;Filestorage&gt;(filter, options)
2161+
stored &#x3D; (await this.findOne&lt;Filestorage&gt;(filter, options)) as any
21622162
} catch (e) {
21632163
if (e.status !&#x3D;&#x3D; HttpStatus.NOT_FOUND) throw e
21642164
}

injectables/KeyringsService.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ <h3 id="constructor">Constructor</h3>
249249
</tr>
250250
<tr>
251251
<td class="col-md-4">
252-
<div class="io-line">Defined in <a href="" data-line="10" class="link-to-prism">src/core/keyrings/keyrings.service.ts:10</a></div>
252+
<div class="io-line">Defined in <a href="" data-line="11" class="link-to-prism">src/core/keyrings/keyrings.service.ts:11</a></div>
253253
</td>
254254
</tr>
255255

@@ -321,7 +321,7 @@ <h3 id="methods">
321321
</tr>
322322
<tr>
323323
<td class="col-md-4">
324-
<div class="io-line">Defined in <code><a href="../injectables/AbstractServiceSchema.html#source" target="_self" >AbstractServiceSchema:15</a></code>
324+
<div class="io-line">Defined in <code><a href="../injectables/AbstractServiceSchema.html#source" target="_self" >AbstractServiceSchema:16</a></code>
325325
</div>
326326
</td>
327327
</tr>
@@ -1511,14 +1511,15 @@ <h3 id="inputs">
15111511
import { AbstractServiceSchema } from &#x27;~/_common/abstracts/abstract.service.schema&#x27;;
15121512
import { KeyringsCreateDto } from &#x27;./_dto/keyrings.dto&#x27;;
15131513
import { randomBytes } from &#x27;node:crypto&#x27;;
1514+
import { AbstractSchema } from &#x27;~/_common/abstracts/schemas/abstract.schema&#x27;;
15141515

15151516
@Injectable()
15161517
export class KeyringsService extends AbstractServiceSchema {
15171518
constructor(@InjectModel(Keyrings.name) protected _model: Model&lt;Keyrings&gt;) {
15181519
super();
15191520
}
15201521

1521-
public async create&lt;T extends Keyrings | Document&gt;(
1522+
public async create&lt;T extends AbstractSchema | Document&gt;(
15221523
data?: KeyringsCreateDto,
15231524
options?: SaveOptions,
15241525
): Promise&lt;Document&lt;T, any, T&gt;&gt; {

interfaces/ServiceSchemaInterface.html

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -213,15 +213,15 @@ <h3 id="methods">
213213
</tr>
214214
<tr>
215215
<td class="col-md-4">
216-
<code>count(filter?: FilterQuery<T>, options?: QueryOptions<T> | null | undefined)</code>
216+
<code>count(filter?: FilterQuery<T>, options?: | null)</code>
217217
</td>
218218
</tr>
219219

220220

221221
<tr>
222222
<td class="col-md-4">
223-
<div class="io-line">Defined in <a href="" data-line="22"
224-
class="link-to-prism">src/_common/abstracts/interfaces/service.schema.interface.ts:22</a></div>
223+
<div class="io-line">Defined in <a href="" data-line="24"
224+
class="link-to-prism">src/_common/abstracts/interfaces/service.schema.interface.ts:24</a></div>
225225
</td>
226226
</tr>
227227

@@ -264,7 +264,7 @@ <h3 id="methods">
264264
<tr>
265265
<td>options</td>
266266
<td>
267-
<code>QueryOptions&lt;T&gt; | null | undefined</code>
267+
<code> | null</code>
268268
</td>
269269

270270
<td>
@@ -307,8 +307,8 @@ <h3 id="methods">
307307

308308
<tr>
309309
<td class="col-md-4">
310-
<div class="io-line">Defined in <a href="" data-line="42"
311-
class="link-to-prism">src/_common/abstracts/interfaces/service.schema.interface.ts:42</a></div>
310+
<div class="io-line">Defined in <a href="" data-line="44"
311+
class="link-to-prism">src/_common/abstracts/interfaces/service.schema.interface.ts:44</a></div>
312312
</td>
313313
</tr>
314314

@@ -394,8 +394,8 @@ <h3 id="methods">
394394

395395
<tr>
396396
<td class="col-md-4">
397-
<div class="io-line">Defined in <a href="" data-line="50"
398-
class="link-to-prism">src/_common/abstracts/interfaces/service.schema.interface.ts:50</a></div>
397+
<div class="io-line">Defined in <a href="" data-line="52"
398+
class="link-to-prism">src/_common/abstracts/interfaces/service.schema.interface.ts:52</a></div>
399399
</td>
400400
</tr>
401401

@@ -481,8 +481,8 @@ <h3 id="methods">
481481

482482
<tr>
483483
<td class="col-md-4">
484-
<div class="io-line">Defined in <a href="" data-line="16"
485-
class="link-to-prism">src/_common/abstracts/interfaces/service.schema.interface.ts:16</a></div>
484+
<div class="io-line">Defined in <a href="" data-line="18"
485+
class="link-to-prism">src/_common/abstracts/interfaces/service.schema.interface.ts:18</a></div>
486486
</td>
487487
</tr>
488488

@@ -580,8 +580,8 @@ <h3 id="methods">
580580

581581
<tr>
582582
<td class="col-md-4">
583-
<div class="io-line">Defined in <a href="" data-line="24"
584-
class="link-to-prism">src/_common/abstracts/interfaces/service.schema.interface.ts:24</a></div>
583+
<div class="io-line">Defined in <a href="" data-line="26"
584+
class="link-to-prism">src/_common/abstracts/interfaces/service.schema.interface.ts:26</a></div>
585585
</td>
586586
</tr>
587587

@@ -679,8 +679,8 @@ <h3 id="methods">
679679

680680
<tr>
681681
<td class="col-md-4">
682-
<div class="io-line">Defined in <a href="" data-line="30"
683-
class="link-to-prism">src/_common/abstracts/interfaces/service.schema.interface.ts:30</a></div>
682+
<div class="io-line">Defined in <a href="" data-line="32"
683+
class="link-to-prism">src/_common/abstracts/interfaces/service.schema.interface.ts:32</a></div>
684684
</td>
685685
</tr>
686686

@@ -778,8 +778,8 @@ <h3 id="methods">
778778

779779
<tr>
780780
<td class="col-md-4">
781-
<div class="io-line">Defined in <a href="" data-line="36"
782-
class="link-to-prism">src/_common/abstracts/interfaces/service.schema.interface.ts:36</a></div>
781+
<div class="io-line">Defined in <a href="" data-line="38"
782+
class="link-to-prism">src/_common/abstracts/interfaces/service.schema.interface.ts:38</a></div>
783783
</td>
784784
</tr>
785785

@@ -877,8 +877,8 @@ <h3 id="methods">
877877

878878
<tr>
879879
<td class="col-md-4">
880-
<div class="io-line">Defined in <a href="" data-line="44"
881-
class="link-to-prism">src/_common/abstracts/interfaces/service.schema.interface.ts:44</a></div>
880+
<div class="io-line">Defined in <a href="" data-line="46"
881+
class="link-to-prism">src/_common/abstracts/interfaces/service.schema.interface.ts:46</a></div>
882882
</td>
883883
</tr>
884884

@@ -966,6 +966,7 @@ <h3 id="methods">
966966
Document,
967967
FilterQuery,
968968
ModifyResult,
969+
MongooseBaseQueryOptions,
969970
ProjectionType,
970971
Query,
971972
QueryOptions,
@@ -974,6 +975,7 @@ <h3 id="methods">
974975
UpdateQuery,
975976
} from &#x27;mongoose&#x27;;
976977
import { AbstractSchema } from &#x27;../schemas/abstract.schema&#x27;;
978+
import mongodb from &#x27;mongodb&#x27;;
977979

978980
export interface ServiceSchemaInterface {
979981
/* eslint-disable */
@@ -983,7 +985,7 @@ <h3 id="methods">
983985
options?: QueryOptions&lt;T&gt; | null | undefined,
984986
): Promise&lt;Query&lt;Array&lt;T&gt;, T, any, T&gt;[]&gt;
985987

986-
count&lt;T extends AbstractSchema | Document&gt;(filter?: FilterQuery&lt;T&gt;, options?: QueryOptions&lt;T&gt; | null | undefined): Promise&lt;number&gt;
988+
count&lt;T extends AbstractSchema | Document&gt;(filter?: FilterQuery&lt;T&gt;, options?: (mongodb.CountOptions &amp; MongooseBaseQueryOptions&lt;T&gt;) | null): Promise&lt;number&gt;
987989

988990
findAndCount&lt;T extends AbstractSchema | Document&gt;(
989991
filter?: FilterQuery&lt;T&gt;,

js/search/search_index.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

modules/IdentitiesJsonformsModule.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,14 +117,14 @@
117117
<title>cluster_IdentitiesJsonformsModule</title>
118118
<polygon fill="none" stroke="black" stroke-dasharray="1,5" points="116,-70 116,-268 380,-268 380,-70 116,-70"/>
119119
</g>
120-
<g id="clust6" class="cluster">
121-
<title>cluster_IdentitiesJsonformsModule_providers</title>
122-
<polygon fill="none" stroke="black" points="124,-78 124,-130 372,-130 372,-78 124,-78"/>
123-
</g>
124120
<g id="clust4" class="cluster">
125121
<title>cluster_IdentitiesJsonformsModule_exports</title>
126122
<polygon fill="none" stroke="black" points="154,-208 154,-260 342,-260 342,-208 154,-208"/>
127123
</g>
124+
<g id="clust6" class="cluster">
125+
<title>cluster_IdentitiesJsonformsModule_providers</title>
126+
<polygon fill="none" stroke="black" points="124,-78 124,-130 372,-130 372,-78 124,-78"/>
127+
</g>
128128
<!-- IdentitiesJsonformsService -->
129129
<g id="node1" class="node">
130130
<title>IdentitiesJsonformsService </title>

modules/IdentitiesJsonformsModule/dependencies.svg

Lines changed: 4 additions & 4 deletions
Loading

modules/IdentitiesModule.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,14 +121,14 @@
121121
<title>cluster_IdentitiesModule_imports</title>
122122
<polygon fill="none" stroke="black" points="523,-78 523,-130 661,-130 661,-78 523,-78"/>
123123
</g>
124-
<g id="clust4" class="cluster">
125-
<title>cluster_IdentitiesModule_exports</title>
126-
<polygon fill="none" stroke="black" points="312,-208 312,-260 470,-260 470,-208 312,-208"/>
127-
</g>
128124
<g id="clust6" class="cluster">
129125
<title>cluster_IdentitiesModule_providers</title>
130126
<polygon fill="none" stroke="black" points="16,-78 16,-130 515,-130 515,-78 16,-78"/>
131127
</g>
128+
<g id="clust4" class="cluster">
129+
<title>cluster_IdentitiesModule_exports</title>
130+
<polygon fill="none" stroke="black" points="312,-208 312,-260 470,-260 470,-208 312,-208"/>
131+
</g>
132132
<!-- FilestorageModule -->
133133
<g id="node1" class="node">
134134
<title>FilestorageModule</title>

0 commit comments

Comments
 (0)