@abyss-project/main 1.0.108 → 1.0.110
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/auth.api.d.ts +3 -1
- package/dist/api/auth.api.js +13 -1
- package/dist/api/config.admin.api.d.ts +2 -0
- package/dist/api/config.admin.api.js +8 -0
- package/dist/api/index.d.ts +4 -0
- package/dist/api/index.js +4 -0
- package/dist/api/organization-member.api.d.ts +9 -0
- package/dist/api/organization-member.api.js +32 -0
- package/dist/api/organization.admin.api.d.ts +2 -1
- package/dist/api/organization.admin.api.js +5 -1
- package/dist/api/organization.api.d.ts +9 -0
- package/dist/api/organization.api.js +28 -0
- package/dist/api/team.api.d.ts +14 -0
- package/dist/api/team.api.js +52 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.js +16 -0
- package/dist/types/enum/abyss-application-event.enum.d.ts +1 -0
- package/dist/types/enum/abyss-application-event.enum.js +1 -0
- package/dist/types/enum/discord-webhook.enum.d.ts +8 -0
- package/dist/types/enum/discord-webhook.enum.js +13 -0
- package/dist/types/enum/index.d.ts +3 -0
- package/dist/types/enum/index.js +3 -0
- package/dist/types/enum/organization-permission.enum.d.ts +13 -1
- package/dist/types/enum/organization-permission.enum.js +40 -2
- package/dist/types/enum/slack-webhook.enum.d.ts +8 -0
- package/dist/types/enum/slack-webhook.enum.js +13 -0
- package/dist/types/interface/api/index.d.ts +6 -0
- package/dist/types/interface/api/index.js +6 -0
- package/dist/types/interface/api/requests/auth.request.d.ts +2 -0
- package/dist/types/interface/api/requests/organization-integration-webhook.request.d.ts +71 -0
- package/dist/types/interface/api/requests/organization-integration-webhook.request.js +2 -0
- package/dist/types/interface/api/requests/organization-member.request.d.ts +28 -0
- package/dist/types/interface/api/requests/organization-member.request.js +2 -0
- package/dist/types/interface/api/requests/organization.admin.request.d.ts +3 -0
- package/dist/types/interface/api/requests/organization.request.d.ts +20 -1
- package/dist/types/interface/api/requests/team.request.d.ts +72 -0
- package/dist/types/interface/api/requests/team.request.js +2 -0
- package/dist/types/interface/api/responses/auth.response.d.ts +4 -2
- package/dist/types/interface/api/responses/config.admin.response.d.ts +7 -0
- package/dist/types/interface/api/responses/config.admin.response.js +2 -0
- package/dist/types/interface/api/responses/organization-member.response.d.ts +30 -0
- package/dist/types/interface/api/responses/organization-member.response.js +2 -0
- package/dist/types/interface/api/responses/organization.admin.response.d.ts +23 -10
- package/dist/types/interface/api/responses/organization.response.d.ts +18 -1
- package/dist/types/interface/api/responses/project-access.admin.response.d.ts +5 -2
- package/dist/types/interface/api/responses/team.response.d.ts +52 -0
- package/dist/types/interface/api/responses/team.response.js +2 -0
- package/dist/types/interface/index.d.ts +5 -0
- package/dist/types/interface/index.js +5 -0
- package/dist/types/interface/models/organization-integration.model.d.ts +24 -0
- package/dist/types/interface/models/organization-integration.model.js +2 -0
- package/dist/types/interface/models/organization-member.model.d.ts +5 -3
- package/dist/types/interface/models/organization.model.d.ts +8 -22
- package/dist/types/interface/models/team-member.model.d.ts +11 -0
- package/dist/types/interface/models/team-member.model.js +2 -0
- package/dist/types/interface/models/team-project-access.model.d.ts +13 -0
- package/dist/types/interface/models/team-project-access.model.js +2 -0
- package/dist/types/interface/models/team.model.d.ts +19 -0
- package/dist/types/interface/models/team.model.js +2 -0
- package/dist/types/interface/models/token-history.model.d.ts +7 -1
- package/package.json +2 -2
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { OrganizationPermission } from '../../../enum';
|
|
2
|
+
export interface IInviteOrganizationMemberParams {
|
|
3
|
+
organizationId: string;
|
|
4
|
+
}
|
|
5
|
+
export interface IInviteOrganizationMemberBody {
|
|
6
|
+
email: string;
|
|
7
|
+
permissions: OrganizationPermission[];
|
|
8
|
+
}
|
|
9
|
+
export interface IListOrganizationMembersParams {
|
|
10
|
+
organizationId: string;
|
|
11
|
+
}
|
|
12
|
+
export interface IUpdateOrganizationMemberParams {
|
|
13
|
+
organizationId: string;
|
|
14
|
+
memberId: string;
|
|
15
|
+
}
|
|
16
|
+
export interface IUpdateOrganizationMemberBody {
|
|
17
|
+
permissions: OrganizationPermission[];
|
|
18
|
+
}
|
|
19
|
+
export interface IRemoveOrganizationMemberParams {
|
|
20
|
+
organizationId: string;
|
|
21
|
+
memberId: string;
|
|
22
|
+
}
|
|
23
|
+
export interface IAcceptOrganizationInvitationParams {
|
|
24
|
+
memberId: string;
|
|
25
|
+
}
|
|
26
|
+
export interface IDeclineOrganizationInvitationParams {
|
|
27
|
+
memberId: string;
|
|
28
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OrganizationIntegrationType } from '../../../enum';
|
|
2
|
-
import { OrganizationIntegrationConfig } from '../../models/organization.model';
|
|
2
|
+
import { OrganizationIntegrationConfig } from '../../models/organization-integration.model';
|
|
3
3
|
export interface ICreateOrganizationBody {
|
|
4
4
|
name: string;
|
|
5
5
|
description?: string | null;
|
|
@@ -23,6 +23,7 @@ export interface ICreateOrganizationIntegrationParams {
|
|
|
23
23
|
export interface ICreateOrganizationIntegrationBody {
|
|
24
24
|
type: OrganizationIntegrationType;
|
|
25
25
|
botToken: string;
|
|
26
|
+
scope: string[];
|
|
26
27
|
teamId?: string | null;
|
|
27
28
|
guildId?: string | null;
|
|
28
29
|
config?: OrganizationIntegrationConfig | null;
|
|
@@ -31,3 +32,21 @@ export interface IDeleteOrganizationIntegrationParams {
|
|
|
31
32
|
organizationId: string;
|
|
32
33
|
type: OrganizationIntegrationType;
|
|
33
34
|
}
|
|
35
|
+
export interface IGetSlackInstallUrlParams {
|
|
36
|
+
organizationId: string;
|
|
37
|
+
}
|
|
38
|
+
export interface ISlackCallbackParams {
|
|
39
|
+
organizationId: string;
|
|
40
|
+
}
|
|
41
|
+
export interface ISlackCallbackBody {
|
|
42
|
+
code: string;
|
|
43
|
+
}
|
|
44
|
+
export interface IGetDiscordInstallUrlParams {
|
|
45
|
+
organizationId: string;
|
|
46
|
+
}
|
|
47
|
+
export interface IDiscordCallbackParams {
|
|
48
|
+
organizationId: string;
|
|
49
|
+
}
|
|
50
|
+
export interface IDiscordCallbackBody {
|
|
51
|
+
code: string;
|
|
52
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { OrganizationPermission, ProjectAccessPermission } from '../../../enum';
|
|
2
|
+
export interface ICreateTeamParams {
|
|
3
|
+
organizationId: string;
|
|
4
|
+
}
|
|
5
|
+
export interface ICreateTeamBody {
|
|
6
|
+
name: string;
|
|
7
|
+
description?: string | null;
|
|
8
|
+
color?: string | null;
|
|
9
|
+
permissions: OrganizationPermission[];
|
|
10
|
+
}
|
|
11
|
+
export interface IGetTeamParams {
|
|
12
|
+
organizationId: string;
|
|
13
|
+
teamId: string;
|
|
14
|
+
}
|
|
15
|
+
export interface IListTeamsParams {
|
|
16
|
+
organizationId: string;
|
|
17
|
+
}
|
|
18
|
+
export interface IUpdateTeamParams {
|
|
19
|
+
organizationId: string;
|
|
20
|
+
teamId: string;
|
|
21
|
+
}
|
|
22
|
+
export interface IUpdateTeamBody {
|
|
23
|
+
name?: string;
|
|
24
|
+
description?: string | null;
|
|
25
|
+
color?: string | null;
|
|
26
|
+
permissions?: OrganizationPermission[];
|
|
27
|
+
}
|
|
28
|
+
export interface IDeleteTeamParams {
|
|
29
|
+
organizationId: string;
|
|
30
|
+
teamId: string;
|
|
31
|
+
}
|
|
32
|
+
export interface IAddTeamMemberParams {
|
|
33
|
+
organizationId: string;
|
|
34
|
+
teamId: string;
|
|
35
|
+
}
|
|
36
|
+
export interface IAddTeamMemberBody {
|
|
37
|
+
organizationMemberId: string;
|
|
38
|
+
}
|
|
39
|
+
export interface IRemoveTeamMemberParams {
|
|
40
|
+
organizationId: string;
|
|
41
|
+
teamId: string;
|
|
42
|
+
teamMemberId: string;
|
|
43
|
+
}
|
|
44
|
+
export interface IListTeamMembersParams {
|
|
45
|
+
organizationId: string;
|
|
46
|
+
teamId: string;
|
|
47
|
+
}
|
|
48
|
+
export interface IAddTeamProjectAccessParams {
|
|
49
|
+
organizationId: string;
|
|
50
|
+
teamId: string;
|
|
51
|
+
}
|
|
52
|
+
export interface IAddTeamProjectAccessBody {
|
|
53
|
+
projectId: string;
|
|
54
|
+
permission: ProjectAccessPermission[];
|
|
55
|
+
}
|
|
56
|
+
export interface IUpdateTeamProjectAccessParams {
|
|
57
|
+
organizationId: string;
|
|
58
|
+
teamId: string;
|
|
59
|
+
teamProjectAccessId: string;
|
|
60
|
+
}
|
|
61
|
+
export interface IUpdateTeamProjectAccessBody {
|
|
62
|
+
permission: ProjectAccessPermission[];
|
|
63
|
+
}
|
|
64
|
+
export interface IRemoveTeamProjectAccessParams {
|
|
65
|
+
organizationId: string;
|
|
66
|
+
teamId: string;
|
|
67
|
+
teamProjectAccessId: string;
|
|
68
|
+
}
|
|
69
|
+
export interface IListTeamProjectAccessParams {
|
|
70
|
+
organizationId: string;
|
|
71
|
+
teamId: string;
|
|
72
|
+
}
|
|
@@ -48,7 +48,9 @@ export interface IGetEmailVerificationTokenAuthData {
|
|
|
48
48
|
email: string;
|
|
49
49
|
}
|
|
50
50
|
export type IGetEmailVerificationTokenAuthResponse = IResponse<IGetEmailVerificationTokenAuthData>;
|
|
51
|
-
export interface
|
|
51
|
+
export interface IGetConnectUrlAuthData {
|
|
52
52
|
connectUrl: string;
|
|
53
53
|
}
|
|
54
|
-
export type IGetConnectUrlGoogleAuthResponse = IResponse<
|
|
54
|
+
export type IGetConnectUrlGoogleAuthResponse = IResponse<IGetConnectUrlAuthData>;
|
|
55
|
+
export type IGetConnectUrlDiscordAuthResponse = IResponse<IGetConnectUrlAuthData>;
|
|
56
|
+
export type IGetConnectUrlSlackAuthResponse = IResponse<IGetConnectUrlAuthData>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { IOrganizationMember } from '../../models/organization-member.model';
|
|
2
|
+
import { IResponse } from '../type-message/response';
|
|
3
|
+
export interface IInviteOrganizationMemberData {
|
|
4
|
+
organizationMember: IOrganizationMember;
|
|
5
|
+
}
|
|
6
|
+
export type IInviteOrganizationMemberResponse = IResponse<IInviteOrganizationMemberData>;
|
|
7
|
+
export interface IListOrganizationMembersData {
|
|
8
|
+
organizationMembers: IOrganizationMember[];
|
|
9
|
+
}
|
|
10
|
+
export type IListOrganizationMembersResponse = IResponse<IListOrganizationMembersData>;
|
|
11
|
+
export interface IUpdateOrganizationMemberData {
|
|
12
|
+
organizationMember: IOrganizationMember;
|
|
13
|
+
}
|
|
14
|
+
export type IUpdateOrganizationMemberResponse = IResponse<IUpdateOrganizationMemberData>;
|
|
15
|
+
export interface IRemoveOrganizationMemberData {
|
|
16
|
+
deleted: boolean;
|
|
17
|
+
}
|
|
18
|
+
export type IRemoveOrganizationMemberResponse = IResponse<IRemoveOrganizationMemberData>;
|
|
19
|
+
export interface IAcceptOrganizationInvitationData {
|
|
20
|
+
organizationMember: IOrganizationMember;
|
|
21
|
+
}
|
|
22
|
+
export type IAcceptOrganizationInvitationResponse = IResponse<IAcceptOrganizationInvitationData>;
|
|
23
|
+
export interface IDeclineOrganizationInvitationData {
|
|
24
|
+
deleted: boolean;
|
|
25
|
+
}
|
|
26
|
+
export type IDeclineOrganizationInvitationResponse = IResponse<IDeclineOrganizationInvitationData>;
|
|
27
|
+
export interface IListMyOrganizationsData {
|
|
28
|
+
organizationMembers: IOrganizationMember[];
|
|
29
|
+
}
|
|
30
|
+
export type IListMyOrganizationsResponse = IResponse<IListMyOrganizationsData>;
|
|
@@ -1,16 +1,29 @@
|
|
|
1
1
|
import { OrganizationIntegrationType } from '../../../enum';
|
|
2
|
-
import { OrganizationIntegrationConfig } from '../../models/organization.model';
|
|
2
|
+
import { OrganizationIntegrationConfig } from '../../models/organization-integration.model';
|
|
3
3
|
import { IResponse } from '../type-message/response';
|
|
4
|
-
export interface
|
|
5
|
-
|
|
4
|
+
export interface IOrganizationIntegrationAdminData {
|
|
5
|
+
id: string;
|
|
6
|
+
organizationId: string;
|
|
7
|
+
type: OrganizationIntegrationType;
|
|
8
|
+
botToken: string;
|
|
9
|
+
scope: string[];
|
|
10
|
+
disabledAt: Date | null;
|
|
11
|
+
teamId: string | null;
|
|
12
|
+
guildId: string | null;
|
|
13
|
+
config: OrganizationIntegrationConfig | null;
|
|
14
|
+
}
|
|
15
|
+
export interface IGetOrganizationAdminData {
|
|
16
|
+
organization: {
|
|
6
17
|
id: string;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
18
|
+
name: string;
|
|
19
|
+
slug: string;
|
|
20
|
+
description: string | null;
|
|
21
|
+
organizationIntegrations: IOrganizationIntegrationAdminData[];
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
export type IGetOrganizationAdminResponse = IResponse<IGetOrganizationAdminData>;
|
|
25
|
+
export interface IGetOrganizationIntegrationAdminData {
|
|
26
|
+
integration: IOrganizationIntegrationAdminData | null;
|
|
14
27
|
}
|
|
15
28
|
export type IGetOrganizationIntegrationAdminResponse = IResponse<IGetOrganizationIntegrationAdminData>;
|
|
16
29
|
export interface IGetUserOAuthMetadataAdminData {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { IOrganization
|
|
1
|
+
import { IOrganization } from '../../models/organization.model';
|
|
2
|
+
import { ISafeOrganizationIntegration, IOrganizationIntegration } from '../../models/organization-integration.model';
|
|
2
3
|
import { IResponse } from '../type-message/response';
|
|
3
4
|
export interface ICreateOrganizationData {
|
|
4
5
|
organization: IOrganization;
|
|
@@ -28,3 +29,19 @@ export interface IDeleteOrganizationIntegrationData {
|
|
|
28
29
|
deleted: boolean;
|
|
29
30
|
}
|
|
30
31
|
export type IDeleteOrganizationIntegrationResponse = IResponse<IDeleteOrganizationIntegrationData>;
|
|
32
|
+
export interface IGetSlackInstallUrlData {
|
|
33
|
+
url: string;
|
|
34
|
+
}
|
|
35
|
+
export type IGetSlackInstallUrlResponse = IResponse<IGetSlackInstallUrlData>;
|
|
36
|
+
export interface IGetDiscordInstallUrlData {
|
|
37
|
+
url: string;
|
|
38
|
+
}
|
|
39
|
+
export type IGetDiscordInstallUrlResponse = IResponse<IGetDiscordInstallUrlData>;
|
|
40
|
+
export interface ISlackCallbackData {
|
|
41
|
+
integration: ISafeOrganizationIntegration;
|
|
42
|
+
}
|
|
43
|
+
export type ISlackCallbackResponse = IResponse<ISlackCallbackData>;
|
|
44
|
+
export interface IDiscordCallbackData {
|
|
45
|
+
integration: ISafeOrganizationIntegration;
|
|
46
|
+
}
|
|
47
|
+
export type IDiscordCallbackResponse = IResponse<IDiscordCallbackData>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BasePaginate } from '..';
|
|
2
|
-
import { ProjectAccessPermission } from '../../../enum';
|
|
2
|
+
import { OAuthAccountType, ProjectAccessPermission } from '../../../enum';
|
|
3
3
|
import { IProjectAccess } from '../../models/project-access.model';
|
|
4
4
|
import { IProjectApplicationAccess } from '../../models/project-application-access.model';
|
|
5
5
|
import { IUser } from '../../models/user.model';
|
|
@@ -60,7 +60,10 @@ export interface IListMembersProjectAccessAdminMember {
|
|
|
60
60
|
name: string | null;
|
|
61
61
|
familyName: string | null;
|
|
62
62
|
permissions: string[];
|
|
63
|
-
oauthProviders:
|
|
63
|
+
oauthProviders: {
|
|
64
|
+
type: OAuthAccountType;
|
|
65
|
+
accountId: string;
|
|
66
|
+
}[];
|
|
64
67
|
}
|
|
65
68
|
export interface IListMembersProjectAccessAdminData {
|
|
66
69
|
members: IListMembersProjectAccessAdminMember[];
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { ITeam } from '../../models/team.model';
|
|
2
|
+
import { ITeamMember } from '../../models/team-member.model';
|
|
3
|
+
import { ITeamProjectAccess } from '../../models/team-project-access.model';
|
|
4
|
+
import { IResponse } from '../type-message/response';
|
|
5
|
+
export interface ICreateTeamData {
|
|
6
|
+
team: ITeam;
|
|
7
|
+
}
|
|
8
|
+
export type ICreateTeamResponse = IResponse<ICreateTeamData>;
|
|
9
|
+
export interface IGetTeamData {
|
|
10
|
+
team: ITeam;
|
|
11
|
+
}
|
|
12
|
+
export type IGetTeamResponse = IResponse<IGetTeamData>;
|
|
13
|
+
export interface IListTeamsData {
|
|
14
|
+
teams: ITeam[];
|
|
15
|
+
}
|
|
16
|
+
export type IListTeamsResponse = IResponse<IListTeamsData>;
|
|
17
|
+
export interface IUpdateTeamData {
|
|
18
|
+
team: ITeam;
|
|
19
|
+
}
|
|
20
|
+
export type IUpdateTeamResponse = IResponse<IUpdateTeamData>;
|
|
21
|
+
export interface IDeleteTeamData {
|
|
22
|
+
deleted: boolean;
|
|
23
|
+
}
|
|
24
|
+
export type IDeleteTeamResponse = IResponse<IDeleteTeamData>;
|
|
25
|
+
export interface IAddTeamMemberData {
|
|
26
|
+
teamMember: ITeamMember;
|
|
27
|
+
}
|
|
28
|
+
export type IAddTeamMemberResponse = IResponse<IAddTeamMemberData>;
|
|
29
|
+
export interface IRemoveTeamMemberData {
|
|
30
|
+
deleted: boolean;
|
|
31
|
+
}
|
|
32
|
+
export type IRemoveTeamMemberResponse = IResponse<IRemoveTeamMemberData>;
|
|
33
|
+
export interface IListTeamMembersData {
|
|
34
|
+
teamMembers: ITeamMember[];
|
|
35
|
+
}
|
|
36
|
+
export type IListTeamMembersResponse = IResponse<IListTeamMembersData>;
|
|
37
|
+
export interface IAddTeamProjectAccessData {
|
|
38
|
+
teamProjectAccess: ITeamProjectAccess;
|
|
39
|
+
}
|
|
40
|
+
export type IAddTeamProjectAccessResponse = IResponse<IAddTeamProjectAccessData>;
|
|
41
|
+
export interface IUpdateTeamProjectAccessData {
|
|
42
|
+
teamProjectAccess: ITeamProjectAccess;
|
|
43
|
+
}
|
|
44
|
+
export type IUpdateTeamProjectAccessResponse = IResponse<IUpdateTeamProjectAccessData>;
|
|
45
|
+
export interface IRemoveTeamProjectAccessData {
|
|
46
|
+
deleted: boolean;
|
|
47
|
+
}
|
|
48
|
+
export type IRemoveTeamProjectAccessResponse = IResponse<IRemoveTeamProjectAccessData>;
|
|
49
|
+
export interface IListTeamProjectAccessData {
|
|
50
|
+
teamProjectAccess: ITeamProjectAccess[];
|
|
51
|
+
}
|
|
52
|
+
export type IListTeamProjectAccessResponse = IResponse<IListTeamProjectAccessData>;
|
|
@@ -46,3 +46,8 @@ export * from './models/short-link.model';
|
|
|
46
46
|
export * from './models/short-link-click.model';
|
|
47
47
|
export * from './models/report.model';
|
|
48
48
|
export * from './models/organization.model';
|
|
49
|
+
export * from './models/organization-integration.model';
|
|
50
|
+
export * from './models/organization-member.model';
|
|
51
|
+
export * from './models/team.model';
|
|
52
|
+
export * from './models/team-member.model';
|
|
53
|
+
export * from './models/team-project-access.model';
|
|
@@ -62,3 +62,8 @@ __exportStar(require("./models/short-link.model"), exports);
|
|
|
62
62
|
__exportStar(require("./models/short-link-click.model"), exports);
|
|
63
63
|
__exportStar(require("./models/report.model"), exports);
|
|
64
64
|
__exportStar(require("./models/organization.model"), exports);
|
|
65
|
+
__exportStar(require("./models/organization-integration.model"), exports);
|
|
66
|
+
__exportStar(require("./models/organization-member.model"), exports);
|
|
67
|
+
__exportStar(require("./models/team.model"), exports);
|
|
68
|
+
__exportStar(require("./models/team-member.model"), exports);
|
|
69
|
+
__exportStar(require("./models/team-project-access.model"), exports);
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { OrganizationIntegrationType } from '../../enum';
|
|
2
|
+
import { IOrganization } from './organization.model';
|
|
3
|
+
export interface ISlackOrganizationIntegrationConfig {
|
|
4
|
+
teamName: string;
|
|
5
|
+
}
|
|
6
|
+
export interface IDiscordOrganizationIntegrationConfig {
|
|
7
|
+
guildName?: string;
|
|
8
|
+
}
|
|
9
|
+
export type OrganizationIntegrationConfig = ISlackOrganizationIntegrationConfig | IDiscordOrganizationIntegrationConfig;
|
|
10
|
+
export interface IOrganizationIntegration {
|
|
11
|
+
id?: string;
|
|
12
|
+
organizationId: string;
|
|
13
|
+
type: OrganizationIntegrationType;
|
|
14
|
+
botToken: string;
|
|
15
|
+
teamId: string | null;
|
|
16
|
+
guildId: string | null;
|
|
17
|
+
scope: string[];
|
|
18
|
+
disabledAt: Date | null;
|
|
19
|
+
config: OrganizationIntegrationConfig | null;
|
|
20
|
+
updatedAt?: Date;
|
|
21
|
+
createdAt?: Date;
|
|
22
|
+
organization?: IOrganization;
|
|
23
|
+
}
|
|
24
|
+
export type ISafeOrganizationIntegration = Omit<IOrganizationIntegration, 'botToken'>;
|
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
import { OrganizationPermission
|
|
1
|
+
import { OrganizationPermission } from '../../enum';
|
|
2
2
|
import { IOrganization } from './organization.model';
|
|
3
3
|
import { IUser } from './user.model';
|
|
4
|
+
import { ITeamMember } from './team-member.model';
|
|
4
5
|
export interface IOrganizationMember {
|
|
5
6
|
id?: string;
|
|
6
7
|
organizationId: string;
|
|
7
8
|
userId: string;
|
|
8
|
-
|
|
9
|
-
customPermissions: OrganizationPermission[] | null;
|
|
9
|
+
permissions: OrganizationPermission[];
|
|
10
10
|
isConfirmed: boolean;
|
|
11
|
+
confirmedAt: Date | null;
|
|
11
12
|
joinedAt: Date;
|
|
12
13
|
updatedAt?: Date;
|
|
13
14
|
createdAt?: Date;
|
|
14
15
|
organization?: IOrganization;
|
|
15
16
|
user?: IUser;
|
|
17
|
+
teamMembers?: ITeamMember[];
|
|
16
18
|
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { IProject } from './project.model';
|
|
2
|
-
import {
|
|
2
|
+
import { IOrganizationIntegration } from './organization-integration.model';
|
|
3
|
+
import { IOrganizationMember } from './organization-member.model';
|
|
4
|
+
import { ITeam } from './team.model';
|
|
3
5
|
export interface IOrganization {
|
|
4
6
|
id?: string;
|
|
5
7
|
name: string;
|
|
@@ -7,28 +9,12 @@ export interface IOrganization {
|
|
|
7
9
|
description: string | null;
|
|
8
10
|
pictureId: string | null;
|
|
9
11
|
pictureThumbnailId: string | null;
|
|
12
|
+
bannerId: string | null;
|
|
13
|
+
bannerThumbnailId: string | null;
|
|
10
14
|
updatedAt?: Date;
|
|
11
15
|
createdAt?: Date;
|
|
12
16
|
projects?: IProject[];
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
teamName: string;
|
|
17
|
-
scope: string;
|
|
18
|
-
}
|
|
19
|
-
export interface IDiscordOrganizationIntegrationConfig {
|
|
20
|
-
guildName?: string;
|
|
21
|
-
}
|
|
22
|
-
export type OrganizationIntegrationConfig = ISlackOrganizationIntegrationConfig | IDiscordOrganizationIntegrationConfig;
|
|
23
|
-
export interface IOrganizationIntegration {
|
|
24
|
-
id?: string;
|
|
25
|
-
organizationId: string;
|
|
26
|
-
type: OrganizationIntegrationType;
|
|
27
|
-
botToken: string;
|
|
28
|
-
teamId: string | null;
|
|
29
|
-
guildId: string | null;
|
|
30
|
-
config: OrganizationIntegrationConfig | null;
|
|
31
|
-
updatedAt?: Date;
|
|
32
|
-
createdAt?: Date;
|
|
33
|
-
organization?: IOrganization;
|
|
17
|
+
organizationIntegrations?: IOrganizationIntegration[];
|
|
18
|
+
organizationMembers?: IOrganizationMember[];
|
|
19
|
+
teams?: ITeam[];
|
|
34
20
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ITeam } from './team.model';
|
|
2
|
+
import { IOrganizationMember } from './organization-member.model';
|
|
3
|
+
export interface ITeamMember {
|
|
4
|
+
id?: string;
|
|
5
|
+
teamId: string;
|
|
6
|
+
organizationMemberId: string;
|
|
7
|
+
updatedAt?: Date;
|
|
8
|
+
createdAt?: Date;
|
|
9
|
+
team?: ITeam;
|
|
10
|
+
organizationMember?: IOrganizationMember;
|
|
11
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ProjectAccessPermission } from '../../enum';
|
|
2
|
+
import { ITeam } from './team.model';
|
|
3
|
+
import { IProject } from './project.model';
|
|
4
|
+
export interface ITeamProjectAccess {
|
|
5
|
+
id?: string;
|
|
6
|
+
teamId: string;
|
|
7
|
+
projectId: string;
|
|
8
|
+
permission: ProjectAccessPermission[];
|
|
9
|
+
updatedAt?: Date;
|
|
10
|
+
createdAt?: Date;
|
|
11
|
+
team?: ITeam;
|
|
12
|
+
project?: IProject;
|
|
13
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { OrganizationPermission } from '../../enum';
|
|
2
|
+
import { IOrganization } from './organization.model';
|
|
3
|
+
import { ITeamMember } from './team-member.model';
|
|
4
|
+
import { ITeamProjectAccess } from './team-project-access.model';
|
|
5
|
+
export interface ITeam {
|
|
6
|
+
id?: string;
|
|
7
|
+
organizationId: string;
|
|
8
|
+
name: string;
|
|
9
|
+
description: string | null;
|
|
10
|
+
color: string | null;
|
|
11
|
+
pictureId: string | null;
|
|
12
|
+
pictureThumbnailId: string | null;
|
|
13
|
+
permissions: OrganizationPermission[];
|
|
14
|
+
updatedAt?: Date;
|
|
15
|
+
createdAt?: Date;
|
|
16
|
+
organization?: IOrganization;
|
|
17
|
+
teamMembers?: ITeamMember[];
|
|
18
|
+
teamProjectAccess?: ITeamProjectAccess[];
|
|
19
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ProjectAccessPermission, ProjectApplicationAccessPermission, TokenType } from '../../enum';
|
|
1
|
+
import { ProjectAccessPermission, ProjectApplicationAccessPermission, TokenType, OrganizationPermission } from '../../enum';
|
|
2
2
|
export interface ITokenHistory {
|
|
3
3
|
id?: string;
|
|
4
4
|
token: string;
|
|
@@ -12,12 +12,14 @@ export type TokenHistoryMetadataUserInvitationInternal = {
|
|
|
12
12
|
projectInvitation?: TokenHistoryMetadataProject & TokenHistoryMetadataExtendsUserInvitation;
|
|
13
13
|
cloudInvitation?: TokenHistoryMetadataCloud & TokenHistoryMetadataExtendsUserInvitation;
|
|
14
14
|
eventInvitation?: TokenHistoryMetadataEvent & TokenHistoryMetadataExtendsUserInvitation;
|
|
15
|
+
organizationInvitation?: TokenHistoryMetadataOrganization & TokenHistoryMetadataExtendsUserInvitation;
|
|
15
16
|
publicMailVerification?: TokenHistoryMetadataPublicEmailVerification;
|
|
16
17
|
};
|
|
17
18
|
export type TokenHistoryMetadataUserInvitation = {
|
|
18
19
|
projectInvitation?: TokenHistoryMetadataProject;
|
|
19
20
|
cloudInvitation?: TokenHistoryMetadataCloud;
|
|
20
21
|
eventInvitation?: TokenHistoryMetadataEvent;
|
|
22
|
+
organizationInvitation?: TokenHistoryMetadataOrganization;
|
|
21
23
|
publicMailVerification?: TokenHistoryMetadataPublicEmailVerification;
|
|
22
24
|
};
|
|
23
25
|
export type TokenHistoryMetadataProject = {
|
|
@@ -44,6 +46,10 @@ export type TokenHistoryMetadataEvent = {
|
|
|
44
46
|
export type TokenHistoryMetadataExtendsUserInvitation = {
|
|
45
47
|
inviterId: string;
|
|
46
48
|
};
|
|
49
|
+
export type TokenHistoryMetadataOrganization = {
|
|
50
|
+
organizationId: string;
|
|
51
|
+
permissions: OrganizationPermission[];
|
|
52
|
+
};
|
|
47
53
|
export type TokenHistoryMetadataPublicEmailVerification = {
|
|
48
54
|
email: string;
|
|
49
55
|
code: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abyss-project/main",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.110",
|
|
4
4
|
"description": "Core package to interact with Abyss-Project",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"homepage": "https://gitlab.com/abyss-group",
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"axios": "^1.2.2",
|
|
20
|
-
"axios-retry": "^
|
|
20
|
+
"axios-retry": "^4.5.0",
|
|
21
21
|
"byte-size": "^8.1.0",
|
|
22
22
|
"date-fns": "^2.29.3",
|
|
23
23
|
"dayjs": "^1.10.7",
|