@the-inkwell/shared 0.1.133 → 0.1.135

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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@the-inkwell/shared",
3
- "version": "0.1.133",
3
+ "version": "0.1.135",
4
4
  "description": "Shared code for Inkwell",
5
5
  "license": "ISC",
6
6
  "author": "Inkwell (Rob Yedlin & Saimon Alam)",
@@ -1,74 +1,74 @@
1
1
  // @generated
2
2
  // This file is automatically generated by Kanel. Do not modify manually.
3
3
 
4
- import type { default as ListViewModels } from './ListViewModels';
5
- import type { PositionsId } from './Positions';
4
+ import type { default as ListViewModels } from './ListViewModels'
5
+ import type { PositionsId } from './Positions'
6
6
 
7
7
  /** Identifier type for public.list_views */
8
- export type ListViewsId = string;
8
+ export type ListViewsId = string
9
9
 
10
10
  /** Represents the table public.list_views */
11
11
  export default interface ListViews {
12
- id: ListViewsId;
12
+ id: ListViewsId
13
13
 
14
- model: ListViewModels;
14
+ model: ListViewModels
15
15
 
16
- name: string | null;
16
+ name: string | null
17
17
 
18
- query: unknown;
18
+ query: unknown
19
19
 
20
- positionId: PositionsId | null;
20
+ positionId: PositionsId | null
21
21
 
22
- archivedAt: Date | null;
22
+ archivedAt: Date | null
23
23
 
24
- deletedAt: Date | null;
24
+ deletedAt: Date | null
25
25
 
26
- createdAt: Date;
26
+ createdAt: Date
27
27
 
28
- updatedAt: Date;
28
+ updatedAt: Date
29
29
  }
30
30
 
31
31
  /** Represents the initializer for the table public.list_views */
32
32
  export interface ListViewsInitializer {
33
33
  /** Default value: gen_random_uuid() */
34
- id?: ListViewsId;
34
+ id?: ListViewsId
35
35
 
36
- model: ListViewModels;
36
+ model: ListViewModels
37
37
 
38
- name?: string | null;
38
+ name?: string | null
39
39
 
40
- query: unknown;
40
+ query: unknown
41
41
 
42
- positionId?: PositionsId | null;
42
+ positionId?: PositionsId | null
43
43
 
44
- archivedAt?: Date | null;
44
+ archivedAt?: Date | null
45
45
 
46
- deletedAt?: Date | null;
46
+ deletedAt?: Date | null
47
47
 
48
48
  /** Default value: CURRENT_TIMESTAMP */
49
- createdAt?: Date;
49
+ createdAt?: Date
50
50
 
51
51
  /** Default value: CURRENT_TIMESTAMP */
52
- updatedAt?: Date;
52
+ updatedAt?: Date
53
53
  }
54
54
 
55
55
  /** Represents the mutator for the table public.list_views */
56
56
  export interface ListViewsMutator {
57
- id?: ListViewsId;
57
+ id?: ListViewsId
58
58
 
59
- model?: ListViewModels;
59
+ model?: ListViewModels
60
60
 
61
- name?: string | null;
61
+ name?: string | null
62
62
 
63
- query?: unknown;
63
+ query?: unknown
64
64
 
65
- positionId?: PositionsId | null;
65
+ positionId?: PositionsId | null
66
66
 
67
- archivedAt?: Date | null;
67
+ archivedAt?: Date | null
68
68
 
69
- deletedAt?: Date | null;
69
+ deletedAt?: Date | null
70
70
 
71
- createdAt?: Date;
71
+ createdAt?: Date
72
72
 
73
- updatedAt?: Date;
73
+ updatedAt?: Date
74
74
  }
@@ -0,0 +1,44 @@
1
+ import ListViewModels from '../../../_schema/ListViewModels'
2
+ import ListViews, {
3
+ ListViewsInitializer,
4
+ ListViewsMutator
5
+ } from '../../../_schema/ListViews'
6
+ import { type ListRequest, type ListResponse } from '../../../utils'
7
+
8
+ export type AdminListView = ListViews
9
+ export type AdminListViewInitializer = ListViewsInitializer
10
+ export type AdminListViewMutator = ListViewsMutator
11
+
12
+ // detail
13
+
14
+ export type AdminListViewParams = Pick<AdminListView, 'id'>
15
+ export type AdminListViewResponse = AdminListView
16
+
17
+ // list
18
+
19
+ export type AdminListViewListInput = ListRequest<
20
+ unknown,
21
+ {
22
+ model: ListViewModels
23
+ }
24
+ >
25
+ export type AdminListViewListResponse = ListResponse<AdminListView>
26
+
27
+ // create
28
+
29
+ export type AdminListViewCreateInput = Pick<
30
+ AdminListViewInitializer,
31
+ 'model' | 'name' | 'query'
32
+ >
33
+ export type AdminListViewCreateResponse = Pick<AdminListView, 'id'>
34
+
35
+ // update
36
+
37
+ export type AdminListViewUpdateInput = Pick<
38
+ AdminListViewMutator,
39
+ 'name' | 'query'
40
+ >
41
+
42
+ // delete
43
+
44
+ export type AdminListViewDeleteParams = Pick<AdminListView, 'id'>
@@ -1,33 +0,0 @@
1
- // @generated
2
- // This file is automatically generated by Kanel. Do not modify manually.
3
-
4
- import type { PersonsId } from './Persons';
5
- import type { IndustriesId } from './Industries';
6
-
7
- /** Represents the table public.persons_to_industries */
8
- export default interface PersonsToIndustries {
9
- personId: PersonsId;
10
-
11
- industryId: IndustriesId;
12
-
13
- createdAt: Date;
14
- }
15
-
16
- /** Represents the initializer for the table public.persons_to_industries */
17
- export interface PersonsToIndustriesInitializer {
18
- personId: PersonsId;
19
-
20
- industryId: IndustriesId;
21
-
22
- /** Default value: CURRENT_TIMESTAMP */
23
- createdAt?: Date;
24
- }
25
-
26
- /** Represents the mutator for the table public.persons_to_industries */
27
- export interface PersonsToIndustriesMutator {
28
- personId?: PersonsId;
29
-
30
- industryId?: IndustriesId;
31
-
32
- createdAt?: Date;
33
- }