@feelflow/ffid-sdk 5.13.0 → 5.14.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/{chunk-RATTQIKM.js → chunk-4II4R7NR.js} +175 -1
- package/dist/{chunk-JFFRO2Q5.cjs → chunk-BVDUQQHP.cjs} +175 -1
- package/dist/components/index.cjs +8 -8
- package/dist/components/index.d.cts +1 -1
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.js +1 -1
- package/dist/{ffid-client-BG0Qr86U.d.ts → ffid-client-9-lh0G_h.d.ts} +331 -111
- package/dist/{ffid-client-C3K3sAqq.d.cts → ffid-client-CKFxY60u.d.cts} +331 -111
- package/dist/{index-C6dnexXf.d.cts → index-CsVJTuPv.d.cts} +1 -112
- package/dist/{index-C6dnexXf.d.ts → index-CsVJTuPv.d.ts} +1 -112
- package/dist/index.cjs +41 -41
- package/dist/index.d.cts +341 -3
- package/dist/index.d.ts +341 -3
- package/dist/index.js +2 -2
- package/dist/legal/index.cjs +14 -0
- package/dist/legal/index.d.cts +16 -1
- package/dist/legal/index.d.ts +16 -1
- package/dist/legal/index.js +14 -0
- package/dist/server/index.cjs +175 -1
- package/dist/server/index.d.cts +2 -2
- package/dist/server/index.d.ts +2 -2
- package/dist/server/index.js +175 -1
- package/dist/server/test/index.d.cts +1 -1
- package/dist/server/test/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -937,8 +937,163 @@ function createProfileMethods(deps) {
|
|
|
937
937
|
return { getProfile, updateProfile };
|
|
938
938
|
}
|
|
939
939
|
|
|
940
|
+
// src/client/login-history-methods.ts
|
|
941
|
+
var EXT_LOGIN_HISTORY_ENDPOINT = "/api/v1/users/ext/me/login-history";
|
|
942
|
+
function createLoginHistoryMethods(deps) {
|
|
943
|
+
const { fetchWithAuth, createError } = deps;
|
|
944
|
+
async function getLoginHistory(params) {
|
|
945
|
+
if (params?.limit !== void 0 && (!Number.isInteger(params.limit) || params.limit <= 0)) {
|
|
946
|
+
return {
|
|
947
|
+
error: createError(
|
|
948
|
+
"VALIDATION_ERROR",
|
|
949
|
+
"limit \u306F1\u4EE5\u4E0A\u306E\u6574\u6570\u3092\u6307\u5B9A\u3057\u3066\u304F\u3060\u3055\u3044"
|
|
950
|
+
)
|
|
951
|
+
};
|
|
952
|
+
}
|
|
953
|
+
const query = new URLSearchParams();
|
|
954
|
+
if (params?.userId !== void 0) {
|
|
955
|
+
query.set("userId", params.userId);
|
|
956
|
+
}
|
|
957
|
+
if (params?.limit !== void 0) {
|
|
958
|
+
query.set("limit", String(params.limit));
|
|
959
|
+
}
|
|
960
|
+
const queryString = query.toString();
|
|
961
|
+
const endpoint = queryString ? `${EXT_LOGIN_HISTORY_ENDPOINT}?${queryString}` : EXT_LOGIN_HISTORY_ENDPOINT;
|
|
962
|
+
return fetchWithAuth(endpoint);
|
|
963
|
+
}
|
|
964
|
+
return { getLoginHistory };
|
|
965
|
+
}
|
|
966
|
+
|
|
967
|
+
// src/client/organization-domains-methods.ts
|
|
968
|
+
var EXT_DOMAINS_ENDPOINT = "/api/v1/organizations/ext/domains";
|
|
969
|
+
function createOrganizationDomainsMethods(deps) {
|
|
970
|
+
const { fetchWithAuth, createError, serviceCode } = deps;
|
|
971
|
+
function buildQuery(organizationId) {
|
|
972
|
+
return new URLSearchParams({ organizationId, serviceCode }).toString();
|
|
973
|
+
}
|
|
974
|
+
async function getOrganizationDomains(params) {
|
|
975
|
+
if (!params.organizationId) {
|
|
976
|
+
return {
|
|
977
|
+
error: createError("VALIDATION_ERROR", "organizationId \u306F\u5FC5\u9808\u3067\u3059")
|
|
978
|
+
};
|
|
979
|
+
}
|
|
980
|
+
return fetchWithAuth(
|
|
981
|
+
`${EXT_DOMAINS_ENDPOINT}?${buildQuery(params.organizationId)}`
|
|
982
|
+
);
|
|
983
|
+
}
|
|
984
|
+
return { getOrganizationDomains };
|
|
985
|
+
}
|
|
986
|
+
|
|
987
|
+
// src/client/notification-preferences-methods.ts
|
|
988
|
+
var EXT_NOTIFICATION_PREFERENCES_ENDPOINT = "/api/v1/organizations/ext/notification-preferences";
|
|
989
|
+
function createNotificationPreferencesMethods(deps) {
|
|
990
|
+
const { fetchWithAuth, createError, serviceCode } = deps;
|
|
991
|
+
function buildQuery(organizationId) {
|
|
992
|
+
return new URLSearchParams({ organizationId, serviceCode }).toString();
|
|
993
|
+
}
|
|
994
|
+
async function getNotificationPreferences(params) {
|
|
995
|
+
if (!params.organizationId) {
|
|
996
|
+
return {
|
|
997
|
+
error: createError("VALIDATION_ERROR", "organizationId \u306F\u5FC5\u9808\u3067\u3059")
|
|
998
|
+
};
|
|
999
|
+
}
|
|
1000
|
+
return fetchWithAuth(
|
|
1001
|
+
`${EXT_NOTIFICATION_PREFERENCES_ENDPOINT}?${buildQuery(params.organizationId)}`
|
|
1002
|
+
);
|
|
1003
|
+
}
|
|
1004
|
+
async function updateNotificationPreferences(params) {
|
|
1005
|
+
if (!params.organizationId) {
|
|
1006
|
+
return {
|
|
1007
|
+
error: createError("VALIDATION_ERROR", "organizationId \u306F\u5FC5\u9808\u3067\u3059")
|
|
1008
|
+
};
|
|
1009
|
+
}
|
|
1010
|
+
if (params.preferences === null || typeof params.preferences !== "object" || Array.isArray(params.preferences)) {
|
|
1011
|
+
return {
|
|
1012
|
+
error: createError("VALIDATION_ERROR", "preferences \u306F\u30AA\u30D6\u30B8\u30A7\u30AF\u30C8\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059")
|
|
1013
|
+
};
|
|
1014
|
+
}
|
|
1015
|
+
if (Object.keys(params.preferences).length === 0) {
|
|
1016
|
+
return {
|
|
1017
|
+
error: createError("VALIDATION_ERROR", "\u66F4\u65B0\u3059\u308B\u30D5\u30A3\u30FC\u30EB\u30C9\u30921\u3064\u4EE5\u4E0A\u6307\u5B9A\u3057\u3066\u304F\u3060\u3055\u3044")
|
|
1018
|
+
};
|
|
1019
|
+
}
|
|
1020
|
+
return fetchWithAuth(
|
|
1021
|
+
`${EXT_NOTIFICATION_PREFERENCES_ENDPOINT}?${buildQuery(params.organizationId)}`,
|
|
1022
|
+
{
|
|
1023
|
+
method: "PATCH",
|
|
1024
|
+
body: JSON.stringify({ preferences: params.preferences })
|
|
1025
|
+
}
|
|
1026
|
+
);
|
|
1027
|
+
}
|
|
1028
|
+
return { getNotificationPreferences, updateNotificationPreferences };
|
|
1029
|
+
}
|
|
1030
|
+
|
|
1031
|
+
// src/client/invite-methods.ts
|
|
1032
|
+
var EXT_INVITE_ENDPOINT = "/api/v1/organizations/ext/invite";
|
|
1033
|
+
function createInviteMethods(deps) {
|
|
1034
|
+
const { fetchWithAuth, createError, serviceCode } = deps;
|
|
1035
|
+
const assignableRoles = /* @__PURE__ */ new Set(["admin", "member", "viewer"]);
|
|
1036
|
+
async function inviteMember(params) {
|
|
1037
|
+
if (!params.organizationId || !params.email) {
|
|
1038
|
+
return {
|
|
1039
|
+
error: createError("VALIDATION_ERROR", "organizationId \u3068 email \u306F\u5FC5\u9808\u3067\u3059")
|
|
1040
|
+
};
|
|
1041
|
+
}
|
|
1042
|
+
if (params.role !== void 0 && !assignableRoles.has(params.role)) {
|
|
1043
|
+
return {
|
|
1044
|
+
error: createError(
|
|
1045
|
+
"VALIDATION_ERROR",
|
|
1046
|
+
"role \u306F admin\u3001member\u3001viewer \u306E\u3044\u305A\u308C\u304B\u3092\u6307\u5B9A\u3057\u3066\u304F\u3060\u3055\u3044"
|
|
1047
|
+
)
|
|
1048
|
+
};
|
|
1049
|
+
}
|
|
1050
|
+
const query = new URLSearchParams({
|
|
1051
|
+
organizationId: params.organizationId,
|
|
1052
|
+
serviceCode
|
|
1053
|
+
}).toString();
|
|
1054
|
+
return fetchWithAuth(`${EXT_INVITE_ENDPOINT}?${query}`, {
|
|
1055
|
+
method: "POST",
|
|
1056
|
+
body: JSON.stringify({ email: params.email, role: params.role })
|
|
1057
|
+
});
|
|
1058
|
+
}
|
|
1059
|
+
return { inviteMember };
|
|
1060
|
+
}
|
|
1061
|
+
|
|
1062
|
+
// src/client/org-membership-methods.ts
|
|
1063
|
+
var EXT_USER_ORGANIZATIONS_ENDPOINT = "/api/v1/users/ext/me/organizations";
|
|
1064
|
+
function createOrgMembershipMethods(deps) {
|
|
1065
|
+
const { fetchWithAuth, createError } = deps;
|
|
1066
|
+
async function leaveOrganization(params) {
|
|
1067
|
+
if (!params || !params.organizationId) {
|
|
1068
|
+
return {
|
|
1069
|
+
error: createError("VALIDATION_ERROR", "organizationId \u306F\u5FC5\u9808\u3067\u3059")
|
|
1070
|
+
};
|
|
1071
|
+
}
|
|
1072
|
+
let endpoint = `${EXT_USER_ORGANIZATIONS_ENDPOINT}/${encodeURIComponent(params.organizationId)}`;
|
|
1073
|
+
if (params.userId) {
|
|
1074
|
+
endpoint += `?${new URLSearchParams({ userId: params.userId }).toString()}`;
|
|
1075
|
+
}
|
|
1076
|
+
return fetchWithAuth(endpoint, {
|
|
1077
|
+
method: "DELETE"
|
|
1078
|
+
});
|
|
1079
|
+
}
|
|
1080
|
+
return { leaveOrganization };
|
|
1081
|
+
}
|
|
1082
|
+
|
|
1083
|
+
// src/client/noncontract-methods.ts
|
|
1084
|
+
function createNonContractMethods(deps) {
|
|
1085
|
+
const { fetchWithAuth, createError, serviceCode } = deps;
|
|
1086
|
+
return {
|
|
1087
|
+
...createLoginHistoryMethods({ fetchWithAuth, createError }),
|
|
1088
|
+
...createOrganizationDomainsMethods({ fetchWithAuth, createError, serviceCode }),
|
|
1089
|
+
...createNotificationPreferencesMethods({ fetchWithAuth, createError, serviceCode }),
|
|
1090
|
+
...createInviteMethods({ fetchWithAuth, createError, serviceCode }),
|
|
1091
|
+
...createOrgMembershipMethods({ fetchWithAuth, createError })
|
|
1092
|
+
};
|
|
1093
|
+
}
|
|
1094
|
+
|
|
940
1095
|
// src/client/version-check.ts
|
|
941
|
-
var SDK_VERSION = "5.
|
|
1096
|
+
var SDK_VERSION = "5.14.0";
|
|
942
1097
|
var SDK_USER_AGENT = `FFID-SDK/${SDK_VERSION} (TypeScript)`;
|
|
943
1098
|
var SDK_VERSION_HEADER = "X-FFID-SDK-Version";
|
|
944
1099
|
function sdkHeaders() {
|
|
@@ -2941,6 +3096,18 @@ function createFFIDClient(config) {
|
|
|
2941
3096
|
fetchWithAuth,
|
|
2942
3097
|
createError
|
|
2943
3098
|
});
|
|
3099
|
+
const {
|
|
3100
|
+
getLoginHistory,
|
|
3101
|
+
getOrganizationDomains,
|
|
3102
|
+
getNotificationPreferences,
|
|
3103
|
+
updateNotificationPreferences,
|
|
3104
|
+
inviteMember,
|
|
3105
|
+
leaveOrganization
|
|
3106
|
+
} = createNonContractMethods({
|
|
3107
|
+
fetchWithAuth,
|
|
3108
|
+
createError,
|
|
3109
|
+
serviceCode: config.serviceCode
|
|
3110
|
+
});
|
|
2944
3111
|
const { getAnalyticsConfig } = createAnalyticsMethods({
|
|
2945
3112
|
fetchWithAuth,
|
|
2946
3113
|
createError
|
|
@@ -3021,6 +3188,13 @@ function createFFIDClient(config) {
|
|
|
3021
3188
|
removeMember,
|
|
3022
3189
|
getProfile,
|
|
3023
3190
|
updateProfile,
|
|
3191
|
+
// Non-contract ext API coverage (#3783)
|
|
3192
|
+
getLoginHistory,
|
|
3193
|
+
getOrganizationDomains,
|
|
3194
|
+
getNotificationPreferences,
|
|
3195
|
+
updateNotificationPreferences,
|
|
3196
|
+
inviteMember,
|
|
3197
|
+
leaveOrganization,
|
|
3024
3198
|
getAnalyticsConfig,
|
|
3025
3199
|
createCheckoutSession,
|
|
3026
3200
|
createPortalSession,
|
|
@@ -939,8 +939,163 @@ function createProfileMethods(deps) {
|
|
|
939
939
|
return { getProfile, updateProfile };
|
|
940
940
|
}
|
|
941
941
|
|
|
942
|
+
// src/client/login-history-methods.ts
|
|
943
|
+
var EXT_LOGIN_HISTORY_ENDPOINT = "/api/v1/users/ext/me/login-history";
|
|
944
|
+
function createLoginHistoryMethods(deps) {
|
|
945
|
+
const { fetchWithAuth, createError } = deps;
|
|
946
|
+
async function getLoginHistory(params) {
|
|
947
|
+
if (params?.limit !== void 0 && (!Number.isInteger(params.limit) || params.limit <= 0)) {
|
|
948
|
+
return {
|
|
949
|
+
error: createError(
|
|
950
|
+
"VALIDATION_ERROR",
|
|
951
|
+
"limit \u306F1\u4EE5\u4E0A\u306E\u6574\u6570\u3092\u6307\u5B9A\u3057\u3066\u304F\u3060\u3055\u3044"
|
|
952
|
+
)
|
|
953
|
+
};
|
|
954
|
+
}
|
|
955
|
+
const query = new URLSearchParams();
|
|
956
|
+
if (params?.userId !== void 0) {
|
|
957
|
+
query.set("userId", params.userId);
|
|
958
|
+
}
|
|
959
|
+
if (params?.limit !== void 0) {
|
|
960
|
+
query.set("limit", String(params.limit));
|
|
961
|
+
}
|
|
962
|
+
const queryString = query.toString();
|
|
963
|
+
const endpoint = queryString ? `${EXT_LOGIN_HISTORY_ENDPOINT}?${queryString}` : EXT_LOGIN_HISTORY_ENDPOINT;
|
|
964
|
+
return fetchWithAuth(endpoint);
|
|
965
|
+
}
|
|
966
|
+
return { getLoginHistory };
|
|
967
|
+
}
|
|
968
|
+
|
|
969
|
+
// src/client/organization-domains-methods.ts
|
|
970
|
+
var EXT_DOMAINS_ENDPOINT = "/api/v1/organizations/ext/domains";
|
|
971
|
+
function createOrganizationDomainsMethods(deps) {
|
|
972
|
+
const { fetchWithAuth, createError, serviceCode } = deps;
|
|
973
|
+
function buildQuery(organizationId) {
|
|
974
|
+
return new URLSearchParams({ organizationId, serviceCode }).toString();
|
|
975
|
+
}
|
|
976
|
+
async function getOrganizationDomains(params) {
|
|
977
|
+
if (!params.organizationId) {
|
|
978
|
+
return {
|
|
979
|
+
error: createError("VALIDATION_ERROR", "organizationId \u306F\u5FC5\u9808\u3067\u3059")
|
|
980
|
+
};
|
|
981
|
+
}
|
|
982
|
+
return fetchWithAuth(
|
|
983
|
+
`${EXT_DOMAINS_ENDPOINT}?${buildQuery(params.organizationId)}`
|
|
984
|
+
);
|
|
985
|
+
}
|
|
986
|
+
return { getOrganizationDomains };
|
|
987
|
+
}
|
|
988
|
+
|
|
989
|
+
// src/client/notification-preferences-methods.ts
|
|
990
|
+
var EXT_NOTIFICATION_PREFERENCES_ENDPOINT = "/api/v1/organizations/ext/notification-preferences";
|
|
991
|
+
function createNotificationPreferencesMethods(deps) {
|
|
992
|
+
const { fetchWithAuth, createError, serviceCode } = deps;
|
|
993
|
+
function buildQuery(organizationId) {
|
|
994
|
+
return new URLSearchParams({ organizationId, serviceCode }).toString();
|
|
995
|
+
}
|
|
996
|
+
async function getNotificationPreferences(params) {
|
|
997
|
+
if (!params.organizationId) {
|
|
998
|
+
return {
|
|
999
|
+
error: createError("VALIDATION_ERROR", "organizationId \u306F\u5FC5\u9808\u3067\u3059")
|
|
1000
|
+
};
|
|
1001
|
+
}
|
|
1002
|
+
return fetchWithAuth(
|
|
1003
|
+
`${EXT_NOTIFICATION_PREFERENCES_ENDPOINT}?${buildQuery(params.organizationId)}`
|
|
1004
|
+
);
|
|
1005
|
+
}
|
|
1006
|
+
async function updateNotificationPreferences(params) {
|
|
1007
|
+
if (!params.organizationId) {
|
|
1008
|
+
return {
|
|
1009
|
+
error: createError("VALIDATION_ERROR", "organizationId \u306F\u5FC5\u9808\u3067\u3059")
|
|
1010
|
+
};
|
|
1011
|
+
}
|
|
1012
|
+
if (params.preferences === null || typeof params.preferences !== "object" || Array.isArray(params.preferences)) {
|
|
1013
|
+
return {
|
|
1014
|
+
error: createError("VALIDATION_ERROR", "preferences \u306F\u30AA\u30D6\u30B8\u30A7\u30AF\u30C8\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059")
|
|
1015
|
+
};
|
|
1016
|
+
}
|
|
1017
|
+
if (Object.keys(params.preferences).length === 0) {
|
|
1018
|
+
return {
|
|
1019
|
+
error: createError("VALIDATION_ERROR", "\u66F4\u65B0\u3059\u308B\u30D5\u30A3\u30FC\u30EB\u30C9\u30921\u3064\u4EE5\u4E0A\u6307\u5B9A\u3057\u3066\u304F\u3060\u3055\u3044")
|
|
1020
|
+
};
|
|
1021
|
+
}
|
|
1022
|
+
return fetchWithAuth(
|
|
1023
|
+
`${EXT_NOTIFICATION_PREFERENCES_ENDPOINT}?${buildQuery(params.organizationId)}`,
|
|
1024
|
+
{
|
|
1025
|
+
method: "PATCH",
|
|
1026
|
+
body: JSON.stringify({ preferences: params.preferences })
|
|
1027
|
+
}
|
|
1028
|
+
);
|
|
1029
|
+
}
|
|
1030
|
+
return { getNotificationPreferences, updateNotificationPreferences };
|
|
1031
|
+
}
|
|
1032
|
+
|
|
1033
|
+
// src/client/invite-methods.ts
|
|
1034
|
+
var EXT_INVITE_ENDPOINT = "/api/v1/organizations/ext/invite";
|
|
1035
|
+
function createInviteMethods(deps) {
|
|
1036
|
+
const { fetchWithAuth, createError, serviceCode } = deps;
|
|
1037
|
+
const assignableRoles = /* @__PURE__ */ new Set(["admin", "member", "viewer"]);
|
|
1038
|
+
async function inviteMember(params) {
|
|
1039
|
+
if (!params.organizationId || !params.email) {
|
|
1040
|
+
return {
|
|
1041
|
+
error: createError("VALIDATION_ERROR", "organizationId \u3068 email \u306F\u5FC5\u9808\u3067\u3059")
|
|
1042
|
+
};
|
|
1043
|
+
}
|
|
1044
|
+
if (params.role !== void 0 && !assignableRoles.has(params.role)) {
|
|
1045
|
+
return {
|
|
1046
|
+
error: createError(
|
|
1047
|
+
"VALIDATION_ERROR",
|
|
1048
|
+
"role \u306F admin\u3001member\u3001viewer \u306E\u3044\u305A\u308C\u304B\u3092\u6307\u5B9A\u3057\u3066\u304F\u3060\u3055\u3044"
|
|
1049
|
+
)
|
|
1050
|
+
};
|
|
1051
|
+
}
|
|
1052
|
+
const query = new URLSearchParams({
|
|
1053
|
+
organizationId: params.organizationId,
|
|
1054
|
+
serviceCode
|
|
1055
|
+
}).toString();
|
|
1056
|
+
return fetchWithAuth(`${EXT_INVITE_ENDPOINT}?${query}`, {
|
|
1057
|
+
method: "POST",
|
|
1058
|
+
body: JSON.stringify({ email: params.email, role: params.role })
|
|
1059
|
+
});
|
|
1060
|
+
}
|
|
1061
|
+
return { inviteMember };
|
|
1062
|
+
}
|
|
1063
|
+
|
|
1064
|
+
// src/client/org-membership-methods.ts
|
|
1065
|
+
var EXT_USER_ORGANIZATIONS_ENDPOINT = "/api/v1/users/ext/me/organizations";
|
|
1066
|
+
function createOrgMembershipMethods(deps) {
|
|
1067
|
+
const { fetchWithAuth, createError } = deps;
|
|
1068
|
+
async function leaveOrganization(params) {
|
|
1069
|
+
if (!params || !params.organizationId) {
|
|
1070
|
+
return {
|
|
1071
|
+
error: createError("VALIDATION_ERROR", "organizationId \u306F\u5FC5\u9808\u3067\u3059")
|
|
1072
|
+
};
|
|
1073
|
+
}
|
|
1074
|
+
let endpoint = `${EXT_USER_ORGANIZATIONS_ENDPOINT}/${encodeURIComponent(params.organizationId)}`;
|
|
1075
|
+
if (params.userId) {
|
|
1076
|
+
endpoint += `?${new URLSearchParams({ userId: params.userId }).toString()}`;
|
|
1077
|
+
}
|
|
1078
|
+
return fetchWithAuth(endpoint, {
|
|
1079
|
+
method: "DELETE"
|
|
1080
|
+
});
|
|
1081
|
+
}
|
|
1082
|
+
return { leaveOrganization };
|
|
1083
|
+
}
|
|
1084
|
+
|
|
1085
|
+
// src/client/noncontract-methods.ts
|
|
1086
|
+
function createNonContractMethods(deps) {
|
|
1087
|
+
const { fetchWithAuth, createError, serviceCode } = deps;
|
|
1088
|
+
return {
|
|
1089
|
+
...createLoginHistoryMethods({ fetchWithAuth, createError }),
|
|
1090
|
+
...createOrganizationDomainsMethods({ fetchWithAuth, createError, serviceCode }),
|
|
1091
|
+
...createNotificationPreferencesMethods({ fetchWithAuth, createError, serviceCode }),
|
|
1092
|
+
...createInviteMethods({ fetchWithAuth, createError, serviceCode }),
|
|
1093
|
+
...createOrgMembershipMethods({ fetchWithAuth, createError })
|
|
1094
|
+
};
|
|
1095
|
+
}
|
|
1096
|
+
|
|
942
1097
|
// src/client/version-check.ts
|
|
943
|
-
var SDK_VERSION = "5.
|
|
1098
|
+
var SDK_VERSION = "5.14.0";
|
|
944
1099
|
var SDK_USER_AGENT = `FFID-SDK/${SDK_VERSION} (TypeScript)`;
|
|
945
1100
|
var SDK_VERSION_HEADER = "X-FFID-SDK-Version";
|
|
946
1101
|
function sdkHeaders() {
|
|
@@ -2943,6 +3098,18 @@ function createFFIDClient(config) {
|
|
|
2943
3098
|
fetchWithAuth,
|
|
2944
3099
|
createError
|
|
2945
3100
|
});
|
|
3101
|
+
const {
|
|
3102
|
+
getLoginHistory,
|
|
3103
|
+
getOrganizationDomains,
|
|
3104
|
+
getNotificationPreferences,
|
|
3105
|
+
updateNotificationPreferences,
|
|
3106
|
+
inviteMember,
|
|
3107
|
+
leaveOrganization
|
|
3108
|
+
} = createNonContractMethods({
|
|
3109
|
+
fetchWithAuth,
|
|
3110
|
+
createError,
|
|
3111
|
+
serviceCode: config.serviceCode
|
|
3112
|
+
});
|
|
2946
3113
|
const { getAnalyticsConfig } = createAnalyticsMethods({
|
|
2947
3114
|
fetchWithAuth,
|
|
2948
3115
|
createError
|
|
@@ -3023,6 +3190,13 @@ function createFFIDClient(config) {
|
|
|
3023
3190
|
removeMember,
|
|
3024
3191
|
getProfile,
|
|
3025
3192
|
updateProfile,
|
|
3193
|
+
// Non-contract ext API coverage (#3783)
|
|
3194
|
+
getLoginHistory,
|
|
3195
|
+
getOrganizationDomains,
|
|
3196
|
+
getNotificationPreferences,
|
|
3197
|
+
updateNotificationPreferences,
|
|
3198
|
+
inviteMember,
|
|
3199
|
+
leaveOrganization,
|
|
3026
3200
|
getAnalyticsConfig,
|
|
3027
3201
|
createCheckoutSession,
|
|
3028
3202
|
createPortalSession,
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkBVDUQQHP_cjs = require('../chunk-BVDUQQHP.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "FFIDAnnouncementBadge", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkBVDUQQHP_cjs.FFIDAnnouncementBadge; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "FFIDAnnouncementList", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkBVDUQQHP_cjs.FFIDAnnouncementList; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "FFIDInquiryForm", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkBVDUQQHP_cjs.FFIDInquiryForm; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "FFIDLoginButton", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkBVDUQQHP_cjs.FFIDLoginButton; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "FFIDOrganizationSwitcher", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkBVDUQQHP_cjs.FFIDOrganizationSwitcher; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "FFIDSubscriptionBadge", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkBVDUQQHP_cjs.FFIDSubscriptionBadge; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "FFIDUserMenu", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkBVDUQQHP_cjs.FFIDUserMenu; }
|
|
34
34
|
});
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { D as FFIDAnnouncementBadge, af as FFIDAnnouncementBadgeClassNames, ag as FFIDAnnouncementBadgeProps, G as FFIDAnnouncementList, ah as FFIDAnnouncementListClassNames, ai as FFIDAnnouncementListProps, P as FFIDInquiryForm, Q as FFIDInquiryFormCategoryItem, R as FFIDInquiryFormClassNames, S as FFIDInquiryFormLegalLayout, T as FFIDInquiryFormOrganization, U as FFIDInquiryFormPlaceholderContext, V as FFIDInquiryFormPrefill, W as FFIDInquiryFormProps, X as FFIDInquiryFormSubmitData, Y as FFIDInquiryFormSubmitResult, _ as FFIDLoginButton, aj as FFIDLoginButtonProps, a1 as FFIDOrganizationSwitcher, ak as FFIDOrganizationSwitcherClassNames, al as FFIDOrganizationSwitcherProps, a6 as FFIDSubscriptionBadge, am as FFIDSubscriptionBadgeClassNames, an as FFIDSubscriptionBadgeProps, a8 as FFIDUserMenu, ao as FFIDUserMenuClassNames, ap as FFIDUserMenuProps } from '../index-CsVJTuPv.cjs';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'react';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { D as FFIDAnnouncementBadge, af as FFIDAnnouncementBadgeClassNames, ag as FFIDAnnouncementBadgeProps, G as FFIDAnnouncementList, ah as FFIDAnnouncementListClassNames, ai as FFIDAnnouncementListProps, P as FFIDInquiryForm, Q as FFIDInquiryFormCategoryItem, R as FFIDInquiryFormClassNames, S as FFIDInquiryFormLegalLayout, T as FFIDInquiryFormOrganization, U as FFIDInquiryFormPlaceholderContext, V as FFIDInquiryFormPrefill, W as FFIDInquiryFormProps, X as FFIDInquiryFormSubmitData, Y as FFIDInquiryFormSubmitResult, _ as FFIDLoginButton, aj as FFIDLoginButtonProps, a1 as FFIDOrganizationSwitcher, ak as FFIDOrganizationSwitcherClassNames, al as FFIDOrganizationSwitcherProps, a6 as FFIDSubscriptionBadge, am as FFIDSubscriptionBadgeClassNames, an as FFIDSubscriptionBadgeProps, a8 as FFIDUserMenu, ao as FFIDUserMenuClassNames, ap as FFIDUserMenuProps } from '../index-CsVJTuPv.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'react';
|
package/dist/components/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { FFIDAnnouncementBadge, FFIDAnnouncementList, FFIDInquiryForm, FFIDLoginButton, FFIDOrganizationSwitcher, FFIDSubscriptionBadge, FFIDUserMenu } from '../chunk-
|
|
1
|
+
export { FFIDAnnouncementBadge, FFIDAnnouncementList, FFIDInquiryForm, FFIDLoginButton, FFIDOrganizationSwitcher, FFIDSubscriptionBadge, FFIDUserMenu } from '../chunk-4II4R7NR.js';
|