@asgardeo/javascript 0.10.1 → 0.11.0
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/api/v2/getFlowMetaV2.d.ts +4 -4
- package/dist/cjs/index.js +2 -20
- package/dist/cjs/index.js.map +2 -2
- package/dist/index.js +2 -20
- package/dist/index.js.map +2 -2
- package/dist/models/config.d.ts +27 -0
- package/dist/models/v2/flow-meta-v2.d.ts +12 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3225,27 +3225,9 @@ var getFlowMetaV2 = async ({
|
|
|
3225
3225
|
namespace,
|
|
3226
3226
|
...requestConfig
|
|
3227
3227
|
}) => {
|
|
3228
|
-
if (!type) {
|
|
3229
|
-
throw new AsgardeoAPIError(
|
|
3230
|
-
'The "type" parameter is required',
|
|
3231
|
-
"getFlowMetaV2-ValidationError-001",
|
|
3232
|
-
"javascript",
|
|
3233
|
-
400,
|
|
3234
|
-
'The "type" query parameter must be either "APP" or "OU".'
|
|
3235
|
-
);
|
|
3236
|
-
}
|
|
3237
|
-
if (!id) {
|
|
3238
|
-
throw new AsgardeoAPIError(
|
|
3239
|
-
'The "id" parameter is required',
|
|
3240
|
-
"getFlowMetaV2-ValidationError-002",
|
|
3241
|
-
"javascript",
|
|
3242
|
-
400,
|
|
3243
|
-
'The "id" query parameter must be a valid UUID of the target application or organization unit.'
|
|
3244
|
-
);
|
|
3245
|
-
}
|
|
3246
3228
|
const queryParams = new URLSearchParams({
|
|
3247
|
-
id,
|
|
3248
|
-
type,
|
|
3229
|
+
...id ? { id } : {},
|
|
3230
|
+
...type ? { type } : {},
|
|
3249
3231
|
...language ? { language } : {},
|
|
3250
3232
|
...namespace ? { namespace } : {}
|
|
3251
3233
|
});
|