@the-inkwell/shared 0.1.84 → 0.1.86

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.84",
3
+ "version": "0.1.86",
4
4
  "description": "Shared code for Inkwell",
5
5
  "license": "ISC",
6
6
  "author": "Inkwell (Rob Yedlin & Saimon Alam)",
@@ -0,0 +1,38 @@
1
+ import { ListRequest, ListResponse } from '../../../utils'
2
+ import Client, {
3
+ ClientsInitializer,
4
+ ClientsMutator
5
+ } from '../../../_schema/Clients'
6
+
7
+ export type AdminClient = Client
8
+ type AdminClientInitializer = ClientsInitializer
9
+ type AdminClientMutator = ClientsMutator
10
+
11
+ // detail
12
+
13
+ export type AdminClientQueryParams = Pick<AdminClient, 'id'>
14
+ export type AdminClientResponse = AdminClient
15
+
16
+ // list
17
+
18
+ export type AdminClientListInput = ListRequest
19
+ export type AdminClientListResponse = ListResponse<AdminClient>
20
+
21
+ // create
22
+
23
+ export type AdminClientCreateInput = Pick<
24
+ AdminClientInitializer,
25
+ 'name' | 'description'
26
+ >
27
+ export type AdminClientCreateResponse = Pick<AdminClient, 'id'>
28
+
29
+ // update
30
+
31
+ export type AdminClientUpdateInput = Pick<
32
+ AdminClientMutator,
33
+ 'name' | 'description'
34
+ >
35
+
36
+ // delete
37
+
38
+ 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'
@@ -10,9 +10,9 @@ import Position from '../../../_schema/Positions'
10
10
  import Client from '../../../_schema/Clients'
11
11
 
12
12
  export type AdminReferral = Referrals & {
13
- referrer: Pick<Person, 'id' | 'firstName' | 'lastName' | 'photoUrl'>
13
+ referrer: Pick<Person, 'id' | 'firstName' | 'lastName' | 'photoUrl' | 'email'>
14
14
  candidacy: Pick<Candidacy, 'id' | 'status'> & {
15
- person: Pick<Person, 'id' | 'firstName' | 'lastName' | 'photoUrl'>
15
+ person: Pick<Person, 'id' | 'firstName' | 'lastName' | 'photoUrl' | 'email'>
16
16
  }
17
17
  campaign?: Pick<Campaign, 'id' | 'name'>
18
18
  position: Pick<Position, 'id' | 'name'> & {