@abyss-project/main 1.0.106 → 1.0.108
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/organization.admin.api.d.ts +3 -0
- package/dist/api/organization.admin.api.js +12 -0
- package/dist/api/project-access.admin.api.d.ts +2 -1
- package/dist/api/project-access.admin.api.js +5 -1
- package/dist/index.d.ts +8 -0
- package/dist/index.js +8 -0
- package/dist/types/enum/index.d.ts +1 -0
- package/dist/types/enum/index.js +1 -0
- package/dist/types/enum/integration-type.enum.d.ts +4 -0
- package/dist/types/enum/integration-type.enum.js +8 -0
- package/dist/types/enum/oauth-account-type.enum.d.ts +2 -1
- package/dist/types/enum/oauth-account-type.enum.js +1 -0
- package/dist/types/enum/organization-integration-type.enum.d.ts +4 -0
- package/dist/types/enum/organization-integration-type.enum.js +8 -0
- package/dist/types/enum/user-notification-content-type.enum.d.ts +11 -0
- package/dist/types/enum/user-notification-content-type.enum.js +2 -1
- package/dist/types/interface/api/index.d.ts +4 -0
- package/dist/types/interface/api/index.js +4 -0
- package/dist/types/interface/api/requests/organization.admin.request.d.ts +9 -0
- package/dist/types/interface/api/requests/organization.admin.request.js +2 -0
- package/dist/types/interface/api/requests/organization.request.d.ts +33 -0
- package/dist/types/interface/api/requests/organization.request.js +2 -0
- package/dist/types/interface/api/requests/project-access.admin.request.d.ts +3 -0
- package/dist/types/interface/api/responses/organization.admin.response.d.ts +23 -0
- package/dist/types/interface/api/responses/organization.admin.response.js +2 -0
- package/dist/types/interface/api/responses/organization.response.d.ts +30 -0
- package/dist/types/interface/api/responses/organization.response.js +2 -0
- package/dist/types/interface/api/responses/project-access.admin.response.d.ts +13 -0
- package/dist/types/interface/index.d.ts +1 -0
- package/dist/types/interface/index.js +1 -0
- package/dist/types/interface/models/oauth-account.model.d.ts +1 -0
- package/dist/types/interface/models/organization.model.d.ts +23 -11
- package/dist/types/interface/models/project.model.d.ts +3 -0
- package/package.json +1 -1
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { IGetOrganizationIntegrationAdminParams, IGetOrganizationIntegrationAdminResponse, IGetUserOAuthMetadataAdminParams, IGetUserOAuthMetadataAdminResponse } from '../types';
|
|
2
|
+
export declare const getOrganizationIntegrationAdmin: (params: IGetOrganizationIntegrationAdminParams) => Promise<IGetOrganizationIntegrationAdminResponse>;
|
|
3
|
+
export declare const getUserOAuthMetadataAdmin: (params: IGetUserOAuthMetadataAdminParams) => Promise<IGetUserOAuthMetadataAdminResponse>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getUserOAuthMetadataAdmin = exports.getOrganizationIntegrationAdmin = void 0;
|
|
4
|
+
const __1 = require("..");
|
|
5
|
+
const getOrganizationIntegrationAdmin = async (params) => {
|
|
6
|
+
return (await __1.AbyssCore.axios.get(`organization/admin/${params.organizationId}/integration/${params.type}`)).data;
|
|
7
|
+
};
|
|
8
|
+
exports.getOrganizationIntegrationAdmin = getOrganizationIntegrationAdmin;
|
|
9
|
+
const getUserOAuthMetadataAdmin = async (params) => {
|
|
10
|
+
return (await __1.AbyssCore.axios.get(`organization/admin/oauth/${params.userId}/${params.type}`)).data;
|
|
11
|
+
};
|
|
12
|
+
exports.getUserOAuthMetadataAdmin = getUserOAuthMetadataAdmin;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ICreateProjectAccessAdminBody, ICreateProjectAccessAdminParams, ICreateProjectAccessAdminResponse, ICreateUserProjectAccessAdminResponse, ICreateUserProjectAccessAdminBody, ICreateUserProjectAccessAdminParams, IDeleteProjectAccessAdminParams, IDeleteProjectAccessAdminResponse, IGetProjectAccessAdminParams, IGetProjectAccessAdminResponse, IPaginateProjectAccessAdminQuery, IPaginateProjectAccessAdminResponse, IUpdateProjectAccessAdminBody, IUpdateProjectAccessAdminParams, IUpdateProjectAccessAdminResponse, IResetApiKeyProjectAccessAdminParams, IResetApiKeyProjectAccessAdminResponse, IComputeApplicationProjectAccessAdminParams, IComputeApplicationProjectAccessAdminBody, IComputeNotificationAccessProjectAccessAdminBody, IUpsertApplicationProjectAccessAdminParams, IUpsertApplicationProjectAccessAdminBody, IUpsertApplicationProjectAccessAdminResponse, IComputeApplicationProjectAccessAdminResponse, IComputeNotificationAccessProjectAccessAdminResponse, IDeleteApplicationProjectAccessAdminParams, IDeleteApplicationProjectAccessAdminResponse, IComputeProjectAccessAdminParams, IComputeProjectAccessAdminBody, IComputeProjectAccessAdminResponse, IComputeUsersWithPermissionsProjectAccessAdminBody, IComputeUsersWithPermissionsProjectAccessAdminResponse } from '../types';
|
|
1
|
+
import { ICreateProjectAccessAdminBody, ICreateProjectAccessAdminParams, ICreateProjectAccessAdminResponse, ICreateUserProjectAccessAdminResponse, ICreateUserProjectAccessAdminBody, ICreateUserProjectAccessAdminParams, IDeleteProjectAccessAdminParams, IDeleteProjectAccessAdminResponse, IGetProjectAccessAdminParams, IGetProjectAccessAdminResponse, IPaginateProjectAccessAdminQuery, IPaginateProjectAccessAdminResponse, IUpdateProjectAccessAdminBody, IUpdateProjectAccessAdminParams, IUpdateProjectAccessAdminResponse, IResetApiKeyProjectAccessAdminParams, IResetApiKeyProjectAccessAdminResponse, IComputeApplicationProjectAccessAdminParams, IComputeApplicationProjectAccessAdminBody, IComputeNotificationAccessProjectAccessAdminBody, IUpsertApplicationProjectAccessAdminParams, IUpsertApplicationProjectAccessAdminBody, IUpsertApplicationProjectAccessAdminResponse, IComputeApplicationProjectAccessAdminResponse, IComputeNotificationAccessProjectAccessAdminResponse, IDeleteApplicationProjectAccessAdminParams, IDeleteApplicationProjectAccessAdminResponse, IComputeProjectAccessAdminParams, IComputeProjectAccessAdminBody, IComputeProjectAccessAdminResponse, IComputeUsersWithPermissionsProjectAccessAdminBody, IComputeUsersWithPermissionsProjectAccessAdminResponse, IListMembersProjectAccessAdminParams, IListMembersProjectAccessAdminResponse } from '../types';
|
|
2
2
|
export declare const getProjectAccessAdmin: (params: IGetProjectAccessAdminParams) => Promise<IGetProjectAccessAdminResponse>;
|
|
3
3
|
export declare const paginateProjectAccessAdmin: (query: IPaginateProjectAccessAdminQuery) => Promise<IPaginateProjectAccessAdminResponse>;
|
|
4
4
|
export declare const deleteProjectAccessAdmin: (params: IDeleteProjectAccessAdminParams) => Promise<IDeleteProjectAccessAdminResponse>;
|
|
@@ -12,3 +12,4 @@ export declare const computeApplicationProjectAccessAdmin: (params: IComputeAppl
|
|
|
12
12
|
export declare const computeProjectAccessAdmin: (params: IComputeProjectAccessAdminParams, body: IComputeProjectAccessAdminBody) => Promise<IComputeProjectAccessAdminResponse>;
|
|
13
13
|
export declare const computeNotificationAccessProjectAccessAdmin: (body: IComputeNotificationAccessProjectAccessAdminBody) => Promise<IComputeNotificationAccessProjectAccessAdminResponse>;
|
|
14
14
|
export declare const computeUsersWithPermissionsProjectAccessAdmin: (body: IComputeUsersWithPermissionsProjectAccessAdminBody) => Promise<IComputeUsersWithPermissionsProjectAccessAdminResponse>;
|
|
15
|
+
export declare const listMembersProjectAccessAdmin: (params: IListMembersProjectAccessAdminParams) => Promise<IListMembersProjectAccessAdminResponse>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.computeUsersWithPermissionsProjectAccessAdmin = exports.computeNotificationAccessProjectAccessAdmin = exports.computeProjectAccessAdmin = exports.computeApplicationProjectAccessAdmin = exports.resetApiKeyProjectAccessAdmin = exports.createUserProjectAccessAdmin = exports.createProjectAccessAdmin = exports.deleteApplicationProjectAccessAdmin = exports.upsertApplicationProjectAccessAdmin = exports.updateProjectAccessAdmin = exports.deleteProjectAccessAdmin = exports.paginateProjectAccessAdmin = exports.getProjectAccessAdmin = void 0;
|
|
3
|
+
exports.listMembersProjectAccessAdmin = exports.computeUsersWithPermissionsProjectAccessAdmin = exports.computeNotificationAccessProjectAccessAdmin = exports.computeProjectAccessAdmin = exports.computeApplicationProjectAccessAdmin = exports.resetApiKeyProjectAccessAdmin = exports.createUserProjectAccessAdmin = exports.createProjectAccessAdmin = exports.deleteApplicationProjectAccessAdmin = exports.upsertApplicationProjectAccessAdmin = exports.updateProjectAccessAdmin = exports.deleteProjectAccessAdmin = exports.paginateProjectAccessAdmin = exports.getProjectAccessAdmin = void 0;
|
|
4
4
|
const __1 = require("..");
|
|
5
5
|
const getProjectAccessAdmin = async (params) => {
|
|
6
6
|
return (await __1.AbyssCore.axios.get(`project-access/admin/${params.projectAccessId}`)).data;
|
|
@@ -54,3 +54,7 @@ const computeUsersWithPermissionsProjectAccessAdmin = async (body) => {
|
|
|
54
54
|
return (await __1.AbyssCore.axios.post(`project-access/admin/compute-permission/users-with-permissions`, body)).data;
|
|
55
55
|
};
|
|
56
56
|
exports.computeUsersWithPermissionsProjectAccessAdmin = computeUsersWithPermissionsProjectAccessAdmin;
|
|
57
|
+
const listMembersProjectAccessAdmin = async (params) => {
|
|
58
|
+
return (await __1.AbyssCore.axios.get(`project-access/admin/${params.projectId}/members`)).data;
|
|
59
|
+
};
|
|
60
|
+
exports.listMembersProjectAccessAdmin = listMembersProjectAccessAdmin;
|
package/dist/index.d.ts
CHANGED
|
@@ -49,6 +49,7 @@ import * as shortLinkPublicApiModule from './api/short-link.public.api';
|
|
|
49
49
|
import * as reportApiModule from './api/report.api';
|
|
50
50
|
import * as reportAdminApiModule from './api/report.admin.api';
|
|
51
51
|
import * as reportPublicApiModule from './api/report.public.api';
|
|
52
|
+
import * as organizationAdminApi from './api/organization.admin.api';
|
|
52
53
|
export * from './api';
|
|
53
54
|
export * from './types';
|
|
54
55
|
export * from './utils';
|
|
@@ -275,6 +276,7 @@ type AbyssCoreSDK = {
|
|
|
275
276
|
computeProjectAccessAdmin: typeof projectAccessAdminApi.computeProjectAccessAdmin;
|
|
276
277
|
computeNotificationAccessProjectAccessAdmin: typeof projectAccessAdminApi.computeNotificationAccessProjectAccessAdmin;
|
|
277
278
|
computeUsersWithPermissionsProjectAccessAdmin: typeof projectAccessAdminApi.computeUsersWithPermissionsProjectAccessAdmin;
|
|
279
|
+
listMembersProjectAccessAdmin: typeof projectAccessAdminApi.listMembersProjectAccessAdmin;
|
|
278
280
|
};
|
|
279
281
|
};
|
|
280
282
|
billing: {
|
|
@@ -498,6 +500,12 @@ type AbyssCoreSDK = {
|
|
|
498
500
|
get: typeof reportPublicApiModule.reportPublicApi.get;
|
|
499
501
|
};
|
|
500
502
|
};
|
|
503
|
+
organization: {
|
|
504
|
+
admin: {
|
|
505
|
+
getOrganizationIntegrationAdmin: typeof organizationAdminApi.getOrganizationIntegrationAdmin;
|
|
506
|
+
getUserOAuthMetadataAdmin: typeof organizationAdminApi.getUserOAuthMetadataAdmin;
|
|
507
|
+
};
|
|
508
|
+
};
|
|
501
509
|
};
|
|
502
510
|
export declare class AbyssCore {
|
|
503
511
|
private static config;
|
package/dist/index.js
CHANGED
|
@@ -83,6 +83,7 @@ const shortLinkPublicApiModule = __importStar(require("./api/short-link.public.a
|
|
|
83
83
|
const reportApiModule = __importStar(require("./api/report.api"));
|
|
84
84
|
const reportAdminApiModule = __importStar(require("./api/report.admin.api"));
|
|
85
85
|
const reportPublicApiModule = __importStar(require("./api/report.public.api"));
|
|
86
|
+
const organizationAdminApi = __importStar(require("./api/organization.admin.api"));
|
|
86
87
|
__exportStar(require("./api"), exports);
|
|
87
88
|
__exportStar(require("./types"), exports);
|
|
88
89
|
__exportStar(require("./utils"), exports);
|
|
@@ -317,6 +318,7 @@ class AbyssCore {
|
|
|
317
318
|
computeProjectAccessAdmin: projectAccessAdminApi.computeProjectAccessAdmin,
|
|
318
319
|
computeNotificationAccessProjectAccessAdmin: projectAccessAdminApi.computeNotificationAccessProjectAccessAdmin,
|
|
319
320
|
computeUsersWithPermissionsProjectAccessAdmin: projectAccessAdminApi.computeUsersWithPermissionsProjectAccessAdmin,
|
|
321
|
+
listMembersProjectAccessAdmin: projectAccessAdminApi.listMembersProjectAccessAdmin,
|
|
320
322
|
},
|
|
321
323
|
},
|
|
322
324
|
billing: {
|
|
@@ -540,6 +542,12 @@ class AbyssCore {
|
|
|
540
542
|
get: reportPublicApiModule.reportPublicApi.get,
|
|
541
543
|
},
|
|
542
544
|
},
|
|
545
|
+
organization: {
|
|
546
|
+
admin: {
|
|
547
|
+
getOrganizationIntegrationAdmin: organizationAdminApi.getOrganizationIntegrationAdmin,
|
|
548
|
+
getUserOAuthMetadataAdmin: organizationAdminApi.getUserOAuthMetadataAdmin,
|
|
549
|
+
},
|
|
550
|
+
},
|
|
543
551
|
};
|
|
544
552
|
}
|
|
545
553
|
static enableAxiosRetry(axiosRetryConfig) {
|
package/dist/types/enum/index.js
CHANGED
|
@@ -40,3 +40,4 @@ __exportStar(require("./board-column-type.enum"), exports);
|
|
|
40
40
|
__exportStar(require("./board-activity.enum"), exports);
|
|
41
41
|
__exportStar(require("./user-agent.enum"), exports);
|
|
42
42
|
__exportStar(require("./measurement-unit.enum"), exports);
|
|
43
|
+
__exportStar(require("./organization-integration-type.enum"), exports);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IntegrationType = void 0;
|
|
4
|
+
var IntegrationType;
|
|
5
|
+
(function (IntegrationType) {
|
|
6
|
+
IntegrationType["SLACK"] = "SLACK";
|
|
7
|
+
IntegrationType["DISCORD"] = "DISCORD";
|
|
8
|
+
})(IntegrationType || (exports.IntegrationType = IntegrationType = {}));
|
|
@@ -5,4 +5,5 @@ var OAuthAccountType;
|
|
|
5
5
|
(function (OAuthAccountType) {
|
|
6
6
|
OAuthAccountType[OAuthAccountType["DISCORD"] = 1] = "DISCORD";
|
|
7
7
|
OAuthAccountType[OAuthAccountType["GOOGLE"] = 2] = "GOOGLE";
|
|
8
|
+
OAuthAccountType[OAuthAccountType["SLACK"] = 3] = "SLACK";
|
|
8
9
|
})(OAuthAccountType || (exports.OAuthAccountType = OAuthAccountType = {}));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OrganizationIntegrationType = void 0;
|
|
4
|
+
var OrganizationIntegrationType;
|
|
5
|
+
(function (OrganizationIntegrationType) {
|
|
6
|
+
OrganizationIntegrationType["SLACK"] = "SLACK";
|
|
7
|
+
OrganizationIntegrationType["DISCORD"] = "DISCORD";
|
|
8
|
+
})(OrganizationIntegrationType || (exports.OrganizationIntegrationType = OrganizationIntegrationType = {}));
|
|
@@ -41,6 +41,7 @@ export declare enum UserNotificationContentType {
|
|
|
41
41
|
MONITOR_SENTINEL_CHECK_SUCCESS = "monitor-sentinel-check-success",
|
|
42
42
|
MONITOR_SENTINEL_CHECK_FAILED = "monitor-sentinel-check-failed",
|
|
43
43
|
MONITOR_SENTINEL_DISABLE_ON_FAILURE = "monitor-sentinel-disable-on-failure",
|
|
44
|
+
MONITOR_SENTINEL_SSL_EXPIRING = "monitor-sentinel-ssl-expiring",
|
|
44
45
|
INVITE_EVENT = "invite-event",
|
|
45
46
|
CHANGE_OWNER_EVENT = "change-owner-event",
|
|
46
47
|
CREATE_POLL_EVENT = "create-poll-event",
|
|
@@ -337,6 +338,16 @@ export declare class UserNotificationContentTypeData implements Record<UserNotif
|
|
|
337
338
|
sentinelId: string;
|
|
338
339
|
date: string;
|
|
339
340
|
};
|
|
341
|
+
[UserNotificationContentType.MONITOR_SENTINEL_SSL_EXPIRING]: {
|
|
342
|
+
projectId: string;
|
|
343
|
+
applicationId: string;
|
|
344
|
+
sentinelId: string;
|
|
345
|
+
sentinelName: string;
|
|
346
|
+
url: string;
|
|
347
|
+
daysUntilExpiry: string;
|
|
348
|
+
expiredAt: string;
|
|
349
|
+
isSelfSigned: string;
|
|
350
|
+
};
|
|
340
351
|
[UserNotificationContentType.INVITE_EVENT]: {
|
|
341
352
|
eventId: string;
|
|
342
353
|
eventName: string;
|
|
@@ -45,6 +45,7 @@ var UserNotificationContentType;
|
|
|
45
45
|
UserNotificationContentType["MONITOR_SENTINEL_CHECK_SUCCESS"] = "monitor-sentinel-check-success";
|
|
46
46
|
UserNotificationContentType["MONITOR_SENTINEL_CHECK_FAILED"] = "monitor-sentinel-check-failed";
|
|
47
47
|
UserNotificationContentType["MONITOR_SENTINEL_DISABLE_ON_FAILURE"] = "monitor-sentinel-disable-on-failure";
|
|
48
|
+
UserNotificationContentType["MONITOR_SENTINEL_SSL_EXPIRING"] = "monitor-sentinel-ssl-expiring";
|
|
48
49
|
UserNotificationContentType["INVITE_EVENT"] = "invite-event";
|
|
49
50
|
UserNotificationContentType["CHANGE_OWNER_EVENT"] = "change-owner-event";
|
|
50
51
|
UserNotificationContentType["CREATE_POLL_EVENT"] = "create-poll-event";
|
|
@@ -74,4 +75,4 @@ var UserNotificationContentType;
|
|
|
74
75
|
class UserNotificationContentTypeData {
|
|
75
76
|
}
|
|
76
77
|
exports.UserNotificationContentTypeData = UserNotificationContentTypeData;
|
|
77
|
-
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.BOARD_CARD_LATE, UserNotificationContentType.BOARD_CARD_ALMOST_LATE, 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.MONITOR_WEBHOOK_UNDELIVERABLE, UserNotificationContentType.MONITOR_WEBHOOK_UNDELIVERABLE_DISABLE, UserNotificationContentType.MONITOR_SENTINEL_CHECK_SUCCESS, UserNotificationContentType.MONITOR_SENTINEL_CHECK_FAILED, UserNotificationContentType.MONITOR_SENTINEL_DISABLE_ON_FAILURE, UserNotificationContentType.INVITE_EVENT, UserNotificationContentType.CHANGE_OWNER_EVENT, UserNotificationContentType.CREATE_POLL_EVENT, UserNotificationContentType.BANK_CONNECTION_SUCCESS, UserNotificationContentType.BANK_CONNECTION_EXPIRE, UserNotificationContentType.SPOTLIGHT_PROJECT_NEW_POST, UserNotificationContentType.FORM_SUBMISSION_COMPLETED, UserNotificationContentType.FORM_WEBHOOK_UNDELIVERABLE, UserNotificationContentType.FORM_WEBHOOK_UNDELIVERABLE_DISABLE, UserNotificationContentType.FORM_DAILY_SUBMISSION_LIMIT_REACHED, UserNotificationContentType.FORM_SUBMISSION_LIMIT_REACHED, UserNotificationContentType.DOMAIN_VERIFICATION_SUCCESS, UserNotificationContentType.DOMAIN_VERIFICATION_FAILED, UserNotificationContentType.DOMAIN_VERIFICATION_EXPIRED, UserNotificationContentType.TRAINING_INACTIVITY_7_DAYS, UserNotificationContentType.TRAINING_INACTIVITY_5_DAYS, UserNotificationContentType.TRAINING_INACTIVITY_2_DAYS, UserNotificationContentType.TRAINING_NEVER_TRAINED, UserNotificationContentType.TRAINING_TODAY_WORKOUT_REMINDER_MORNING, UserNotificationContentType.TRAINING_TODAY_WORKOUT_REMINDER_AFTERNOON, UserNotificationContentType.TRAINING_TODAY_WORKOUT_REMINDER_EVENING, UserNotificationContentType.INTERNAL_TICKET_STATUS_CHANGED, UserNotificationContentType.INTERNAL_TICKET_NEW_MESSAGE, UserNotificationContentType.INTERNAL_TICKET_MENTION, UserNotificationContentType.INTERNAL_TICKET_ASSIGNED;
|
|
78
|
+
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.BOARD_CARD_LATE, UserNotificationContentType.BOARD_CARD_ALMOST_LATE, 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.MONITOR_WEBHOOK_UNDELIVERABLE, UserNotificationContentType.MONITOR_WEBHOOK_UNDELIVERABLE_DISABLE, UserNotificationContentType.MONITOR_SENTINEL_CHECK_SUCCESS, UserNotificationContentType.MONITOR_SENTINEL_CHECK_FAILED, UserNotificationContentType.MONITOR_SENTINEL_DISABLE_ON_FAILURE, UserNotificationContentType.MONITOR_SENTINEL_SSL_EXPIRING, UserNotificationContentType.INVITE_EVENT, UserNotificationContentType.CHANGE_OWNER_EVENT, UserNotificationContentType.CREATE_POLL_EVENT, UserNotificationContentType.BANK_CONNECTION_SUCCESS, UserNotificationContentType.BANK_CONNECTION_EXPIRE, UserNotificationContentType.SPOTLIGHT_PROJECT_NEW_POST, UserNotificationContentType.FORM_SUBMISSION_COMPLETED, UserNotificationContentType.FORM_WEBHOOK_UNDELIVERABLE, UserNotificationContentType.FORM_WEBHOOK_UNDELIVERABLE_DISABLE, UserNotificationContentType.FORM_DAILY_SUBMISSION_LIMIT_REACHED, UserNotificationContentType.FORM_SUBMISSION_LIMIT_REACHED, UserNotificationContentType.DOMAIN_VERIFICATION_SUCCESS, UserNotificationContentType.DOMAIN_VERIFICATION_FAILED, UserNotificationContentType.DOMAIN_VERIFICATION_EXPIRED, UserNotificationContentType.TRAINING_INACTIVITY_7_DAYS, UserNotificationContentType.TRAINING_INACTIVITY_5_DAYS, UserNotificationContentType.TRAINING_INACTIVITY_2_DAYS, UserNotificationContentType.TRAINING_NEVER_TRAINED, UserNotificationContentType.TRAINING_TODAY_WORKOUT_REMINDER_MORNING, UserNotificationContentType.TRAINING_TODAY_WORKOUT_REMINDER_AFTERNOON, UserNotificationContentType.TRAINING_TODAY_WORKOUT_REMINDER_EVENING, UserNotificationContentType.INTERNAL_TICKET_STATUS_CHANGED, UserNotificationContentType.INTERNAL_TICKET_NEW_MESSAGE, UserNotificationContentType.INTERNAL_TICKET_MENTION, UserNotificationContentType.INTERNAL_TICKET_ASSIGNED;
|
|
@@ -100,3 +100,7 @@ export * from './responses/short-link.admin.response';
|
|
|
100
100
|
export * from './responses/report.response';
|
|
101
101
|
export * from './responses/report.admin.response';
|
|
102
102
|
export * from './responses/report.public.response';
|
|
103
|
+
export * from './requests/organization.admin.request';
|
|
104
|
+
export * from './responses/organization.admin.response';
|
|
105
|
+
export * from './requests/organization.request';
|
|
106
|
+
export * from './responses/organization.response';
|
|
@@ -116,3 +116,7 @@ __exportStar(require("./responses/short-link.admin.response"), exports);
|
|
|
116
116
|
__exportStar(require("./responses/report.response"), exports);
|
|
117
117
|
__exportStar(require("./responses/report.admin.response"), exports);
|
|
118
118
|
__exportStar(require("./responses/report.public.response"), exports);
|
|
119
|
+
__exportStar(require("./requests/organization.admin.request"), exports);
|
|
120
|
+
__exportStar(require("./responses/organization.admin.response"), exports);
|
|
121
|
+
__exportStar(require("./requests/organization.request"), exports);
|
|
122
|
+
__exportStar(require("./responses/organization.response"), exports);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { OrganizationIntegrationType } from '../../../enum';
|
|
2
|
+
export interface IGetOrganizationIntegrationAdminParams {
|
|
3
|
+
organizationId: string;
|
|
4
|
+
type: OrganizationIntegrationType;
|
|
5
|
+
}
|
|
6
|
+
export interface IGetUserOAuthMetadataAdminParams {
|
|
7
|
+
userId: string;
|
|
8
|
+
type: number;
|
|
9
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { OrganizationIntegrationType } from '../../../enum';
|
|
2
|
+
import { OrganizationIntegrationConfig } from '../../models/organization.model';
|
|
3
|
+
export interface ICreateOrganizationBody {
|
|
4
|
+
name: string;
|
|
5
|
+
description?: string | null;
|
|
6
|
+
}
|
|
7
|
+
export interface IGetOrganizationParams {
|
|
8
|
+
organizationId: string;
|
|
9
|
+
}
|
|
10
|
+
export interface IUpdateOrganizationParams {
|
|
11
|
+
organizationId: string;
|
|
12
|
+
}
|
|
13
|
+
export interface IUpdateOrganizationBody {
|
|
14
|
+
name?: string;
|
|
15
|
+
description?: string | null;
|
|
16
|
+
}
|
|
17
|
+
export interface IDeleteOrganizationParams {
|
|
18
|
+
organizationId: string;
|
|
19
|
+
}
|
|
20
|
+
export interface ICreateOrganizationIntegrationParams {
|
|
21
|
+
organizationId: string;
|
|
22
|
+
}
|
|
23
|
+
export interface ICreateOrganizationIntegrationBody {
|
|
24
|
+
type: OrganizationIntegrationType;
|
|
25
|
+
botToken: string;
|
|
26
|
+
teamId?: string | null;
|
|
27
|
+
guildId?: string | null;
|
|
28
|
+
config?: OrganizationIntegrationConfig | null;
|
|
29
|
+
}
|
|
30
|
+
export interface IDeleteOrganizationIntegrationParams {
|
|
31
|
+
organizationId: string;
|
|
32
|
+
type: OrganizationIntegrationType;
|
|
33
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { OrganizationIntegrationType } from '../../../enum';
|
|
2
|
+
import { OrganizationIntegrationConfig } from '../../models/organization.model';
|
|
3
|
+
import { IResponse } from '../type-message/response';
|
|
4
|
+
export interface IGetOrganizationIntegrationAdminData {
|
|
5
|
+
integration: {
|
|
6
|
+
id: string;
|
|
7
|
+
organizationId: string;
|
|
8
|
+
type: OrganizationIntegrationType;
|
|
9
|
+
botToken: string;
|
|
10
|
+
teamId: string | null;
|
|
11
|
+
guildId: string | null;
|
|
12
|
+
config: OrganizationIntegrationConfig | null;
|
|
13
|
+
} | null;
|
|
14
|
+
}
|
|
15
|
+
export type IGetOrganizationIntegrationAdminResponse = IResponse<IGetOrganizationIntegrationAdminData>;
|
|
16
|
+
export interface IGetUserOAuthMetadataAdminData {
|
|
17
|
+
oauthAccount: {
|
|
18
|
+
id: string;
|
|
19
|
+
accountId: string;
|
|
20
|
+
metadata: Record<string, any> | null;
|
|
21
|
+
} | null;
|
|
22
|
+
}
|
|
23
|
+
export type IGetUserOAuthMetadataAdminResponse = IResponse<IGetUserOAuthMetadataAdminData>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { IOrganization, IOrganizationIntegration } from '../../models/organization.model';
|
|
2
|
+
import { IResponse } from '../type-message/response';
|
|
3
|
+
export interface ICreateOrganizationData {
|
|
4
|
+
organization: IOrganization;
|
|
5
|
+
}
|
|
6
|
+
export type ICreateOrganizationResponse = IResponse<ICreateOrganizationData>;
|
|
7
|
+
export interface IGetOrganizationData {
|
|
8
|
+
organization: IOrganization;
|
|
9
|
+
}
|
|
10
|
+
export type IGetOrganizationResponse = IResponse<IGetOrganizationData>;
|
|
11
|
+
export interface IListOrganizationsData {
|
|
12
|
+
organizations: IOrganization[];
|
|
13
|
+
}
|
|
14
|
+
export type IListOrganizationsResponse = IResponse<IListOrganizationsData>;
|
|
15
|
+
export interface IUpdateOrganizationData {
|
|
16
|
+
organization: IOrganization;
|
|
17
|
+
}
|
|
18
|
+
export type IUpdateOrganizationResponse = IResponse<IUpdateOrganizationData>;
|
|
19
|
+
export interface IDeleteOrganizationData {
|
|
20
|
+
deleted: boolean;
|
|
21
|
+
}
|
|
22
|
+
export type IDeleteOrganizationResponse = IResponse<IDeleteOrganizationData>;
|
|
23
|
+
export interface ICreateOrganizationIntegrationData {
|
|
24
|
+
integration: IOrganizationIntegration;
|
|
25
|
+
}
|
|
26
|
+
export type ICreateOrganizationIntegrationResponse = IResponse<ICreateOrganizationIntegrationData>;
|
|
27
|
+
export interface IDeleteOrganizationIntegrationData {
|
|
28
|
+
deleted: boolean;
|
|
29
|
+
}
|
|
30
|
+
export type IDeleteOrganizationIntegrationResponse = IResponse<IDeleteOrganizationIntegrationData>;
|
|
@@ -53,3 +53,16 @@ export interface IComputeProjectAccessAdminData {
|
|
|
53
53
|
permission: ProjectAccessPermission[];
|
|
54
54
|
}
|
|
55
55
|
export type IComputeProjectAccessAdminResponse = IResponse<IComputeProjectAccessAdminData>;
|
|
56
|
+
export interface IListMembersProjectAccessAdminMember {
|
|
57
|
+
userId: string;
|
|
58
|
+
email: string;
|
|
59
|
+
alias: string;
|
|
60
|
+
name: string | null;
|
|
61
|
+
familyName: string | null;
|
|
62
|
+
permissions: string[];
|
|
63
|
+
oauthProviders: string[];
|
|
64
|
+
}
|
|
65
|
+
export interface IListMembersProjectAccessAdminData {
|
|
66
|
+
members: IListMembersProjectAccessAdminMember[];
|
|
67
|
+
}
|
|
68
|
+
export type IListMembersProjectAccessAdminResponse = IResponse<IListMembersProjectAccessAdminData>;
|
|
@@ -61,3 +61,4 @@ __exportStar(require("./models/memo.model"), exports);
|
|
|
61
61
|
__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
|
+
__exportStar(require("./models/organization.model"), exports);
|
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
import { IOrganizationMember } from './organization-member.model';
|
|
2
1
|
import { IProject } from './project.model';
|
|
3
|
-
import {
|
|
4
|
-
export interface IOrganizationSettings {
|
|
5
|
-
defaultTeamId?: string | null;
|
|
6
|
-
allowMemberProjectCreation?: boolean;
|
|
7
|
-
}
|
|
2
|
+
import { OrganizationIntegrationType } from '../../enum';
|
|
8
3
|
export interface IOrganization {
|
|
9
4
|
id?: string;
|
|
10
5
|
name: string;
|
|
@@ -12,11 +7,28 @@ export interface IOrganization {
|
|
|
12
7
|
description: string | null;
|
|
13
8
|
pictureId: string | null;
|
|
14
9
|
pictureThumbnailId: string | null;
|
|
15
|
-
balance: number;
|
|
16
|
-
settings: IOrganizationSettings;
|
|
17
10
|
updatedAt?: Date;
|
|
18
11
|
createdAt?: Date;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
12
|
+
projects?: IProject[];
|
|
13
|
+
integrations?: IOrganizationIntegration[];
|
|
14
|
+
}
|
|
15
|
+
export interface ISlackOrganizationIntegrationConfig {
|
|
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;
|
|
22
34
|
}
|
|
@@ -10,10 +10,12 @@ import { IAtlas } from './atlas.model';
|
|
|
10
10
|
import { IRetrospective } from './retrospective.model';
|
|
11
11
|
import { IMemo } from './memo.model';
|
|
12
12
|
import { IShortLink } from './short-link.model';
|
|
13
|
+
import { IOrganization } from './organization.model';
|
|
13
14
|
export interface IProject {
|
|
14
15
|
id?: string;
|
|
15
16
|
name: string;
|
|
16
17
|
description: string | null;
|
|
18
|
+
organizationId: string;
|
|
17
19
|
userId: string;
|
|
18
20
|
pictureId: string | null;
|
|
19
21
|
pictureThumbnailId: string | null;
|
|
@@ -21,6 +23,7 @@ export interface IProject {
|
|
|
21
23
|
ownerSettings: IProjectAccessSettings;
|
|
22
24
|
updatedAt?: Date;
|
|
23
25
|
createdAt?: Date;
|
|
26
|
+
organization?: IOrganization;
|
|
24
27
|
user?: IUser;
|
|
25
28
|
projectAccess?: IProjectAccess[];
|
|
26
29
|
projectAuthentication?: IProjectAuthentication[];
|