Skip to content

Commit 4c333ab

Browse files
refactor(sdk): remove sharing-related types
1 parent eda49e7 commit 4c333ab

File tree

4 files changed

+0
-425
lines changed

4 files changed

+0
-425
lines changed
Lines changed: 0 additions & 83 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
import { 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 = {
2218
export 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-
};
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
export * from './commonTypes.js';
22
export * from './coreTypes.js';
3-
export * from './sharingTypes.js';
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
export type AccountDetails = {
22
balance: bigint;
3-
sharingContractAllowance: bigint;
43
};

0 commit comments

Comments
 (0)