@abyss-project/main 1.0.6 → 1.0.8
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/api/project.admin.api.d.ts +2 -2
- package/dist/api/project.admin.api.js +4 -2
- package/dist/api/project.api.d.ts +2 -2
- package/dist/api/project.api.js +4 -2
- package/dist/translate/en.translate.d.ts +6 -0
- package/dist/translate/en.translate.js +6 -0
- package/dist/translate/fr.translate.d.ts +6 -0
- package/dist/translate/fr.translate.js +6 -0
- package/dist/types/enum/api-error.enum.d.ts +2 -1
- package/dist/types/enum/api-error.enum.js +1 -0
- package/dist/types/enum/user-notification-content-type.enum.d.ts +8 -1
- package/dist/types/enum/user-notification-content-type.enum.js +2 -1
- package/dist/types/interface/api/requests/project.admin.request.d.ts +3 -0
- package/dist/types/interface/api/requests/project.request.d.ts +3 -0
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ICreateProjectAdminBody, ICreateProjectAdminParams, ICreateProjectAdminResponse, IDeleteProjectAdminParams, IDeleteProjectAdminResponse, IGetProjectAdminParams, IGetProjectAdminResponse, IListProjectAdminParams, IListProjectAdminResponse, IPaginateProjectAdminQuery, IPaginateProjectAdminResponse, IUpdateProjectAdminBody, IUpdateProjectAdminParams, IUpdateProjectAdminResponse } from '../types';
|
|
1
|
+
import { ICreateProjectAdminBody, ICreateProjectAdminParams, ICreateProjectAdminResponse, IDeleteProjectAdminParams, IDeleteProjectAdminQuery, IDeleteProjectAdminResponse, IGetProjectAdminParams, IGetProjectAdminResponse, IListProjectAdminParams, IListProjectAdminResponse, IPaginateProjectAdminQuery, IPaginateProjectAdminResponse, IUpdateProjectAdminBody, IUpdateProjectAdminParams, IUpdateProjectAdminResponse } from '../types';
|
|
2
2
|
export declare const getProjectAdmin: (params: IGetProjectAdminParams) => Promise<IGetProjectAdminResponse>;
|
|
3
3
|
export declare const listProjectAdmin: (params: IListProjectAdminParams) => Promise<IListProjectAdminResponse>;
|
|
4
4
|
export declare const paginateProjectAdmin: (query: IPaginateProjectAdminQuery) => Promise<IPaginateProjectAdminResponse>;
|
|
5
|
-
export declare const deleteProjectAdmin: (params: IDeleteProjectAdminParams) => Promise<IDeleteProjectAdminResponse>;
|
|
5
|
+
export declare const deleteProjectAdmin: (params: IDeleteProjectAdminParams, query: IDeleteProjectAdminQuery) => Promise<IDeleteProjectAdminResponse>;
|
|
6
6
|
export declare const updateProjectAdmin: (params: IUpdateProjectAdminParams, body: IUpdateProjectAdminBody) => Promise<IUpdateProjectAdminResponse>;
|
|
7
7
|
export declare const createProjectAdmin: (params: ICreateProjectAdminParams, body: ICreateProjectAdminBody) => Promise<ICreateProjectAdminResponse>;
|
|
@@ -17,8 +17,10 @@ const paginateProjectAdmin = async (query) => {
|
|
|
17
17
|
})).data;
|
|
18
18
|
};
|
|
19
19
|
exports.paginateProjectAdmin = paginateProjectAdmin;
|
|
20
|
-
const deleteProjectAdmin = async (params) => {
|
|
21
|
-
return (await __1.AbyssCore.axios.delete(`project/admin/${params.projectId}
|
|
20
|
+
const deleteProjectAdmin = async (params, query) => {
|
|
21
|
+
return (await __1.AbyssCore.axios.delete(`project/admin/${params.projectId}`, {
|
|
22
|
+
params: query,
|
|
23
|
+
})).data;
|
|
22
24
|
};
|
|
23
25
|
exports.deleteProjectAdmin = deleteProjectAdmin;
|
|
24
26
|
const updateProjectAdmin = async (params, body) => {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ICreateProjectBody, ICreateProjectResponse, ICreateSubscriptionProjectBody, ICreateSubscriptionProjectParams, ICreateSubscriptionProjectResponse, IDeleteProjectParams, IDeleteProjectResponse, IGetMetricsProjectParams, IGetMetricsProjectResponse, IGetProjectParams, IGetProjectResponse, ILeaveProjectParams, ILeaveProjectResponse, IListProjectResponse, IPaginateProjectQuery, IPaginateProjectResponse, IPaginateTransactionProjectParams, IPaginateTransactionProjectQuery, IPaginateTransactionProjectResponse, IRenewSubscriptionProjectParams, IRenewSubscriptionProjectResponse, ISetOwnershipProjectBody, ISetOwnershipProjectParams, ISetOwnershipProjectResponse, IUpdateProjectBody, IUpdateProjectParams, IUpdateProjectResponse, IUpdateSubscriptionProjectBody, IUpdateSubscriptionProjectParams, IUpdateSubscriptionProjectResponse } from '../types';
|
|
1
|
+
import { ICreateProjectBody, ICreateProjectResponse, ICreateSubscriptionProjectBody, ICreateSubscriptionProjectParams, ICreateSubscriptionProjectResponse, IDeleteProjectQuery, IDeleteProjectParams, IDeleteProjectResponse, IGetMetricsProjectParams, IGetMetricsProjectResponse, IGetProjectParams, IGetProjectResponse, ILeaveProjectParams, ILeaveProjectResponse, IListProjectResponse, IPaginateProjectQuery, IPaginateProjectResponse, IPaginateTransactionProjectParams, IPaginateTransactionProjectQuery, IPaginateTransactionProjectResponse, IRenewSubscriptionProjectParams, IRenewSubscriptionProjectResponse, ISetOwnershipProjectBody, ISetOwnershipProjectParams, ISetOwnershipProjectResponse, IUpdateProjectBody, IUpdateProjectParams, IUpdateProjectResponse, IUpdateSubscriptionProjectBody, IUpdateSubscriptionProjectParams, IUpdateSubscriptionProjectResponse } from '../types';
|
|
2
2
|
export declare const getProject: (params: IGetProjectParams) => Promise<IGetProjectResponse>;
|
|
3
3
|
export declare const getMetricsProject: (params: IGetMetricsProjectParams) => Promise<IGetMetricsProjectResponse>;
|
|
4
4
|
export declare const paginateProject: (query: IPaginateProjectQuery) => Promise<IPaginateProjectResponse>;
|
|
5
5
|
export declare const paginateTransactionProject: (params: IPaginateTransactionProjectParams, query: IPaginateTransactionProjectQuery) => Promise<IPaginateTransactionProjectResponse>;
|
|
6
6
|
export declare const listProject: () => Promise<IListProjectResponse>;
|
|
7
|
-
export declare const deleteProject: (params: IDeleteProjectParams) => Promise<IDeleteProjectResponse>;
|
|
7
|
+
export declare const deleteProject: (params: IDeleteProjectParams, query: IDeleteProjectQuery) => Promise<IDeleteProjectResponse>;
|
|
8
8
|
export declare const updateProject: (params: IUpdateProjectParams, body: IUpdateProjectBody) => Promise<IUpdateProjectResponse>;
|
|
9
9
|
export declare const createProject: (body: ICreateProjectBody) => Promise<ICreateProjectResponse>;
|
|
10
10
|
export declare const leaveProject: (params: ILeaveProjectParams) => Promise<ILeaveProjectResponse>;
|
package/dist/api/project.api.js
CHANGED
|
@@ -24,8 +24,10 @@ const listProject = async () => {
|
|
|
24
24
|
return (await __1.AbyssCore.axios.get(`project/list`)).data;
|
|
25
25
|
};
|
|
26
26
|
exports.listProject = listProject;
|
|
27
|
-
const deleteProject = async (params) => {
|
|
28
|
-
return (await __1.AbyssCore.axios.delete(`project/${params.projectId}
|
|
27
|
+
const deleteProject = async (params, query) => {
|
|
28
|
+
return (await __1.AbyssCore.axios.delete(`project/${params.projectId}`, {
|
|
29
|
+
params: query,
|
|
30
|
+
})).data;
|
|
29
31
|
};
|
|
30
32
|
exports.deleteProject = deleteProject;
|
|
31
33
|
const updateProject = async (params, body) => {
|
|
@@ -176,5 +176,11 @@ exports.enTranslation = {
|
|
|
176
176
|
content: `The connection with bank "{bankName}" has expired!`,
|
|
177
177
|
},
|
|
178
178
|
},
|
|
179
|
+
[types_1.AbyssService.ABYSS_SPOTLIGHT]: {
|
|
180
|
+
[types_1.UserNotificationContentType.SPOTLIGHT_PROJECT_NEW_POST]: {
|
|
181
|
+
title: 'New post',
|
|
182
|
+
content: 'A new post has been published in the project "{projectName}"',
|
|
183
|
+
},
|
|
184
|
+
},
|
|
179
185
|
},
|
|
180
186
|
};
|
|
@@ -176,5 +176,11 @@ exports.frTranslation = {
|
|
|
176
176
|
content: `La connexion avec la banque "{bankName}" a expiré !`,
|
|
177
177
|
},
|
|
178
178
|
},
|
|
179
|
+
[types_1.AbyssService.ABYSS_SPOTLIGHT]: {
|
|
180
|
+
[types_1.UserNotificationContentType.SPOTLIGHT_PROJECT_NEW_POST]: {
|
|
181
|
+
title: 'Nouveau post',
|
|
182
|
+
content: 'Un nouveau post a été publié dans le projet "{projectName}"',
|
|
183
|
+
},
|
|
184
|
+
},
|
|
179
185
|
},
|
|
180
186
|
};
|
|
@@ -34,5 +34,6 @@ export declare enum Code {
|
|
|
34
34
|
notEnoughSpace = "not_enough_space",
|
|
35
35
|
fileNotExists = "file_no_exists",
|
|
36
36
|
fileTooBig = "file_too_big",
|
|
37
|
-
unsubscribeNewsletter = "unsubscribe_newsletter"
|
|
37
|
+
unsubscribeNewsletter = "unsubscribe_newsletter",
|
|
38
|
+
unableToDeleteSpotlightProjectExist = "unable_to_delete_spotlight_project_exist"
|
|
38
39
|
}
|
|
@@ -40,4 +40,5 @@ var Code;
|
|
|
40
40
|
Code["fileNotExists"] = "file_no_exists";
|
|
41
41
|
Code["fileTooBig"] = "file_too_big";
|
|
42
42
|
Code["unsubscribeNewsletter"] = "unsubscribe_newsletter";
|
|
43
|
+
Code["unableToDeleteSpotlightProjectExist"] = "unable_to_delete_spotlight_project_exist";
|
|
43
44
|
})(Code = exports.Code || (exports.Code = {}));
|
|
@@ -38,7 +38,8 @@ export declare enum UserNotificationContentType {
|
|
|
38
38
|
CHANGE_OWNER_EVENT = "change-owner-event",
|
|
39
39
|
CREATE_POLL_EVENT = "create-poll-event",
|
|
40
40
|
BANK_CONNECTION_EXPIRE = "bank-connection-expire",
|
|
41
|
-
BANK_CONNECTION_SUCCESS = "bank-connection-success"
|
|
41
|
+
BANK_CONNECTION_SUCCESS = "bank-connection-success",
|
|
42
|
+
SPOTLIGHT_PROJECT_NEW_POST = "spotlight-project-new-post"
|
|
42
43
|
}
|
|
43
44
|
export declare class UserNotificationContentTypeData implements Record<UserNotificationContentType, Record<string, string>> {
|
|
44
45
|
[UserNotificationContentType.USER_CREDIT_PURCHASE]: {
|
|
@@ -276,4 +277,10 @@ export declare class UserNotificationContentTypeData implements Record<UserNotif
|
|
|
276
277
|
bankName: string;
|
|
277
278
|
logoUrl?: string;
|
|
278
279
|
};
|
|
280
|
+
[UserNotificationContentType.SPOTLIGHT_PROJECT_NEW_POST]: {
|
|
281
|
+
projectId: string;
|
|
282
|
+
projectName: string;
|
|
283
|
+
postTitle: string;
|
|
284
|
+
projectSlug: string;
|
|
285
|
+
};
|
|
279
286
|
}
|
|
@@ -43,8 +43,9 @@ var UserNotificationContentType;
|
|
|
43
43
|
UserNotificationContentType["CREATE_POLL_EVENT"] = "create-poll-event";
|
|
44
44
|
UserNotificationContentType["BANK_CONNECTION_EXPIRE"] = "bank-connection-expire";
|
|
45
45
|
UserNotificationContentType["BANK_CONNECTION_SUCCESS"] = "bank-connection-success";
|
|
46
|
+
UserNotificationContentType["SPOTLIGHT_PROJECT_NEW_POST"] = "spotlight-project-new-post";
|
|
46
47
|
})(UserNotificationContentType = exports.UserNotificationContentType || (exports.UserNotificationContentType = {}));
|
|
47
48
|
class UserNotificationContentTypeData {
|
|
48
49
|
}
|
|
49
50
|
exports.UserNotificationContentTypeData = UserNotificationContentTypeData;
|
|
50
|
-
UserNotificationContentType.USER_CREDIT_PURCHASE, UserNotificationContentType.USER_TICKET_RESPONSE, UserNotificationContentType.INVITE_USER_PROJECT, UserNotificationContentType.PROJECT_SET_OWNERSHIP, UserNotificationContentType.USER_SUBSCRIPTION_NO_FUNDS_AUTO_RENEW_DISABLED, UserNotificationContentType.USER_SUBSCRIPTION_AUTO_RENEW_ENABLED, UserNotificationContentType.USER_SUBSCRIPTION_AUTO_RENEW_DISABLED, UserNotificationContentType.PROJECT_SUBSCRIPTION_NO_FUNDS_AUTO_RENEW_DISABLED, UserNotificationContentType.PROJECT_SUBSCRIPTION_AUTO_RENEW_ENABLED, UserNotificationContentType.PROJECT_SUBSCRIPTION_AUTO_RENEW_DISABLED, UserNotificationContentType.USER_SUBSCRIPTION_EXPIRATION, UserNotificationContentType.PROJECT_SUBSCRIPTION_EXPIRATION, UserNotificationContentType.USER_SUBSCRIPTION_EXPIRATION_WITHOUT_AUTO_RENEW, UserNotificationContentType.PROJECT_SUBSCRIPTION_EXPIRATION_WITHOUT_AUTO_RENEW, UserNotificationContentType.USER_SUBSCRIPTION_RENEW_SUCCESS, UserNotificationContentType.PROJECT_SUBSCRIPTION_RENEW_SUCCESS, UserNotificationContentType.USER_SUBSCRIPTION_AUTO_RENEW_SUCCESS, UserNotificationContentType.PROJECT_SUBSCRIPTION_AUTO_RENEW_SUCCESS, UserNotificationContentType.USER_SUBSCRIPTION_CREATE, UserNotificationContentType.PROJECT_SUBSCRIPTION_CREATE, UserNotificationContentType.USER_SUBSCRIPTION_CREATE_WITHOUT_AUTO_RENEW, UserNotificationContentType.PROJECT_SUBSCRIPTION_CREATE_WITHOUT_AUTO_RENEW, UserNotificationContentType.CREATE_CLOUD_SHARE, UserNotificationContentType.DELETE_CLOUD_SHARE, UserNotificationContentType.CREATE_CLOUD, UserNotificationContentType.DELETE_CLOUD, UserNotificationContentType.ADMIN_CREATE_CLOUD, UserNotificationContentType.ADMIN_DELETE_CLOUD, UserNotificationContentType.JOIN_CLOUD_SHARE, UserNotificationContentType.DECLINE_CLOUD_SHARE, UserNotificationContentType.LEAVE_CLOUD_SHARE, UserNotificationContentType.WEBHOOK_UNDELIVERABLE, UserNotificationContentType.WEBHOOK_UNDELIVERABLE_DISABLE, UserNotificationContentType.CRON_TASK_FAILED, UserNotificationContentType.CRON_TASK_DISABLED, UserNotificationContentType.INVITE_EVENT, UserNotificationContentType.CHANGE_OWNER_EVENT, UserNotificationContentType.CREATE_POLL_EVENT, UserNotificationContentType.BANK_CONNECTION_SUCCESS, UserNotificationContentType.BANK_CONNECTION_EXPIRE;
|
|
51
|
+
UserNotificationContentType.USER_CREDIT_PURCHASE, UserNotificationContentType.USER_TICKET_RESPONSE, UserNotificationContentType.INVITE_USER_PROJECT, UserNotificationContentType.PROJECT_SET_OWNERSHIP, UserNotificationContentType.USER_SUBSCRIPTION_NO_FUNDS_AUTO_RENEW_DISABLED, UserNotificationContentType.USER_SUBSCRIPTION_AUTO_RENEW_ENABLED, UserNotificationContentType.USER_SUBSCRIPTION_AUTO_RENEW_DISABLED, UserNotificationContentType.PROJECT_SUBSCRIPTION_NO_FUNDS_AUTO_RENEW_DISABLED, UserNotificationContentType.PROJECT_SUBSCRIPTION_AUTO_RENEW_ENABLED, UserNotificationContentType.PROJECT_SUBSCRIPTION_AUTO_RENEW_DISABLED, UserNotificationContentType.USER_SUBSCRIPTION_EXPIRATION, UserNotificationContentType.PROJECT_SUBSCRIPTION_EXPIRATION, UserNotificationContentType.USER_SUBSCRIPTION_EXPIRATION_WITHOUT_AUTO_RENEW, UserNotificationContentType.PROJECT_SUBSCRIPTION_EXPIRATION_WITHOUT_AUTO_RENEW, UserNotificationContentType.USER_SUBSCRIPTION_RENEW_SUCCESS, UserNotificationContentType.PROJECT_SUBSCRIPTION_RENEW_SUCCESS, UserNotificationContentType.USER_SUBSCRIPTION_AUTO_RENEW_SUCCESS, UserNotificationContentType.PROJECT_SUBSCRIPTION_AUTO_RENEW_SUCCESS, UserNotificationContentType.USER_SUBSCRIPTION_CREATE, UserNotificationContentType.PROJECT_SUBSCRIPTION_CREATE, UserNotificationContentType.USER_SUBSCRIPTION_CREATE_WITHOUT_AUTO_RENEW, UserNotificationContentType.PROJECT_SUBSCRIPTION_CREATE_WITHOUT_AUTO_RENEW, UserNotificationContentType.CREATE_CLOUD_SHARE, UserNotificationContentType.DELETE_CLOUD_SHARE, UserNotificationContentType.CREATE_CLOUD, UserNotificationContentType.DELETE_CLOUD, UserNotificationContentType.ADMIN_CREATE_CLOUD, UserNotificationContentType.ADMIN_DELETE_CLOUD, UserNotificationContentType.JOIN_CLOUD_SHARE, UserNotificationContentType.DECLINE_CLOUD_SHARE, UserNotificationContentType.LEAVE_CLOUD_SHARE, UserNotificationContentType.WEBHOOK_UNDELIVERABLE, UserNotificationContentType.WEBHOOK_UNDELIVERABLE_DISABLE, UserNotificationContentType.CRON_TASK_FAILED, UserNotificationContentType.CRON_TASK_DISABLED, UserNotificationContentType.INVITE_EVENT, UserNotificationContentType.CHANGE_OWNER_EVENT, UserNotificationContentType.CREATE_POLL_EVENT, UserNotificationContentType.BANK_CONNECTION_SUCCESS, UserNotificationContentType.BANK_CONNECTION_EXPIRE, UserNotificationContentType.SPOTLIGHT_PROJECT_NEW_POST;
|
|
@@ -20,6 +20,9 @@ export interface ICreateProjectAdminParams extends core.ParamsDictionary {
|
|
|
20
20
|
export interface IDeleteProjectAdminParams extends core.ParamsDictionary {
|
|
21
21
|
projectId: string;
|
|
22
22
|
}
|
|
23
|
+
export interface IDeleteProjectAdminQuery {
|
|
24
|
+
deleteSpotlightProject?: boolean;
|
|
25
|
+
}
|
|
23
26
|
export interface IUpdateProjectAdminParams extends core.ParamsDictionary {
|
|
24
27
|
projectId: string;
|
|
25
28
|
}
|
|
@@ -23,6 +23,9 @@ export type ICreateProjectBody = {
|
|
|
23
23
|
export interface IDeleteProjectParams extends core.ParamsDictionary {
|
|
24
24
|
projectId: string;
|
|
25
25
|
}
|
|
26
|
+
export interface IDeleteProjectQuery {
|
|
27
|
+
deleteSpotlightProject?: boolean;
|
|
28
|
+
}
|
|
26
29
|
export interface IUpdateProjectParams extends core.ParamsDictionary {
|
|
27
30
|
projectId: string;
|
|
28
31
|
}
|