@intelact/bright 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
package/lib/index.d.ts CHANGED
@@ -1 +1,2 @@
1
1
  export * from './enums';
2
+ export * from './security';
package/lib/index.js CHANGED
@@ -15,4 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./enums"), exports);
18
+ __exportStar(require("./security"), exports);
18
19
  //# sourceMappingURL=index.js.map
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,6CAA2B"}
@@ -0,0 +1,5 @@
1
+ import { Permission } from './permissions';
2
+ declare const ACL: {
3
+ [key: string]: Permission[];
4
+ };
5
+ export { ACL };
@@ -0,0 +1,180 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ACL = void 0;
4
+ const role_1 = require("./role");
5
+ const permissions_1 = require("./permissions");
6
+ const ACL = {};
7
+ exports.ACL = ACL;
8
+ ACL[role_1.Role.BrandOwner] = [
9
+ permissions_1.Permission.InvitePublisher,
10
+ permissions_1.Permission.SuspendPublisher,
11
+ permissions_1.Permission.DisablePublisher,
12
+ permissions_1.Permission.ManagePublisher,
13
+ permissions_1.Permission.InviteBrandUser,
14
+ permissions_1.Permission.SuspendBrandUser,
15
+ permissions_1.Permission.DisableBrandUser,
16
+ permissions_1.Permission.ManageBrandSettings,
17
+ permissions_1.Permission.ViewPublisherContent,
18
+ permissions_1.Permission.BlockPublisherContent,
19
+ permissions_1.Permission.MergeAuthors,
20
+ permissions_1.Permission.ManageTopics,
21
+ permissions_1.Permission.ManageFeedbacks,
22
+ permissions_1.Permission.ManageQuestion,
23
+ permissions_1.Permission.ManageCategories,
24
+ permissions_1.Permission.ManageSurveys,
25
+ permissions_1.Permission.ManagePromotions,
26
+ permissions_1.Permission.ManageBoosts,
27
+ permissions_1.Permission.GenerateSurveyReports,
28
+ permissions_1.Permission.GeneratePromotionReports,
29
+ permissions_1.Permission.GenerateFeedbackReports,
30
+ permissions_1.Permission.GeneratePerformanceReports,
31
+ ];
32
+ ACL[role_1.Role.BrandAdministrator] = [
33
+ permissions_1.Permission.ManagePublisher,
34
+ permissions_1.Permission.InviteBrandUser,
35
+ permissions_1.Permission.SuspendBrandUser,
36
+ permissions_1.Permission.DisableBrandUser,
37
+ permissions_1.Permission.ManageBrandSettings,
38
+ permissions_1.Permission.ViewPublisherContent,
39
+ permissions_1.Permission.BlockPublisherContent,
40
+ permissions_1.Permission.MergeAuthors,
41
+ permissions_1.Permission.ManageTopics,
42
+ permissions_1.Permission.ManageFeedbacks,
43
+ permissions_1.Permission.ManageQuestion,
44
+ permissions_1.Permission.ManageCategories,
45
+ permissions_1.Permission.ManageSurveys,
46
+ permissions_1.Permission.ManagePromotions,
47
+ permissions_1.Permission.ManageBoosts,
48
+ permissions_1.Permission.GenerateSurveyReports,
49
+ permissions_1.Permission.GeneratePromotionReports,
50
+ permissions_1.Permission.GenerateFeedbackReports,
51
+ permissions_1.Permission.GeneratePerformanceReports,
52
+ ];
53
+ ACL[role_1.Role.BrandQuestionsManager] = [
54
+ permissions_1.Permission.MergeAuthors,
55
+ permissions_1.Permission.ManageQuestion,
56
+ permissions_1.Permission.ManageCategories,
57
+ ];
58
+ ACL[role_1.Role.BrandSurveysManager] = [
59
+ permissions_1.Permission.ManageSurveys,
60
+ permissions_1.Permission.GenerateSurveyReports,
61
+ permissions_1.Permission.GeneratePerformanceReports,
62
+ ];
63
+ ACL[role_1.Role.BrandBoostManager] = [
64
+ permissions_1.Permission.ManageBoosts,
65
+ permissions_1.Permission.GeneratePerformanceReports,
66
+ ];
67
+ ACL[role_1.Role.BrandPromotionsManager] = [
68
+ permissions_1.Permission.ManagePromotions,
69
+ permissions_1.Permission.GeneratePromotionReports,
70
+ permissions_1.Permission.GeneratePerformanceReports,
71
+ ];
72
+ ACL[role_1.Role.BrandFeedbacksManager] = [
73
+ permissions_1.Permission.ManageFeedbacks,
74
+ permissions_1.Permission.GenerateFeedbackReports,
75
+ permissions_1.Permission.GeneratePerformanceReports,
76
+ ];
77
+ ACL[role_1.Role.BrandTopicsManager] = [
78
+ permissions_1.Permission.ManageTopics,
79
+ permissions_1.Permission.GeneratePerformanceReports,
80
+ ];
81
+ ACL[role_1.Role.BrandAuthorsManager] = [
82
+ permissions_1.Permission.MergeAuthors,
83
+ ];
84
+ ACL[role_1.Role.PublisherOwner] = [
85
+ permissions_1.Permission.InvitePublisherUser,
86
+ permissions_1.Permission.SuspendPublisherUser,
87
+ permissions_1.Permission.DisablePublisherUser,
88
+ permissions_1.Permission.ManagePublisherAccount,
89
+ permissions_1.Permission.ManagePublisherSettings,
90
+ permissions_1.Permission.PublishContent,
91
+ permissions_1.Permission.ArchiveContent,
92
+ permissions_1.Permission.DeleteContent,
93
+ permissions_1.Permission.ManageCollection,
94
+ permissions_1.Permission.ManageAssets,
95
+ permissions_1.Permission.EditArticles,
96
+ permissions_1.Permission.EditBooks,
97
+ permissions_1.Permission.EditVideos,
98
+ permissions_1.Permission.EditAudios,
99
+ permissions_1.Permission.EditNews,
100
+ permissions_1.Permission.EditEvents,
101
+ permissions_1.Permission.EditQuotes,
102
+ permissions_1.Permission.GenerateSurveyReports,
103
+ permissions_1.Permission.GeneratePromotionReports,
104
+ permissions_1.Permission.GenerateFeedbackReports,
105
+ permissions_1.Permission.GeneratePerformanceReports,
106
+ ];
107
+ ACL[role_1.Role.PublisherAdministrator] = [
108
+ permissions_1.Permission.ManagePublisherAccount,
109
+ permissions_1.Permission.ManagePublisherSettings,
110
+ permissions_1.Permission.PublishContent,
111
+ permissions_1.Permission.ArchiveContent,
112
+ permissions_1.Permission.DeleteContent,
113
+ permissions_1.Permission.ManageCollection,
114
+ permissions_1.Permission.ManageAssets,
115
+ permissions_1.Permission.EditArticles,
116
+ permissions_1.Permission.EditBooks,
117
+ permissions_1.Permission.EditVideos,
118
+ permissions_1.Permission.EditAudios,
119
+ permissions_1.Permission.EditNews,
120
+ permissions_1.Permission.EditEvents,
121
+ permissions_1.Permission.EditQuotes,
122
+ permissions_1.Permission.GenerateSurveyReports,
123
+ permissions_1.Permission.GeneratePromotionReports,
124
+ permissions_1.Permission.GenerateFeedbackReports,
125
+ permissions_1.Permission.GeneratePerformanceReports,
126
+ ];
127
+ ACL[role_1.Role.PublisherManager] = [
128
+ permissions_1.Permission.PublishContent,
129
+ permissions_1.Permission.ArchiveContent,
130
+ permissions_1.Permission.DeleteContent,
131
+ permissions_1.Permission.ManageCollection,
132
+ permissions_1.Permission.ManageAssets,
133
+ permissions_1.Permission.EditArticles,
134
+ permissions_1.Permission.EditBooks,
135
+ permissions_1.Permission.EditVideos,
136
+ permissions_1.Permission.EditAudios,
137
+ permissions_1.Permission.EditNews,
138
+ permissions_1.Permission.EditEvents,
139
+ permissions_1.Permission.EditQuotes,
140
+ permissions_1.Permission.GenerateSurveyReports,
141
+ permissions_1.Permission.GeneratePromotionReports,
142
+ permissions_1.Permission.GenerateFeedbackReports,
143
+ permissions_1.Permission.GeneratePerformanceReports,
144
+ ];
145
+ ACL[role_1.Role.PublisherArticlesEditor] = [
146
+ permissions_1.Permission.ManageAssets,
147
+ permissions_1.Permission.EditArticles,
148
+ permissions_1.Permission.GeneratePerformanceReports,
149
+ ];
150
+ ACL[role_1.Role.PublisherBooksEditor] = [
151
+ permissions_1.Permission.ManageAssets,
152
+ permissions_1.Permission.EditBooks,
153
+ permissions_1.Permission.GeneratePerformanceReports,
154
+ ];
155
+ ACL[role_1.Role.PublisherVideosEditor] = [
156
+ permissions_1.Permission.ManageAssets,
157
+ permissions_1.Permission.EditVideos,
158
+ permissions_1.Permission.GeneratePerformanceReports,
159
+ ];
160
+ ACL[role_1.Role.PublisherAudiosEditor] = [
161
+ permissions_1.Permission.ManageAssets,
162
+ permissions_1.Permission.EditAudios,
163
+ permissions_1.Permission.GeneratePerformanceReports,
164
+ ];
165
+ ACL[role_1.Role.PublisherNewsEditor] = [
166
+ permissions_1.Permission.ManageAssets,
167
+ permissions_1.Permission.EditNews,
168
+ permissions_1.Permission.GeneratePerformanceReports,
169
+ ];
170
+ ACL[role_1.Role.PublisherEventsEditor] = [
171
+ permissions_1.Permission.ManageAssets,
172
+ permissions_1.Permission.EditEvents,
173
+ permissions_1.Permission.GeneratePerformanceReports,
174
+ ];
175
+ ACL[role_1.Role.PublisherQuotesEditor] = [
176
+ permissions_1.Permission.ManageAssets,
177
+ permissions_1.Permission.EditQuotes,
178
+ permissions_1.Permission.GeneratePerformanceReports,
179
+ ];
180
+ //# sourceMappingURL=acl.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acl.js","sourceRoot":"","sources":["../../src/security/acl.ts"],"names":[],"mappings":";;;AAAA,iCAA8B;AAC9B,+CAA2C;AAE3C,MAAM,GAAG,GAAoC,EAAE,CAAC;AAsNvC,kBAAG;AApNZ,GAAG,CAAC,WAAI,CAAC,UAAU,CAAC,GAAG;IAEtB,wBAAU,CAAC,eAAe;IAC1B,wBAAU,CAAC,gBAAgB;IAC3B,wBAAU,CAAC,gBAAgB;IAC3B,wBAAU,CAAC,eAAe;IAE1B,wBAAU,CAAC,eAAe;IAC1B,wBAAU,CAAC,gBAAgB;IAC3B,wBAAU,CAAC,gBAAgB;IAE3B,wBAAU,CAAC,mBAAmB;IAC9B,wBAAU,CAAC,oBAAoB;IAC/B,wBAAU,CAAC,qBAAqB;IAChC,wBAAU,CAAC,YAAY;IAEvB,wBAAU,CAAC,YAAY;IACvB,wBAAU,CAAC,eAAe;IAC1B,wBAAU,CAAC,cAAc;IACzB,wBAAU,CAAC,gBAAgB;IAC3B,wBAAU,CAAC,aAAa;IACxB,wBAAU,CAAC,gBAAgB;IAC3B,wBAAU,CAA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AAC,WAAI,CAAC,qBAAqB,CAAC,GAAG;IACjC,wBAAU,CAAC,YAAY;IACvB,wBAAU,CAAC,UAAU;IACrB,wBAAU,CAAC,0BAA0B;CACrC,CAAC;AAEF,GAAG,CAAC,WAAI,CAAC,mBAAmB,CAAC,GAAG;IAC/B,wBAAU,CAAC,YAAY;IACvB,wBAAU,CAAC,QAAQ;IACnB,wBAAU,CAAC,0BAA0B;CACrC,CAAC;AAEF,GAAG,CAAC,WAAI,CAAC,qBAAqB,CAAC,GAAG;IACjC,wBAAU,CAAC,YAAY;IACvB,wBAAU,CAAC,UAAU;IACrB,wBAAU,CAAC,0BAA0B;CACrC,CAAC;AAEF,GAAG,CAAC,WAAI,CAAC,qBAAqB,CAAC,GAAG;IACjC,wBAAU,CAAC,YAAY;IACvB,wBAAU,CAAC,UAAU;IACrB,wBAAU,CAAC,0BAA0B;CACrC,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { ACL } from './acl';
2
+ export { Role } from './role';
3
+ export { Permission } from './permissions';
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Permission = exports.Role = exports.ACL = void 0;
4
+ var acl_1 = require("./acl");
5
+ Object.defineProperty(exports, "ACL", { enumerable: true, get: function () { return acl_1.ACL; } });
6
+ var role_1 = require("./role");
7
+ Object.defineProperty(exports, "Role", { enumerable: true, get: function () { return role_1.Role; } });
8
+ var permissions_1 = require("./permissions");
9
+ Object.defineProperty(exports, "Permission", { enumerable: true, get: function () { return permissions_1.Permission; } });
10
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/security/index.ts"],"names":[],"mappings":";;;AAAA,6BAA4B;AAAnB,0FAAA,GAAG,OAAA;AACZ,+BAA8B;AAArB,4FAAA,IAAI,OAAA;AACb,6CAA2C;AAAlC,yGAAA,UAAU,OAAA"}
@@ -0,0 +1,41 @@
1
+ export declare enum Permission {
2
+ InvitePublisher = "invite.publisher",
3
+ SuspendPublisher = "suspend.publisher",
4
+ DisablePublisher = "disable.publisher",
5
+ ManagePublisher = "manage.publisher",
6
+ InviteBrandUser = "invite.brand.user",
7
+ SuspendBrandUser = "suspend.brand.user",
8
+ DisableBrandUser = "disable.brand.user",
9
+ ManageBrandSettings = "manage.brand.settings",
10
+ ViewPublisherContent = "view.publisher.content",
11
+ BlockPublisherContent = "block.publisher.content",
12
+ MergeAuthors = "merge.authors",
13
+ ManageTopics = "manage.topics",
14
+ ManageFeedbacks = "manage.feedbacks",
15
+ ManageQuestion = "manage.questions",
16
+ ManageCategories = "manage.categories",
17
+ ManageSurveys = "manage.surveys",
18
+ ManagePromotions = "manage.promotions",
19
+ ManageBoosts = "manage.boosts",
20
+ InvitePublisherUser = "invite.publisher.user",
21
+ SuspendPublisherUser = "suspend.publisher.user",
22
+ DisablePublisherUser = "disable.publisher.user",
23
+ ManagePublisherAccount = "manage.publisher.account",
24
+ ManagePublisherSettings = "manage.publisher.settings",
25
+ PublishContent = "publishe.content",
26
+ ArchiveContent = "archive.content",
27
+ DeleteContent = "delete.content",
28
+ ManageCollection = "manage.collections",
29
+ ManageAssets = "manage.assets",
30
+ EditArticles = "edit.articles",
31
+ EditBooks = "edit.books",
32
+ EditVideos = "edit.videos",
33
+ EditAudios = "edit.audios",
34
+ EditNews = "edit.news",
35
+ EditEvents = "edit.events",
36
+ EditQuotes = "edit.quotes",
37
+ GenerateSurveyReports = "generate.survey.reports",
38
+ GeneratePromotionReports = "generate.promotion.reports",
39
+ GenerateFeedbackReports = "generate.feedback.reports",
40
+ GeneratePerformanceReports = "generate.performace.reports"
41
+ }
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Permission = void 0;
4
+ var Permission;
5
+ (function (Permission) {
6
+ Permission["InvitePublisher"] = "invite.publisher";
7
+ Permission["SuspendPublisher"] = "suspend.publisher";
8
+ Permission["DisablePublisher"] = "disable.publisher";
9
+ Permission["ManagePublisher"] = "manage.publisher";
10
+ Permission["InviteBrandUser"] = "invite.brand.user";
11
+ Permission["SuspendBrandUser"] = "suspend.brand.user";
12
+ Permission["DisableBrandUser"] = "disable.brand.user";
13
+ Permission["ManageBrandSettings"] = "manage.brand.settings";
14
+ Permission["ViewPublisherContent"] = "view.publisher.content";
15
+ Permission["BlockPublisherContent"] = "block.publisher.content";
16
+ Permission["MergeAuthors"] = "merge.authors";
17
+ Permission["ManageTopics"] = "manage.topics";
18
+ Permission["ManageFeedbacks"] = "manage.feedbacks";
19
+ Permission["ManageQuestion"] = "manage.questions";
20
+ Permission["ManageCategories"] = "manage.categories";
21
+ Permission["ManageSurveys"] = "manage.surveys";
22
+ Permission["ManagePromotions"] = "manage.promotions";
23
+ Permission["ManageBoosts"] = "manage.boosts";
24
+ Permission["InvitePublisherUser"] = "invite.publisher.user";
25
+ Permission["SuspendPublisherUser"] = "suspend.publisher.user";
26
+ Permission["DisablePublisherUser"] = "disable.publisher.user";
27
+ Permission["ManagePublisherAccount"] = "manage.publisher.account";
28
+ Permission["ManagePublisherSettings"] = "manage.publisher.settings";
29
+ Permission["PublishContent"] = "publishe.content";
30
+ Permission["ArchiveContent"] = "archive.content";
31
+ Permission["DeleteContent"] = "delete.content";
32
+ Permission["ManageCollection"] = "manage.collections";
33
+ Permission["ManageAssets"] = "manage.assets";
34
+ Permission["EditArticles"] = "edit.articles";
35
+ Permission["EditBooks"] = "edit.books";
36
+ Permission["EditVideos"] = "edit.videos";
37
+ Permission["EditAudios"] = "edit.audios";
38
+ Permission["EditNews"] = "edit.news";
39
+ Permission["EditEvents"] = "edit.events";
40
+ Permission["EditQuotes"] = "edit.quotes";
41
+ Permission["GenerateSurveyReports"] = "generate.survey.reports";
42
+ Permission["GeneratePromotionReports"] = "generate.promotion.reports";
43
+ Permission["GenerateFeedbackReports"] = "generate.feedback.reports";
44
+ Permission["GeneratePerformanceReports"] = "generate.performace.reports";
45
+ })(Permission || (exports.Permission = Permission = {}));
46
+ //# sourceMappingURL=permissions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"permissions.js","sourceRoot":"","sources":["../../src/security/permissions.ts"],"names":[],"mappings":";;;AAKA,IAAY,UAgEX;AAhED,WAAY,UAAU;IAIrB,kDAAoC,CAAA;IACpC,oDAAsC,CAAA;IACtC,oDAAsC,CAAA;IACtC,kDAAoC,CAAA;IAIpC,mDAAqC,CAAA;IACrC,qDAAsC,CAAA;IACtC,qDAAuC,CAAA;IAIvC,2DAA6C,CAAA;IAC7C,6DAA+C,CAAA;IAC/C,+DAAiD,CAAA;IACjD,4CAA8B,CAAA;IAI9B,4CAA8B,CAAA;IAC9B,kDAAoC,CAAA;IACpC,iDAAmC,CAAA;IACnC,oDAAsC,CAAA;IACtC,8CAAgC,CAAA;IAChC,oDAAsC,CAAA;IACtC,4CAA8B,CAAA;IAI9B,2DAA6C,CAAA;IAC7C,6DAA8C,CAAA;IAC9C,6DAA+C,CAAA;IAI/C,iEAAmD,CAAA;IACnD,mEAAqD,CAAA;IACrD,iDAAmC,CAAA;IACnC,gDAAkC,CAAA;IAClC,8CAAgC,CAAA;IAChC,qDAAuC,CAAA;IACvC,4CAA8B,CAAA;IAI9B,4CAA8B,CAAA;IAC9B,sCAAwB,CAAA;IACxB,wCAA0B,CAAA;IAC1B,wCAA0B,CAAA;IAC1B,oCAAsB,CAAA;IACtB,wCAA0B,CAAA;IAC1B,wCAA0B,CAAA;IAI1B,+DAAiD,CAAA;IACjD,qEAAuD,CAAA;IACvD,mEAAqD,CAAA;IACrD,wEAA0D,CAAA;AAC3D,CAAC,EAhEW,UAAU,0BAAV,UAAU,QAgErB"}
@@ -0,0 +1,22 @@
1
+ export declare enum Role {
2
+ SystemAdministrator = "system.administrator",
3
+ BrandOwner = "brand.owner",
4
+ BrandAdministrator = "brand.administrator",
5
+ BrandQuestionsManager = "brand.questions.manager",
6
+ BrandSurveysManager = "brand.surveys.manager",
7
+ BrandBoostManager = "brand.boosts.manager",
8
+ BrandPromotionsManager = "brand.promotions.manager",
9
+ BrandFeedbacksManager = "brand.feedbacks.manager",
10
+ BrandTopicsManager = "brand.topics.manager",
11
+ BrandAuthorsManager = "brand.authors.manager",
12
+ PublisherOwner = "publisher.owner",
13
+ PublisherAdministrator = "publisher.administrator",
14
+ PublisherManager = "publisher.manager",
15
+ PublisherArticlesEditor = "publisher.articles.editor",
16
+ PublisherBooksEditor = "publisher.books.editor",
17
+ PublisherVideosEditor = "publisher.videos.editor",
18
+ PublisherAudiosEditor = "publisher.audios.editor",
19
+ PublisherNewsEditor = "publisher.news.editor",
20
+ PublisherEventsEditor = "publisher.events.editor",
21
+ PublisherQuotesEditor = "publisher.quotes.editor"
22
+ }
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Role = void 0;
4
+ var Role;
5
+ (function (Role) {
6
+ Role["SystemAdministrator"] = "system.administrator";
7
+ Role["BrandOwner"] = "brand.owner";
8
+ Role["BrandAdministrator"] = "brand.administrator";
9
+ Role["BrandQuestionsManager"] = "brand.questions.manager";
10
+ Role["BrandSurveysManager"] = "brand.surveys.manager";
11
+ Role["BrandBoostManager"] = "brand.boosts.manager";
12
+ Role["BrandPromotionsManager"] = "brand.promotions.manager";
13
+ Role["BrandFeedbacksManager"] = "brand.feedbacks.manager";
14
+ Role["BrandTopicsManager"] = "brand.topics.manager";
15
+ Role["BrandAuthorsManager"] = "brand.authors.manager";
16
+ Role["PublisherOwner"] = "publisher.owner";
17
+ Role["PublisherAdministrator"] = "publisher.administrator";
18
+ Role["PublisherManager"] = "publisher.manager";
19
+ Role["PublisherArticlesEditor"] = "publisher.articles.editor";
20
+ Role["PublisherBooksEditor"] = "publisher.books.editor";
21
+ Role["PublisherVideosEditor"] = "publisher.videos.editor";
22
+ Role["PublisherAudiosEditor"] = "publisher.audios.editor";
23
+ Role["PublisherNewsEditor"] = "publisher.news.editor";
24
+ Role["PublisherEventsEditor"] = "publisher.events.editor";
25
+ Role["PublisherQuotesEditor"] = "publisher.quotes.editor";
26
+ })(Role || (exports.Role = Role = {}));
27
+ //# sourceMappingURL=role.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"role.js","sourceRoot":"","sources":["../../src/security/role.ts"],"names":[],"mappings":";;;AAKA,IAAY,IAqGX;AArGD,WAAY,IAAI;IAKf,oDAA4C,CAAA;IAK5C,kCAA0B,CAAA;IAK1B,kDAA0C,CAAA;IAK1C,yDAAiD,CAAA;IAKjD,qDAA6C,CAAA;IAK7C,kDAA0C,CAAA;IAK1C,2DAAmD,CAAA;IAKnD,yDAAiD,CAAA;IAKjD,mDAA2C,CAAA;IAK3C,qDAA6C,CAAA;IAK7C,0CAAkC,CAAA;IAKlC,0DAAkD,CAAA;IAKlD,8CAAsC,CAAA;IAKtC,6DAAqD,CAAA;IAKrD,uDAA+C,CAAA;IAK/C,yDAAiD,CAAA;IAKjD,yDAAiD,CAAA;IAKjD,qDAA6C,CAAA;IAK7C,yDAAiD,CAAA;IAKjD,yDAAiD,CAAA;AAClD,CAAC,EArGW,IAAI,oBAAJ,IAAI,QAqGf"}
@@ -1 +1 @@
1
- {"program":{"fileNames":["../node_modules/typescript/lib/lib.es5.d.ts","../node_modules/typescript/lib/lib.es2015.d.ts","../node_modules/typescript/lib/lib.es2016.d.ts","../node_modules/typescript/lib/lib.es2017.d.ts","../node_modules/typescript/lib/lib.es2018.d.ts","../node_modules/typescript/lib/lib.es2019.d.ts","../node_modules/typescript/lib/lib.es2020.d.ts","../node_modules/typescript/lib/lib.es2021.d.ts","../node_modules/typescript/lib/lib.es2022.d.ts","../node_modules/typescript/lib/lib.es2023.d.ts","../node_modules/typescript/lib/lib.esnext.d.ts","../node_modules/typescript/lib/lib.dom.d.ts","../node_modules/typescript/lib/lib.es2015.core.d.ts","../node_modules/typescript/lib/lib.es2015.collection.d.ts","../node_modules/typescript/lib/lib.es2015.generator.d.ts","../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../node_modules/typescript/lib/lib.es2015.promise.d.ts","../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../node_modules/typescript/lib/lib.es2016.intl.d.ts","../node_modules/typescript/lib/lib.es2017.date.d.ts","../node_modules/typescript/lib/lib.es2017.object.d.ts","../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2017.string.d.ts","../node_modules/typescript/lib/lib.es2017.intl.d.ts","../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../node_modules/typescript/lib/lib.es2018.intl.d.ts","../node_modules/typescript/lib/lib.es2018.promise.d.ts","../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../node_modules/typescript/lib/lib.es2019.array.d.ts","../node_modules/typescript/lib/lib.es2019.object.d.ts","../node_modules/typescript/lib/lib.es2019.string.d.ts","../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../node_modules/typescript/lib/lib.es2019.intl.d.ts","../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../node_modules/typescript/lib/lib.es2020.date.d.ts","../node_modules/typescript/lib/lib.es2020.promise.d.ts","../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2020.string.d.ts","../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2020.intl.d.ts","../node_modules/typescript/lib/lib.es2020.number.d.ts","../node_modules/typescript/lib/lib.es2021.promise.d.ts","../node_modules/typescript/lib/lib.es2021.string.d.ts","../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../node_modules/typescript/lib/lib.es2021.intl.d.ts","../node_modules/typescript/lib/lib.es2022.array.d.ts","../node_modules/typescript/lib/lib.es2022.error.d.ts","../node_modules/typescript/lib/lib.es2022.intl.d.ts","../node_modules/typescript/lib/lib.es2022.object.d.ts","../node_modules/typescript/lib/lib.es2022.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2022.string.d.ts","../node_modules/typescript/lib/lib.es2022.regexp.d.ts","../node_modules/typescript/lib/lib.es2023.array.d.ts","../node_modules/typescript/lib/lib.es2023.collection.d.ts","../node_modules/typescript/lib/lib.esnext.collection.d.ts","../node_modules/typescript/lib/lib.esnext.intl.d.ts","../node_modules/typescript/lib/lib.esnext.disposable.d.ts","../node_modules/typescript/lib/lib.esnext.promise.d.ts","../node_modules/typescript/lib/lib.esnext.decorators.d.ts","../node_modules/typescript/lib/lib.esnext.object.d.ts","../node_modules/typescript/lib/lib.decorators.d.ts","../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../src/enums/account.enum.ts","../src/enums/asset.enum.ts","../src/enums/notification.enum.ts","../src/enums/module.enum.ts","../src/enums/post.enum.ts","../src/enums/setting.enum.ts","../src/enums/sort.enum.ts","../src/enums/social.enum.ts","../src/enums/status.enum.ts","../src/enums/tracks.enum.ts","../src/enums/verification.enum.ts","../src/enums/index.ts","../src/index.ts"],"fileInfos":[{"version":"824cb491a40f7e8fdeb56f1df5edf91b23f3e3ee6b4cde84d4a99be32338faee","affectsGlobalScope":true},"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","9a68c0c07ae2fa71b44384a839b7b8d81662a236d4b9ac30916718f7510b1b2d","5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","5514e54f17d6d74ecefedc73c504eadffdeda79c7ea205cf9febead32d45c4bc","1c0cdb8dc619bc549c3e5020643e7cf7ae7940058e8c7e5aefa5871b6d86f44b","886e50ef125efb7878f744e86908884c0133e7a6d9d80013f421b0cd8fb2af94",{"version":"87d693a4920d794a73384b3c779cadcb8548ac6945aa7a925832fe2418c9527a","affectsGlobalScope":true},{"version":"138fb588d26538783b78d1e3b2c2cc12d55840b97bf5e08bca7f7a174fbe2f17","affectsGlobalScope":true},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true},{"version":"4443e68b35f3332f753eacc66a04ac1d2053b8b035a0e0ac1d455392b5e243b3","affectsGlobalScope":true},{"version":"bc47685641087c015972a3f072480889f0d6c65515f12bd85222f49a98952ed7","affectsGlobalScope":true},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true},{"version":"93495ff27b8746f55d19fcbcdbaccc99fd95f19d057aed1bd2c0cafe1335fbf0","affectsGlobalScope":true},{"version":"6fc23bb8c3965964be8c597310a2878b53a0306edb71d4b5a4dfe760186bcc01","affectsGlobalScope":true},{"version":"ea011c76963fb15ef1cdd7ce6a6808b46322c527de2077b6cfdf23ae6f5f9ec7","affectsGlobalScope":true},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true},{"version":"bb42a7797d996412ecdc5b2787720de477103a0b2e53058569069a0e2bae6c7e","affectsGlobalScope":true},{"version":"4738f2420687fd85629c9efb470793bb753709c2379e5f85bc1815d875ceadcd","affectsGlobalScope":true},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true},{"version":"9fc46429fbe091ac5ad2608c657201eb68b6f1b8341bd6d670047d32ed0a88fa","affectsGlobalScope":true},{"version":"61c37c1de663cf4171e1192466e52c7a382afa58da01b1dc75058f032ddf0839","affectsGlobalScope":true},{"version":"b541a838a13f9234aba650a825393ffc2292dc0fc87681a5d81ef0c96d281e7a","affectsGlobalScope":true},{"version":"b20fe0eca9a4e405f1a5ae24a2b3290b37cf7f21eba6cbe4fc3fab979237d4f3","affectsGlobalScope":true},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true},{"version":"49ed889be54031e1044af0ad2c603d627b8bda8b50c1a68435fe85583901d072","affectsGlobalScope":true},{"version":"e93d098658ce4f0c8a0779e6cab91d0259efb88a318137f686ad76f8410ca270","affectsGlobalScope":true},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true},{"version":"bf14a426dbbf1022d11bd08d6b8e709a2e9d246f0c6c1032f3b2edb9a902adbe","affectsGlobalScope":true},{"version":"5e07ed3809d48205d5b985642a59f2eba47c402374a7cf8006b686f79efadcbd","affectsGlobalScope":true},{"version":"2b72d528b2e2fe3c57889ca7baef5e13a56c957b946906d03767c642f386bbc3","affectsGlobalScope":true},{"version":"8073890e29d2f46fdbc19b8d6d2eb9ea58db9a2052f8640af20baff9afbc8640","affectsGlobalScope":true},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true},{"version":"51e547984877a62227042850456de71a5c45e7fe86b7c975c6e68896c86fa23b","affectsGlobalScope":true},{"version":"956d27abdea9652e8368ce029bb1e0b9174e9678a273529f426df4b3d90abd60","affectsGlobalScope":true},{"version":"4fa6ed14e98aa80b91f61b9805c653ee82af3502dc21c9da5268d3857772ca05","affectsGlobalScope":true},{"version":"e6633e05da3ff36e6da2ec170d0d03ccf33de50ca4dc6f5aeecb572cedd162fb","affectsGlobalScope":true},{"version":"d8670852241d4c6e03f2b89d67497a4bbefe29ecaa5a444e2c11a9b05e6fccc6","affectsGlobalScope":true},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true},{"version":"caccc56c72713969e1cfe5c3d44e5bab151544d9d2b373d7dbe5a1e4166652be","affectsGlobalScope":true},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true},{"version":"50d53ccd31f6667aff66e3d62adf948879a3a16f05d89882d1188084ee415bbc","affectsGlobalScope":true},{"version":"08a58483392df5fcc1db57d782e87734f77ae9eab42516028acbfe46f29a3ef7","affectsGlobalScope":true},{"version":"436aaf437562f276ec2ddbee2f2cdedac7664c1e4c1d2c36839ddd582eeb3d0a","affectsGlobalScope":true},{"version":"b1cb28af0c891c8c96b2d6b7be76bd394fddcfdb4709a20ba05a7c1605eea0f9","affectsGlobalScope":true},{"version":"13f6e6380c78e15e140243dc4be2fa546c287c6d61f4729bc2dd7cf449605471","affectsGlobalScope":true},{"version":"15b98a533864d324e5f57cd3cfc0579b231df58c1c0f6063ea0fcb13c3c74ff9","affectsGlobalScope":true},{"version":"ac77cb3e8c6d3565793eb90a8373ee8033146315a3dbead3bde8db5eaf5e5ec6","affectsGlobalScope":true},{"version":"d4b1d2c51d058fc21ec2629fff7a76249dec2e36e12960ea056e3ef89174080f","affectsGlobalScope":true},{"version":"2fef54945a13095fdb9b84f705f2b5994597640c46afeb2ce78352fab4cb3279","affectsGlobalScope":true},{"version":"33358442698bb565130f52ba79bfd3d4d484ac85fe33f3cb1759c54d18201393","affectsGlobalScope":true},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true},{"version":"fb02a609aa8fa79f21a89466daa9d5ed00a18392bb6ba1d7c2153ad6fec26590","signature":"fc5eba98804bf5f9da653059068838d6e82645ed73de7d4232f5c5e85b22bca0"},{"version":"ee7847eafdb326dca8286c9a09683417edef231da9355aa960fb4e9ea6739c57","signature":"5f555d0f04a98661202485b19b3d3b929f20b99330282faf54ae13620db79f3b"},{"version":"d0dd53639c8a944356189474635df7db89f49fced4608751002beef2bf7841e0","signature":"5ccd5ab99835d3570f330bc85c854c59cd8cfce2dfe047b00efae1f9256ed80b"},{"version":"8b3626b18447ece8974f9e591a9cb0ad8e327898e76d657878971d776494d391","signature":"d9e8cf4f82bdd8eb087cb57ae70a60887b9837c744e10b3c58eeed6ee84ed069"},{"version":"1d5ea3ac3b39afdc2780c8510b1b9a7d419456a24663e89613ce48415fc405fd","signature":"c100c54e3896057f767717cac8bc3b5dd70cce5083d1f31bf52405c57ed93cdc"},{"version":"b8acbc2e6b52adeaf1b9a63c58ca56cb3a9c0bc8aeb8d8fa18f505ed97003cfa","signature":"fdc998b813f118044d3dd6f723d8e1475da52201161f9080533312d0740d49db"},{"version":"2c14fadad696fb30af83fe460d0704b09e353548820a6333da5a69e95c939bc7","signature":"29151465cfe168f64cd7fbb53f11e8fd4948c38588cbdd4de954ef24a4915e7d"},{"version":"76544cd01c35ae635107a5da44f5ab089e3f901d12266732b2142e4e6564c07e","signature":"e52c64de384c495cd4b3320fd644b4aa1aab51708e9b8d4fb07dca75d63b0e5b"},{"version":"e53acba5c94a2a7265e2fc091327543fb898be4a30ed0e43d74163a7d5fbb0ee","signature":"f04650859602c94295cc3d2797fff3cd6e9e5b72543f0f30a5c1df61a00e5258"},{"version":"90abb825d46c39c92574d2e496aa748a52e824725e4f3df9d428c64086c33b00","signature":"44494ed2bfd489722b6272b0e2d8640b5ddb6a7b8ce05fe140f2d9ebc9029db4"},{"version":"415417d5b1548811e5be01c596e754fb24c16e6791ca1fbbe0374b7cf537e57c","signature":"14ad6ca7b3fa9d126f7d964278cf69f9030a7dbba4c486adf53442f477dfcff9"},{"version":"419366607b4383079bc06784f8475c8387e6804638d5a6f3218225e99ac7b0f8","signature":"f20908bbe45f749d1477cb154fd50161b915591d1f66edbd94ff60bb43e19cd3"},{"version":"80a3c717add0fc393d4878a3c026c482ae8a2271c22e78900c2c2e0204329c52","signature":"433a429dfb7deb4b784299c30dbf42c64088f6a002b4fff8bf4c4fe1286aab88"}],"root":[[69,81]],"options":{"allowJs":true,"allowSyntheticDefaultImports":true,"declaration":true,"emitDecoratorMetadata":true,"esModuleInterop":true,"experimentalDecorators":true,"importHelpers":false,"inlineSourceMap":false,"module":1,"noFallthroughCasesInSwitch":false,"noImplicitAny":false,"outDir":"./","removeComments":true,"skipLibCheck":true,"sourceMap":true,"strictBindCallApply":false,"strictNullChecks":false,"target":99},"fileIdsList":[[69,70,71,72,73,74,75,76,77,78,79],[80]],"referencedMap":[[80,1],[81,2]],"exportedModulesMap":[[80,1],[81,2]],"semanticDiagnosticsPerFile":[67,68,12,14,13,2,15,16,17,18,19,20,21,22,3,23,4,24,28,25,26,27,29,30,31,5,32,33,34,35,6,39,36,37,38,40,7,41,46,47,42,43,44,45,8,51,48,49,50,52,9,53,54,55,58,56,57,59,60,10,1,61,11,65,63,62,66,64,69,70,80,72,71,73,74,76,75,77,78,79,81]},"version":"5.4.3"}
1
+ {"program":{"fileNames":["../node_modules/typescript/lib/lib.es5.d.ts","../node_modules/typescript/lib/lib.es2015.d.ts","../node_modules/typescript/lib/lib.es2016.d.ts","../node_modules/typescript/lib/lib.es2017.d.ts","../node_modules/typescript/lib/lib.es2018.d.ts","../node_modules/typescript/lib/lib.es2019.d.ts","../node_modules/typescript/lib/lib.es2020.d.ts","../node_modules/typescript/lib/lib.es2021.d.ts","../node_modules/typescript/lib/lib.es2022.d.ts","../node_modules/typescript/lib/lib.es2023.d.ts","../node_modules/typescript/lib/lib.esnext.d.ts","../node_modules/typescript/lib/lib.dom.d.ts","../node_modules/typescript/lib/lib.es2015.core.d.ts","../node_modules/typescript/lib/lib.es2015.collection.d.ts","../node_modules/typescript/lib/lib.es2015.generator.d.ts","../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../node_modules/typescript/lib/lib.es2015.promise.d.ts","../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../node_modules/typescript/lib/lib.es2016.intl.d.ts","../node_modules/typescript/lib/lib.es2017.date.d.ts","../node_modules/typescript/lib/lib.es2017.object.d.ts","../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2017.string.d.ts","../node_modules/typescript/lib/lib.es2017.intl.d.ts","../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../node_modules/typescript/lib/lib.es2018.intl.d.ts","../node_modules/typescript/lib/lib.es2018.promise.d.ts","../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../node_modules/typescript/lib/lib.es2019.array.d.ts","../node_modules/typescript/lib/lib.es2019.object.d.ts","../node_modules/typescript/lib/lib.es2019.string.d.ts","../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../node_modules/typescript/lib/lib.es2019.intl.d.ts","../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../node_modules/typescript/lib/lib.es2020.date.d.ts","../node_modules/typescript/lib/lib.es2020.promise.d.ts","../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2020.string.d.ts","../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2020.intl.d.ts","../node_modules/typescript/lib/lib.es2020.number.d.ts","../node_modules/typescript/lib/lib.es2021.promise.d.ts","../node_modules/typescript/lib/lib.es2021.string.d.ts","../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../node_modules/typescript/lib/lib.es2021.intl.d.ts","../node_modules/typescript/lib/lib.es2022.array.d.ts","../node_modules/typescript/lib/lib.es2022.error.d.ts","../node_modules/typescript/lib/lib.es2022.intl.d.ts","../node_modules/typescript/lib/lib.es2022.object.d.ts","../node_modules/typescript/lib/lib.es2022.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2022.string.d.ts","../node_modules/typescript/lib/lib.es2022.regexp.d.ts","../node_modules/typescript/lib/lib.es2023.array.d.ts","../node_modules/typescript/lib/lib.es2023.collection.d.ts","../node_modules/typescript/lib/lib.esnext.collection.d.ts","../node_modules/typescript/lib/lib.esnext.intl.d.ts","../node_modules/typescript/lib/lib.esnext.disposable.d.ts","../node_modules/typescript/lib/lib.esnext.promise.d.ts","../node_modules/typescript/lib/lib.esnext.decorators.d.ts","../node_modules/typescript/lib/lib.esnext.object.d.ts","../node_modules/typescript/lib/lib.decorators.d.ts","../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../src/enums/account.enum.ts","../src/enums/asset.enum.ts","../src/enums/notification.enum.ts","../src/enums/module.enum.ts","../src/enums/post.enum.ts","../src/enums/setting.enum.ts","../src/enums/sort.enum.ts","../src/enums/social.enum.ts","../src/enums/status.enum.ts","../src/enums/tracks.enum.ts","../src/enums/verification.enum.ts","../src/enums/index.ts","../src/security/role.ts","../src/security/permissions.ts","../src/security/acl.ts","../src/security/index.ts","../src/index.ts"],"fileInfos":[{"version":"824cb491a40f7e8fdeb56f1df5edf91b23f3e3ee6b4cde84d4a99be32338faee","affectsGlobalScope":true},"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","9a68c0c07ae2fa71b44384a839b7b8d81662a236d4b9ac30916718f7510b1b2d","5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","5514e54f17d6d74ecefedc73c504eadffdeda79c7ea205cf9febead32d45c4bc","1c0cdb8dc619bc549c3e5020643e7cf7ae7940058e8c7e5aefa5871b6d86f44b","886e50ef125efb7878f744e86908884c0133e7a6d9d80013f421b0cd8fb2af94",{"version":"87d693a4920d794a73384b3c779cadcb8548ac6945aa7a925832fe2418c9527a","affectsGlobalScope":true},{"version":"138fb588d26538783b78d1e3b2c2cc12d55840b97bf5e08bca7f7a174fbe2f17","affectsGlobalScope":true},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true},{"version":"4443e68b35f3332f753eacc66a04ac1d2053b8b035a0e0ac1d455392b5e243b3","affectsGlobalScope":true},{"version":"bc47685641087c015972a3f072480889f0d6c65515f12bd85222f49a98952ed7","affectsGlobalScope":true},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true},{"version":"93495ff27b8746f55d19fcbcdbaccc99fd95f19d057aed1bd2c0cafe1335fbf0","affectsGlobalScope":true},{"version":"6fc23bb8c3965964be8c597310a2878b53a0306edb71d4b5a4dfe760186bcc01","affectsGlobalScope":true},{"version":"ea011c76963fb15ef1cdd7ce6a6808b46322c527de2077b6cfdf23ae6f5f9ec7","affectsGlobalScope":true},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true},{"version":"bb42a7797d996412ecdc5b2787720de477103a0b2e53058569069a0e2bae6c7e","affectsGlobalScope":true},{"version":"4738f2420687fd85629c9efb470793bb753709c2379e5f85bc1815d875ceadcd","affectsGlobalScope":true},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true},{"version":"9fc46429fbe091ac5ad2608c657201eb68b6f1b8341bd6d670047d32ed0a88fa","affectsGlobalScope":true},{"version":"61c37c1de663cf4171e1192466e52c7a382afa58da01b1dc75058f032ddf0839","affectsGlobalScope":true},{"version":"b541a838a13f9234aba650a825393ffc2292dc0fc87681a5d81ef0c96d281e7a","affectsGlobalScope":true},{"version":"b20fe0eca9a4e405f1a5ae24a2b3290b37cf7f21eba6cbe4fc3fab979237d4f3","affectsGlobalScope":true},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true},{"version":"49ed889be54031e1044af0ad2c603d627b8bda8b50c1a68435fe85583901d072","affectsGlobalScope":true},{"version":"e93d098658ce4f0c8a0779e6cab91d0259efb88a318137f686ad76f8410ca270","affectsGlobalScope":true},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true},{"version":"bf14a426dbbf1022d11bd08d6b8e709a2e9d246f0c6c1032f3b2edb9a902adbe","affectsGlobalScope":true},{"version":"5e07ed3809d48205d5b985642a59f2eba47c402374a7cf8006b686f79efadcbd","affectsGlobalScope":true},{"version":"2b72d528b2e2fe3c57889ca7baef5e13a56c957b946906d03767c642f386bbc3","affectsGlobalScope":true},{"version":"8073890e29d2f46fdbc19b8d6d2eb9ea58db9a2052f8640af20baff9afbc8640","affectsGlobalScope":true},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true},{"version":"51e547984877a62227042850456de71a5c45e7fe86b7c975c6e68896c86fa23b","affectsGlobalScope":true},{"version":"956d27abdea9652e8368ce029bb1e0b9174e9678a273529f426df4b3d90abd60","affectsGlobalScope":true},{"version":"4fa6ed14e98aa80b91f61b9805c653ee82af3502dc21c9da5268d3857772ca05","affectsGlobalScope":true},{"version":"e6633e05da3ff36e6da2ec170d0d03ccf33de50ca4dc6f5aeecb572cedd162fb","affectsGlobalScope":true},{"version":"d8670852241d4c6e03f2b89d67497a4bbefe29ecaa5a444e2c11a9b05e6fccc6","affectsGlobalScope":true},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true},{"version":"caccc56c72713969e1cfe5c3d44e5bab151544d9d2b373d7dbe5a1e4166652be","affectsGlobalScope":true},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true},{"version":"50d53ccd31f6667aff66e3d62adf948879a3a16f05d89882d1188084ee415bbc","affectsGlobalScope":true},{"version":"08a58483392df5fcc1db57d782e87734f77ae9eab42516028acbfe46f29a3ef7","affectsGlobalScope":true},{"version":"436aaf437562f276ec2ddbee2f2cdedac7664c1e4c1d2c36839ddd582eeb3d0a","affectsGlobalScope":true},{"version":"b1cb28af0c891c8c96b2d6b7be76bd394fddcfdb4709a20ba05a7c1605eea0f9","affectsGlobalScope":true},{"version":"13f6e6380c78e15e140243dc4be2fa546c287c6d61f4729bc2dd7cf449605471","affectsGlobalScope":true},{"version":"15b98a533864d324e5f57cd3cfc0579b231df58c1c0f6063ea0fcb13c3c74ff9","affectsGlobalScope":true},{"version":"ac77cb3e8c6d3565793eb90a8373ee8033146315a3dbead3bde8db5eaf5e5ec6","affectsGlobalScope":true},{"version":"d4b1d2c51d058fc21ec2629fff7a76249dec2e36e12960ea056e3ef89174080f","affectsGlobalScope":true},{"version":"2fef54945a13095fdb9b84f705f2b5994597640c46afeb2ce78352fab4cb3279","affectsGlobalScope":true},{"version":"33358442698bb565130f52ba79bfd3d4d484ac85fe33f3cb1759c54d18201393","affectsGlobalScope":true},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true},{"version":"fb02a609aa8fa79f21a89466daa9d5ed00a18392bb6ba1d7c2153ad6fec26590","signature":"fc5eba98804bf5f9da653059068838d6e82645ed73de7d4232f5c5e85b22bca0"},{"version":"ee7847eafdb326dca8286c9a09683417edef231da9355aa960fb4e9ea6739c57","signature":"5f555d0f04a98661202485b19b3d3b929f20b99330282faf54ae13620db79f3b"},{"version":"d0dd53639c8a944356189474635df7db89f49fced4608751002beef2bf7841e0","signature":"5ccd5ab99835d3570f330bc85c854c59cd8cfce2dfe047b00efae1f9256ed80b"},{"version":"8b3626b18447ece8974f9e591a9cb0ad8e327898e76d657878971d776494d391","signature":"d9e8cf4f82bdd8eb087cb57ae70a60887b9837c744e10b3c58eeed6ee84ed069"},{"version":"1d5ea3ac3b39afdc2780c8510b1b9a7d419456a24663e89613ce48415fc405fd","signature":"c100c54e3896057f767717cac8bc3b5dd70cce5083d1f31bf52405c57ed93cdc"},{"version":"b8acbc2e6b52adeaf1b9a63c58ca56cb3a9c0bc8aeb8d8fa18f505ed97003cfa","signature":"fdc998b813f118044d3dd6f723d8e1475da52201161f9080533312d0740d49db"},{"version":"2c14fadad696fb30af83fe460d0704b09e353548820a6333da5a69e95c939bc7","signature":"29151465cfe168f64cd7fbb53f11e8fd4948c38588cbdd4de954ef24a4915e7d"},{"version":"76544cd01c35ae635107a5da44f5ab089e3f901d12266732b2142e4e6564c07e","signature":"e52c64de384c495cd4b3320fd644b4aa1aab51708e9b8d4fb07dca75d63b0e5b"},{"version":"e53acba5c94a2a7265e2fc091327543fb898be4a30ed0e43d74163a7d5fbb0ee","signature":"f04650859602c94295cc3d2797fff3cd6e9e5b72543f0f30a5c1df61a00e5258"},{"version":"90abb825d46c39c92574d2e496aa748a52e824725e4f3df9d428c64086c33b00","signature":"44494ed2bfd489722b6272b0e2d8640b5ddb6a7b8ce05fe140f2d9ebc9029db4"},{"version":"415417d5b1548811e5be01c596e754fb24c16e6791ca1fbbe0374b7cf537e57c","signature":"14ad6ca7b3fa9d126f7d964278cf69f9030a7dbba4c486adf53442f477dfcff9"},{"version":"419366607b4383079bc06784f8475c8387e6804638d5a6f3218225e99ac7b0f8","signature":"f20908bbe45f749d1477cb154fd50161b915591d1f66edbd94ff60bb43e19cd3"},{"version":"de926de4c9000177830d8673fe5b5528fb33075ebead26560228c4a112a58654","signature":"e1c60cb64e2d22ca8d553f93d57c1ec826a90167a9a0b336f8d1d958abd7dbb0"},{"version":"4497573b4f53da1a3770f5cf3661fd4de4fd6b5717604c28cb88b6b69bd1f7aa","signature":"25ffd4aba5d0f2dd0e6eebe69c9f68735bcbedad0979868b2e1cc11594fb31e7"},{"version":"876397e07590932297b6a6e7262426a9f4be3340ef9f44add2c70d67ca7dc0b1","signature":"5372ae196534b8f6ef49b2959ecf30fe441eb02a6b7d3a2de649105e95c8e78a"},{"version":"aaf1960a18aa6708da7dde0287251e0db0b587b13782dbc960409eea836ec36d","signature":"6cfcc12d13f1452d8dfbfefb86550e4638d231afc498b7bb05e58598f93bb5b6"},{"version":"f1c70cc4d5f096dfd567d8f7ec6ee8d49e8675822d39763343a32343d106a84a","signature":"44553d35cc6e2282bfb2922ea45c19c9bda7e53c8adc80fa6f57e6512fd07cae"}],"root":[[69,85]],"options":{"allowJs":true,"allowSyntheticDefaultImports":true,"declaration":true,"emitDecoratorMetadata":true,"esModuleInterop":true,"experimentalDecorators":true,"importHelpers":false,"inlineSourceMap":false,"module":1,"noFallthroughCasesInSwitch":false,"noImplicitAny":false,"outDir":"./","removeComments":true,"skipLibCheck":true,"sourceMap":true,"strictBindCallApply":false,"strictNullChecks":false,"target":99},"fileIdsList":[[69,70,71,72,73,74,75,76,77,78,79],[80,84],[81,82],[81,82,83],[82]],"referencedMap":[[80,1],[85,2],[83,3],[84,4]],"exportedModulesMap":[[80,1],[85,2],[83,5],[84,4]],"semanticDiagnosticsPerFile":[67,68,12,14,13,2,15,16,17,18,19,20,21,22,3,23,4,24,28,25,26,27,29,30,31,5,32,33,34,35,6,39,36,37,38,40,7,41,46,47,42,43,44,45,8,51,48,49,50,52,9,53,54,55,58,56,57,59,60,10,1,61,11,65,63,62,66,64,69,70,80,72,71,73,74,76,75,77,78,79,85,83,84,82,81]},"version":"5.4.3"}
package/package.json CHANGED
@@ -1,14 +1,15 @@
1
1
  {
2
2
  "name": "@intelact/bright",
3
- "version": "0.1.0",
4
- "description": "Bright common library",
3
+ "version": "0.2.0",
4
+ "description": "Bright common",
5
5
  "author": "Intelact Solutions Ltd.",
6
6
  "main": "lib/index.js",
7
7
  "module": "lib/index.js",
8
8
  "typings": "lib/index.d.ts",
9
9
  "exports": {
10
10
  ".": "./lib/index.js",
11
- "./enums": "./lib/enums/index.js"
11
+ "./enums": "./lib/enums/index.js",
12
+ "./security": "./lib/security/index.js"
12
13
  },
13
14
  "scripts": {
14
15
  "build": "tsc"
@@ -22,14 +23,10 @@
22
23
  "node": ">=18"
23
24
  },
24
25
  "dependencies": {
25
- "class-validator": "^0.14.1",
26
- "nestjs-seeder": "^0.3.2",
27
- "typeorm": "^0.3.20"
26
+ "class-validator": "^0.14.1"
28
27
  },
29
28
  "peerDependencies": {
30
- "class-validator": "^0.14.1",
31
- "nestjs-seeder": "^0.3.2",
32
- "typeorm": "^0.3.20"
29
+ "class-validator": "^0.14.1"
33
30
  },
34
31
  "devDependencies": {
35
32
  "typescript": "^5.4.3"