@digipair/skill-mongodb 0.129.1 → 0.130.6
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/dist/index.cjs.js +10 -0
- package/dist/index.esm.js +1367 -1351
- package/dist/schema.fr.json +61 -0
- package/dist/schema.json +61 -0
- package/dist/src/lib/skill-mongodb.d.ts +1 -0
- package/dist/src/lib/skill-mongodb.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/schema.fr.json
CHANGED
|
@@ -534,6 +534,67 @@
|
|
|
534
534
|
}
|
|
535
535
|
}
|
|
536
536
|
}
|
|
537
|
+
},
|
|
538
|
+
"/count": {
|
|
539
|
+
"post": {
|
|
540
|
+
"tags": ["service"],
|
|
541
|
+
"summary": "Compter les documents correspondant aux critères de recherche",
|
|
542
|
+
"parameters": [
|
|
543
|
+
{
|
|
544
|
+
"name": "client",
|
|
545
|
+
"summary": "Connection à la base de données",
|
|
546
|
+
"required": false,
|
|
547
|
+
"description": "Client de connexion à la base de données",
|
|
548
|
+
"schema": {
|
|
549
|
+
"type": "array",
|
|
550
|
+
"items": {
|
|
551
|
+
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
},
|
|
555
|
+
{
|
|
556
|
+
"name": "options",
|
|
557
|
+
"summary": "Options",
|
|
558
|
+
"required": false,
|
|
559
|
+
"description": "Options de recherche",
|
|
560
|
+
"schema": {
|
|
561
|
+
"type": "object"
|
|
562
|
+
}
|
|
563
|
+
},
|
|
564
|
+
{
|
|
565
|
+
"name": "collection",
|
|
566
|
+
"summary": "Collection",
|
|
567
|
+
"required": true,
|
|
568
|
+
"description": "Nom de la collection",
|
|
569
|
+
"schema": {
|
|
570
|
+
"type": "string"
|
|
571
|
+
}
|
|
572
|
+
},
|
|
573
|
+
{
|
|
574
|
+
"name": "filter",
|
|
575
|
+
"summary": "Filtre",
|
|
576
|
+
"required": true,
|
|
577
|
+
"description": "Filtre de recherche",
|
|
578
|
+
"schema": {
|
|
579
|
+
"type": "object"
|
|
580
|
+
}
|
|
581
|
+
}
|
|
582
|
+
],
|
|
583
|
+
"x-events": [],
|
|
584
|
+
"responses": {
|
|
585
|
+
"200": {
|
|
586
|
+
"description": "Nombre de documents correspondant aux critères de recherche",
|
|
587
|
+
"content": {
|
|
588
|
+
"application/json": {
|
|
589
|
+
"schema": {
|
|
590
|
+
"type": "number",
|
|
591
|
+
"description": "Nombre de documents"
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
}
|
|
595
|
+
}
|
|
596
|
+
}
|
|
597
|
+
}
|
|
537
598
|
}
|
|
538
599
|
},
|
|
539
600
|
"components": {
|
package/dist/schema.json
CHANGED
|
@@ -534,6 +534,67 @@
|
|
|
534
534
|
}
|
|
535
535
|
}
|
|
536
536
|
}
|
|
537
|
+
},
|
|
538
|
+
"/count": {
|
|
539
|
+
"post": {
|
|
540
|
+
"tags": ["service"],
|
|
541
|
+
"summary": "Count documents matching the search criteria",
|
|
542
|
+
"parameters": [
|
|
543
|
+
{
|
|
544
|
+
"name": "client",
|
|
545
|
+
"summary": "Database connection",
|
|
546
|
+
"required": false,
|
|
547
|
+
"description": "Database connection client",
|
|
548
|
+
"schema": {
|
|
549
|
+
"type": "array",
|
|
550
|
+
"items": {
|
|
551
|
+
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
},
|
|
555
|
+
{
|
|
556
|
+
"name": "options",
|
|
557
|
+
"summary": "Options",
|
|
558
|
+
"required": false,
|
|
559
|
+
"description": "Insert options",
|
|
560
|
+
"schema": {
|
|
561
|
+
"type": "object"
|
|
562
|
+
}
|
|
563
|
+
},
|
|
564
|
+
{
|
|
565
|
+
"name": "collection",
|
|
566
|
+
"summary": "Collection",
|
|
567
|
+
"required": true,
|
|
568
|
+
"description": "Name of the collection",
|
|
569
|
+
"schema": {
|
|
570
|
+
"type": "string"
|
|
571
|
+
}
|
|
572
|
+
},
|
|
573
|
+
{
|
|
574
|
+
"name": "document",
|
|
575
|
+
"summary": "Document",
|
|
576
|
+
"required": true,
|
|
577
|
+
"description": "Document to insert",
|
|
578
|
+
"schema": {
|
|
579
|
+
"type": "object"
|
|
580
|
+
}
|
|
581
|
+
}
|
|
582
|
+
],
|
|
583
|
+
"x-events": [],
|
|
584
|
+
"responses": {
|
|
585
|
+
"200": {
|
|
586
|
+
"description": "Documents count matching the search criteria",
|
|
587
|
+
"content": {
|
|
588
|
+
"application/json": {
|
|
589
|
+
"schema": {
|
|
590
|
+
"type": "number",
|
|
591
|
+
"description": "Documents count"
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
}
|
|
595
|
+
}
|
|
596
|
+
}
|
|
597
|
+
}
|
|
537
598
|
}
|
|
538
599
|
},
|
|
539
600
|
"components": {
|
|
@@ -10,4 +10,5 @@ export declare const findById: (params: any, pins: PinsSettings[], context: any)
|
|
|
10
10
|
export declare const insertOne: (params: any, pins: PinsSettings[], context: any) => Promise<any>;
|
|
11
11
|
export declare const updateOne: (params: any, pins: PinsSettings[], context: any) => Promise<any>;
|
|
12
12
|
export declare const updateById: (params: any, pins: PinsSettings[], context: any) => Promise<any>;
|
|
13
|
+
export declare const count: (params: any, pins: PinsSettings[], context: any) => Promise<any>;
|
|
13
14
|
//# sourceMappingURL=skill-mongodb.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skill-mongodb.d.ts","sourceRoot":"","sources":["../../../src/lib/skill-mongodb.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAmB,MAAM,kBAAkB,CAAC;AACjE,OAAO,EAAE,WAAW,EAAY,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"skill-mongodb.d.ts","sourceRoot":"","sources":["../../../src/lib/skill-mongodb.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAmB,MAAM,kBAAkB,CAAC;AACjE,OAAO,EAAE,WAAW,EAAY,MAAM,SAAS,CAAC;AA0GhD,eAAO,MAAM,QAAQ,GAAI,QAAQ,GAAG,EAAE,MAAM,YAAY,EAAE,EAAE,SAAS,GAAG;;;EAClB,CAAC;AACvD,eAAO,MAAM,IAAI,GAAI,QAAQ,GAAG,EAAE,MAAM,YAAY,EAAE,EAAE,SAAS,GAAG,iBAClB,CAAC;AACnD,eAAO,MAAM,OAAO,GAAI,QAAQ,GAAG,EAAE,MAAM,YAAY,EAAE,EAAE,SAAS,GAAG,iBAClB,CAAC;AACtD,eAAO,MAAM,QAAQ,GAAI,QAAQ,GAAG,EAAE,MAAM,YAAY,EAAE,EAAE,SAAS,GAAG,iBAClB,CAAC;AACvD,eAAO,MAAM,SAAS,GAAI,QAAQ,GAAG,EAAE,MAAM,YAAY,EAAE,EAAE,SAAS,GAAG,iBAClB,CAAC;AACxD,eAAO,MAAM,SAAS,GAAI,QAAQ,GAAG,EAAE,MAAM,YAAY,EAAE,EAAE,SAAS,GAAG,iBAClB,CAAC;AACxD,eAAO,MAAM,UAAU,GAAI,QAAQ,GAAG,EAAE,MAAM,YAAY,EAAE,EAAE,SAAS,GAAG,iBAClB,CAAC;AACzD,eAAO,MAAM,KAAK,GAAI,QAAQ,GAAG,EAAE,MAAM,YAAY,EAAE,EAAE,SAAS,GAAG,iBAClB,CAAC"}
|