@communecter/cocolight-api-client 1.0.100 → 1.0.102
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/cocolight-api-client.browser.js +1 -1
- package/dist/cocolight-api-client.cjs +1 -1
- package/dist/cocolight-api-client.mjs.js +1 -1
- package/dist/cocolight-api-client.vite.mjs.js +1 -1
- package/dist/cocolight-api-client.vite.mjs.js.map +1 -1
- package/package.json +1 -1
- package/src/api/BaseEntity.ts +1 -1
- package/src/api/serverDataType/Poi.ts +0 -4
- package/src/endpoints.module.ts +1 -1
- package/types/api/serverDataType/Poi.d.ts +0 -4
- package/types/endpoints.module.d.ts +2 -24
package/package.json
CHANGED
package/src/api/BaseEntity.ts
CHANGED
|
@@ -2953,7 +2953,7 @@ export class BaseEntity<TServerData = any> {
|
|
|
2953
2953
|
* @throws {Error} Si une erreur se produit lors de la création de la news.
|
|
2954
2954
|
*/
|
|
2955
2955
|
async news(newsData: NewsInput = {}): Promise<News> {
|
|
2956
|
-
if(!this.isConnected){
|
|
2956
|
+
if(!newsData?.id && !this.isConnected){
|
|
2957
2957
|
throw new ApiError("Vous devez être connecté.", 401);
|
|
2958
2958
|
}
|
|
2959
2959
|
|
|
@@ -46,8 +46,6 @@ export interface PoiItemJson {
|
|
|
46
46
|
profilMediumImageUrl?: string;
|
|
47
47
|
profilThumbImageUrl?: string;
|
|
48
48
|
profilMarkerImageUrl?: string;
|
|
49
|
-
email?: string;
|
|
50
|
-
url?: string;
|
|
51
49
|
[key: string]: unknown;
|
|
52
50
|
}
|
|
53
51
|
|
|
@@ -73,7 +71,5 @@ export interface PoiItemNormalized {
|
|
|
73
71
|
profilMediumImageUrl?: string;
|
|
74
72
|
profilThumbImageUrl?: string;
|
|
75
73
|
profilMarkerImageUrl?: string;
|
|
76
|
-
email?: string;
|
|
77
|
-
url?: string;
|
|
78
74
|
[key: string]: unknown;
|
|
79
75
|
}
|