···
7
7
8
8
export class CollectionLinkMapper {
9
9
private static configService = new EnvironmentConfigService();
10
10
-
static collectionLinkType = CollectionLinkMapper.configService.getAtProtoCollections().collectionLink;
11
11
-
static baseCollection = CollectionLinkMapper.configService.getAtProtoBaseCollection();
10
10
+
static collectionLinkType =
11
11
+
CollectionLinkMapper.configService.getAtProtoCollections().collectionLink;
12
12
+
static baseCollection =
13
13
+
CollectionLinkMapper.configService.getAtProtoBaseCollection();
12
14
13
15
static toCreateRecordDTO(
14
16
cardLink: CardLink,
···
116
116
(c) => c.id,
117
117
);
118
118
119
119
-
updateCardAssociations.mutate({
120
120
-
...updatedCardPayload,
121
121
-
viaCardId: props.viaCardId,
122
122
-
}, {
123
123
-
onError: () => {
124
124
-
notifications.show({ message: 'Could not update card.' });
119
119
+
updateCardAssociations.mutate(
120
120
+
{
121
121
+
...updatedCardPayload,
122
122
+
viaCardId: props.viaCardId,
125
123
},
126
126
-
onSettled: () => {
127
127
-
props.onClose();
124
124
+
{
125
125
+
onError: () => {
126
126
+
notifications.show({ message: 'Could not update card.' });
127
127
+
},
128
128
+
onSettled: () => {
129
129
+
props.onClose();
130
130
+
},
128
131
},
129
129
-
});
132
132
+
);
130
133
};
131
134
132
135
return (
···
41
41
export const addUrlToLibrary = cache(
42
42
async (
43
43
url: string,
44
44
-
{ note, collectionIds, viaCardId }: { note?: string; collectionIds?: string[]; viaCardId?: string },
44
44
+
{
45
45
+
note,
46
46
+
collectionIds,
47
47
+
viaCardId,
48
48
+
}: { note?: string; collectionIds?: string[]; viaCardId?: string },
45
49
) => {
46
50
const session = await verifySessionOnClient();
47
51
if (!session) throw new Error('No session found');
···
25
25
'**/*.spec.ts',
26
26
'src/webapp/**',
27
27
'src/types/**',
28
28
-
'src/packages/**'
28
28
+
'src/packages/**',
29
29
],
30
30
});