@digipair/skill-pdf 0.96.0 → 0.97.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-pdf",
3
- "version": "0.96.0",
3
+ "version": "0.97.1",
4
4
  "keywords": [
5
5
  "digipair",
6
6
  "service",
package/schema.fr.json CHANGED
@@ -10,7 +10,11 @@
10
10
  "paths": {
11
11
  "/fillForm": {
12
12
  "post": {
13
- "tags": ["service", "web", "spatial"],
13
+ "tags": [
14
+ "service",
15
+ "web",
16
+ "spatial"
17
+ ],
14
18
  "summary": "Remplir un formulaire de PDF",
15
19
  "description": "Remplit un formulaire de PDF avec les valeurs spécifiées.",
16
20
  "parameters": [
@@ -42,12 +46,30 @@
42
46
  }
43
47
  }
44
48
  ],
45
- "x-events": []
49
+ "x-events": [],
50
+ "responses": {
51
+ "200": {
52
+ "description": "Formulaire PDF rempli avec succès",
53
+ "content": {
54
+ "application/json": {
55
+ "schema": {
56
+ "type": "string",
57
+ "description": "Fichier PDF encodé en base64 avec les données de formulaire remplies",
58
+ "example": "data:application/pdf;base64,..."
59
+ }
60
+ }
61
+ }
62
+ }
63
+ }
46
64
  }
47
65
  },
48
66
  "/getFields": {
49
67
  "post": {
50
- "tags": ["service", "web", "spatial"],
68
+ "tags": [
69
+ "service",
70
+ "web",
71
+ "spatial"
72
+ ],
51
73
  "summary": "Extraire les champs d'un PDF",
52
74
  "description": "Extrait les champs d'un formulaire de PDF.",
53
75
  "parameters": [
@@ -61,12 +83,39 @@
61
83
  }
62
84
  }
63
85
  ],
64
- "x-events": []
86
+ "x-events": [],
87
+ "responses": {
88
+ "200": {
89
+ "description": "Champs PDF extraits avec succès",
90
+ "content": {
91
+ "application/json": {
92
+ "schema": {
93
+ "type": "object",
94
+ "description": "Objet contenant les noms de champs comme clés et leurs valeurs",
95
+ "additionalProperties": {
96
+ "oneOf": [
97
+ {
98
+ "type": "string"
99
+ },
100
+ {
101
+ "type": "boolean"
102
+ }
103
+ ]
104
+ }
105
+ }
106
+ }
107
+ }
108
+ }
109
+ }
65
110
  }
66
111
  },
67
112
  "/getSize": {
68
113
  "post": {
69
- "tags": ["service", "web", "spatial"],
114
+ "tags": [
115
+ "service",
116
+ "web",
117
+ "spatial"
118
+ ],
70
119
  "summary": "Nombre de page d'un PDF",
71
120
  "description": "Retourne le nombre de page PDF.",
72
121
  "parameters": [
@@ -80,11 +129,25 @@
80
129
  }
81
130
  }
82
131
  ],
83
- "x-events": []
132
+ "x-events": [],
133
+ "responses": {
134
+ "200": {
135
+ "description": "Nombre de pages PDF récupéré avec succès",
136
+ "content": {
137
+ "application/json": {
138
+ "schema": {
139
+ "type": "integer",
140
+ "description": "Nombre de pages dans le document PDF",
141
+ "minimum": 1
142
+ }
143
+ }
144
+ }
145
+ }
146
+ }
84
147
  }
85
148
  }
86
149
  },
87
150
  "components": {
88
151
  "schemas": {}
89
152
  }
90
- }
153
+ }
package/schema.json CHANGED
@@ -10,7 +10,11 @@
10
10
  "paths": {
11
11
  "/fillForm": {
12
12
  "post": {
13
- "tags": ["service", "web", "spatial"],
13
+ "tags": [
14
+ "service",
15
+ "web",
16
+ "spatial"
17
+ ],
14
18
  "summary": "Fill out a PDF form",
15
19
  "description": "Fills out a PDF form with the specified values.",
16
20
  "parameters": [
@@ -42,12 +46,30 @@
42
46
  }
43
47
  }
44
48
  ],
45
- "x-events": []
49
+ "x-events": [],
50
+ "responses": {
51
+ "200": {
52
+ "description": "PDF form filled successfully",
53
+ "content": {
54
+ "application/json": {
55
+ "schema": {
56
+ "type": "string",
57
+ "description": "Base64 encoded PDF file with filled form data",
58
+ "example": "data:application/pdf;base64,..."
59
+ }
60
+ }
61
+ }
62
+ }
63
+ }
46
64
  }
47
65
  },
48
66
  "/getFields": {
49
67
  "post": {
50
- "tags": ["service", "web", "spatial"],
68
+ "tags": [
69
+ "service",
70
+ "web",
71
+ "spatial"
72
+ ],
51
73
  "summary": "Extract fields from a PDF",
52
74
  "description": "Extracts fields from a PDF form.",
53
75
  "parameters": [
@@ -61,12 +83,39 @@
61
83
  }
62
84
  }
63
85
  ],
64
- "x-events": []
86
+ "x-events": [],
87
+ "responses": {
88
+ "200": {
89
+ "description": "PDF fields extracted successfully",
90
+ "content": {
91
+ "application/json": {
92
+ "schema": {
93
+ "type": "object",
94
+ "description": "Object containing field names as keys and their values",
95
+ "additionalProperties": {
96
+ "oneOf": [
97
+ {
98
+ "type": "string"
99
+ },
100
+ {
101
+ "type": "boolean"
102
+ }
103
+ ]
104
+ }
105
+ }
106
+ }
107
+ }
108
+ }
109
+ }
65
110
  }
66
111
  },
67
112
  "/getSize": {
68
113
  "post": {
69
- "tags": ["service", "web", "spatial"],
114
+ "tags": [
115
+ "service",
116
+ "web",
117
+ "spatial"
118
+ ],
70
119
  "summary": "Number of pages in a PDF",
71
120
  "description": "Returns the number of pages in a PDF.",
72
121
  "parameters": [
@@ -80,7 +129,21 @@
80
129
  }
81
130
  }
82
131
  ],
83
- "x-events": []
132
+ "x-events": [],
133
+ "responses": {
134
+ "200": {
135
+ "description": "PDF page count retrieved successfully",
136
+ "content": {
137
+ "application/json": {
138
+ "schema": {
139
+ "type": "integer",
140
+ "description": "Number of pages in the PDF document",
141
+ "minimum": 1
142
+ }
143
+ }
144
+ }
145
+ }
146
+ }
84
147
  }
85
148
  }
86
149
  },