diff --git a/carbonmark-api/package.json b/carbonmark-api/package.json index 52e883beac..2a887fea0c 100644 --- a/carbonmark-api/package.json +++ b/carbonmark-api/package.json @@ -1,6 +1,6 @@ { "name": "@klimadao/carbonmark-api", - "version": "6.2.0", + "version": "6.2.1", "description": "An API for exploring Carbonmark project data, prices and activity.", "main": "app.ts", "scripts": { diff --git a/carbonmark-api/src/.generated/mocks/assets.mocks.ts b/carbonmark-api/src/.generated/mocks/assets.mocks.ts index 81aa9c3f86..e465b72260 100644 --- a/carbonmark-api/src/.generated/mocks/assets.mocks.ts +++ b/carbonmark-api/src/.generated/mocks/assets.mocks.ts @@ -1,5 +1,5 @@ //@ts-nocheck -import { Account, Account_Filter, BlockChangedFilter, Block_Height, Holding, Holding_Filter, Query, Subscription, Token, Token_Filter, _Block_, _Meta_, Account_OrderBy, Holding_OrderBy, OrderDirection, Token_OrderBy, _SubgraphErrorPolicy_ } from '../types/assets.types'; +import { Account, Account_Filter, BlockChangedFilter, Block_Height, Holding, Holding_Filter, Query, Subscription, Token, Token_Filter, _Block_, _Meta_, Account_OrderBy, Aggregation_Interval, Holding_OrderBy, OrderDirection, Token_OrderBy, _SubgraphErrorPolicy_ } from '../types/assets.types'; export const anAccount = (overrides?: Partial, _relationshipsToOmit: Set = new Set()): Account => { const relationshipsToOmit: Set = new Set(_relationshipsToOmit); diff --git a/carbonmark-api/src/.generated/mocks/digitalCarbon.mocks.ts b/carbonmark-api/src/.generated/mocks/digitalCarbon.mocks.ts index da4d75ad3b..7389010b9f 100644 --- a/carbonmark-api/src/.generated/mocks/digitalCarbon.mocks.ts +++ b/carbonmark-api/src/.generated/mocks/digitalCarbon.mocks.ts @@ -1,5 +1,5 @@ //@ts-nocheck -import { Account, Account_Filter, BlockChangedFilter, Block_Height, Bridge, Bridge_Filter, CarbonCredit, CarbonCreditSnapshot, CarbonCreditSnapshot_Filter, CarbonCredit_Filter, CarbonPool, CarbonPoolCreditBalance, CarbonPoolCreditBalanceDailySnapshot, CarbonPoolCreditBalanceDailySnapshot_Filter, CarbonPoolCreditBalance_Filter, CarbonPoolDailySnapshot, CarbonPoolDailySnapshot_Filter, CarbonPool_Filter, CarbonProject, CarbonProject_Filter, CrossChainBridge, CrossChainBridge_Filter, Ecosystem, Ecosystem_Filter, Epoch, Epoch_Filter, Holding, HoldingDailySnapshot, HoldingDailySnapshot_Filter, Holding_Filter, KlimaRetire, KlimaRetire_Filter, Methodology, Methodology_Filter, PoolDeposit, PoolDeposit_Filter, PoolRedeem, PoolRedeem_Filter, ProvenanceRecord, ProvenanceRecord_Filter, Query, Retire, Retire_Filter, Subscription, Token, Token_Filter, ToucanBatch, ToucanBatch_Filter, _Block_, _Meta_, Account_OrderBy, BridgeProtocol, Bridge_OrderBy, CarbonCreditSnapshot_OrderBy, CarbonCredit_OrderBy, CarbonPoolCreditBalanceDailySnapshot_OrderBy, CarbonPoolCreditBalance_OrderBy, CarbonPoolDailySnapshot_OrderBy, CarbonPool_OrderBy, CarbonProject_OrderBy, CrossChainBridgeDirection, CrossChainBridge_OrderBy, Ecosystem_OrderBy, Epoch_OrderBy, HoldingDailySnapshot_OrderBy, Holding_OrderBy, KlimaRetire_OrderBy, Methodology_OrderBy, OrderDirection, PoolDeposit_OrderBy, PoolRedeem_OrderBy, ProvenanceRecord_OrderBy, ProvenanceType, Registry, RetireSource, Retire_OrderBy, Token_OrderBy, ToucanBatch_OrderBy, _SubgraphErrorPolicy_ } from '../types/digitalCarbon.types'; +import { Account, Account_Filter, BlockChangedFilter, Block_Height, Bridge, Bridge_Filter, CarbonCredit, CarbonCreditSnapshot, CarbonCreditSnapshot_Filter, CarbonCredit_Filter, CarbonPool, CarbonPoolCreditBalance, CarbonPoolCreditBalanceDailySnapshot, CarbonPoolCreditBalanceDailySnapshot_Filter, CarbonPoolCreditBalance_Filter, CarbonPoolDailySnapshot, CarbonPoolDailySnapshot_Filter, CarbonPool_Filter, CarbonProject, CarbonProject_Filter, CrossChainBridge, CrossChainBridge_Filter, Ecosystem, Ecosystem_Filter, Epoch, Epoch_Filter, Holding, HoldingDailySnapshot, HoldingDailySnapshot_Filter, Holding_Filter, KlimaRetire, KlimaRetire_Filter, Methodology, Methodology_Filter, PoolDeposit, PoolDeposit_Filter, PoolRedeem, PoolRedeem_Filter, ProvenanceRecord, ProvenanceRecord_Filter, Query, Retire, Retire_Filter, Subscription, Token, Token_Filter, ToucanBatch, ToucanBatch_Filter, _Block_, _Meta_, Account_OrderBy, Aggregation_Interval, BridgeProtocol, Bridge_OrderBy, CarbonCreditSnapshot_OrderBy, CarbonCredit_OrderBy, CarbonPoolCreditBalanceDailySnapshot_OrderBy, CarbonPoolCreditBalance_OrderBy, CarbonPoolDailySnapshot_OrderBy, CarbonPool_OrderBy, CarbonProject_OrderBy, CrossChainBridgeDirection, CrossChainBridge_OrderBy, Ecosystem_OrderBy, Epoch_OrderBy, HoldingDailySnapshot_OrderBy, Holding_OrderBy, KlimaRetire_OrderBy, Methodology_OrderBy, OrderDirection, PoolDeposit_OrderBy, PoolRedeem_OrderBy, ProvenanceRecord_OrderBy, ProvenanceType, Registry, RetireSource, Retire_OrderBy, Token_OrderBy, ToucanBatch_OrderBy, _SubgraphErrorPolicy_ } from '../types/digitalCarbon.types'; export const anAccount = (overrides?: Partial, _relationshipsToOmit: Set = new Set()): Account => { const relationshipsToOmit: Set = new Set(_relationshipsToOmit); diff --git a/carbonmark-api/src/.generated/mocks/icr.mocks.ts b/carbonmark-api/src/.generated/mocks/icr.mocks.ts index 0317d8f3f2..eef003eda3 100644 --- a/carbonmark-api/src/.generated/mocks/icr.mocks.ts +++ b/carbonmark-api/src/.generated/mocks/icr.mocks.ts @@ -1,5 +1,5 @@ //@ts-nocheck -import { BlockChangedFilter, Block_Height, Cancellation, Cancellation_Filter, ExAnte, ExAnteHolder, ExAnteHolder_Filter, ExAnte_Filter, ExPost, ExPostHolder, ExPostHolder_Filter, ExPost_Filter, Holder, Holder_Filter, Project, Project_Filter, Query, RetirementCertificate, RetirementCertificate_Filter, Subscription, _Block_, _Meta_, Cancellation_OrderBy, ExAnteHolder_OrderBy, ExAnte_OrderBy, ExPostHolder_OrderBy, ExPost_OrderBy, Holder_OrderBy, OrderDirection, Project_OrderBy, RetirementCertificate_OrderBy, _SubgraphErrorPolicy_ } from '../types/icr.types'; +import { BlockChangedFilter, Block_Height, Cancellation, Cancellation_Filter, ExAnte, ExAnteHolder, ExAnteHolder_Filter, ExAnte_Filter, ExPost, ExPostHolder, ExPostHolder_Filter, ExPost_Filter, Holder, Holder_Filter, Project, Project_Filter, Query, RetirementCertificate, RetirementCertificate_Filter, Subscription, _Block_, _Meta_, Aggregation_Interval, Cancellation_OrderBy, ExAnteHolder_OrderBy, ExAnte_OrderBy, ExPostHolder_OrderBy, ExPost_OrderBy, Holder_OrderBy, OrderDirection, Project_OrderBy, RetirementCertificate_OrderBy, _SubgraphErrorPolicy_ } from '../types/icr.types'; export const aBlockChangedFilter = (overrides?: Partial, _relationshipsToOmit: Set = new Set()): BlockChangedFilter => { const relationshipsToOmit: Set = new Set(_relationshipsToOmit); diff --git a/carbonmark-api/src/.generated/mocks/marketplace.mocks.ts b/carbonmark-api/src/.generated/mocks/marketplace.mocks.ts index 949e9fe33b..ad600c721f 100644 --- a/carbonmark-api/src/.generated/mocks/marketplace.mocks.ts +++ b/carbonmark-api/src/.generated/mocks/marketplace.mocks.ts @@ -1,5 +1,5 @@ //@ts-nocheck -import { Activity, Activity_Filter, BlockChangedFilter, Block_Height, Category, Category_Filter, Country, Country_Filter, Listing, Listing_Filter, Project, Project_Filter, Purchase, Purchase_Filter, Query, Subscription, User, User_Filter, _Block_, _Meta_, ActivityType, Activity_OrderBy, Category_OrderBy, Country_OrderBy, Listing_OrderBy, OrderDirection, Project_OrderBy, Purchase_OrderBy, TokenStandard, User_OrderBy, _SubgraphErrorPolicy_ } from '../types/marketplace.types'; +import { Activity, Activity_Filter, BlockChangedFilter, Block_Height, Category, Category_Filter, Country, Country_Filter, Listing, Listing_Filter, Project, Project_Filter, Purchase, Purchase_Filter, Query, Subscription, User, User_Filter, _Block_, _Meta_, ActivityType, Activity_OrderBy, Aggregation_Interval, Category_OrderBy, Country_OrderBy, Listing_OrderBy, OrderDirection, Project_OrderBy, Purchase_OrderBy, TokenStandard, User_OrderBy, _SubgraphErrorPolicy_ } from '../types/marketplace.types'; export const anActivity = (overrides?: Partial, _relationshipsToOmit: Set = new Set()): Activity => { const relationshipsToOmit: Set = new Set(_relationshipsToOmit); diff --git a/carbonmark-api/src/.generated/mocks/tokens.mocks.ts b/carbonmark-api/src/.generated/mocks/tokens.mocks.ts index 170acbfb5c..256066dbaa 100644 --- a/carbonmark-api/src/.generated/mocks/tokens.mocks.ts +++ b/carbonmark-api/src/.generated/mocks/tokens.mocks.ts @@ -1,5 +1,5 @@ //@ts-nocheck -import { BlockChangedFilter, Block_Height, Pair, Pair_Filter, Query, Subscription, Swap, Swap_Filter, Token, Token_Filter, _Block_, _Meta_, OrderDirection, Pair_OrderBy, Swap_OrderBy, Token_OrderBy, _SubgraphErrorPolicy_ } from '../types/tokens.types'; +import { BlockChangedFilter, Block_Height, Pair, Pair_Filter, Query, Subscription, Swap, Swap_Filter, Token, Token_Filter, _Block_, _Meta_, Aggregation_Interval, OrderDirection, Pair_OrderBy, Swap_OrderBy, Token_OrderBy, _SubgraphErrorPolicy_ } from '../types/tokens.types'; export const aBlockChangedFilter = (overrides?: Partial, _relationshipsToOmit: Set = new Set()): BlockChangedFilter => { const relationshipsToOmit: Set = new Set(_relationshipsToOmit); diff --git a/carbonmark-api/src/.generated/types/assets.types.ts b/carbonmark-api/src/.generated/types/assets.types.ts index 13575bf5f8..f098b6f257 100644 --- a/carbonmark-api/src/.generated/types/assets.types.ts +++ b/carbonmark-api/src/.generated/types/assets.types.ts @@ -58,6 +58,11 @@ export enum Account_OrderBy { id = 'id' } +export enum Aggregation_Interval { + day = 'day', + hour = 'hour' +} + export type BlockChangedFilter = { number_gte: Scalars['Int']; }; diff --git a/carbonmark-api/src/.generated/types/digitalCarbon.types.ts b/carbonmark-api/src/.generated/types/digitalCarbon.types.ts index c5d63f0874..270491b8ae 100644 --- a/carbonmark-api/src/.generated/types/digitalCarbon.types.ts +++ b/carbonmark-api/src/.generated/types/digitalCarbon.types.ts @@ -140,6 +140,11 @@ export enum Account_OrderBy { totalRetirements = 'totalRetirements' } +export enum Aggregation_Interval { + day = 'day', + hour = 'hour' +} + export type BlockChangedFilter = { number_gte: Scalars['Int']; }; diff --git a/carbonmark-api/src/.generated/types/icr.types.ts b/carbonmark-api/src/.generated/types/icr.types.ts index a5f0796a23..387baaaf59 100644 --- a/carbonmark-api/src/.generated/types/icr.types.ts +++ b/carbonmark-api/src/.generated/types/icr.types.ts @@ -19,6 +19,11 @@ export type Scalars = { Int8: any; }; +export enum Aggregation_Interval { + day = 'day', + hour = 'hour' +} + export type BlockChangedFilter = { number_gte: Scalars['Int']; }; diff --git a/carbonmark-api/src/.generated/types/marketplace.types.ts b/carbonmark-api/src/.generated/types/marketplace.types.ts index 462a91b5e8..a9855ad32d 100644 --- a/carbonmark-api/src/.generated/types/marketplace.types.ts +++ b/carbonmark-api/src/.generated/types/marketplace.types.ts @@ -261,6 +261,11 @@ export enum Activity_OrderBy { user__id = 'user__id' } +export enum Aggregation_Interval { + day = 'day', + hour = 'hour' +} + export type BlockChangedFilter = { number_gte: Scalars['Int']; }; diff --git a/carbonmark-api/src/.generated/types/tokens.types.ts b/carbonmark-api/src/.generated/types/tokens.types.ts index 75de4b3f9c..f0da02f30b 100644 --- a/carbonmark-api/src/.generated/types/tokens.types.ts +++ b/carbonmark-api/src/.generated/types/tokens.types.ts @@ -19,6 +19,11 @@ export type Scalars = { Int8: any; }; +export enum Aggregation_Interval { + day = 'day', + hour = 'hour' +} + export type BlockChangedFilter = { number_gte: Scalars['Int']; }; diff --git a/package-lock.json b/package-lock.json index 38e5fd03a7..5a8db3c895 100644 --- a/package-lock.json +++ b/package-lock.json @@ -590,7 +590,7 @@ }, "carbonmark-api": { "name": "@klimadao/carbonmark-api", - "version": "6.2.0", + "version": "6.2.1", "license": "ISC", "dependencies": { "@fastify/autoload": "^5.0.0",