@things-factory/i18n-base 10.1.192 → 10.1.198

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.
@@ -11,4 +11,8 @@ Object.defineProperty(exports, "translatorFor", { enumerable: true, get: functio
11
11
  Object.defineProperty(exports, "loadTranslations", { enumerable: true, get: function () { return translator_1.loadTranslations; } });
12
12
  tslib_1.__exportStar(require("./controllers/clear-cache-for-translation.js"), exports);
13
13
  tslib_1.__exportStar(require("./ai-entry/terminology-entry-targets"), exports);
14
+ const auth_base_1 = require("@things-factory/auth-base");
15
+ const role_tasks_js_1 = require("./role-tasks.js");
16
+ for (const task of role_tasks_js_1.ROLE_TASKS)
17
+ (0, auth_base_1.registerRoleTask)(task);
14
18
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../server/index.ts"],"names":[],"mappings":";;;;AAAA,oBAAiB;AAEjB,oDAAyB;AACzB,iDAAsB;AACtB,wDAA6B;AAC7B,2CAA8D;AAArD,2GAAA,aAAa,OAAA;AAAE,8GAAA,gBAAgB,OAAA;AAExC,uFAA4D;AAC5D,+EAAoD","sourcesContent":["import './routes'\n\nexport * from './service'\nexport * from './apis'\nexport * from './middlewares'\nexport { translatorFor, loadTranslations } from './translator'\nexport type { Translate } from './translator'\nexport * from './controllers/clear-cache-for-translation.js'\nexport * from './ai-entry/terminology-entry-targets'\nexport type { EntryTargetDeclaration as TerminologyEntryTarget } from './ai-entry/entry-target-shape'\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../server/index.ts"],"names":[],"mappings":";;;;AAAA,oBAAiB;AAEjB,oDAAyB;AACzB,iDAAsB;AACtB,wDAA6B;AAC7B,2CAA8D;AAArD,2GAAA,aAAa,OAAA;AAAE,8GAAA,gBAAgB,OAAA;AAExC,uFAA4D;AAC5D,+EAAoD;AAGpD,yDAA4D;AAC5D,mDAA4C;AAE5C,KAAK,MAAM,IAAI,IAAI,0BAAU;IAAE,IAAA,4BAAgB,EAAC,IAAI,CAAC,CAAA","sourcesContent":["import './routes'\n\nexport * from './service'\nexport * from './apis'\nexport * from './middlewares'\nexport { translatorFor, loadTranslations } from './translator'\nexport type { Translate } from './translator'\nexport * from './controllers/clear-cache-for-translation.js'\nexport * from './ai-entry/terminology-entry-targets'\nexport type { EntryTargetDeclaration as TerminologyEntryTarget } from './ai-entry/entry-target-shape'\n\nimport { registerRoleTask } from '@things-factory/auth-base'\nimport { ROLE_TASKS } from './role-tasks.js'\n\nfor (const task of ROLE_TASKS) registerRoleTask(task)\n"]}
@@ -0,0 +1,2 @@
1
+ import type { RoleTask } from '@things-factory/auth-base';
2
+ export declare const ROLE_TASKS: RoleTask[];
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /*
3
+ * The work this module names, for the seats applications build (ADR-0139 decision 11).
4
+ *
5
+ * A task holds whole privileges: each opens everything its doors open, and the words under `task.<id>` in this
6
+ * module's translations say what that is. Seats are put together by applications (`RoleTemplate.tasks`).
7
+ *
8
+ * Data only - `server/index.ts` registers it - so an application's tests read it without starting the framework.
9
+ */
10
+ Object.defineProperty(exports, "__esModule", { value: true });
11
+ exports.ROLE_TASKS = void 0;
12
+ exports.ROLE_TASKS = [
13
+ { id: 'i18n-base.terminology', grants: [{ category: 'terminology', axes: ['mutation'] }] }
14
+ ];
15
+ //# sourceMappingURL=role-tasks.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"role-tasks.js","sourceRoot":"","sources":["../server/role-tasks.ts"],"names":[],"mappings":";AAAA;;;;;;;GAOG;;;AAIU,QAAA,UAAU,GAAe;IACpC,EAAE,EAAE,EAAE,uBAAuB,EAAE,MAAM,EAAE,CAAC,EAAE,QAAQ,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC,UAAU,CAAC,EAAE,CAAC,EAAE;CAC3F,CAAA","sourcesContent":["/*\n * The work this module names, for the seats applications build (ADR-0139 decision 11).\n *\n * A task holds whole privileges: each opens everything its doors open, and the words under `task.<id>` in this\n * module's translations say what that is. Seats are put together by applications (`RoleTemplate.tasks`).\n *\n * Data only - `server/index.ts` registers it - so an application's tests read it without starting the framework.\n */\n\nimport type { RoleTask } from '@things-factory/auth-base'\n\nexport const ROLE_TASKS: RoleTask[] = [\n { id: 'i18n-base.terminology', grants: [{ category: 'terminology', axes: ['mutation'] }] }\n]\n"]}