@singi-labs/sifa-sdk 0.12.69 → 0.12.70
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/index.cjs +3 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/jsonld/index.cjs +444 -457
- package/dist/jsonld/index.cjs.map +1 -1
- package/dist/jsonld/index.d.cts +31 -17
- package/dist/jsonld/index.d.ts +31 -17
- package/dist/jsonld/index.js +444 -457
- package/dist/jsonld/index.js.map +1 -1
- package/dist/{network-map-CpwO3k-e.d.cts → network-map-BAuHfC6e.d.cts} +1 -1
- package/dist/{network-map-DpEQ65cq.d.ts → network-map-l-qT7ada.d.ts} +1 -1
- package/dist/{org-DJyiwPcL.d.cts → org-BaWCreh6.d.cts} +1 -1
- package/dist/{org-DxhtogOn.d.ts → org-OaBu-89h.d.ts} +1 -1
- package/dist/{org-settings-CZ_tmAYl.d.cts → org-settings-B8e01iZx.d.cts} +1 -1
- package/dist/{org-settings-CZ_tmAYl.d.ts → org-settings-B8e01iZx.d.ts} +1 -1
- package/dist/{profile-investment-DmtsZK8d.d.cts → profile-investment-C97ssnBV.d.cts} +3 -1
- package/dist/{profile-investment-DmtsZK8d.d.ts → profile-investment-C97ssnBV.d.ts} +3 -1
- package/dist/query/fetchers/index.cjs +127 -6
- package/dist/query/fetchers/index.cjs.map +1 -1
- package/dist/query/fetchers/index.d.cts +10 -12
- package/dist/query/fetchers/index.d.ts +10 -12
- package/dist/query/fetchers/index.js +127 -6
- package/dist/query/fetchers/index.js.map +1 -1
- package/dist/query/hooks/index.cjs +127 -6
- package/dist/query/hooks/index.cjs.map +1 -1
- package/dist/query/hooks/index.d.cts +4 -4
- package/dist/query/hooks/index.d.ts +4 -4
- package/dist/query/hooks/index.js +127 -6
- package/dist/query/hooks/index.js.map +1 -1
- package/dist/query/index.d.cts +6 -6
- package/dist/query/index.d.ts +6 -6
- package/dist/schemas/index.cjs +2 -0
- package/dist/schemas/index.cjs.map +1 -1
- package/dist/schemas/index.d.cts +1 -1
- package/dist/schemas/index.d.ts +1 -1
- package/dist/schemas/index.js +2 -1
- package/dist/schemas/index.js.map +1 -1
- package/dist/schemas/write/index.d.cts +1 -1
- package/dist/schemas/write/index.d.ts +1 -1
- package/dist/{use-org-notification-emails-ChctAwP5.d.cts → use-org-notification-emails-CcuTb7LT.d.cts} +2 -2
- package/dist/{use-org-notification-emails-C3TuUp8c.d.ts → use-org-notification-emails-DG2qXAKu.d.ts} +2 -2
- package/package.json +3 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { A as AddFeatureAllowlistVariables, C as CreateReactionVariables, a as CreateRecordVariables, D as DeleteReactionVariables, b as DeleteRecordVariables, F as FollowVariables, P as PositionSkillLinkVariables, R as RemoveFeatureAllowlistVariables, S as SifaProvider, c as SifaProviderProps, U as UnfollowVariables, d as UpdateEducationVariables, e as UpdateExternalAccountVariables, f as UpdatePositionVariables, g as UpdateProfileLocationVariables, h as UpdateRecordVariables, i as UpdateSkillSubCategoriesVariables, j as UpdateSkillVariables, k as UseEntitySearchOptions, l as UseMyGithubPullRequestsParams, u as useActivityFeed, m as useActivityTeaser, n as useAddFeatureAllowlist, o as useAddOrgNotificationEmail, p as useAdminReviewQueues, q as useAppAccountCheck, r as useAppsRegistry, s as useAtFundLink, t as useBlueskySuggestions, v as useBulkHideProfileItems, w as useBulkHideStandardPublications, x as useBulkUnhideProfileItems, y as useBulkUnhideStandardPublications, z as useCanonicalSkillSearch, B as useCastRoadmapVote, E as useCreateConfirmation, G as useCreateEducation, H as useCreateEndorsement, I as useCreateExternalAccount, J as useCreatePosition, K as useCreateProfileLocation, L as useCreateReaction, M as useCreateRecord, N as useCreateSkill, O as useDebouncedValue, Q as useDeleteAccount, T as useDeleteAvatarOverride, V as useDeleteEducation, W as useDeleteExternalAccount, X as useDeletePosition, Y as useDeleteProfileLocation, Z as useDeleteReaction, _ as useDeleteRecord, $ as useDeleteRepoRecords, a0 as useDeleteSkill, a1 as useDismissConfirmation, a2 as useEndorsementCount, a3 as useEntitySearch, a4 as useExternalAccounts, a5 as useFeatureAllowlist, a6 as useFeaturedProfile, a7 as useFollow, a8 as useFollowers, a9 as useFollowing, aa as useFollowingFeed, ab as useFollowingList, ac as useGetProfileView, ad as useGivenConfirmations, ae as useHeatmapData, af as useHiddenApps, ag as useHideKeytraceClaim, ah as useHideOrcidPublication, ai as useHideProfileItem, aj as useHideSifaPublication, ak as useHideStandardPublication, al as useImportSearchEntities, am as useLinkSkillToPosition, ao as useMutuals, ap as useMyGithubPullRequests, aq as useMyRoadmapVotes, ar as useNetworkStreamCount, as as useOrgClaim, at as useOrgDomainChallenge, au as useOrgDomainVerify, av as useOrgProfile, aw as usePendingConfirmations, ax as useProfile, ay as useReactionStatus, az as useRefreshOrcidPublications, aA as useRefreshPds, aB as useRemoveFeatureAllowlist, aC as useRemoveOrgNotificationEmail, aD as useRepoInventory, aE as useResetProfile, aG as useRetractRoadmapVote, aH as useRevealMarqueDomain, aI as useRevokeConfirmation, aJ as useRoadmapVotes, aK as useSearchFilters, aL as useSearchProfiles, aM as useSelectEntity, aN as useSetExternalAccountPrimary, aO as useSetPositionPrimary, aP as useSifaConfig, aQ as useSimilarProfiles, aR as useSkillSuggestions, aS as useStats, aT as useSuggestionCount, aU as useSuggestions, aV as useUnfollow, aW as useUnhideKeytraceClaim, aX as useUnhideOrcidPublication, aY as useUnhideProfileItem, aZ as useUnhideSifaPublication, a_ as useUnhideStandardPublication, a$ as useUnlinkSkillFromPosition, b0 as useUnrevealMarqueDomain, b1 as useUnsetExternalAccountPrimary, b2 as useUnsetPositionPrimary, b3 as useUpdateEducation, b4 as useUpdateExternalAccount, b5 as useUpdateOrgProfile, b6 as useUpdatePosition, b7 as useUpdateProfileLocation, b8 as useUpdateProfileOverride, b9 as useUpdateProfileSelf, ba as useUpdateRecord, bb as useUpdateSkill, bc as useUpdateSkillSubCategories, bd as useUploadAvatar, be as useVerifyExternalAccount, bf as useWipePreview } from '../../use-org-notification-emails-
|
|
2
|
-
import { C as CreateResult, W as WriteResult } from '../../org-
|
|
3
|
-
export { aA as SifaQueryKey, s as sifaQueryKeys } from '../../org-
|
|
1
|
+
export { A as AddFeatureAllowlistVariables, C as CreateReactionVariables, a as CreateRecordVariables, D as DeleteReactionVariables, b as DeleteRecordVariables, F as FollowVariables, P as PositionSkillLinkVariables, R as RemoveFeatureAllowlistVariables, S as SifaProvider, c as SifaProviderProps, U as UnfollowVariables, d as UpdateEducationVariables, e as UpdateExternalAccountVariables, f as UpdatePositionVariables, g as UpdateProfileLocationVariables, h as UpdateRecordVariables, i as UpdateSkillSubCategoriesVariables, j as UpdateSkillVariables, k as UseEntitySearchOptions, l as UseMyGithubPullRequestsParams, u as useActivityFeed, m as useActivityTeaser, n as useAddFeatureAllowlist, o as useAddOrgNotificationEmail, p as useAdminReviewQueues, q as useAppAccountCheck, r as useAppsRegistry, s as useAtFundLink, t as useBlueskySuggestions, v as useBulkHideProfileItems, w as useBulkHideStandardPublications, x as useBulkUnhideProfileItems, y as useBulkUnhideStandardPublications, z as useCanonicalSkillSearch, B as useCastRoadmapVote, E as useCreateConfirmation, G as useCreateEducation, H as useCreateEndorsement, I as useCreateExternalAccount, J as useCreatePosition, K as useCreateProfileLocation, L as useCreateReaction, M as useCreateRecord, N as useCreateSkill, O as useDebouncedValue, Q as useDeleteAccount, T as useDeleteAvatarOverride, V as useDeleteEducation, W as useDeleteExternalAccount, X as useDeletePosition, Y as useDeleteProfileLocation, Z as useDeleteReaction, _ as useDeleteRecord, $ as useDeleteRepoRecords, a0 as useDeleteSkill, a1 as useDismissConfirmation, a2 as useEndorsementCount, a3 as useEntitySearch, a4 as useExternalAccounts, a5 as useFeatureAllowlist, a6 as useFeaturedProfile, a7 as useFollow, a8 as useFollowers, a9 as useFollowing, aa as useFollowingFeed, ab as useFollowingList, ac as useGetProfileView, ad as useGivenConfirmations, ae as useHeatmapData, af as useHiddenApps, ag as useHideKeytraceClaim, ah as useHideOrcidPublication, ai as useHideProfileItem, aj as useHideSifaPublication, ak as useHideStandardPublication, al as useImportSearchEntities, am as useLinkSkillToPosition, ao as useMutuals, ap as useMyGithubPullRequests, aq as useMyRoadmapVotes, ar as useNetworkStreamCount, as as useOrgClaim, at as useOrgDomainChallenge, au as useOrgDomainVerify, av as useOrgProfile, aw as usePendingConfirmations, ax as useProfile, ay as useReactionStatus, az as useRefreshOrcidPublications, aA as useRefreshPds, aB as useRemoveFeatureAllowlist, aC as useRemoveOrgNotificationEmail, aD as useRepoInventory, aE as useResetProfile, aG as useRetractRoadmapVote, aH as useRevealMarqueDomain, aI as useRevokeConfirmation, aJ as useRoadmapVotes, aK as useSearchFilters, aL as useSearchProfiles, aM as useSelectEntity, aN as useSetExternalAccountPrimary, aO as useSetPositionPrimary, aP as useSifaConfig, aQ as useSimilarProfiles, aR as useSkillSuggestions, aS as useStats, aT as useSuggestionCount, aU as useSuggestions, aV as useUnfollow, aW as useUnhideKeytraceClaim, aX as useUnhideOrcidPublication, aY as useUnhideProfileItem, aZ as useUnhideSifaPublication, a_ as useUnhideStandardPublication, a$ as useUnlinkSkillFromPosition, b0 as useUnrevealMarqueDomain, b1 as useUnsetExternalAccountPrimary, b2 as useUnsetPositionPrimary, b3 as useUpdateEducation, b4 as useUpdateExternalAccount, b5 as useUpdateOrgProfile, b6 as useUpdatePosition, b7 as useUpdateProfileLocation, b8 as useUpdateProfileOverride, b9 as useUpdateProfileSelf, ba as useUpdateRecord, bb as useUpdateSkill, bc as useUpdateSkillSubCategories, bd as useUploadAvatar, be as useVerifyExternalAccount, bf as useWipePreview } from '../../use-org-notification-emails-CcuTb7LT.cjs';
|
|
2
|
+
import { C as CreateResult, W as WriteResult } from '../../org-BaWCreh6.cjs';
|
|
3
|
+
export { aA as SifaQueryKey, s as sifaQueryKeys } from '../../org-BaWCreh6.cjs';
|
|
4
4
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
5
5
|
import { UseMutationOptions } from '@tanstack/react-query';
|
|
6
6
|
import 'react';
|
|
@@ -8,7 +8,7 @@ import '../../index-a3xqWsNm.cjs';
|
|
|
8
8
|
import '../../types-D0LWpGtY.cjs';
|
|
9
9
|
import '../../feed-BMm9Pkew.cjs';
|
|
10
10
|
import 'zod';
|
|
11
|
-
import '../../org-settings-
|
|
11
|
+
import '../../org-settings-B8e01iZx.cjs';
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* React hooks for investment records. Each invalidates the owner's profile cache on
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { A as AddFeatureAllowlistVariables, C as CreateReactionVariables, a as CreateRecordVariables, D as DeleteReactionVariables, b as DeleteRecordVariables, F as FollowVariables, P as PositionSkillLinkVariables, R as RemoveFeatureAllowlistVariables, S as SifaProvider, c as SifaProviderProps, U as UnfollowVariables, d as UpdateEducationVariables, e as UpdateExternalAccountVariables, f as UpdatePositionVariables, g as UpdateProfileLocationVariables, h as UpdateRecordVariables, i as UpdateSkillSubCategoriesVariables, j as UpdateSkillVariables, k as UseEntitySearchOptions, l as UseMyGithubPullRequestsParams, u as useActivityFeed, m as useActivityTeaser, n as useAddFeatureAllowlist, o as useAddOrgNotificationEmail, p as useAdminReviewQueues, q as useAppAccountCheck, r as useAppsRegistry, s as useAtFundLink, t as useBlueskySuggestions, v as useBulkHideProfileItems, w as useBulkHideStandardPublications, x as useBulkUnhideProfileItems, y as useBulkUnhideStandardPublications, z as useCanonicalSkillSearch, B as useCastRoadmapVote, E as useCreateConfirmation, G as useCreateEducation, H as useCreateEndorsement, I as useCreateExternalAccount, J as useCreatePosition, K as useCreateProfileLocation, L as useCreateReaction, M as useCreateRecord, N as useCreateSkill, O as useDebouncedValue, Q as useDeleteAccount, T as useDeleteAvatarOverride, V as useDeleteEducation, W as useDeleteExternalAccount, X as useDeletePosition, Y as useDeleteProfileLocation, Z as useDeleteReaction, _ as useDeleteRecord, $ as useDeleteRepoRecords, a0 as useDeleteSkill, a1 as useDismissConfirmation, a2 as useEndorsementCount, a3 as useEntitySearch, a4 as useExternalAccounts, a5 as useFeatureAllowlist, a6 as useFeaturedProfile, a7 as useFollow, a8 as useFollowers, a9 as useFollowing, aa as useFollowingFeed, ab as useFollowingList, ac as useGetProfileView, ad as useGivenConfirmations, ae as useHeatmapData, af as useHiddenApps, ag as useHideKeytraceClaim, ah as useHideOrcidPublication, ai as useHideProfileItem, aj as useHideSifaPublication, ak as useHideStandardPublication, al as useImportSearchEntities, am as useLinkSkillToPosition, ao as useMutuals, ap as useMyGithubPullRequests, aq as useMyRoadmapVotes, ar as useNetworkStreamCount, as as useOrgClaim, at as useOrgDomainChallenge, au as useOrgDomainVerify, av as useOrgProfile, aw as usePendingConfirmations, ax as useProfile, ay as useReactionStatus, az as useRefreshOrcidPublications, aA as useRefreshPds, aB as useRemoveFeatureAllowlist, aC as useRemoveOrgNotificationEmail, aD as useRepoInventory, aE as useResetProfile, aG as useRetractRoadmapVote, aH as useRevealMarqueDomain, aI as useRevokeConfirmation, aJ as useRoadmapVotes, aK as useSearchFilters, aL as useSearchProfiles, aM as useSelectEntity, aN as useSetExternalAccountPrimary, aO as useSetPositionPrimary, aP as useSifaConfig, aQ as useSimilarProfiles, aR as useSkillSuggestions, aS as useStats, aT as useSuggestionCount, aU as useSuggestions, aV as useUnfollow, aW as useUnhideKeytraceClaim, aX as useUnhideOrcidPublication, aY as useUnhideProfileItem, aZ as useUnhideSifaPublication, a_ as useUnhideStandardPublication, a$ as useUnlinkSkillFromPosition, b0 as useUnrevealMarqueDomain, b1 as useUnsetExternalAccountPrimary, b2 as useUnsetPositionPrimary, b3 as useUpdateEducation, b4 as useUpdateExternalAccount, b5 as useUpdateOrgProfile, b6 as useUpdatePosition, b7 as useUpdateProfileLocation, b8 as useUpdateProfileOverride, b9 as useUpdateProfileSelf, ba as useUpdateRecord, bb as useUpdateSkill, bc as useUpdateSkillSubCategories, bd as useUploadAvatar, be as useVerifyExternalAccount, bf as useWipePreview } from '../../use-org-notification-emails-
|
|
2
|
-
import { C as CreateResult, W as WriteResult } from '../../org-
|
|
3
|
-
export { aA as SifaQueryKey, s as sifaQueryKeys } from '../../org-
|
|
1
|
+
export { A as AddFeatureAllowlistVariables, C as CreateReactionVariables, a as CreateRecordVariables, D as DeleteReactionVariables, b as DeleteRecordVariables, F as FollowVariables, P as PositionSkillLinkVariables, R as RemoveFeatureAllowlistVariables, S as SifaProvider, c as SifaProviderProps, U as UnfollowVariables, d as UpdateEducationVariables, e as UpdateExternalAccountVariables, f as UpdatePositionVariables, g as UpdateProfileLocationVariables, h as UpdateRecordVariables, i as UpdateSkillSubCategoriesVariables, j as UpdateSkillVariables, k as UseEntitySearchOptions, l as UseMyGithubPullRequestsParams, u as useActivityFeed, m as useActivityTeaser, n as useAddFeatureAllowlist, o as useAddOrgNotificationEmail, p as useAdminReviewQueues, q as useAppAccountCheck, r as useAppsRegistry, s as useAtFundLink, t as useBlueskySuggestions, v as useBulkHideProfileItems, w as useBulkHideStandardPublications, x as useBulkUnhideProfileItems, y as useBulkUnhideStandardPublications, z as useCanonicalSkillSearch, B as useCastRoadmapVote, E as useCreateConfirmation, G as useCreateEducation, H as useCreateEndorsement, I as useCreateExternalAccount, J as useCreatePosition, K as useCreateProfileLocation, L as useCreateReaction, M as useCreateRecord, N as useCreateSkill, O as useDebouncedValue, Q as useDeleteAccount, T as useDeleteAvatarOverride, V as useDeleteEducation, W as useDeleteExternalAccount, X as useDeletePosition, Y as useDeleteProfileLocation, Z as useDeleteReaction, _ as useDeleteRecord, $ as useDeleteRepoRecords, a0 as useDeleteSkill, a1 as useDismissConfirmation, a2 as useEndorsementCount, a3 as useEntitySearch, a4 as useExternalAccounts, a5 as useFeatureAllowlist, a6 as useFeaturedProfile, a7 as useFollow, a8 as useFollowers, a9 as useFollowing, aa as useFollowingFeed, ab as useFollowingList, ac as useGetProfileView, ad as useGivenConfirmations, ae as useHeatmapData, af as useHiddenApps, ag as useHideKeytraceClaim, ah as useHideOrcidPublication, ai as useHideProfileItem, aj as useHideSifaPublication, ak as useHideStandardPublication, al as useImportSearchEntities, am as useLinkSkillToPosition, ao as useMutuals, ap as useMyGithubPullRequests, aq as useMyRoadmapVotes, ar as useNetworkStreamCount, as as useOrgClaim, at as useOrgDomainChallenge, au as useOrgDomainVerify, av as useOrgProfile, aw as usePendingConfirmations, ax as useProfile, ay as useReactionStatus, az as useRefreshOrcidPublications, aA as useRefreshPds, aB as useRemoveFeatureAllowlist, aC as useRemoveOrgNotificationEmail, aD as useRepoInventory, aE as useResetProfile, aG as useRetractRoadmapVote, aH as useRevealMarqueDomain, aI as useRevokeConfirmation, aJ as useRoadmapVotes, aK as useSearchFilters, aL as useSearchProfiles, aM as useSelectEntity, aN as useSetExternalAccountPrimary, aO as useSetPositionPrimary, aP as useSifaConfig, aQ as useSimilarProfiles, aR as useSkillSuggestions, aS as useStats, aT as useSuggestionCount, aU as useSuggestions, aV as useUnfollow, aW as useUnhideKeytraceClaim, aX as useUnhideOrcidPublication, aY as useUnhideProfileItem, aZ as useUnhideSifaPublication, a_ as useUnhideStandardPublication, a$ as useUnlinkSkillFromPosition, b0 as useUnrevealMarqueDomain, b1 as useUnsetExternalAccountPrimary, b2 as useUnsetPositionPrimary, b3 as useUpdateEducation, b4 as useUpdateExternalAccount, b5 as useUpdateOrgProfile, b6 as useUpdatePosition, b7 as useUpdateProfileLocation, b8 as useUpdateProfileOverride, b9 as useUpdateProfileSelf, ba as useUpdateRecord, bb as useUpdateSkill, bc as useUpdateSkillSubCategories, bd as useUploadAvatar, be as useVerifyExternalAccount, bf as useWipePreview } from '../../use-org-notification-emails-DG2qXAKu.js';
|
|
2
|
+
import { C as CreateResult, W as WriteResult } from '../../org-OaBu-89h.js';
|
|
3
|
+
export { aA as SifaQueryKey, s as sifaQueryKeys } from '../../org-OaBu-89h.js';
|
|
4
4
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
5
5
|
import { UseMutationOptions } from '@tanstack/react-query';
|
|
6
6
|
import 'react';
|
|
@@ -8,7 +8,7 @@ import '../../index-a3xqWsNm.js';
|
|
|
8
8
|
import '../../types-C3xxTGUE.js';
|
|
9
9
|
import '../../feed-BMm9Pkew.js';
|
|
10
10
|
import 'zod';
|
|
11
|
-
import '../../org-settings-
|
|
11
|
+
import '../../org-settings-B8e01iZx.js';
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* React hooks for investment records. Each invalidates the owner's profile cache on
|
|
@@ -2857,19 +2857,140 @@ function useRemoveOrgNotificationEmail(options) {
|
|
|
2857
2857
|
...options
|
|
2858
2858
|
});
|
|
2859
2859
|
}
|
|
2860
|
+
function maxGraphemes(max) {
|
|
2861
|
+
return (value) => {
|
|
2862
|
+
const segmenter = new Intl.Segmenter(void 0, { granularity: "grapheme" });
|
|
2863
|
+
let count = 0;
|
|
2864
|
+
for (const _ of segmenter.segment(value)) {
|
|
2865
|
+
count++;
|
|
2866
|
+
if (count > max) return false;
|
|
2867
|
+
}
|
|
2868
|
+
return true;
|
|
2869
|
+
};
|
|
2870
|
+
}
|
|
2871
|
+
var didSchema = z.string().regex(/^did:[a-z]+:[a-zA-Z0-9._:%-]+$/, "Invalid DID");
|
|
2872
|
+
var datetimeSchema = z.string().datetime({ offset: true });
|
|
2873
|
+
var partialDateSchema = z.string().regex(/^\d{4}(-\d{2}(-\d{2}(T.+)?)?)?$/, "Expected YYYY, YYYY-MM, YYYY-MM-DD, or a datetime");
|
|
2874
|
+
var atUriSchema = z.string().regex(/^at:\/\/[^\s]+$/, "Invalid AT-URI");
|
|
2875
|
+
var cidSchema = z.string().regex(/^(Qm[1-9A-HJ-NP-Za-km-z]{44}|b[A-Za-z0-9+/=]+)$/, "Invalid CID");
|
|
2876
|
+
z.string().regex(/^[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*$/, "Invalid BCP 47 language tag");
|
|
2877
|
+
var uriSchema = z.string().url();
|
|
2878
|
+
var strongRefSchema = z.object({
|
|
2879
|
+
uri: atUriSchema,
|
|
2880
|
+
cid: cidSchema
|
|
2881
|
+
});
|
|
2882
|
+
z.object({
|
|
2883
|
+
uri: atUriSchema
|
|
2884
|
+
});
|
|
2885
|
+
var externalRecordRefSchema = z.object({
|
|
2886
|
+
uri: atUriSchema,
|
|
2887
|
+
cid: cidSchema.optional()
|
|
2888
|
+
});
|
|
2889
|
+
var selfLabelsSchema = z.object({
|
|
2890
|
+
$type: z.literal("com.atproto.label.defs#selfLabels").optional(),
|
|
2891
|
+
values: z.array(z.object({ val: z.string() }))
|
|
2892
|
+
});
|
|
2893
|
+
var projectMemberRefSchema = z.object({
|
|
2894
|
+
did: didSchema,
|
|
2895
|
+
role: z.string().optional(),
|
|
2896
|
+
title: z.string().refine(maxGraphemes(128)).max(1280).optional()
|
|
2897
|
+
});
|
|
2898
|
+
z.object({
|
|
2899
|
+
name: z.string().min(1).refine(maxGraphemes(256)).max(2560),
|
|
2900
|
+
description: z.string().refine(maxGraphemes(5e3)).max(5e4).optional(),
|
|
2901
|
+
url: uriSchema.optional(),
|
|
2902
|
+
members: z.array(projectMemberRefSchema).max(50).optional(),
|
|
2903
|
+
/**
|
|
2904
|
+
* The canonical `id.sifa.project.self` this personal entry corresponds to.
|
|
2905
|
+
* A composition link. For the same project recorded on someone else's
|
|
2906
|
+
* profile, see `sameAs`.
|
|
2907
|
+
*/
|
|
2908
|
+
projectRef: strongRefSchema.optional(),
|
|
2909
|
+
/**
|
|
2910
|
+
* The same project as recorded on another person's profile. Each side stays
|
|
2911
|
+
* its own record; this only says the two describe one thing. Resolves by
|
|
2912
|
+
* AT-URI, since they will keep editing their copy.
|
|
2913
|
+
*/
|
|
2914
|
+
sameAs: externalRecordRefSchema.optional(),
|
|
2915
|
+
position: strongRefSchema.optional(),
|
|
2916
|
+
startedAt: partialDateSchema.optional(),
|
|
2917
|
+
endedAt: partialDateSchema.optional(),
|
|
2918
|
+
labels: selfLabelsSchema.optional(),
|
|
2919
|
+
createdAt: datetimeSchema
|
|
2920
|
+
});
|
|
2921
|
+
|
|
2922
|
+
// src/schemas/profile-involvement.ts
|
|
2923
|
+
var ArtifactLinkSchema = z.object({
|
|
2924
|
+
url: uriSchema,
|
|
2925
|
+
kind: z.string().optional(),
|
|
2926
|
+
label: z.string().refine(maxGraphemes(200)).max(2e3).optional()
|
|
2927
|
+
}).passthrough();
|
|
2928
|
+
z.object({
|
|
2929
|
+
kind: z.string(),
|
|
2930
|
+
upstream: z.string().refine(maxGraphemes(256)).max(2560).optional(),
|
|
2931
|
+
upstreamDid: didSchema.optional(),
|
|
2932
|
+
upstreamUrl: uriSchema.optional(),
|
|
2933
|
+
role: z.string().refine(maxGraphemes(256)).max(2560).optional(),
|
|
2934
|
+
description: z.string().refine(maxGraphemes(5e3)).max(5e4).optional(),
|
|
2935
|
+
startedAt: partialDateSchema.optional(),
|
|
2936
|
+
endedAt: partialDateSchema.optional(),
|
|
2937
|
+
links: z.array(ArtifactLinkSchema).max(50).optional(),
|
|
2938
|
+
// Portable org entity identifier (Wikidata/ROR/LEI URI) from the resolver
|
|
2939
|
+
// typeahead, constrained to http(s) so a script scheme is never a valid ref.
|
|
2940
|
+
entityRef: z.string().url().refine((s) => /^https?:\/\//i.test(s), { message: "entityRef must be an http(s) URL" }).max(2048).optional(),
|
|
2941
|
+
// community.lexicon.location.address — validated at the app layer.
|
|
2942
|
+
location: z.unknown().optional(),
|
|
2943
|
+
// id.sifa.defs#skillRef references (at-uri to a skill record in the same repo).
|
|
2944
|
+
skills: z.array(z.object({ uri: z.string() })).max(50).optional(),
|
|
2945
|
+
labels: selfLabelsSchema.optional(),
|
|
2946
|
+
collaborators: z.array(projectMemberRefSchema).max(50).optional(),
|
|
2947
|
+
sameAs: externalRecordRefSchema.optional(),
|
|
2948
|
+
createdAt: datetimeSchema
|
|
2949
|
+
}).passthrough();
|
|
2950
|
+
|
|
2951
|
+
// src/schemas/profile-investment.ts
|
|
2952
|
+
var entityRefField = z.string().url().refine((s) => /^https?:\/\//i.test(s), { message: "entityRef must be an http(s) URL" }).max(2048).optional();
|
|
2953
|
+
var InvestmentAmountSchema = z.object({
|
|
2954
|
+
/** Whole major currency units (euros, not cents). Cheque sizes are round numbers. */
|
|
2955
|
+
value: z.number().int().min(0),
|
|
2956
|
+
/** ISO 4217 three-letter code, uppercase. */
|
|
2957
|
+
currency: z.string().length(3)
|
|
2958
|
+
});
|
|
2959
|
+
var PROFILE_INVESTMENT_NSID = "id.sifa.profile.investment";
|
|
2960
|
+
z.object({
|
|
2961
|
+
/** For a limited-partner entry this names the fund, not a portfolio company. */
|
|
2962
|
+
company: z.string().min(1).refine(maxGraphemes(256)).max(2560),
|
|
2963
|
+
companyDid: didSchema.optional(),
|
|
2964
|
+
entityRef: entityRefField,
|
|
2965
|
+
role: z.string().optional(),
|
|
2966
|
+
stage: z.string().optional(),
|
|
2967
|
+
status: z.string().optional(),
|
|
2968
|
+
/** The vehicle the capital went through. Absent for a cheque in the person's own name. */
|
|
2969
|
+
via: z.string().refine(maxGraphemes(256)).max(2560).optional(),
|
|
2970
|
+
viaDid: didSchema.optional(),
|
|
2971
|
+
viaEntityRef: entityRefField,
|
|
2972
|
+
/**
|
|
2973
|
+
* Optional and empty by default. Cheque size is a personal financial disclosure,
|
|
2974
|
+
* and clients must not prompt for it.
|
|
2975
|
+
*/
|
|
2976
|
+
amount: InvestmentAmountSchema.optional(),
|
|
2977
|
+
startedAt: partialDateSchema.optional(),
|
|
2978
|
+
endedAt: partialDateSchema.optional(),
|
|
2979
|
+
description: z.string().refine(maxGraphemes(5e3)).max(5e4).optional(),
|
|
2980
|
+
links: z.array(ArtifactLinkSchema).max(50).optional(),
|
|
2981
|
+
labels: selfLabelsSchema.optional(),
|
|
2982
|
+
createdAt: datetimeSchema
|
|
2983
|
+
}).passthrough();
|
|
2860
2984
|
|
|
2861
2985
|
// src/query/fetchers/investments.ts
|
|
2862
2986
|
function createInvestment(config, data, options = {}) {
|
|
2863
|
-
return
|
|
2987
|
+
return createRecord(config, PROFILE_INVESTMENT_NSID, data, options);
|
|
2864
2988
|
}
|
|
2865
2989
|
function updateInvestment(config, rkey, data, options = {}) {
|
|
2866
|
-
return
|
|
2867
|
-
body: data,
|
|
2868
|
-
...options
|
|
2869
|
-
});
|
|
2990
|
+
return updateRecord(config, PROFILE_INVESTMENT_NSID, rkey, data, options);
|
|
2870
2991
|
}
|
|
2871
2992
|
function deleteInvestment(config, rkey, options = {}) {
|
|
2872
|
-
return
|
|
2993
|
+
return deleteRecord(config, PROFILE_INVESTMENT_NSID, rkey, options);
|
|
2873
2994
|
}
|
|
2874
2995
|
|
|
2875
2996
|
// src/query/hooks/use-investment-mutations.ts
|