Skip to content

Commit

Permalink
Add missing enums
Browse files Browse the repository at this point in the history
  • Loading branch information
juangm committed Feb 3, 2025
1 parent 27d99fa commit 8f8cff8
Show file tree
Hide file tree
Showing 2 changed files with 100 additions and 0 deletions.
79 changes: 79 additions & 0 deletions packages/graphql/src/enums.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1154,3 +1154,82 @@ export enum GraphRuleType {
GroupGated = 'GROUP_GATED',
Unknown = 'UNKNOWN',
}

export enum AccountActionType {
Tipping = 'TIPPING',
Unknown = 'UNKNOWN',
}

export enum AccountFollowRuleType {
tokenGated = 'TOKEN_GATED',
simplePayment = 'SIMPLE_PAYMENT',
unknown = 'UNKNOWN',
}

export enum FeedRuleExecuteOn {
creatingPost = 'CREATING_POST',
editingPost = 'EDITING_POST',
deletingPost = 'DELETING_POST',
changingPostRule = 'CHANGING_POST_RULE',
}

export enum FeedRuleType {
tokenGated = 'TOKEN_GATED',
restrictedSigners = 'RESTRICTED_SIGNERS',
acountBlocking = 'ACCOUNT_BLOCKING',
simplePayment = 'SIMPLE_PAYMENT',
groupGated = 'GROUP_GATED',
unknown = 'UNKNOWN',
}

export enum GroupRuleExecuteOn {
adding = 'ADDING',
removing = 'REMOVING',
joining = 'JOINING',
leaving = 'LEAVING',
}

export enum GroupRuleType {
tokenGated = 'TOKEN_GATED',
simplePayment = 'SIMPLE_PAYMENT',
membershipApproval = 'MEMBERSHIP_APPROVAL',
banMember = 'BAN_MEMBER',
unknown = 'UNKNOWN',
}

export enum NamespaceRuleExecuteOn {
creating = 'CREATING',
removing = 'REMOVING',
assigning = 'ASSIGNING',
unassigning = 'UNASSIGNING',
}

export enum NamespaceRuleType {
tokenGated = 'TOKEN_GATED',
pricePerLength = 'PRICE_PER_LENGTH',
usernameLength = 'USERNAME_LENGTH',
unknown = 'UNKNOWN',
}

export enum PostRuleExecuteOn {
creatingPost = 'CREATING_POST',
editingPost = 'EDITING_POST',
}

export enum PostRuleType {
followersOnly = 'FOLLOWERS_ONLY',
unknown = 'UNKNOWN',
}

export enum GraphRuleExecuteOn {
following = 'FOLLOWING',
unfollowing = 'UNFOLLOWING',
changingFollowRules = 'CHANGING_FOLLOW_RULES',
}

export enum GraphRuleType {
tokenGated = 'TOKEN_GATED',
accountBlocking = 'ACCOUNT_BLOCKING',
groupGated = 'GROUP_GATED',
unknown = 'UNKNOWN',
}
21 changes: 21 additions & 0 deletions packages/graphql/src/graphql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ import {
import type { StandardData } from './common';
import type {
AccessConditionComparison,
AccountActionType,
AccountFollowRuleType,
AccountFollowRuleUnsatisfiedReason,
AccountReportReason,
AccountsOrderBy,
Expand All @@ -41,15 +43,20 @@ import type {
ContentWarning,
EntityType,
EventMetadataLensSchedulingAdjustmentsTimezoneId,
FeedRuleExecuteOn,
FeedRuleType,
FeedRuleUnsatisfiedReason,
FeedsOrderBy,
FollowersOrderBy,
FollowersYouKnowOrderBy,
FollowingOrderBy,
ForYouSource,
GraphRuleExecuteOn,
GraphRuleType,
GraphsOrderBy,
GroupMembersOrderBy,
GroupRuleExecuteOn,
GroupRuleType,
GroupRuleUnsatisfiedReason,
GroupsOrderBy,
IndexingStatus,
Expand All @@ -61,6 +68,8 @@ import type {
MediaVideoType,
MetadataAttributeType,
MetadataLicenseType,
NamespaceRuleExecuteOn,
NamespaceRuleType,
NamespaceRuleUnsatisfiedReason,
NamespacesOrderBy,
NftContractType,
Expand All @@ -73,6 +82,7 @@ import type {
PostReactionType,
PostReferenceType,
PostReportReason,
PostRuleExecuteOn,
PostRuleType,
PostRuleUnsatisfiedReason,
PostTagsOrderBy,
Expand Down Expand Up @@ -103,6 +113,8 @@ export const graphql = initGraphQLTada<{
scalars: {
AccessConditionComparison: AccessConditionComparison;
AccessToken: AccessToken;
AccountActionType: AccountActionType;
AccountFollowRuleType: AccountFollowRuleType;
AccountFollowRuleUnsatisfiedReason: AccountFollowRuleUnsatisfiedReason;
AccountReportReason: AccountReportReason;
AccountsOrderBy: AccountsOrderBy;
Expand All @@ -122,6 +134,7 @@ export const graphql = initGraphQLTada<{
EntityType: EntityType;
EventMetadataLensSchedulingAdjustmentsTimezoneId: EventMetadataLensSchedulingAdjustmentsTimezoneId;
EvmAddress: EvmAddress;
FeedRuleExecuteOn: FeedRuleExecuteOn;
FeedRuleType: FeedRuleType;
FeedRuleUnsatisfiedReason: FeedRuleUnsatisfiedReason;
FeedsOrderBy: FeedsOrderBy;
Expand All @@ -130,8 +143,12 @@ export const graphql = initGraphQLTada<{
FollowersYouKnowOrderBy: FollowersYouKnowOrderBy;
FollowingOrderBy: FollowingOrderBy;
ForYouSource: ForYouSource;
GraphRuleExecuteOn: GraphRuleExecuteOn;
GraphRuleType: GraphRuleType;
GraphsOrderBy: GraphsOrderBy;
GroupMembersOrderBy: GroupMembersOrderBy;
GroupRuleExecuteOn: GroupRuleExecuteOn;
GroupRuleType: GroupRuleType;
GroupRuleUnsatisfiedReason: GroupRuleUnsatisfiedReason;
GroupsOrderBy: GroupsOrderBy;
ID: ID;
Expand All @@ -148,6 +165,8 @@ export const graphql = initGraphQLTada<{
MediaVideoType: MediaVideoType;
MetadataAttributeType: MetadataAttributeType;
MetadataLicenseType: MetadataLicenseType;
NamespaceRuleExecuteOn: NamespaceRuleExecuteOn;
NamespaceRuleType: NamespaceRuleType;
NamespaceRuleUnsatisfiedReason: NamespaceRuleUnsatisfiedReason;
NamespacesOrderBy: NamespacesOrderBy;
NftContractType: NftContractType;
Expand All @@ -161,12 +180,14 @@ export const graphql = initGraphQLTada<{
PostReactionType: PostReactionType;
PostReferenceType: PostReferenceType;
PostReportReason: PostReportReason;
PostRuleExecuteOn: PostRuleExecuteOn;
PostRuleType: PostRuleType;
PostRuleUnsatisfiedReason: PostRuleUnsatisfiedReason;
PostTagsOrderBy: PostTagsOrderBy;
PostType: PostType;
PostVisibilityFilter: PostVisibilityFilter;
RefreshToken: RefreshToken;
RuleId: string;
SelfFundedFallbackReason: SelfFundedFallbackReason;
Signature: Signature;
SponsoredFallbackReason: SponsoredFallbackReason;
Expand Down

0 comments on commit 8f8cff8

Please sign in to comment.