@natsuneko-laboratory/catalyst-sdk 0.4.0 → 0.4.1
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 +4 -2
- package/dist/index.d.ts +4 -2
- package/dist/index.js +13 -4
- package/dist/index.mjs +13 -4
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -570,7 +570,8 @@ declare class CatalystClient {
|
|
|
570
570
|
contests: CatalystContest[];
|
|
571
571
|
}>;
|
|
572
572
|
reportStatus(id: string, data: ReportRequest): Promise<void>;
|
|
573
|
-
|
|
573
|
+
getPrivacySettings(): Promise<CatalystPrivacySettings>;
|
|
574
|
+
updatePrivacySettings(data: CatalystPrivacySettingsRequest): Promise<CatalystPrivacySettings>;
|
|
574
575
|
}
|
|
575
576
|
|
|
576
577
|
declare class EgeriaClient {
|
|
@@ -823,7 +824,8 @@ declare const CatalystEndpoint: {
|
|
|
823
824
|
readonly getContestVotes: (slug: string) => Endpoint;
|
|
824
825
|
readonly searchContest: (state: string, q?: string) => Endpoint;
|
|
825
826
|
readonly reportStatus: (id: string, data: ReportRequest) => Endpoint;
|
|
826
|
-
readonly
|
|
827
|
+
readonly getPrivacySettings: () => Endpoint;
|
|
828
|
+
readonly updatePrivacySettings: (data: CatalystPrivacySettingsRequest) => Endpoint;
|
|
827
829
|
};
|
|
828
830
|
|
|
829
831
|
declare const EgeriaEndpoint: {
|
package/dist/index.d.ts
CHANGED
|
@@ -570,7 +570,8 @@ declare class CatalystClient {
|
|
|
570
570
|
contests: CatalystContest[];
|
|
571
571
|
}>;
|
|
572
572
|
reportStatus(id: string, data: ReportRequest): Promise<void>;
|
|
573
|
-
|
|
573
|
+
getPrivacySettings(): Promise<CatalystPrivacySettings>;
|
|
574
|
+
updatePrivacySettings(data: CatalystPrivacySettingsRequest): Promise<CatalystPrivacySettings>;
|
|
574
575
|
}
|
|
575
576
|
|
|
576
577
|
declare class EgeriaClient {
|
|
@@ -823,7 +824,8 @@ declare const CatalystEndpoint: {
|
|
|
823
824
|
readonly getContestVotes: (slug: string) => Endpoint;
|
|
824
825
|
readonly searchContest: (state: string, q?: string) => Endpoint;
|
|
825
826
|
readonly reportStatus: (id: string, data: ReportRequest) => Endpoint;
|
|
826
|
-
readonly
|
|
827
|
+
readonly getPrivacySettings: () => Endpoint;
|
|
828
|
+
readonly updatePrivacySettings: (data: CatalystPrivacySettingsRequest) => Endpoint;
|
|
827
829
|
};
|
|
828
830
|
|
|
829
831
|
declare const EgeriaEndpoint: {
|
package/dist/index.js
CHANGED
|
@@ -555,10 +555,16 @@ var CatalystEndpoint = {
|
|
|
555
555
|
body: data
|
|
556
556
|
};
|
|
557
557
|
},
|
|
558
|
-
|
|
558
|
+
getPrivacySettings() {
|
|
559
559
|
return {
|
|
560
560
|
path: "/catalyst/v1/privacy/settings",
|
|
561
|
-
method: "
|
|
561
|
+
method: "GET"
|
|
562
|
+
};
|
|
563
|
+
},
|
|
564
|
+
updatePrivacySettings(data) {
|
|
565
|
+
return {
|
|
566
|
+
path: "/catalyst/v1/privacy/settings",
|
|
567
|
+
method: "PATCH",
|
|
562
568
|
body: data
|
|
563
569
|
};
|
|
564
570
|
}
|
|
@@ -798,8 +804,11 @@ var CatalystClient = class {
|
|
|
798
804
|
return this.http.requestVoid(CatalystEndpoint.reportStatus(id, data));
|
|
799
805
|
}
|
|
800
806
|
// privacy
|
|
801
|
-
|
|
802
|
-
return this.http.request(CatalystEndpoint.
|
|
807
|
+
getPrivacySettings() {
|
|
808
|
+
return this.http.request(CatalystEndpoint.getPrivacySettings());
|
|
809
|
+
}
|
|
810
|
+
updatePrivacySettings(data) {
|
|
811
|
+
return this.http.request(CatalystEndpoint.updatePrivacySettings(data));
|
|
803
812
|
}
|
|
804
813
|
};
|
|
805
814
|
|
package/dist/index.mjs
CHANGED
|
@@ -506,10 +506,16 @@ var CatalystEndpoint = {
|
|
|
506
506
|
body: data
|
|
507
507
|
};
|
|
508
508
|
},
|
|
509
|
-
|
|
509
|
+
getPrivacySettings() {
|
|
510
510
|
return {
|
|
511
511
|
path: "/catalyst/v1/privacy/settings",
|
|
512
|
-
method: "
|
|
512
|
+
method: "GET"
|
|
513
|
+
};
|
|
514
|
+
},
|
|
515
|
+
updatePrivacySettings(data) {
|
|
516
|
+
return {
|
|
517
|
+
path: "/catalyst/v1/privacy/settings",
|
|
518
|
+
method: "PATCH",
|
|
513
519
|
body: data
|
|
514
520
|
};
|
|
515
521
|
}
|
|
@@ -749,8 +755,11 @@ var CatalystClient = class {
|
|
|
749
755
|
return this.http.requestVoid(CatalystEndpoint.reportStatus(id, data));
|
|
750
756
|
}
|
|
751
757
|
// privacy
|
|
752
|
-
|
|
753
|
-
return this.http.request(CatalystEndpoint.
|
|
758
|
+
getPrivacySettings() {
|
|
759
|
+
return this.http.request(CatalystEndpoint.getPrivacySettings());
|
|
760
|
+
}
|
|
761
|
+
updatePrivacySettings(data) {
|
|
762
|
+
return this.http.request(CatalystEndpoint.updatePrivacySettings(data));
|
|
754
763
|
}
|
|
755
764
|
};
|
|
756
765
|
|