@the-inkwell/shared 0.1.85 → 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.
|
@@ -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
|
@@ -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'>
|