@managemint-solutions/entities 1.15.0 → 1.17.0

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.
@@ -0,0 +1,11 @@
1
+ import type { ConfigValue } from '../index';
2
+ export type CreateConfigDto = {
3
+ name: string;
4
+ description?: string;
5
+ value?: ConfigValue;
6
+ };
7
+ /** `value` replaces the whole object — it is not merged. `name` is the lookup key and is not editable here. */
8
+ export type UpdateConfigDto = {
9
+ description?: string;
10
+ value?: ConfigValue;
11
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,20 @@
1
+ import type { UUID } from 'crypto';
2
+ /** Any JSON value. */
3
+ export type JsonValue = string | number | boolean | null | JsonValue[] | {
4
+ [key: string]: JsonValue;
5
+ };
6
+ /** The `value` column: one JSON object keyed by setting name. */
7
+ export type ConfigValue = Record<string, JsonValue>;
8
+ /**
9
+ * One named config — a row of `public.configs`. Global: there is no organization on the row.
10
+ * Every signed-in caller may read; only the service role writes. A feature-flag set is just a
11
+ * row someone named in Supabase Studio, not a concept the code knows about.
12
+ */
13
+ export type ConfigEntity = {
14
+ mms_id: UUID;
15
+ created_at: string;
16
+ updated_at: string | null;
17
+ name: string;
18
+ description: string;
19
+ value: ConfigValue;
20
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -8,6 +8,8 @@ export type TaskIdentity = {
8
8
  };
9
9
  export type TaskSummary = {
10
10
  mms_id: string;
11
+ /** Sequential per organization, starting at 1; the human and integration-facing reference. */
12
+ task_number: number;
11
13
  name: string;
12
14
  start_date: Date;
13
15
  end_date: Date | null;
@@ -21,6 +23,7 @@ export type TaskEntity = {
21
23
  created_by: UserIdentity;
22
24
  updated_at: string;
23
25
  last_updated_by: UserIdentity;
26
+ task_number: number;
24
27
  name: string;
25
28
  description: string | null;
26
29
  start_date: Date;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@managemint-solutions/entities",
3
- "version": "1.15.0",
3
+ "version": "1.17.0",
4
4
  "description": "Entity types used by both the api and portal",
5
5
  "homepage": "https://github.com/ManageMint-Solutions/managemint-solutions-entities#readme",
6
6
  "bugs": {