11import { Address , AddressOrENS } from './commonTypes.js' ;
2- import {
3- CollectionSubscription ,
4- ProtectedDataInCollection ,
5- } from './sharingTypes.js' ;
62
73/***************************************************************************
84 * Subgraph Types *
@@ -22,82 +18,3 @@ export type OneProtectedData = {
2218export type ProtectedDatasGraphQLResponse = {
2319 protectedDatas : OneProtectedData [ ] ;
2420} ;
25-
26- export type ProtectedDatasInCollectionsGraphQLResponse = {
27- protectedDatas : ProtectedDataInCollection [ ] ;
28- } ;
29-
30- export type ProtectedDataPricingParamsGraphQLResponse = {
31- protectedData ?: {
32- id : Address ;
33- name : string ;
34- isRentable : boolean ;
35- isIncludedInSubscription : boolean ;
36- isForSale : boolean ;
37- collection ?: {
38- subscriptionParams ?: {
39- price : number ;
40- duration : number ;
41- } ;
42- } ;
43- rentalParam ?: {
44- price : number ;
45- duration : number ;
46- } ;
47- } ;
48- } ;
49-
50- // ---------------------Collection Types------------------------------------
51- export type GetCollectionSubscriptionsGraphQLResponse = {
52- collectionSubscriptions : CollectionSubscription [ ] ;
53- } ;
54-
55- export type GetCollectionOwnersGraphQLResponse = {
56- accounts : Array < {
57- id : Address ;
58- collections : Array < {
59- subscriptions : Array < {
60- subscriber : {
61- id : Address ;
62- } ;
63- endDate : number ;
64- } > ;
65- id : string ;
66- creationTimestamp : number ;
67- subscriptionParams : {
68- price : number ;
69- duration : number ;
70- } ;
71- } > ;
72- } > ;
73- } ;
74-
75- // ---------------------Rental Types------------------------------------
76-
77- export type GetRentalsGraphQLResponse = {
78- rentals : Array < {
79- id : string ;
80- renter : Address ;
81- protectedData : { id : AddressOrENS ; name : string } ;
82- creationTimestamp : number ;
83- endDate : number ;
84- rentalParams : {
85- price : number ;
86- duration : number ;
87- } ;
88- } > ;
89- } ;
90-
91- // ---------------------AppWhitelist Types------------------------------------
92-
93- export type GetUserAddOnlyAppWhitelistGraphQLResponse = {
94- addOnlyAppWhitelists : Array < {
95- id : string ;
96- owner : {
97- id : string ;
98- } ;
99- apps : Array < {
100- id : string ;
101- } > ;
102- } > ;
103- } ;
0 commit comments