@manyos/smileconnect-api 1.72.0 → 1.72.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/conf/clients.json +9 -4
- package/docs/releases.md +1 -1
- package/package.json +1 -1
- package/util/config.js +29 -0
package/conf/clients.json
CHANGED
|
@@ -2706,7 +2706,9 @@
|
|
|
2706
2706
|
"description": "Login ID"
|
|
2707
2707
|
}
|
|
2708
2708
|
},
|
|
2709
|
-
"required": [
|
|
2709
|
+
"required": [
|
|
2710
|
+
"loginid"
|
|
2711
|
+
]
|
|
2710
2712
|
},
|
|
2711
2713
|
"responseSchema": {
|
|
2712
2714
|
"type": "object",
|
|
@@ -2716,8 +2718,11 @@
|
|
|
2716
2718
|
"description": "Approver username"
|
|
2717
2719
|
}
|
|
2718
2720
|
},
|
|
2719
|
-
"required": [
|
|
2720
|
-
|
|
2721
|
+
"required": [
|
|
2722
|
+
"approver"
|
|
2723
|
+
]
|
|
2724
|
+
},
|
|
2725
|
+
"description": "Run scripts associated with this endpoint"
|
|
2721
2726
|
}
|
|
2722
2727
|
},
|
|
2723
2728
|
"scripts": [
|
|
@@ -2728,4 +2733,4 @@
|
|
|
2728
2733
|
}
|
|
2729
2734
|
}
|
|
2730
2735
|
}
|
|
2731
|
-
]
|
|
2736
|
+
]
|
package/docs/releases.md
CHANGED
package/package.json
CHANGED
package/util/config.js
CHANGED
|
@@ -323,6 +323,35 @@ function checkClientConfig(client) {
|
|
|
323
323
|
updateRequired = true;
|
|
324
324
|
}
|
|
325
325
|
|
|
326
|
+
const scriptEnpointKeys = Object.keys(clientConfig.scriptEndpoints);
|
|
327
|
+
scriptEnpointKeys.forEach(scriptEnpointKey => {
|
|
328
|
+
const scriptEnpointConfig = clientConfig.scriptEndpoints[scriptEnpointKey];
|
|
329
|
+
if (!scriptEnpointConfig.options) {
|
|
330
|
+
scriptEnpointConfig.options = {};
|
|
331
|
+
updateRequired = true;
|
|
332
|
+
}
|
|
333
|
+
if (!scriptEnpointConfig.options.openAPISpec) {
|
|
334
|
+
scriptEnpointConfig.options.openAPISpec = {};
|
|
335
|
+
updateRequired = true;
|
|
336
|
+
}
|
|
337
|
+
if (!scriptEnpointConfig.options.openAPISpec.summary) {
|
|
338
|
+
scriptEnpointConfig.options.openAPISpec.summary = "Run scripts associated with this endpoint";
|
|
339
|
+
updateRequired = true;
|
|
340
|
+
}
|
|
341
|
+
if (!scriptEnpointConfig.options.openAPISpec.description) {
|
|
342
|
+
scriptEnpointConfig.options.openAPISpec.description = "Run scripts associated with this endpoint";
|
|
343
|
+
updateRequired = true;
|
|
344
|
+
}
|
|
345
|
+
if (!scriptEnpointConfig.options.openAPISpec.requestSchema) {
|
|
346
|
+
scriptEnpointConfig.options.openAPISpec.requestSchema = {};
|
|
347
|
+
updateRequired = true;
|
|
348
|
+
}
|
|
349
|
+
if (!scriptEnpointConfig.options.openAPISpec.responseSchema) {
|
|
350
|
+
scriptEnpointConfig.options.openAPISpec.responseSchema = {};
|
|
351
|
+
updateRequired = true;
|
|
352
|
+
}
|
|
353
|
+
});
|
|
354
|
+
|
|
326
355
|
if (clientConfig.options.translateSelectionFields === undefined) {
|
|
327
356
|
clientConfig.options.translateSelectionFields = true;
|
|
328
357
|
updateRequired = true;
|