@digipair/skill-mongodb 0.136.1 → 0.136.4
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 +63874 -29971
- package/dist/schema.fr.json +71 -0
- package/dist/schema.json +74 -3
- 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
|
@@ -595,6 +595,77 @@
|
|
|
595
595
|
}
|
|
596
596
|
}
|
|
597
597
|
}
|
|
598
|
+
},
|
|
599
|
+
"/aggregate": {
|
|
600
|
+
"post": {
|
|
601
|
+
"tags": ["service"],
|
|
602
|
+
"summary": "Rechercher par aggregation dans une base MongoDB",
|
|
603
|
+
"parameters": [
|
|
604
|
+
{
|
|
605
|
+
"name": "client",
|
|
606
|
+
"summary": "Connection à la base de données",
|
|
607
|
+
"required": false,
|
|
608
|
+
"description": "Client de connexion à la base de données",
|
|
609
|
+
"schema": {
|
|
610
|
+
"type": "array",
|
|
611
|
+
"items": {
|
|
612
|
+
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
|
613
|
+
}
|
|
614
|
+
}
|
|
615
|
+
},
|
|
616
|
+
{
|
|
617
|
+
"name": "options",
|
|
618
|
+
"summary": "Options",
|
|
619
|
+
"required": false,
|
|
620
|
+
"description": "Options de recherche",
|
|
621
|
+
"schema": {
|
|
622
|
+
"type": "object"
|
|
623
|
+
}
|
|
624
|
+
},
|
|
625
|
+
{
|
|
626
|
+
"name": "collection",
|
|
627
|
+
"summary": "Collection",
|
|
628
|
+
"required": true,
|
|
629
|
+
"description": "Nom de la collection",
|
|
630
|
+
"schema": {
|
|
631
|
+
"type": "string"
|
|
632
|
+
}
|
|
633
|
+
},
|
|
634
|
+
{
|
|
635
|
+
"name": "pipeline",
|
|
636
|
+
"summary": "Pipepline",
|
|
637
|
+
"required": true,
|
|
638
|
+
"description": "Pipeline d'aggregation",
|
|
639
|
+
"schema": {
|
|
640
|
+
"type": "object"
|
|
641
|
+
}
|
|
642
|
+
}
|
|
643
|
+
],
|
|
644
|
+
"x-events": [],
|
|
645
|
+
"responses": {
|
|
646
|
+
"200": {
|
|
647
|
+
"description": "Tableau de documents correspondant aux critères d'aggregation",
|
|
648
|
+
"content": {
|
|
649
|
+
"application/json": {
|
|
650
|
+
"schema": {
|
|
651
|
+
"type": "array",
|
|
652
|
+
"items": {
|
|
653
|
+
"type": "object",
|
|
654
|
+
"description": "Document MongoDB",
|
|
655
|
+
"properties": {
|
|
656
|
+
"_id": {
|
|
657
|
+
"type": "string",
|
|
658
|
+
"description": "Identifiant unique du document"
|
|
659
|
+
}
|
|
660
|
+
},
|
|
661
|
+
"additionalProperties": true
|
|
662
|
+
}
|
|
663
|
+
}
|
|
664
|
+
}
|
|
665
|
+
}
|
|
666
|
+
}
|
|
667
|
+
}
|
|
668
|
+
}
|
|
598
669
|
}
|
|
599
670
|
},
|
|
600
671
|
"components": {
|
package/dist/schema.json
CHANGED
|
@@ -571,10 +571,10 @@
|
|
|
571
571
|
}
|
|
572
572
|
},
|
|
573
573
|
{
|
|
574
|
-
"name": "
|
|
575
|
-
"summary": "
|
|
574
|
+
"name": "filter",
|
|
575
|
+
"summary": "Filter",
|
|
576
576
|
"required": true,
|
|
577
|
-
"description": "
|
|
577
|
+
"description": "Search filter",
|
|
578
578
|
"schema": {
|
|
579
579
|
"type": "object"
|
|
580
580
|
}
|
|
@@ -595,6 +595,77 @@
|
|
|
595
595
|
}
|
|
596
596
|
}
|
|
597
597
|
}
|
|
598
|
+
},
|
|
599
|
+
"/aggregate": {
|
|
600
|
+
"post": {
|
|
601
|
+
"tags": ["service"],
|
|
602
|
+
"summary": "Aggregate search in a MongoDB database",
|
|
603
|
+
"parameters": [
|
|
604
|
+
{
|
|
605
|
+
"name": "client",
|
|
606
|
+
"summary": "Database connection",
|
|
607
|
+
"required": false,
|
|
608
|
+
"description": "Database connection client",
|
|
609
|
+
"schema": {
|
|
610
|
+
"type": "array",
|
|
611
|
+
"items": {
|
|
612
|
+
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
|
613
|
+
}
|
|
614
|
+
}
|
|
615
|
+
},
|
|
616
|
+
{
|
|
617
|
+
"name": "options",
|
|
618
|
+
"summary": "Options",
|
|
619
|
+
"required": false,
|
|
620
|
+
"description": "Insert options",
|
|
621
|
+
"schema": {
|
|
622
|
+
"type": "object"
|
|
623
|
+
}
|
|
624
|
+
},
|
|
625
|
+
{
|
|
626
|
+
"name": "collection",
|
|
627
|
+
"summary": "Collection",
|
|
628
|
+
"required": true,
|
|
629
|
+
"description": "Name of the collection",
|
|
630
|
+
"schema": {
|
|
631
|
+
"type": "string"
|
|
632
|
+
}
|
|
633
|
+
},
|
|
634
|
+
{
|
|
635
|
+
"name": "pipeline",
|
|
636
|
+
"summary": "Pipeline",
|
|
637
|
+
"required": true,
|
|
638
|
+
"description": "Aggregate filter",
|
|
639
|
+
"schema": {
|
|
640
|
+
"type": "object"
|
|
641
|
+
}
|
|
642
|
+
}
|
|
643
|
+
],
|
|
644
|
+
"x-events": [],
|
|
645
|
+
"responses": {
|
|
646
|
+
"200": {
|
|
647
|
+
"description": "Array of documents matching the aggregate criteria",
|
|
648
|
+
"content": {
|
|
649
|
+
"application/json": {
|
|
650
|
+
"schema": {
|
|
651
|
+
"type": "array",
|
|
652
|
+
"items": {
|
|
653
|
+
"type": "object",
|
|
654
|
+
"description": "MongoDB document",
|
|
655
|
+
"properties": {
|
|
656
|
+
"_id": {
|
|
657
|
+
"type": "string",
|
|
658
|
+
"description": "Document unique identifier"
|
|
659
|
+
}
|
|
660
|
+
},
|
|
661
|
+
"additionalProperties": true
|
|
662
|
+
}
|
|
663
|
+
}
|
|
664
|
+
}
|
|
665
|
+
}
|
|
666
|
+
}
|
|
667
|
+
}
|
|
668
|
+
}
|
|
598
669
|
}
|
|
599
670
|
},
|
|
600
671
|
"components": {
|
|
@@ -11,4 +11,5 @@ export declare const insertOne: (params: any, pins: PinsSettings[], context: 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
13
|
export declare const count: (params: any, pins: PinsSettings[], context: any) => Promise<any>;
|
|
14
|
+
export declare const aggregate: (params: any, pins: PinsSettings[], context: any) => Promise<any>;
|
|
14
15
|
//# 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;AAqHhD,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;AACpD,eAAO,MAAM,SAAS,GAAI,QAAQ,GAAG,EAAE,MAAM,YAAY,EAAE,EAAE,SAAS,GAAG,iBAClB,CAAC"}
|