@things-factory/contact 10.1.188 → 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.
@@ -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
@@ -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,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: '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 Profile | typeof Contact)[];
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/profile").Profile | typeof import("./contact/contact").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)[];