Skip to content

Commit

Permalink
fix: update api types for streams
Browse files Browse the repository at this point in the history
  • Loading branch information
ErnoW committed Nov 16, 2022
1 parent a18b46a commit bc29367
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 7 deletions.
5 changes: 5 additions & 0 deletions .changeset/fresh-feet-refuse.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@moralisweb3/streams': patch
---

Update api types for streams: include types for stream usage
39 changes: 32 additions & 7 deletions packages/streams/src/generated/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,35 @@ export interface components {
/** @description The region from where all the webhooks will be posted for this project */
region?: components["schemas"]["SettingsRegion"];
};
UsageStatsStreams: {
/**
* Format: double
* @description The total amount of webhooks delivered across all streams
*/
totalWebhooksDelivered: number;
/**
* Format: double
* @description The total amount of failed webhooks across all streams
*/
totalWebhooksFailed: number;
/**
* Format: double
* @description The total amount of logs processed across all streams, this includes failed webhooks
*/
totalLogsProcessed: number;
/**
* Format: double
* @description The total amount of txs processed across all streams, this includes failed webhooks
*/
totalTxsProcessed: number;
/**
* Format: double
* @description The total amount of internal txs processed across all streams, this includes failed webhooks
*/
totalTxsInternalProcessed: number;
/** @description The stream id */
streamId: string;
};
"usagestatsTypes.UsageStatsModel": {
/**
* Format: double
Expand All @@ -231,6 +260,8 @@ export interface components {
* @description The total amount of internal txs processed across all streams, this includes failed webhooks
*/
totalTxsInternalProcessed: number;
/** @description Array of stream stats */
streams?: components["schemas"]["UsageStatsStreams"][];
/**
* Format: date-time
* @description The date since this stats are being counted
Expand Down Expand Up @@ -415,12 +446,6 @@ export interface components {
/** @description The address or a list of addresses to be added to the Stream. */
address: Partial<string> & Partial<string[]>;
};
"addressesTypes.DeleteAddressResponse": {
/** @description The streamId */
streamId: string;
/** @description Address */
address: Partial<string> & Partial<string[]>;
};
"addressesTypes.AddressesRemove": {
/** @description The address or a list of addresses to be removed from the Stream. */
address: Partial<string> & Partial<string[]>;
Expand Down Expand Up @@ -703,7 +728,7 @@ export interface operations {
/** Ok */
200: {
content: {
"application/json": components["schemas"]["addressesTypes.DeleteAddressResponse"];
"application/json": components["schemas"]["addressesTypes.AddressResponse"];
};
};
};
Expand Down

0 comments on commit bc29367

Please sign in to comment.