@natsuneko-laboratory/catalyst-sdk 0.3.4 → 0.4.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/index.d.mts +55 -1
- package/dist/index.d.ts +55 -1
- package/dist/index.js +40 -0
- package/dist/index.mjs +40 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -414,6 +414,15 @@ interface ReportRequest {
|
|
|
414
414
|
description?: string;
|
|
415
415
|
}
|
|
416
416
|
|
|
417
|
+
interface CatalystPrivacySettingsRequest {
|
|
418
|
+
followingListVisibility: "public" | "private";
|
|
419
|
+
followerListVisibility: "public" | "private";
|
|
420
|
+
}
|
|
421
|
+
interface CatalystPrivacySettings {
|
|
422
|
+
followingListVisibility: "public" | "private";
|
|
423
|
+
followerListVisibility: "public" | "private";
|
|
424
|
+
}
|
|
425
|
+
|
|
417
426
|
declare class CatalystClient {
|
|
418
427
|
private readonly http;
|
|
419
428
|
constructor(http: HttpClient);
|
|
@@ -432,6 +441,42 @@ declare class CatalystClient {
|
|
|
432
441
|
relationships(id: string): Promise<CatalystRelationships>;
|
|
433
442
|
follow(data: CatalystRelationshipRequest): Promise<void>;
|
|
434
443
|
remove(data: CatalystRelationshipRequest): Promise<void>;
|
|
444
|
+
followings(id: string, opts?: {
|
|
445
|
+
page?: number;
|
|
446
|
+
}): Promise<{
|
|
447
|
+
items: EgeriaUser[];
|
|
448
|
+
count: {
|
|
449
|
+
total: number;
|
|
450
|
+
offset: number;
|
|
451
|
+
};
|
|
452
|
+
page: {
|
|
453
|
+
min: number;
|
|
454
|
+
max: number;
|
|
455
|
+
current: number;
|
|
456
|
+
next: number | null;
|
|
457
|
+
prev: number | null;
|
|
458
|
+
};
|
|
459
|
+
}>;
|
|
460
|
+
followers(id: string, opts?: {
|
|
461
|
+
page?: number;
|
|
462
|
+
}): Promise<{
|
|
463
|
+
items: EgeriaUser[];
|
|
464
|
+
count: {
|
|
465
|
+
total: number;
|
|
466
|
+
offset: number;
|
|
467
|
+
};
|
|
468
|
+
page: {
|
|
469
|
+
min: number;
|
|
470
|
+
max: number;
|
|
471
|
+
current: number;
|
|
472
|
+
next: number | null;
|
|
473
|
+
prev: number | null;
|
|
474
|
+
};
|
|
475
|
+
}>;
|
|
476
|
+
relationshipCounts(id: string): Promise<{
|
|
477
|
+
followers: number | null;
|
|
478
|
+
followings: number | null;
|
|
479
|
+
}>;
|
|
435
480
|
createSmartAlbum(data: CatalystCreateSmartAlbumRequest): Promise<Identity>;
|
|
436
481
|
getSmartAlbum(id: string, opts?: {
|
|
437
482
|
since?: string;
|
|
@@ -525,6 +570,7 @@ declare class CatalystClient {
|
|
|
525
570
|
contests: CatalystContest[];
|
|
526
571
|
}>;
|
|
527
572
|
reportStatus(id: string, data: ReportRequest): Promise<void>;
|
|
573
|
+
privacySettings(data: CatalystPrivacySettingsRequest): Promise<CatalystPrivacySettings>;
|
|
528
574
|
}
|
|
529
575
|
|
|
530
576
|
declare class EgeriaClient {
|
|
@@ -686,6 +732,13 @@ declare const CatalystEndpoint: {
|
|
|
686
732
|
readonly relationships: (id: string) => Endpoint;
|
|
687
733
|
readonly follow: (data: CatalystRelationshipRequest) => Endpoint;
|
|
688
734
|
readonly remove: (data: CatalystRelationshipRequest) => Endpoint;
|
|
735
|
+
readonly followings: (username: string, opts?: {
|
|
736
|
+
page?: number;
|
|
737
|
+
}) => Endpoint;
|
|
738
|
+
readonly followers: (username: string, opts?: {
|
|
739
|
+
page?: number;
|
|
740
|
+
}) => Endpoint;
|
|
741
|
+
readonly relationshipCounts: (username: string) => Endpoint;
|
|
689
742
|
readonly createSmartAlbum: (data: CatalystCreateSmartAlbumRequest) => Endpoint;
|
|
690
743
|
readonly getSmartAlbum: (id: string, opts?: {
|
|
691
744
|
since?: string;
|
|
@@ -770,6 +823,7 @@ declare const CatalystEndpoint: {
|
|
|
770
823
|
readonly getContestVotes: (slug: string) => Endpoint;
|
|
771
824
|
readonly searchContest: (state: string, q?: string) => Endpoint;
|
|
772
825
|
readonly reportStatus: (id: string, data: ReportRequest) => Endpoint;
|
|
826
|
+
readonly privacySettings: (data: CatalystPrivacySettingsRequest) => Endpoint;
|
|
773
827
|
};
|
|
774
828
|
|
|
775
829
|
declare const EgeriaEndpoint: {
|
|
@@ -818,4 +872,4 @@ declare class LoggingInterceptor implements RequestInterceptor {
|
|
|
818
872
|
retry(request: Request, error: unknown): Promise<boolean>;
|
|
819
873
|
}
|
|
820
874
|
|
|
821
|
-
export { ApiError, AuthInterceptor, type CatalystAlbum, type CatalystAlbumDisplayMode, CatalystClient, type CatalystContest, type CatalystContestAddCollaboratorRequest, type CatalystContestAward, type CatalystContestCollaborator, type CatalystContestPolls, type CatalystContestRank, type CatalystContestRemoveCollaboratorRequest, type CatalystCreateAlbumRequest, type CatalystCreateContestRequest, type CatalystCreateFleetMedia, type CatalystCreateFleetRequest, type CatalystCreateFleetSticker, type CatalystCreateFleetText, type CatalystCreateSmartAlbumRequest, type CatalystCreateStatusRequest, type CatalystCustomReaction, type CatalystEditAlbumRequest, type CatalystEditContestRequest, type CatalystEditSmartAlbumRequest, type CatalystEditStatusRequest, CatalystEndpoint, CatalystError, type CatalystFleet, type CatalystFleetMedia, type CatalystFleetRing, type CatalystFleetSticker, type CatalystFleetText, type CatalystFleetViewer, type CatalystInsertToAlbumRequest, type CatalystMediaWithMetadata, type CatalystReaction, type CatalystReactions, type CatalystRelationshipRequest, type CatalystRelationships, type CatalystRemoveFromAlbumRequest, type CatalystSetContestAwardRequest, type CatalystSmartAlbum, type CatalystSmartAlbums, type CatalystStatus, type CatalystStatusPrivacy, type CatalystStatusWrapper, type CatalystStatuses, CatalystTS, type CatalystTSOptions, type CatalystUnsetContestAwardRequest, type CatalystUserVoteRights, EgeriaClient, EgeriaEndpoint, type EgeriaUpdateProfileRequest, type EgeriaUser, type EgeriaUserProfile, type EgeriaUserWrapper, type EgeriaUsers, type Endpoint, HttpClient, type HttpMethod, ISSUER_CATALYST_SYSTEM_MESSAGE, ISSUER_CATALYST_USER_MESSAGE, ISSUER_EGERIA_SYSTEM_MESSAGE, type Identity, LoggingInterceptor, type Media, MediaClient, type MediaDeleteRequest, type MediaDownloadRequest, MediaEndpoint, type MediaMetadata, type MediaUploadUrls, type Notification, type NotificationGroup, type NotificationUnreadCount, type Notifications, OAuth, OAuthError, PKCE, PUBLIC_API_ENDPOINT, PUBLIC_AUTHORIZE_ENDPOINT, PUBLIC_GRAPHQL_ENDPOINT, type ReportRequest, type RequestInterceptor, SteambirdClient, SteambirdEndpoint, type Token, UserAgentInterceptor };
|
|
875
|
+
export { ApiError, AuthInterceptor, type CatalystAlbum, type CatalystAlbumDisplayMode, CatalystClient, type CatalystContest, type CatalystContestAddCollaboratorRequest, type CatalystContestAward, type CatalystContestCollaborator, type CatalystContestPolls, type CatalystContestRank, type CatalystContestRemoveCollaboratorRequest, type CatalystCreateAlbumRequest, type CatalystCreateContestRequest, type CatalystCreateFleetMedia, type CatalystCreateFleetRequest, type CatalystCreateFleetSticker, type CatalystCreateFleetText, type CatalystCreateSmartAlbumRequest, type CatalystCreateStatusRequest, type CatalystCustomReaction, type CatalystEditAlbumRequest, type CatalystEditContestRequest, type CatalystEditSmartAlbumRequest, type CatalystEditStatusRequest, CatalystEndpoint, CatalystError, type CatalystFleet, type CatalystFleetMedia, type CatalystFleetRing, type CatalystFleetSticker, type CatalystFleetText, type CatalystFleetViewer, type CatalystInsertToAlbumRequest, type CatalystMediaWithMetadata, type CatalystPrivacySettings, type CatalystPrivacySettingsRequest, type CatalystReaction, type CatalystReactions, type CatalystRelationshipRequest, type CatalystRelationships, type CatalystRemoveFromAlbumRequest, type CatalystSetContestAwardRequest, type CatalystSmartAlbum, type CatalystSmartAlbums, type CatalystStatus, type CatalystStatusPrivacy, type CatalystStatusWrapper, type CatalystStatuses, CatalystTS, type CatalystTSOptions, type CatalystUnsetContestAwardRequest, type CatalystUserVoteRights, EgeriaClient, EgeriaEndpoint, type EgeriaUpdateProfileRequest, type EgeriaUser, type EgeriaUserProfile, type EgeriaUserWrapper, type EgeriaUsers, type Endpoint, HttpClient, type HttpMethod, ISSUER_CATALYST_SYSTEM_MESSAGE, ISSUER_CATALYST_USER_MESSAGE, ISSUER_EGERIA_SYSTEM_MESSAGE, type Identity, LoggingInterceptor, type Media, MediaClient, type MediaDeleteRequest, type MediaDownloadRequest, MediaEndpoint, type MediaMetadata, type MediaUploadUrls, type Notification, type NotificationGroup, type NotificationUnreadCount, type Notifications, OAuth, OAuthError, PKCE, PUBLIC_API_ENDPOINT, PUBLIC_AUTHORIZE_ENDPOINT, PUBLIC_GRAPHQL_ENDPOINT, type ReportRequest, type RequestInterceptor, SteambirdClient, SteambirdEndpoint, type Token, UserAgentInterceptor };
|
package/dist/index.d.ts
CHANGED
|
@@ -414,6 +414,15 @@ interface ReportRequest {
|
|
|
414
414
|
description?: string;
|
|
415
415
|
}
|
|
416
416
|
|
|
417
|
+
interface CatalystPrivacySettingsRequest {
|
|
418
|
+
followingListVisibility: "public" | "private";
|
|
419
|
+
followerListVisibility: "public" | "private";
|
|
420
|
+
}
|
|
421
|
+
interface CatalystPrivacySettings {
|
|
422
|
+
followingListVisibility: "public" | "private";
|
|
423
|
+
followerListVisibility: "public" | "private";
|
|
424
|
+
}
|
|
425
|
+
|
|
417
426
|
declare class CatalystClient {
|
|
418
427
|
private readonly http;
|
|
419
428
|
constructor(http: HttpClient);
|
|
@@ -432,6 +441,42 @@ declare class CatalystClient {
|
|
|
432
441
|
relationships(id: string): Promise<CatalystRelationships>;
|
|
433
442
|
follow(data: CatalystRelationshipRequest): Promise<void>;
|
|
434
443
|
remove(data: CatalystRelationshipRequest): Promise<void>;
|
|
444
|
+
followings(id: string, opts?: {
|
|
445
|
+
page?: number;
|
|
446
|
+
}): Promise<{
|
|
447
|
+
items: EgeriaUser[];
|
|
448
|
+
count: {
|
|
449
|
+
total: number;
|
|
450
|
+
offset: number;
|
|
451
|
+
};
|
|
452
|
+
page: {
|
|
453
|
+
min: number;
|
|
454
|
+
max: number;
|
|
455
|
+
current: number;
|
|
456
|
+
next: number | null;
|
|
457
|
+
prev: number | null;
|
|
458
|
+
};
|
|
459
|
+
}>;
|
|
460
|
+
followers(id: string, opts?: {
|
|
461
|
+
page?: number;
|
|
462
|
+
}): Promise<{
|
|
463
|
+
items: EgeriaUser[];
|
|
464
|
+
count: {
|
|
465
|
+
total: number;
|
|
466
|
+
offset: number;
|
|
467
|
+
};
|
|
468
|
+
page: {
|
|
469
|
+
min: number;
|
|
470
|
+
max: number;
|
|
471
|
+
current: number;
|
|
472
|
+
next: number | null;
|
|
473
|
+
prev: number | null;
|
|
474
|
+
};
|
|
475
|
+
}>;
|
|
476
|
+
relationshipCounts(id: string): Promise<{
|
|
477
|
+
followers: number | null;
|
|
478
|
+
followings: number | null;
|
|
479
|
+
}>;
|
|
435
480
|
createSmartAlbum(data: CatalystCreateSmartAlbumRequest): Promise<Identity>;
|
|
436
481
|
getSmartAlbum(id: string, opts?: {
|
|
437
482
|
since?: string;
|
|
@@ -525,6 +570,7 @@ declare class CatalystClient {
|
|
|
525
570
|
contests: CatalystContest[];
|
|
526
571
|
}>;
|
|
527
572
|
reportStatus(id: string, data: ReportRequest): Promise<void>;
|
|
573
|
+
privacySettings(data: CatalystPrivacySettingsRequest): Promise<CatalystPrivacySettings>;
|
|
528
574
|
}
|
|
529
575
|
|
|
530
576
|
declare class EgeriaClient {
|
|
@@ -686,6 +732,13 @@ declare const CatalystEndpoint: {
|
|
|
686
732
|
readonly relationships: (id: string) => Endpoint;
|
|
687
733
|
readonly follow: (data: CatalystRelationshipRequest) => Endpoint;
|
|
688
734
|
readonly remove: (data: CatalystRelationshipRequest) => Endpoint;
|
|
735
|
+
readonly followings: (username: string, opts?: {
|
|
736
|
+
page?: number;
|
|
737
|
+
}) => Endpoint;
|
|
738
|
+
readonly followers: (username: string, opts?: {
|
|
739
|
+
page?: number;
|
|
740
|
+
}) => Endpoint;
|
|
741
|
+
readonly relationshipCounts: (username: string) => Endpoint;
|
|
689
742
|
readonly createSmartAlbum: (data: CatalystCreateSmartAlbumRequest) => Endpoint;
|
|
690
743
|
readonly getSmartAlbum: (id: string, opts?: {
|
|
691
744
|
since?: string;
|
|
@@ -770,6 +823,7 @@ declare const CatalystEndpoint: {
|
|
|
770
823
|
readonly getContestVotes: (slug: string) => Endpoint;
|
|
771
824
|
readonly searchContest: (state: string, q?: string) => Endpoint;
|
|
772
825
|
readonly reportStatus: (id: string, data: ReportRequest) => Endpoint;
|
|
826
|
+
readonly privacySettings: (data: CatalystPrivacySettingsRequest) => Endpoint;
|
|
773
827
|
};
|
|
774
828
|
|
|
775
829
|
declare const EgeriaEndpoint: {
|
|
@@ -818,4 +872,4 @@ declare class LoggingInterceptor implements RequestInterceptor {
|
|
|
818
872
|
retry(request: Request, error: unknown): Promise<boolean>;
|
|
819
873
|
}
|
|
820
874
|
|
|
821
|
-
export { ApiError, AuthInterceptor, type CatalystAlbum, type CatalystAlbumDisplayMode, CatalystClient, type CatalystContest, type CatalystContestAddCollaboratorRequest, type CatalystContestAward, type CatalystContestCollaborator, type CatalystContestPolls, type CatalystContestRank, type CatalystContestRemoveCollaboratorRequest, type CatalystCreateAlbumRequest, type CatalystCreateContestRequest, type CatalystCreateFleetMedia, type CatalystCreateFleetRequest, type CatalystCreateFleetSticker, type CatalystCreateFleetText, type CatalystCreateSmartAlbumRequest, type CatalystCreateStatusRequest, type CatalystCustomReaction, type CatalystEditAlbumRequest, type CatalystEditContestRequest, type CatalystEditSmartAlbumRequest, type CatalystEditStatusRequest, CatalystEndpoint, CatalystError, type CatalystFleet, type CatalystFleetMedia, type CatalystFleetRing, type CatalystFleetSticker, type CatalystFleetText, type CatalystFleetViewer, type CatalystInsertToAlbumRequest, type CatalystMediaWithMetadata, type CatalystReaction, type CatalystReactions, type CatalystRelationshipRequest, type CatalystRelationships, type CatalystRemoveFromAlbumRequest, type CatalystSetContestAwardRequest, type CatalystSmartAlbum, type CatalystSmartAlbums, type CatalystStatus, type CatalystStatusPrivacy, type CatalystStatusWrapper, type CatalystStatuses, CatalystTS, type CatalystTSOptions, type CatalystUnsetContestAwardRequest, type CatalystUserVoteRights, EgeriaClient, EgeriaEndpoint, type EgeriaUpdateProfileRequest, type EgeriaUser, type EgeriaUserProfile, type EgeriaUserWrapper, type EgeriaUsers, type Endpoint, HttpClient, type HttpMethod, ISSUER_CATALYST_SYSTEM_MESSAGE, ISSUER_CATALYST_USER_MESSAGE, ISSUER_EGERIA_SYSTEM_MESSAGE, type Identity, LoggingInterceptor, type Media, MediaClient, type MediaDeleteRequest, type MediaDownloadRequest, MediaEndpoint, type MediaMetadata, type MediaUploadUrls, type Notification, type NotificationGroup, type NotificationUnreadCount, type Notifications, OAuth, OAuthError, PKCE, PUBLIC_API_ENDPOINT, PUBLIC_AUTHORIZE_ENDPOINT, PUBLIC_GRAPHQL_ENDPOINT, type ReportRequest, type RequestInterceptor, SteambirdClient, SteambirdEndpoint, type Token, UserAgentInterceptor };
|
|
875
|
+
export { ApiError, AuthInterceptor, type CatalystAlbum, type CatalystAlbumDisplayMode, CatalystClient, type CatalystContest, type CatalystContestAddCollaboratorRequest, type CatalystContestAward, type CatalystContestCollaborator, type CatalystContestPolls, type CatalystContestRank, type CatalystContestRemoveCollaboratorRequest, type CatalystCreateAlbumRequest, type CatalystCreateContestRequest, type CatalystCreateFleetMedia, type CatalystCreateFleetRequest, type CatalystCreateFleetSticker, type CatalystCreateFleetText, type CatalystCreateSmartAlbumRequest, type CatalystCreateStatusRequest, type CatalystCustomReaction, type CatalystEditAlbumRequest, type CatalystEditContestRequest, type CatalystEditSmartAlbumRequest, type CatalystEditStatusRequest, CatalystEndpoint, CatalystError, type CatalystFleet, type CatalystFleetMedia, type CatalystFleetRing, type CatalystFleetSticker, type CatalystFleetText, type CatalystFleetViewer, type CatalystInsertToAlbumRequest, type CatalystMediaWithMetadata, type CatalystPrivacySettings, type CatalystPrivacySettingsRequest, type CatalystReaction, type CatalystReactions, type CatalystRelationshipRequest, type CatalystRelationships, type CatalystRemoveFromAlbumRequest, type CatalystSetContestAwardRequest, type CatalystSmartAlbum, type CatalystSmartAlbums, type CatalystStatus, type CatalystStatusPrivacy, type CatalystStatusWrapper, type CatalystStatuses, CatalystTS, type CatalystTSOptions, type CatalystUnsetContestAwardRequest, type CatalystUserVoteRights, EgeriaClient, EgeriaEndpoint, type EgeriaUpdateProfileRequest, type EgeriaUser, type EgeriaUserProfile, type EgeriaUserWrapper, type EgeriaUsers, type Endpoint, HttpClient, type HttpMethod, ISSUER_CATALYST_SYSTEM_MESSAGE, ISSUER_CATALYST_USER_MESSAGE, ISSUER_EGERIA_SYSTEM_MESSAGE, type Identity, LoggingInterceptor, type Media, MediaClient, type MediaDeleteRequest, type MediaDownloadRequest, MediaEndpoint, type MediaMetadata, type MediaUploadUrls, type Notification, type NotificationGroup, type NotificationUnreadCount, type Notifications, OAuth, OAuthError, PKCE, PUBLIC_API_ENDPOINT, PUBLIC_AUTHORIZE_ENDPOINT, PUBLIC_GRAPHQL_ENDPOINT, type ReportRequest, type RequestInterceptor, SteambirdClient, SteambirdEndpoint, type Token, UserAgentInterceptor };
|
package/dist/index.js
CHANGED
|
@@ -222,6 +222,26 @@ var CatalystEndpoint = {
|
|
|
222
222
|
remove(data) {
|
|
223
223
|
return { path: "/catalyst/v1/relationships", method: "DELETE", body: data };
|
|
224
224
|
},
|
|
225
|
+
followings(username, opts) {
|
|
226
|
+
return {
|
|
227
|
+
path: `/catalyst/v1/relationships/by/username/${username}/followings`,
|
|
228
|
+
method: "GET",
|
|
229
|
+
queryParameters: opts?.page != null ? { page: String(opts.page) } : void 0
|
|
230
|
+
};
|
|
231
|
+
},
|
|
232
|
+
followers(username, opts) {
|
|
233
|
+
return {
|
|
234
|
+
path: `/catalyst/v1/relationships/by/username/${username}/followers`,
|
|
235
|
+
method: "GET",
|
|
236
|
+
queryParameters: opts?.page != null ? { page: String(opts.page) } : void 0
|
|
237
|
+
};
|
|
238
|
+
},
|
|
239
|
+
relationshipCounts(username) {
|
|
240
|
+
return {
|
|
241
|
+
path: `/catalyst/v1/relationships/by/username/${username}/counts`,
|
|
242
|
+
method: "GET"
|
|
243
|
+
};
|
|
244
|
+
},
|
|
225
245
|
createSmartAlbum(data) {
|
|
226
246
|
return { path: "/catalyst/v1/smart-album", method: "POST", body: data };
|
|
227
247
|
},
|
|
@@ -534,6 +554,13 @@ var CatalystEndpoint = {
|
|
|
534
554
|
method: "POST",
|
|
535
555
|
body: data
|
|
536
556
|
};
|
|
557
|
+
},
|
|
558
|
+
privacySettings(data) {
|
|
559
|
+
return {
|
|
560
|
+
path: "/catalyst/v1/privacy/settings",
|
|
561
|
+
method: "POST",
|
|
562
|
+
body: data
|
|
563
|
+
};
|
|
537
564
|
}
|
|
538
565
|
};
|
|
539
566
|
|
|
@@ -585,6 +612,15 @@ var CatalystClient = class {
|
|
|
585
612
|
remove(data) {
|
|
586
613
|
return this.http.requestVoid(CatalystEndpoint.remove(data));
|
|
587
614
|
}
|
|
615
|
+
followings(id, opts) {
|
|
616
|
+
return this.http.request(CatalystEndpoint.followings(id, opts));
|
|
617
|
+
}
|
|
618
|
+
followers(id, opts) {
|
|
619
|
+
return this.http.request(CatalystEndpoint.followers(id, opts));
|
|
620
|
+
}
|
|
621
|
+
relationshipCounts(id) {
|
|
622
|
+
return this.http.request(CatalystEndpoint.relationshipCounts(id));
|
|
623
|
+
}
|
|
588
624
|
// Smart Albums
|
|
589
625
|
createSmartAlbum(data) {
|
|
590
626
|
return this.http.request(CatalystEndpoint.createSmartAlbum(data));
|
|
@@ -761,6 +797,10 @@ var CatalystClient = class {
|
|
|
761
797
|
reportStatus(id, data) {
|
|
762
798
|
return this.http.requestVoid(CatalystEndpoint.reportStatus(id, data));
|
|
763
799
|
}
|
|
800
|
+
// privacy
|
|
801
|
+
privacySettings(data) {
|
|
802
|
+
return this.http.request(CatalystEndpoint.privacySettings(data));
|
|
803
|
+
}
|
|
764
804
|
};
|
|
765
805
|
|
|
766
806
|
// src/endpoints/egeriaEndpoint.ts
|
package/dist/index.mjs
CHANGED
|
@@ -173,6 +173,26 @@ var CatalystEndpoint = {
|
|
|
173
173
|
remove(data) {
|
|
174
174
|
return { path: "/catalyst/v1/relationships", method: "DELETE", body: data };
|
|
175
175
|
},
|
|
176
|
+
followings(username, opts) {
|
|
177
|
+
return {
|
|
178
|
+
path: `/catalyst/v1/relationships/by/username/${username}/followings`,
|
|
179
|
+
method: "GET",
|
|
180
|
+
queryParameters: opts?.page != null ? { page: String(opts.page) } : void 0
|
|
181
|
+
};
|
|
182
|
+
},
|
|
183
|
+
followers(username, opts) {
|
|
184
|
+
return {
|
|
185
|
+
path: `/catalyst/v1/relationships/by/username/${username}/followers`,
|
|
186
|
+
method: "GET",
|
|
187
|
+
queryParameters: opts?.page != null ? { page: String(opts.page) } : void 0
|
|
188
|
+
};
|
|
189
|
+
},
|
|
190
|
+
relationshipCounts(username) {
|
|
191
|
+
return {
|
|
192
|
+
path: `/catalyst/v1/relationships/by/username/${username}/counts`,
|
|
193
|
+
method: "GET"
|
|
194
|
+
};
|
|
195
|
+
},
|
|
176
196
|
createSmartAlbum(data) {
|
|
177
197
|
return { path: "/catalyst/v1/smart-album", method: "POST", body: data };
|
|
178
198
|
},
|
|
@@ -485,6 +505,13 @@ var CatalystEndpoint = {
|
|
|
485
505
|
method: "POST",
|
|
486
506
|
body: data
|
|
487
507
|
};
|
|
508
|
+
},
|
|
509
|
+
privacySettings(data) {
|
|
510
|
+
return {
|
|
511
|
+
path: "/catalyst/v1/privacy/settings",
|
|
512
|
+
method: "POST",
|
|
513
|
+
body: data
|
|
514
|
+
};
|
|
488
515
|
}
|
|
489
516
|
};
|
|
490
517
|
|
|
@@ -536,6 +563,15 @@ var CatalystClient = class {
|
|
|
536
563
|
remove(data) {
|
|
537
564
|
return this.http.requestVoid(CatalystEndpoint.remove(data));
|
|
538
565
|
}
|
|
566
|
+
followings(id, opts) {
|
|
567
|
+
return this.http.request(CatalystEndpoint.followings(id, opts));
|
|
568
|
+
}
|
|
569
|
+
followers(id, opts) {
|
|
570
|
+
return this.http.request(CatalystEndpoint.followers(id, opts));
|
|
571
|
+
}
|
|
572
|
+
relationshipCounts(id) {
|
|
573
|
+
return this.http.request(CatalystEndpoint.relationshipCounts(id));
|
|
574
|
+
}
|
|
539
575
|
// Smart Albums
|
|
540
576
|
createSmartAlbum(data) {
|
|
541
577
|
return this.http.request(CatalystEndpoint.createSmartAlbum(data));
|
|
@@ -712,6 +748,10 @@ var CatalystClient = class {
|
|
|
712
748
|
reportStatus(id, data) {
|
|
713
749
|
return this.http.requestVoid(CatalystEndpoint.reportStatus(id, data));
|
|
714
750
|
}
|
|
751
|
+
// privacy
|
|
752
|
+
privacySettings(data) {
|
|
753
|
+
return this.http.request(CatalystEndpoint.privacySettings(data));
|
|
754
|
+
}
|
|
715
755
|
};
|
|
716
756
|
|
|
717
757
|
// src/endpoints/egeriaEndpoint.ts
|