@things-factory/contact 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.
- package/dist-client/tsconfig.tsbuildinfo +1 -1
- package/dist-server/index.js +4 -0
- package/dist-server/index.js.map +1 -1
- package/dist-server/role-tasks.d.ts +2 -0
- package/dist-server/role-tasks.js +15 -0
- package/dist-server/role-tasks.js.map +1 -0
- package/dist-server/service/contact/index.d.ts +1 -1
- package/dist-server/service/index.d.ts +1 -1
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/package.json +5 -5
- package/translations/en.json +3 -1
- package/translations/es.json +3 -1
- package/translations/ja.json +3 -1
- package/translations/ko.json +3 -1
- package/translations/ms.json +3 -1
- package/translations/zh.json +3 -1
package/dist-server/index.js
CHANGED
|
@@ -3,4 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
tslib_1.__exportStar(require("./controllers"), exports);
|
|
5
5
|
tslib_1.__exportStar(require("./service"), exports);
|
|
6
|
+
const auth_base_1 = require("@things-factory/auth-base");
|
|
7
|
+
const role_tasks_1 = require("./role-tasks");
|
|
8
|
+
for (const task of role_tasks_1.ROLE_TASKS)
|
|
9
|
+
(0, auth_base_1.registerRoleTask)(task);
|
|
6
10
|
//# sourceMappingURL=index.js.map
|
package/dist-server/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../server/index.ts"],"names":[],"mappings":";;;AAAA,wDAA6B;AAC7B,oDAAyB","sourcesContent":["export * from './controllers'\nexport * from './service'\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../server/index.ts"],"names":[],"mappings":";;;AAAA,wDAA6B;AAC7B,oDAAyB;AAEzB,yDAA4D;AAC5D,6CAAyC;AAEzC,KAAK,MAAM,IAAI,IAAI,uBAAU;IAAE,IAAA,4BAAgB,EAAC,IAAI,CAAC,CAAA","sourcesContent":["export * from './controllers'\nexport * from './service'\n\nimport { registerRoleTask } from '@things-factory/auth-base'\nimport { ROLE_TASKS } from './role-tasks'\n\nfor (const task of ROLE_TASKS) registerRoleTask(task)\n"]}
|
|
@@ -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: 'contact.keeping', grants: [{ category: 'contact', axes: ['query', '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,iBAAiB,EAAE,MAAM,EAAE,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,OAAO,EAAE,UAAU,CAAC,EAAE,CAAC,EAAE;CAC1F,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: 'contact.keeping', grants: [{ category: 'contact', axes: ['query', 'mutation'] }] }\n]\n"]}
|
|
@@ -2,5 +2,5 @@ import { Contact } from './contact';
|
|
|
2
2
|
import { Profile } from './profile';
|
|
3
3
|
import { ContactQuery } from './contact-query';
|
|
4
4
|
import { ContactMutation } from './contact-mutation';
|
|
5
|
-
export declare const entities: (typeof
|
|
5
|
+
export declare const entities: (typeof Contact | typeof Profile)[];
|
|
6
6
|
export declare const resolvers: (typeof ContactQuery | typeof ContactMutation)[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export * from './contact/profile';
|
|
2
2
|
export * from './contact/contact-item';
|
|
3
3
|
export * from './contact/contact';
|
|
4
|
-
export declare const entities: (typeof import("./contact/
|
|
4
|
+
export declare const entities: (typeof import("./contact/contact").Contact | typeof import("./contact/profile").Profile)[];
|
|
5
5
|
export declare const subscribers: any[];
|
|
6
6
|
export declare const schema: {
|
|
7
7
|
resolverClasses: (typeof import("./contact/contact-query").ContactQuery | typeof import("./contact/contact-mutation").ContactMutation)[];
|