@asgardeo/javascript 0.16.1 → 0.17.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/executeEmbeddedUserOnboardingFlowV2.d.ts +5 -5
- package/dist/cjs/index.js +5 -4
- package/dist/cjs/index.js.map +2 -2
- package/dist/index.js +5 -4
- package/dist/index.js.map +2 -2
- package/dist/models/field.d.ts +1 -0
- package/dist/models/v2/embedded-signin-flow-v2.d.ts +9 -9
- package/dist/models/v2/embedded-signup-flow-v2.d.ts +9 -9
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3024,7 +3024,7 @@ var executeEmbeddedSignInFlowV2 = async ({
|
|
|
3024
3024
|
const endpoint = url ?? `${baseUrl}/flow/execute`;
|
|
3025
3025
|
const cleanPayload = typeof payload === "object" && payload !== null ? Object.fromEntries(Object.entries(payload).filter(([key]) => key !== "verbose")) : payload;
|
|
3026
3026
|
const hasOnlyAppIdAndFlowType = typeof cleanPayload === "object" && cleanPayload !== null && "applicationId" in cleanPayload && "flowType" in cleanPayload && Object.keys(cleanPayload).length === 2;
|
|
3027
|
-
const hasOnlyFlowId = typeof cleanPayload === "object" && cleanPayload !== null && "
|
|
3027
|
+
const hasOnlyFlowId = typeof cleanPayload === "object" && cleanPayload !== null && "executionId" in cleanPayload && Object.keys(cleanPayload).length === 1;
|
|
3028
3028
|
const requestPayload = hasOnlyAppIdAndFlowType || hasOnlyFlowId ? { ...cleanPayload, verbose: true } : cleanPayload;
|
|
3029
3029
|
const response = await fetch(endpoint, {
|
|
3030
3030
|
...requestConfig,
|
|
@@ -3124,7 +3124,7 @@ var executeEmbeddedSignUpFlowV2 = async ({
|
|
|
3124
3124
|
const endpoint = url ?? `${baseUrl}/flow/execute`;
|
|
3125
3125
|
const cleanPayload = typeof payload === "object" && payload !== null ? Object.fromEntries(Object.entries(payload).filter(([key]) => key !== "verbose")) : payload;
|
|
3126
3126
|
const hasOnlyAppIdAndFlowType = typeof cleanPayload === "object" && cleanPayload !== null && "applicationId" in cleanPayload && "flowType" in cleanPayload && Object.keys(cleanPayload).length === 2;
|
|
3127
|
-
const hasOnlyFlowId = typeof cleanPayload === "object" && cleanPayload !== null && "
|
|
3127
|
+
const hasOnlyFlowId = typeof cleanPayload === "object" && cleanPayload !== null && "executionId" in cleanPayload && Object.keys(cleanPayload).length === 1;
|
|
3128
3128
|
const requestPayload = hasOnlyAppIdAndFlowType || hasOnlyFlowId ? { ...cleanPayload, verbose: true } : cleanPayload;
|
|
3129
3129
|
const response = await fetch(endpoint, {
|
|
3130
3130
|
...requestConfig,
|
|
@@ -3210,8 +3210,8 @@ var executeEmbeddedUserOnboardingFlowV2 = async ({
|
|
|
3210
3210
|
const endpoint = url ?? `${baseUrl}/flow/execute`;
|
|
3211
3211
|
const cleanPayload = typeof payload === "object" && payload !== null ? Object.fromEntries(Object.entries(payload).filter(([key]) => key !== "verbose")) : payload;
|
|
3212
3212
|
const hasOnlyFlowType = typeof cleanPayload === "object" && cleanPayload !== null && "flowType" in cleanPayload && Object.keys(cleanPayload).length === 1;
|
|
3213
|
-
const hasOnlyFlowId = typeof cleanPayload === "object" && cleanPayload !== null && "
|
|
3214
|
-
const hasFlowIdWithInputs = typeof cleanPayload === "object" && cleanPayload !== null && "
|
|
3213
|
+
const hasOnlyFlowId = typeof cleanPayload === "object" && cleanPayload !== null && "executionId" in cleanPayload && Object.keys(cleanPayload).length === 1;
|
|
3214
|
+
const hasFlowIdWithInputs = typeof cleanPayload === "object" && cleanPayload !== null && "executionId" in cleanPayload && "inputs" in cleanPayload;
|
|
3215
3215
|
const requestPayload = hasOnlyFlowType || hasOnlyFlowId || hasFlowIdWithInputs ? { ...cleanPayload, verbose: true } : cleanPayload;
|
|
3216
3216
|
if ("flowType" in requestPayload && requestPayload["flowType"] !== "USER_ONBOARDING" /* UserOnboarding */) {
|
|
3217
3217
|
requestPayload["flowType"] = "USER_ONBOARDING" /* UserOnboarding */;
|
|
@@ -3492,6 +3492,7 @@ var FieldType = /* @__PURE__ */ ((FieldType2) => {
|
|
|
3492
3492
|
FieldType2["Password"] = "PASSWORD";
|
|
3493
3493
|
FieldType2["Radio"] = "RADIO";
|
|
3494
3494
|
FieldType2["Select"] = "SELECT";
|
|
3495
|
+
FieldType2["Tel"] = "TEL";
|
|
3495
3496
|
FieldType2["Text"] = "TEXT";
|
|
3496
3497
|
FieldType2["Textarea"] = "TEXTAREA";
|
|
3497
3498
|
FieldType2["Time"] = "TIME";
|