@the-inkwell/shared 0.1.114 → 0.1.115

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@the-inkwell/shared",
3
- "version": "0.1.114",
3
+ "version": "0.1.115",
4
4
  "description": "Shared code for Inkwell",
5
5
  "license": "ISC",
6
6
  "author": "Inkwell (Rob Yedlin & Saimon Alam)",
@@ -1,7 +1,12 @@
1
- import Campaigns from '../../../_schema/Campaigns'
1
+ import Campaigns, {
2
+ CampaignsInitializer,
3
+ CampaignsMutator
4
+ } from '../../../_schema/Campaigns'
2
5
  import { type ListRequest, type ListResponse } from '../../../utils'
3
6
 
4
7
  export type AdminCampaign = Campaigns
8
+ export type AdminCampaignInitializer = CampaignsInitializer
9
+ export type AdminCampaignMutator = CampaignsMutator
5
10
 
6
11
  // detail
7
12
 
@@ -13,6 +18,10 @@ export type AdminCampaignResponse = AdminCampaign
13
18
  export type AdminCampaignListInput = ListRequest
14
19
  export type AdminCampaignListResponse = ListResponse<AdminCampaign>
15
20
 
21
+ // create
22
+
23
+ export type AdminCampaignCreateParams = AdminCampaignInitializer
24
+
16
25
  // delete
17
26
 
18
27
  export type AdminCampaignDeleteParams = Pick<AdminCampaign, 'id'>