@the-inkwell/shared 0.1.85 → 0.1.87

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 });
@@ -15,6 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./candidacies"), exports);
18
+ __exportStar(require("./clients"), exports);
18
19
  __exportStar(require("./persons"), exports);
19
20
  __exportStar(require("./referrals"), exports);
20
21
  __exportStar(require("./website"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@the-inkwell/shared",
3
- "version": "0.1.85",
3
+ "version": "0.1.87",
4
4
  "description": "Shared code for Inkwell",
5
5
  "license": "ISC",
6
6
  "author": "Inkwell (Rob Yedlin & Saimon Alam)",
@@ -0,0 +1,42 @@
1
+ import { ListRequest, ListResponse } from '../../../utils'
2
+ import Client, {
3
+ ClientsInitializer,
4
+ ClientsMutator
5
+ } from '../../../_schema/Clients'
6
+
7
+ export type AdminClient = Client & {
8
+ position: {
9
+ _count: number
10
+ }
11
+ }
12
+ type AdminClientInitializer = ClientsInitializer
13
+ type AdminClientMutator = ClientsMutator
14
+
15
+ // detail
16
+
17
+ export type AdminClientQueryParams = Pick<AdminClient, 'id'>
18
+ export type AdminClientResponse = AdminClient
19
+
20
+ // list
21
+
22
+ export type AdminClientListInput = ListRequest
23
+ export type AdminClientListResponse = ListResponse<AdminClient>
24
+
25
+ // create
26
+
27
+ export type AdminClientCreateInput = Pick<
28
+ AdminClientInitializer,
29
+ 'name' | 'description'
30
+ >
31
+ export type AdminClientCreateResponse = Pick<AdminClient, 'id'>
32
+
33
+ // update
34
+
35
+ export type AdminClientUpdateInput = Pick<
36
+ AdminClientMutator,
37
+ 'name' | 'description'
38
+ >
39
+
40
+ // delete
41
+
42
+ export type AdminClientDeleteQueryParams = Pick<AdminClient, 'id'>
@@ -1,4 +1,5 @@
1
1
  export * from './candidacies'
2
+ export * from './clients'
2
3
  export * from './persons'
3
4
  export * from './referrals'
4
5
  export * from './website'