Skip to content

Commit

Permalink
[API] Generate types for current version (#2284)
Browse files Browse the repository at this point in the history
* api: generate types for current version

* increment api version
  • Loading branch information
psparacino authored Feb 16, 2024
1 parent 95905ae commit 80c32cd
Show file tree
Hide file tree
Showing 12 changed files with 32 additions and 7 deletions.
2 changes: 1 addition & 1 deletion carbonmark-api/package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion carbonmark-api/src/.generated/mocks/assets.mocks.ts
Original file line number Diff line number Diff line change
@@ -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<Account>, _relationshipsToOmit: Set<string> = new Set()): Account => {
const relationshipsToOmit: Set<string> = new Set(_relationshipsToOmit);
Expand Down
2 changes: 1 addition & 1 deletion carbonmark-api/src/.generated/mocks/digitalCarbon.mocks.ts
Original file line number Diff line number Diff line change
@@ -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<Account>, _relationshipsToOmit: Set<string> = new Set()): Account => {
const relationshipsToOmit: Set<string> = new Set(_relationshipsToOmit);
Expand Down
2 changes: 1 addition & 1 deletion carbonmark-api/src/.generated/mocks/icr.mocks.ts
Original file line number Diff line number Diff line change
@@ -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<BlockChangedFilter>, _relationshipsToOmit: Set<string> = new Set()): BlockChangedFilter => {
const relationshipsToOmit: Set<string> = new Set(_relationshipsToOmit);
Expand Down
2 changes: 1 addition & 1 deletion carbonmark-api/src/.generated/mocks/marketplace.mocks.ts
Original file line number Diff line number Diff line change
@@ -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<Activity>, _relationshipsToOmit: Set<string> = new Set()): Activity => {
const relationshipsToOmit: Set<string> = new Set(_relationshipsToOmit);
Expand Down
2 changes: 1 addition & 1 deletion carbonmark-api/src/.generated/mocks/tokens.mocks.ts
Original file line number Diff line number Diff line change
@@ -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<BlockChangedFilter>, _relationshipsToOmit: Set<string> = new Set()): BlockChangedFilter => {
const relationshipsToOmit: Set<string> = new Set(_relationshipsToOmit);
Expand Down
5 changes: 5 additions & 0 deletions carbonmark-api/src/.generated/types/assets.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'];
};
Expand Down
5 changes: 5 additions & 0 deletions carbonmark-api/src/.generated/types/digitalCarbon.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'];
};
Expand Down
5 changes: 5 additions & 0 deletions carbonmark-api/src/.generated/types/icr.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ export type Scalars = {
Int8: any;
};

export enum Aggregation_Interval {
day = 'day',
hour = 'hour'
}

export type BlockChangedFilter = {
number_gte: Scalars['Int'];
};
Expand Down
5 changes: 5 additions & 0 deletions carbonmark-api/src/.generated/types/marketplace.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'];
};
Expand Down
5 changes: 5 additions & 0 deletions carbonmark-api/src/.generated/types/tokens.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ export type Scalars = {
Int8: any;
};

export enum Aggregation_Interval {
day = 'day',
hour = 'hour'
}

export type BlockChangedFilter = {
number_gte: Scalars['Int'];
};
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 80c32cd

Please sign in to comment.