@campxdev/server-shared 1.0.57 → 1.1.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/domain/entities/profile-permission.entity.d.ts +2 -0
- package/dist/domain/entities/profile-permission.entity.d.ts.map +1 -1
- package/dist/domain/entities/profile-permission.entity.js +6 -0
- package/dist/domain/entities/profile-permission.entity.js.map +1 -1
- package/dist/domain/entities/profile.entity.d.ts +14 -1
- package/dist/domain/entities/profile.entity.d.ts.map +1 -1
- package/dist/domain/entities/profile.entity.js +46 -5
- package/dist/domain/entities/profile.entity.js.map +1 -1
- package/dist/permissions/app-permissions/enroll-x-permissions.d.ts +190 -0
- package/dist/permissions/app-permissions/enroll-x-permissions.d.ts.map +1 -0
- package/dist/permissions/app-permissions/enroll-x-permissions.js +200 -0
- package/dist/permissions/app-permissions/enroll-x-permissions.js.map +1 -0
- package/dist/permissions/app-permissions/exams-permissions.d.ts +707 -0
- package/dist/permissions/app-permissions/exams-permissions.d.ts.map +1 -0
- package/dist/permissions/app-permissions/exams-permissions.js +1054 -0
- package/dist/permissions/app-permissions/exams-permissions.js.map +1 -0
- package/dist/permissions/app-permissions/payments-permissions.d.ts +59 -0
- package/dist/permissions/app-permissions/payments-permissions.d.ts.map +1 -0
- package/dist/permissions/app-permissions/payments-permissions.js +69 -0
- package/dist/permissions/app-permissions/payments-permissions.js.map +1 -0
- package/dist/permissions/app-permissions/square-permissions.d.ts +1274 -0
- package/dist/permissions/app-permissions/square-permissions.d.ts.map +1 -0
- package/dist/permissions/app-permissions/square-permissions.js +1284 -0
- package/dist/permissions/app-permissions/square-permissions.js.map +1 -0
- package/dist/permissions/check-permission.guard.d.ts.map +1 -1
- package/dist/permissions/check-permission.guard.js +8 -4
- package/dist/permissions/check-permission.guard.js.map +1 -1
- package/dist/permissions/index.d.ts +4 -0
- package/dist/permissions/index.d.ts.map +1 -1
- package/dist/permissions/index.js +9 -0
- package/dist/permissions/index.js.map +1 -1
- package/dist/permissions/permissions.d.ts +3236 -766
- package/dist/permissions/permissions.d.ts.map +1 -1
- package/dist/permissions/permissions.js +85 -1989
- package/dist/permissions/permissions.js.map +1 -1
- package/dist/shared-module/shared.service.d.ts +1 -0
- package/dist/shared-module/shared.service.d.ts.map +1 -1
- package/dist/shared-module/shared.service.js +14 -8
- package/dist/shared-module/shared.service.js.map +1 -1
- package/dist/utils/constants.d.ts +4 -4
- package/dist/utils/constants.d.ts.map +1 -1
- package/dist/utils/constants.js +5 -5
- package/dist/utils/constants.js.map +1 -1
- package/package.json +5 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profile-permission.entity.d.ts","sourceRoot":"","sources":["../../../src/domain/entities/profile-permission.entity.ts"],"names":[],"mappings":"AAQA,qBACa,iBAAiB;IAE5B,EAAE,EAAE,MAAM,CAAC;IAGX,SAAS,EAAE,MAAM,CAAC;IAGlB,SAAS,EAAE,MAAM,CAAC;IAGlB,cAAc,EAAE,MAAM,CAAC;IAGvB,aAAa,EAAE,OAAO,CAAC;IAGvB,WAAW,EAAE,MAAM,EAAE,CAAC;IAGtB,aAAa,EAAE,MAAM,CAAC;IAGtB,SAAS,EAAE,MAAM,CAAC;IAGlB,SAAS,EAAE,MAAM,CAAC;CACnB"}
|
|
1
|
+
{"version":3,"file":"profile-permission.entity.d.ts","sourceRoot":"","sources":["../../../src/domain/entities/profile-permission.entity.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAE3C,qBACa,iBAAiB;IAE5B,EAAE,EAAE,MAAM,CAAC;IAGX,SAAS,EAAE,MAAM,CAAC;IAGlB,OAAO,EAAE,OAAO,CAAC;IAGjB,SAAS,EAAE,MAAM,CAAC;IAGlB,cAAc,EAAE,MAAM,CAAC;IAGvB,aAAa,EAAE,OAAO,CAAC;IAGvB,WAAW,EAAE,MAAM,EAAE,CAAC;IAGtB,aAAa,EAAE,MAAM,CAAC;IAGtB,SAAS,EAAE,MAAM,CAAC;IAGlB,SAAS,EAAE,MAAM,CAAC;CACnB"}
|
|
@@ -11,9 +11,11 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.ProfilePermission = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
|
+
const profile_entity_1 = require("./profile.entity");
|
|
14
15
|
let ProfilePermission = class ProfilePermission {
|
|
15
16
|
id;
|
|
16
17
|
profileId;
|
|
18
|
+
profile;
|
|
17
19
|
groupSlug;
|
|
18
20
|
permissionSlug;
|
|
19
21
|
hasPermission;
|
|
@@ -30,6 +32,10 @@ __decorate([
|
|
|
30
32
|
(0, typeorm_1.Column)(),
|
|
31
33
|
__metadata("design:type", Number)
|
|
32
34
|
], ProfilePermission.prototype, "profileId", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, typeorm_1.ManyToOne)(() => profile_entity_1.Profile),
|
|
37
|
+
__metadata("design:type", profile_entity_1.Profile)
|
|
38
|
+
], ProfilePermission.prototype, "profile", void 0);
|
|
33
39
|
__decorate([
|
|
34
40
|
(0, typeorm_1.Column)(),
|
|
35
41
|
__metadata("design:type", String)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profile-permission.entity.js","sourceRoot":"","sources":["../../../src/domain/entities/profile-permission.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"profile-permission.entity.js","sourceRoot":"","sources":["../../../src/domain/entities/profile-permission.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAOiB;AACjB,qDAA2C;AAGpC,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;IAE5B,EAAE,CAAS;IAGX,SAAS,CAAS;IAGlB,OAAO,CAAU;IAGjB,SAAS,CAAS;IAGlB,cAAc,CAAS;IAGvB,aAAa,CAAU;IAGvB,WAAW,CAAW;IAGtB,aAAa,CAAS;IAGtB,SAAS,CAAS;IAGlB,SAAS,CAAS;CACnB,CAAA;AA7BC;IAAC,IAAA,gCAAsB,GAAE;;6CACd;AAEX;IAAC,IAAA,gBAAM,GAAE;;oDACS;AAElB;IAAC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,wBAAO,CAAC;8BAChB,wBAAO;kDAAC;AAEjB;IAAC,IAAA,gBAAM,GAAE;;oDACS;AAElB;IAAC,IAAA,gBAAM,GAAE;;yDACc;AAEvB;IAAC,IAAA,gBAAM,GAAE;;wDACc;AAEvB;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,cAAc,EAAE,CAAC;;sDACX;AAEtB;IAAC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wDACL;AAEtB;IAAC,IAAA,0BAAgB,GAAE;;oDACD;AAElB;IAAC,IAAA,0BAAgB,GAAE;;oDACD;AA7BP,iBAAiB;IAD7B,IAAA,gBAAM,GAAE;GACI,iBAAiB,CA8B7B;AA9BY,8CAAiB"}
|
|
@@ -1,10 +1,23 @@
|
|
|
1
|
+
import { User } from './user.entity';
|
|
1
2
|
export declare class Profile {
|
|
2
3
|
id: number;
|
|
3
4
|
name: string;
|
|
5
|
+
application: string;
|
|
6
|
+
isAdmin: boolean;
|
|
7
|
+
isDefault: boolean;
|
|
4
8
|
description: string;
|
|
5
|
-
type: string;
|
|
6
9
|
createdBy: number;
|
|
10
|
+
creator: User;
|
|
11
|
+
updatedBy: number;
|
|
12
|
+
updater: User;
|
|
7
13
|
updatedAt: string;
|
|
8
14
|
createdAt: string;
|
|
15
|
+
equal(data: unknown): boolean;
|
|
9
16
|
}
|
|
17
|
+
export declare const ProfileApplicationType: {
|
|
18
|
+
square: string;
|
|
19
|
+
exams: string;
|
|
20
|
+
payments: string;
|
|
21
|
+
enroll_x: string;
|
|
22
|
+
};
|
|
10
23
|
//# sourceMappingURL=profile.entity.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profile.entity.d.ts","sourceRoot":"","sources":["../../../src/domain/entities/profile.entity.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"profile.entity.d.ts","sourceRoot":"","sources":["../../../src/domain/entities/profile.entity.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAErC,qBACa,OAAO;IAElB,EAAE,EAAE,MAAM,CAAC;IAGX,IAAI,EAAE,MAAM,CAAC;IAGb,WAAW,EAAE,MAAM,CAAC;IAGpB,OAAO,EAAE,OAAO,CAAC;IAGjB,SAAS,EAAE,OAAO,CAAC;IAGnB,WAAW,EAAE,MAAM,CAAC;IAGpB,SAAS,EAAE,MAAM,CAAC;IAIlB,OAAO,EAAE,IAAI,CAAC;IAGd,SAAS,EAAE,MAAM,CAAC;IAIlB,OAAO,EAAE,IAAI,CAAC;IAGd,SAAS,EAAE,MAAM,CAAC;IAGlB,SAAS,EAAE,MAAM,CAAC;IAElB,KAAK,CAAC,IAAI,EAAE,OAAO;CAKpB;AAED,eAAO,MAAM,sBAAsB;;;;;CAKlC,CAAC"}
|
|
@@ -9,16 +9,29 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.Profile = void 0;
|
|
12
|
+
exports.ProfileApplicationType = exports.Profile = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
|
+
const user_entity_1 = require("./user.entity");
|
|
14
15
|
let Profile = class Profile {
|
|
15
16
|
id;
|
|
16
17
|
name;
|
|
18
|
+
application;
|
|
19
|
+
isAdmin;
|
|
20
|
+
isDefault;
|
|
17
21
|
description;
|
|
18
|
-
type;
|
|
19
22
|
createdBy;
|
|
23
|
+
creator;
|
|
24
|
+
updatedBy;
|
|
25
|
+
updater;
|
|
20
26
|
updatedAt;
|
|
21
27
|
createdAt;
|
|
28
|
+
equal(data) {
|
|
29
|
+
if (data['name'] !== this.name)
|
|
30
|
+
return false;
|
|
31
|
+
if (data['description'] !== this.description)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
22
35
|
};
|
|
23
36
|
__decorate([
|
|
24
37
|
(0, typeorm_1.PrimaryGeneratedColumn)(),
|
|
@@ -31,15 +44,37 @@ __decorate([
|
|
|
31
44
|
__decorate([
|
|
32
45
|
(0, typeorm_1.Column)(),
|
|
33
46
|
__metadata("design:type", String)
|
|
34
|
-
], Profile.prototype, "
|
|
47
|
+
], Profile.prototype, "application", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, typeorm_1.Column)({ default: false }),
|
|
50
|
+
__metadata("design:type", Boolean)
|
|
51
|
+
], Profile.prototype, "isAdmin", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, typeorm_1.Column)({ default: false }),
|
|
54
|
+
__metadata("design:type", Boolean)
|
|
55
|
+
], Profile.prototype, "isDefault", void 0);
|
|
35
56
|
__decorate([
|
|
36
57
|
(0, typeorm_1.Column)(),
|
|
37
58
|
__metadata("design:type", String)
|
|
38
|
-
], Profile.prototype, "
|
|
59
|
+
], Profile.prototype, "description", void 0);
|
|
39
60
|
__decorate([
|
|
40
|
-
(0, typeorm_1.Column)(),
|
|
61
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
41
62
|
__metadata("design:type", Number)
|
|
42
63
|
], Profile.prototype, "createdBy", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User),
|
|
66
|
+
(0, typeorm_1.JoinColumn)({ name: 'created_by' }),
|
|
67
|
+
__metadata("design:type", user_entity_1.User)
|
|
68
|
+
], Profile.prototype, "creator", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
71
|
+
__metadata("design:type", Number)
|
|
72
|
+
], Profile.prototype, "updatedBy", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User),
|
|
75
|
+
(0, typeorm_1.JoinColumn)({ name: 'updated_by' }),
|
|
76
|
+
__metadata("design:type", user_entity_1.User)
|
|
77
|
+
], Profile.prototype, "updater", void 0);
|
|
43
78
|
__decorate([
|
|
44
79
|
(0, typeorm_1.UpdateDateColumn)(),
|
|
45
80
|
__metadata("design:type", String)
|
|
@@ -52,4 +87,10 @@ Profile = __decorate([
|
|
|
52
87
|
(0, typeorm_1.Entity)()
|
|
53
88
|
], Profile);
|
|
54
89
|
exports.Profile = Profile;
|
|
90
|
+
exports.ProfileApplicationType = {
|
|
91
|
+
square: 'square',
|
|
92
|
+
exams: 'exams',
|
|
93
|
+
payments: 'payments',
|
|
94
|
+
enroll_x: 'enroll_x',
|
|
95
|
+
};
|
|
55
96
|
//# sourceMappingURL=profile.entity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profile.entity.js","sourceRoot":"","sources":["../../../src/domain/entities/profile.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"profile.entity.js","sourceRoot":"","sources":["../../../src/domain/entities/profile.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAQiB;AACjB,+CAAqC;AAG9B,IAAM,OAAO,GAAb,MAAM,OAAO;IAElB,EAAE,CAAS;IAGX,IAAI,CAAS;IAGb,WAAW,CAAS;IAGpB,OAAO,CAAU;IAGjB,SAAS,CAAU;IAGnB,WAAW,CAAS;IAGpB,SAAS,CAAS;IAIlB,OAAO,CAAO;IAGd,SAAS,CAAS;IAIlB,OAAO,CAAO;IAGd,SAAS,CAAS;IAGlB,SAAS,CAAS;IAElB,KAAK,CAAC,IAAa;QACjB,IAAI,IAAI,CAAC,MAAM,CAAC,KAAK,IAAI,CAAC,IAAI;YAAE,OAAO,KAAK,CAAC;QAC7C,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
|
|
2
|
+
export declare const EnrollXPermission: {
|
|
3
|
+
manage_enrol_x_profile_permissions: {
|
|
4
|
+
GROUP: {
|
|
5
|
+
name: string;
|
|
6
|
+
slug: string;
|
|
7
|
+
application: string;
|
|
8
|
+
};
|
|
9
|
+
PERMISSIONS: {
|
|
10
|
+
manage_enrol_x_profile_permissions_view: {
|
|
11
|
+
name: string;
|
|
12
|
+
slug: string;
|
|
13
|
+
permissions: any[];
|
|
14
|
+
permissionObj: {};
|
|
15
|
+
};
|
|
16
|
+
manage_enrol_x_profile_permissions_add: {
|
|
17
|
+
name: string;
|
|
18
|
+
slug: string;
|
|
19
|
+
permissions: any[];
|
|
20
|
+
permissionObj: {};
|
|
21
|
+
};
|
|
22
|
+
manage_enrol_x_profile_permissions_edit: {
|
|
23
|
+
name: string;
|
|
24
|
+
slug: string;
|
|
25
|
+
permissions: any[];
|
|
26
|
+
permissionObj: {};
|
|
27
|
+
};
|
|
28
|
+
manage_enrol_x_profile_permissions_delete: {
|
|
29
|
+
name: string;
|
|
30
|
+
slug: string;
|
|
31
|
+
permissions: any[];
|
|
32
|
+
permissionObj: {};
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
admissions: {
|
|
37
|
+
GROUP: {
|
|
38
|
+
name: string;
|
|
39
|
+
slug: string;
|
|
40
|
+
application: string;
|
|
41
|
+
};
|
|
42
|
+
PERMISSIONS: {
|
|
43
|
+
admissions_view: {
|
|
44
|
+
name: string;
|
|
45
|
+
slug: string;
|
|
46
|
+
permissions: string[];
|
|
47
|
+
permissionObj: {
|
|
48
|
+
Added: string;
|
|
49
|
+
Counselled: string;
|
|
50
|
+
All: string;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
admissions_add: {
|
|
54
|
+
name: string;
|
|
55
|
+
slug: string;
|
|
56
|
+
permissions: string[];
|
|
57
|
+
permissionObj: {
|
|
58
|
+
Added: string;
|
|
59
|
+
Counselled: string;
|
|
60
|
+
All: string;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
admissions_edit: {
|
|
64
|
+
name: string;
|
|
65
|
+
slug: string;
|
|
66
|
+
permissions: string[];
|
|
67
|
+
permissionObj: {
|
|
68
|
+
Added: string;
|
|
69
|
+
Counselled: string;
|
|
70
|
+
All: string;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
admissions_delete: {
|
|
74
|
+
name: string;
|
|
75
|
+
slug: string;
|
|
76
|
+
permissions: string[];
|
|
77
|
+
permissionObj: {
|
|
78
|
+
Added: string;
|
|
79
|
+
Counselled: string;
|
|
80
|
+
All: string;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
admissions_change_status: {
|
|
84
|
+
name: string;
|
|
85
|
+
slug: string;
|
|
86
|
+
permissions: string[];
|
|
87
|
+
permissionObj: {
|
|
88
|
+
Added: string;
|
|
89
|
+
Counselled: string;
|
|
90
|
+
All: string;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
admissions_import: {
|
|
94
|
+
name: string;
|
|
95
|
+
slug: string;
|
|
96
|
+
permissions: string[];
|
|
97
|
+
permissionObj: {
|
|
98
|
+
Added: string;
|
|
99
|
+
Counselled: string;
|
|
100
|
+
All: string;
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
admissions_export: {
|
|
104
|
+
name: string;
|
|
105
|
+
slug: string;
|
|
106
|
+
permissions: string[];
|
|
107
|
+
permissionObj: {
|
|
108
|
+
Added: string;
|
|
109
|
+
Counselled: string;
|
|
110
|
+
All: string;
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
admissions_confirm: {
|
|
114
|
+
name: string;
|
|
115
|
+
slug: string;
|
|
116
|
+
permissions: string[];
|
|
117
|
+
permissionObj: {
|
|
118
|
+
Added: string;
|
|
119
|
+
Counselled: string;
|
|
120
|
+
All: string;
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
admission_dashboard_view: {
|
|
124
|
+
name: string;
|
|
125
|
+
slug: string;
|
|
126
|
+
permissions: any[];
|
|
127
|
+
permissionObj: {};
|
|
128
|
+
};
|
|
129
|
+
admissions_view_cet: {
|
|
130
|
+
name: string;
|
|
131
|
+
slug: string;
|
|
132
|
+
permissions: any[];
|
|
133
|
+
permissionObj: {};
|
|
134
|
+
};
|
|
135
|
+
admissions_download_cet: {
|
|
136
|
+
name: string;
|
|
137
|
+
slug: string;
|
|
138
|
+
permissions: any[];
|
|
139
|
+
permissionObj: {};
|
|
140
|
+
};
|
|
141
|
+
admissions_view_phd_applications: {
|
|
142
|
+
name: string;
|
|
143
|
+
slug: string;
|
|
144
|
+
permissions: any[];
|
|
145
|
+
permissionObj: {};
|
|
146
|
+
};
|
|
147
|
+
admissions_download_phd_applications: {
|
|
148
|
+
name: string;
|
|
149
|
+
slug: string;
|
|
150
|
+
permissions: any[];
|
|
151
|
+
permissionObj: {};
|
|
152
|
+
};
|
|
153
|
+
};
|
|
154
|
+
};
|
|
155
|
+
lead_status: {
|
|
156
|
+
GROUP: {
|
|
157
|
+
name: string;
|
|
158
|
+
slug: string;
|
|
159
|
+
application: string;
|
|
160
|
+
};
|
|
161
|
+
PERMISSIONS: {
|
|
162
|
+
lead_status_view: {
|
|
163
|
+
name: string;
|
|
164
|
+
slug: string;
|
|
165
|
+
permissions: any[];
|
|
166
|
+
permissionObj: {};
|
|
167
|
+
};
|
|
168
|
+
lead_status_add: {
|
|
169
|
+
name: string;
|
|
170
|
+
slug: string;
|
|
171
|
+
permissions: any[];
|
|
172
|
+
permissionObj: {};
|
|
173
|
+
};
|
|
174
|
+
lead_status_edit: {
|
|
175
|
+
name: string;
|
|
176
|
+
slug: string;
|
|
177
|
+
permissions: any[];
|
|
178
|
+
permissionObj: {};
|
|
179
|
+
};
|
|
180
|
+
lead_status_delete: {
|
|
181
|
+
name: string;
|
|
182
|
+
slug: string;
|
|
183
|
+
permissions: any[];
|
|
184
|
+
permissionObj: {};
|
|
185
|
+
};
|
|
186
|
+
};
|
|
187
|
+
};
|
|
188
|
+
};
|
|
189
|
+
export declare const EnrollXDefaultProfiles: IDefaultProfile[];
|
|
190
|
+
//# sourceMappingURL=enroll-x-permissions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enroll-x-permissions.d.ts","sourceRoot":"","sources":["../../../src/permissions/app-permissions/enroll-x-permissions.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAEjD,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0L7B,CAAC;AAUF,eAAO,MAAM,sBAAsB,EAAE,eAAe,EAAoB,CAAC"}
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EnrollXDefaultProfiles = exports.EnrollXPermission = void 0;
|
|
4
|
+
const domain_1 = require("../../domain");
|
|
5
|
+
exports.EnrollXPermission = {
|
|
6
|
+
manage_enrol_x_profile_permissions: {
|
|
7
|
+
GROUP: {
|
|
8
|
+
name: 'Manage enrol_x Profile Permissions',
|
|
9
|
+
slug: 'manage_enrol_x_profile_permissions',
|
|
10
|
+
application: domain_1.ProfileApplicationType.enroll_x,
|
|
11
|
+
},
|
|
12
|
+
PERMISSIONS: {
|
|
13
|
+
manage_enrol_x_profile_permissions_view: {
|
|
14
|
+
name: 'View',
|
|
15
|
+
slug: 'manage_enrol_x_profile_permissions_view',
|
|
16
|
+
permissions: [],
|
|
17
|
+
permissionObj: {},
|
|
18
|
+
},
|
|
19
|
+
manage_enrol_x_profile_permissions_add: {
|
|
20
|
+
name: 'Add',
|
|
21
|
+
slug: 'manage_enrol_x_profile_permissions_add',
|
|
22
|
+
permissions: [],
|
|
23
|
+
permissionObj: {},
|
|
24
|
+
},
|
|
25
|
+
manage_enrol_x_profile_permissions_edit: {
|
|
26
|
+
name: 'Edit',
|
|
27
|
+
slug: 'manage_enrol_x_profile_permissions_edit',
|
|
28
|
+
permissions: [],
|
|
29
|
+
permissionObj: {},
|
|
30
|
+
},
|
|
31
|
+
manage_enrol_x_profile_permissions_delete: {
|
|
32
|
+
name: 'Delete',
|
|
33
|
+
slug: 'manage_enrol_x_profile_permissions_delete',
|
|
34
|
+
permissions: [],
|
|
35
|
+
permissionObj: {},
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
admissions: {
|
|
40
|
+
GROUP: {
|
|
41
|
+
name: 'Admissions',
|
|
42
|
+
slug: 'admissions',
|
|
43
|
+
application: domain_1.ProfileApplicationType.enroll_x,
|
|
44
|
+
},
|
|
45
|
+
PERMISSIONS: {
|
|
46
|
+
admissions_view: {
|
|
47
|
+
name: 'View',
|
|
48
|
+
slug: 'admissions_view',
|
|
49
|
+
permissions: ['Added', 'Counselled', 'All'],
|
|
50
|
+
permissionObj: {
|
|
51
|
+
Added: 'Added',
|
|
52
|
+
Counselled: 'Counselled',
|
|
53
|
+
All: 'All',
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
admissions_add: {
|
|
57
|
+
name: 'Add',
|
|
58
|
+
slug: 'admissions_add',
|
|
59
|
+
permissions: ['Added', 'Counselled', 'All'],
|
|
60
|
+
permissionObj: {
|
|
61
|
+
Added: 'Added',
|
|
62
|
+
Counselled: 'Counselled',
|
|
63
|
+
All: 'All',
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
admissions_edit: {
|
|
67
|
+
name: 'Edit',
|
|
68
|
+
slug: 'admissions_edit',
|
|
69
|
+
permissions: ['Added', 'Counselled', 'All'],
|
|
70
|
+
permissionObj: {
|
|
71
|
+
Added: 'Added',
|
|
72
|
+
Counselled: 'Counselled',
|
|
73
|
+
All: 'All',
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
admissions_delete: {
|
|
77
|
+
name: 'Delete',
|
|
78
|
+
slug: 'admissions_delete',
|
|
79
|
+
permissions: ['Added', 'Counselled', 'All'],
|
|
80
|
+
permissionObj: {
|
|
81
|
+
Added: 'Added',
|
|
82
|
+
Counselled: 'Counselled',
|
|
83
|
+
All: 'All',
|
|
84
|
+
},
|
|
85
|
+
},
|
|
86
|
+
admissions_change_status: {
|
|
87
|
+
name: 'Change Status',
|
|
88
|
+
slug: 'admissions_change_status',
|
|
89
|
+
permissions: ['Added', 'Counselled', 'All'],
|
|
90
|
+
permissionObj: {
|
|
91
|
+
Added: 'Added',
|
|
92
|
+
Counselled: 'Counselled',
|
|
93
|
+
All: 'All',
|
|
94
|
+
},
|
|
95
|
+
},
|
|
96
|
+
admissions_import: {
|
|
97
|
+
name: 'Import',
|
|
98
|
+
slug: 'admissions_import',
|
|
99
|
+
permissions: ['Added', 'Counselled', 'All'],
|
|
100
|
+
permissionObj: {
|
|
101
|
+
Added: 'Added',
|
|
102
|
+
Counselled: 'Counselled',
|
|
103
|
+
All: 'All',
|
|
104
|
+
},
|
|
105
|
+
},
|
|
106
|
+
admissions_export: {
|
|
107
|
+
name: 'Export',
|
|
108
|
+
slug: 'admissions_export',
|
|
109
|
+
permissions: ['Added', 'Counselled', 'All'],
|
|
110
|
+
permissionObj: {
|
|
111
|
+
Added: 'Added',
|
|
112
|
+
Counselled: 'Counselled',
|
|
113
|
+
All: 'All',
|
|
114
|
+
},
|
|
115
|
+
},
|
|
116
|
+
admissions_confirm: {
|
|
117
|
+
name: 'Confirm',
|
|
118
|
+
slug: 'admissions_confirm',
|
|
119
|
+
permissions: ['Added', 'Counselled', 'All'],
|
|
120
|
+
permissionObj: {
|
|
121
|
+
Added: 'Added',
|
|
122
|
+
Counselled: 'Counselled',
|
|
123
|
+
All: 'All',
|
|
124
|
+
},
|
|
125
|
+
},
|
|
126
|
+
admission_dashboard_view: {
|
|
127
|
+
name: 'Dashboard View',
|
|
128
|
+
slug: 'admission_dashboard_view',
|
|
129
|
+
permissions: [],
|
|
130
|
+
permissionObj: {},
|
|
131
|
+
},
|
|
132
|
+
admissions_view_cet: {
|
|
133
|
+
name: 'View CET',
|
|
134
|
+
slug: 'admissions_view_cet',
|
|
135
|
+
permissions: [],
|
|
136
|
+
permissionObj: {},
|
|
137
|
+
},
|
|
138
|
+
admissions_download_cet: {
|
|
139
|
+
name: 'Download CET',
|
|
140
|
+
slug: 'admissions_download_cet',
|
|
141
|
+
permissions: [],
|
|
142
|
+
permissionObj: {},
|
|
143
|
+
},
|
|
144
|
+
admissions_view_phd_applications: {
|
|
145
|
+
name: 'View PHD Applications',
|
|
146
|
+
slug: 'admissions_view_phd_applications',
|
|
147
|
+
permissions: [],
|
|
148
|
+
permissionObj: {},
|
|
149
|
+
},
|
|
150
|
+
admissions_download_phd_applications: {
|
|
151
|
+
name: 'Download PHD Applications',
|
|
152
|
+
slug: 'admissions_download_phd_applications',
|
|
153
|
+
permissions: [],
|
|
154
|
+
permissionObj: {},
|
|
155
|
+
},
|
|
156
|
+
},
|
|
157
|
+
},
|
|
158
|
+
lead_status: {
|
|
159
|
+
GROUP: {
|
|
160
|
+
name: 'Lead Status',
|
|
161
|
+
slug: 'lead_status',
|
|
162
|
+
application: domain_1.ProfileApplicationType.enroll_x,
|
|
163
|
+
},
|
|
164
|
+
PERMISSIONS: {
|
|
165
|
+
lead_status_view: {
|
|
166
|
+
name: 'View',
|
|
167
|
+
slug: 'lead_status_view',
|
|
168
|
+
permissions: [],
|
|
169
|
+
permissionObj: {},
|
|
170
|
+
},
|
|
171
|
+
lead_status_add: {
|
|
172
|
+
name: 'Add',
|
|
173
|
+
slug: 'lead_status_add',
|
|
174
|
+
permissions: [],
|
|
175
|
+
permissionObj: {},
|
|
176
|
+
},
|
|
177
|
+
lead_status_edit: {
|
|
178
|
+
name: 'Edit',
|
|
179
|
+
slug: 'lead_status_edit',
|
|
180
|
+
permissions: [],
|
|
181
|
+
permissionObj: {},
|
|
182
|
+
},
|
|
183
|
+
lead_status_delete: {
|
|
184
|
+
name: 'Delete',
|
|
185
|
+
slug: 'lead_status_delete',
|
|
186
|
+
permissions: [],
|
|
187
|
+
permissionObj: {},
|
|
188
|
+
},
|
|
189
|
+
},
|
|
190
|
+
},
|
|
191
|
+
};
|
|
192
|
+
const Administrator = {
|
|
193
|
+
name: 'Administrator',
|
|
194
|
+
application: domain_1.ProfileApplicationType.enroll_x,
|
|
195
|
+
isAdmin: true,
|
|
196
|
+
description: 'EnrollX Administrator',
|
|
197
|
+
permissions: [],
|
|
198
|
+
};
|
|
199
|
+
exports.EnrollXDefaultProfiles = [Administrator];
|
|
200
|
+
//# sourceMappingURL=enroll-x-permissions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enroll-x-permissions.js","sourceRoot":"","sources":["../../../src/permissions/app-permissions/enroll-x-permissions.ts"],"names":[],"mappings":";;;AAAA,yCAAsD;AAGzC,QAAA,iBAAiB,GAAG;IAC/B,kCAAkC,EAAE;QAClC,KAAK,EAAE;YACL,IAAI,EAAE,oCAAoC;YAC1C,IAAI,EAAE,oCAAoC;YAC1C,WAAW,EAAE,+BAAsB,CAAC,QAAQ;SAC7C;QACD,WAAW,EAAE;YACX,uCAAuC,EAAE;gBACvC,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,yCAAyC;gBAC/C,WAAW,EAAE,EAAE;gBACf,aAAa,EAAE,EAAE;aAClB;YACD,sCAAsC,EAAE;gBACtC,IAAI,EAAE,KAAK;gBACX,IAAI,EAAE,wCAAwC;gBAC9C,WAAW,EAAE,EAAE;gBACf,aAAa,EAAE,EAAE;aAClB;YACD,uCAAuC,EAAE;gBACvC,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,yCAAyC;gBAC/C,WAAW,EAAE,EAAE;gBACf,aAAa,EAAE,EAAE;aAClB;YACD,yCA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