@digipair/skill-service 0.98.3 → 0.98.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/index.cjs.js +1 -1
- package/index.esm.js +6 -6
- package/libs/skill-service/src/lib/skill-service.d.ts +1 -1
- package/package.json +1 -1
- package/schema.fr.json +44 -2
- package/schema.json +44 -2
package/index.cjs.js
CHANGED
|
@@ -27,7 +27,7 @@ let ServiceService = class ServiceService {
|
|
|
27
27
|
}
|
|
28
28
|
async files(_params, _pinsSettingsList, context) {
|
|
29
29
|
await new Promise((resolve, reject)=>upload.any()(context.protected.req, context.protected.res, (err)=>err ? reject(err) : resolve(void 0)));
|
|
30
|
-
return
|
|
30
|
+
return context.protected.req.files;
|
|
31
31
|
}
|
|
32
32
|
};
|
|
33
33
|
const service = (params, pinsSettingsList, context)=>new ServiceService().service(params, pinsSettingsList, context);
|
package/index.esm.js
CHANGED
|
@@ -23899,14 +23899,14 @@ function indent(str, spaces) {
|
|
|
23899
23899
|
var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
|
|
23900
23900
|
// match is required
|
|
23901
23901
|
if (!match) {
|
|
23902
|
-
return
|
|
23902
|
+
return nextMatch = nextMatch1, i = i1, tokens = tokens1, {
|
|
23903
23903
|
v: nextMatch1
|
|
23904
23904
|
};
|
|
23905
23905
|
}
|
|
23906
23906
|
var token = match.token, offset = match.offset;
|
|
23907
23907
|
i1 += offset;
|
|
23908
23908
|
if (token === " ") {
|
|
23909
|
-
return
|
|
23909
|
+
return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
|
|
23910
23910
|
}
|
|
23911
23911
|
tokens1 = _to_consumable_array$1(tokens1).concat([
|
|
23912
23912
|
token
|
|
@@ -23925,7 +23925,7 @@ function indent(str, spaces) {
|
|
|
23925
23925
|
if (contextKeys.some(function(el) {
|
|
23926
23926
|
return el.startsWith(name);
|
|
23927
23927
|
})) {
|
|
23928
|
-
return
|
|
23928
|
+
return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
|
|
23929
23929
|
}
|
|
23930
23930
|
if (dateTimeIdentifiers.some(function(el) {
|
|
23931
23931
|
return el === name;
|
|
@@ -23944,9 +23944,9 @@ function indent(str, spaces) {
|
|
|
23944
23944
|
if (dateTimeIdentifiers.some(function(el) {
|
|
23945
23945
|
return el.startsWith(name);
|
|
23946
23946
|
})) {
|
|
23947
|
-
return
|
|
23947
|
+
return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
|
|
23948
23948
|
}
|
|
23949
|
-
return
|
|
23949
|
+
return nextMatch = nextMatch1, i = i1, tokens = tokens1, {
|
|
23950
23950
|
v: nextMatch1
|
|
23951
23951
|
};
|
|
23952
23952
|
};
|
|
@@ -28003,7 +28003,7 @@ let ServiceService = class ServiceService {
|
|
|
28003
28003
|
}
|
|
28004
28004
|
async files(_params, _pinsSettingsList, context) {
|
|
28005
28005
|
await new Promise((resolve, reject)=>upload.any()(context.protected.req, context.protected.res, (err)=>err ? reject(err) : resolve(void 0)));
|
|
28006
|
-
return
|
|
28006
|
+
return context.protected.req.files;
|
|
28007
28007
|
}
|
|
28008
28008
|
};
|
|
28009
28009
|
const service = (params, pinsSettingsList, context)=>new ServiceService().service(params, pinsSettingsList, context);
|
|
@@ -3,4 +3,4 @@ export declare const service: (params: any, pinsSettingsList: PinsSettings[], co
|
|
|
3
3
|
export declare const send: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
|
|
4
4
|
export declare const status: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
|
|
5
5
|
export declare const headers: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
|
|
6
|
-
export declare const files: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<
|
|
6
|
+
export declare const files: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
|
package/package.json
CHANGED
package/schema.fr.json
CHANGED
|
@@ -127,8 +127,50 @@
|
|
|
127
127
|
"content": {
|
|
128
128
|
"application/json": {
|
|
129
129
|
"schema": {
|
|
130
|
-
"type": "
|
|
131
|
-
"description": "
|
|
130
|
+
"type": "array",
|
|
131
|
+
"description": "Tableau d'objets de fichiers téléchargés traités par multer",
|
|
132
|
+
"items": {
|
|
133
|
+
"type": "object",
|
|
134
|
+
"properties": {
|
|
135
|
+
"fieldname": {
|
|
136
|
+
"type": "string",
|
|
137
|
+
"description": "Nom du champ spécifié dans le formulaire"
|
|
138
|
+
},
|
|
139
|
+
"originalname": {
|
|
140
|
+
"type": "string",
|
|
141
|
+
"description": "Nom du fichier sur l'ordinateur de l'utilisateur"
|
|
142
|
+
},
|
|
143
|
+
"encoding": {
|
|
144
|
+
"type": "string",
|
|
145
|
+
"description": "Type d'encodage du fichier"
|
|
146
|
+
},
|
|
147
|
+
"mimetype": {
|
|
148
|
+
"type": "string",
|
|
149
|
+
"description": "Type MIME du fichier"
|
|
150
|
+
},
|
|
151
|
+
"size": {
|
|
152
|
+
"type": "number",
|
|
153
|
+
"description": "Taille du fichier en octets"
|
|
154
|
+
},
|
|
155
|
+
"destination": {
|
|
156
|
+
"type": "string",
|
|
157
|
+
"description": "Dossier dans lequel le fichier a été sauvegardé (DiskStorage uniquement)"
|
|
158
|
+
},
|
|
159
|
+
"filename": {
|
|
160
|
+
"type": "string",
|
|
161
|
+
"description": "Nom du fichier dans le dossier de destination (DiskStorage uniquement)"
|
|
162
|
+
},
|
|
163
|
+
"path": {
|
|
164
|
+
"type": "string",
|
|
165
|
+
"description": "Chemin complet vers le fichier téléchargé (DiskStorage uniquement)"
|
|
166
|
+
},
|
|
167
|
+
"buffer": {
|
|
168
|
+
"type": "object",
|
|
169
|
+
"description": "Buffer de l'intégralité du fichier (MemoryStorage uniquement)"
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
"required": ["fieldname", "originalname", "encoding", "mimetype", "size"]
|
|
173
|
+
}
|
|
132
174
|
}
|
|
133
175
|
}
|
|
134
176
|
}
|
package/schema.json
CHANGED
|
@@ -127,8 +127,50 @@
|
|
|
127
127
|
"content": {
|
|
128
128
|
"application/json": {
|
|
129
129
|
"schema": {
|
|
130
|
-
"type": "
|
|
131
|
-
"description": "
|
|
130
|
+
"type": "array",
|
|
131
|
+
"description": "Array of uploaded file objects processed by multer",
|
|
132
|
+
"items": {
|
|
133
|
+
"type": "object",
|
|
134
|
+
"properties": {
|
|
135
|
+
"fieldname": {
|
|
136
|
+
"type": "string",
|
|
137
|
+
"description": "Field name specified in the form"
|
|
138
|
+
},
|
|
139
|
+
"originalname": {
|
|
140
|
+
"type": "string",
|
|
141
|
+
"description": "Name of the file on the user's computer"
|
|
142
|
+
},
|
|
143
|
+
"encoding": {
|
|
144
|
+
"type": "string",
|
|
145
|
+
"description": "Encoding type of the file"
|
|
146
|
+
},
|
|
147
|
+
"mimetype": {
|
|
148
|
+
"type": "string",
|
|
149
|
+
"description": "MIME type of the file"
|
|
150
|
+
},
|
|
151
|
+
"size": {
|
|
152
|
+
"type": "number",
|
|
153
|
+
"description": "Size of the file in bytes"
|
|
154
|
+
},
|
|
155
|
+
"destination": {
|
|
156
|
+
"type": "string",
|
|
157
|
+
"description": "Folder to which the file has been saved (DiskStorage only)"
|
|
158
|
+
},
|
|
159
|
+
"filename": {
|
|
160
|
+
"type": "string",
|
|
161
|
+
"description": "Name of the file within the destination (DiskStorage only)"
|
|
162
|
+
},
|
|
163
|
+
"path": {
|
|
164
|
+
"type": "string",
|
|
165
|
+
"description": "Full path to the uploaded file (DiskStorage only)"
|
|
166
|
+
},
|
|
167
|
+
"buffer": {
|
|
168
|
+
"type": "object",
|
|
169
|
+
"description": "Buffer of the entire file (MemoryStorage only)"
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
"required": ["fieldname", "originalname", "encoding", "mimetype", "size"]
|
|
173
|
+
}
|
|
132
174
|
}
|
|
133
175
|
}
|
|
134
176
|
}
|