@clawconquest/client 1.9.0 → 1.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +278 -245
- package/dist/index.d.cts +25 -1
- package/dist/index.d.ts +25 -1
- package/dist/index.js +277 -245
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -91,6 +91,12 @@ interface GameEvent {
|
|
|
91
91
|
tick: Scalars['Int'];
|
|
92
92
|
__typename: 'GameEvent';
|
|
93
93
|
}
|
|
94
|
+
interface GameStateInfo {
|
|
95
|
+
current_cycle: Scalars['Int'];
|
|
96
|
+
current_tick: Scalars['Int'];
|
|
97
|
+
next_tick_at: (Scalars['DateTime'] | null);
|
|
98
|
+
__typename: 'GameStateInfo';
|
|
99
|
+
}
|
|
94
100
|
type GovernanceType = 'AUTOCRACY' | 'COUNCIL' | 'DEMOCRACY';
|
|
95
101
|
type MembershipPolicy = 'APPLICATION' | 'CLOSED' | 'FULLY_OPEN' | 'INVITATION_ONLY';
|
|
96
102
|
interface Mutation {
|
|
@@ -196,6 +202,7 @@ interface Query {
|
|
|
196
202
|
claw: PublicClaw;
|
|
197
203
|
countClaws: Scalars['Int'];
|
|
198
204
|
events: GameEvent[];
|
|
205
|
+
gameState: GameStateInfo;
|
|
199
206
|
inbox: Whisper[];
|
|
200
207
|
intercepted_whispers: Whisper[];
|
|
201
208
|
me: PlayerProfile;
|
|
@@ -214,6 +221,7 @@ interface Query {
|
|
|
214
221
|
pool_units: Unit[];
|
|
215
222
|
pools: Pool[];
|
|
216
223
|
siege: Siege;
|
|
224
|
+
sieges: Siege[];
|
|
217
225
|
__typename: 'Query';
|
|
218
226
|
}
|
|
219
227
|
interface RegenerateKeyPayload {
|
|
@@ -407,6 +415,13 @@ interface GameEventGenqlSelection {
|
|
|
407
415
|
__typename?: boolean | number;
|
|
408
416
|
__scalar?: boolean | number;
|
|
409
417
|
}
|
|
418
|
+
interface GameStateInfoGenqlSelection {
|
|
419
|
+
current_cycle?: boolean | number;
|
|
420
|
+
current_tick?: boolean | number;
|
|
421
|
+
next_tick_at?: boolean | number;
|
|
422
|
+
__typename?: boolean | number;
|
|
423
|
+
__scalar?: boolean | number;
|
|
424
|
+
}
|
|
410
425
|
interface MutationGenqlSelection {
|
|
411
426
|
acceptClanPact?: (ClanPactGenqlSelection & {
|
|
412
427
|
__args: {
|
|
@@ -626,6 +641,7 @@ interface QueryGenqlSelection {
|
|
|
626
641
|
tick?: (Scalars['Int'] | null);
|
|
627
642
|
};
|
|
628
643
|
});
|
|
644
|
+
gameState?: GameStateInfoGenqlSelection;
|
|
629
645
|
inbox?: (WhisperGenqlSelection & {
|
|
630
646
|
__args?: {
|
|
631
647
|
limit?: Scalars['Int'];
|
|
@@ -674,6 +690,11 @@ interface QueryGenqlSelection {
|
|
|
674
690
|
id: Scalars['String'];
|
|
675
691
|
};
|
|
676
692
|
});
|
|
693
|
+
sieges?: (SiegeGenqlSelection & {
|
|
694
|
+
__args: {
|
|
695
|
+
pool_id: Scalars['String'];
|
|
696
|
+
};
|
|
697
|
+
});
|
|
677
698
|
__typename?: boolean | number;
|
|
678
699
|
__scalar?: boolean | number;
|
|
679
700
|
}
|
|
@@ -798,6 +819,9 @@ declare const isCreateClawPayload: (obj?: {
|
|
|
798
819
|
declare const isGameEvent: (obj?: {
|
|
799
820
|
__typename?: any;
|
|
800
821
|
} | null) => obj is GameEvent;
|
|
822
|
+
declare const isGameStateInfo: (obj?: {
|
|
823
|
+
__typename?: any;
|
|
824
|
+
} | null) => obj is GameStateInfo;
|
|
801
825
|
declare const isMutation: (obj?: {
|
|
802
826
|
__typename?: any;
|
|
803
827
|
} | null) => obj is Mutation;
|
|
@@ -1012,4 +1036,4 @@ declare const generateSubscriptionOp: (fields: SubscriptionGenqlSelection & {
|
|
|
1012
1036
|
__name?: string;
|
|
1013
1037
|
}) => GraphqlOperation;
|
|
1014
1038
|
|
|
1015
|
-
export { type ApplicationStatus, type ApplyToClanInput, type AssignUnitInput, type Clan, type ClanApplication, type ClanApplicationGenqlSelection, type ClanGenqlSelection, type ClanPact, type ClanPactGenqlSelection, type ClanPactType, type ClanStatus, type Claw, type ClawGenqlSelection, type ClawSummary, type ClawSummaryGenqlSelection, type Client, type CreateClanInput, type CreateClawInput, type CreateClawPayload, type CreateClawPayloadGenqlSelection, type DeploySpyInput, type DismissUnitInput, type FieldsSelection, type GameEvent, type GameEventGenqlSelection, GenqlError, type GovernanceType, type MembershipPolicy, type Mutation, type MutationGenqlSelection, type MutationResult, type PactStatus, type Player, type PlayerGenqlSelection, type PlayerProfile, type PlayerProfileGenqlSelection, type Pool, type PoolGenqlSelection, type PoolType, type PrimaryGoal, type PrivateClaw, type PrivateClawGenqlSelection, type ProposeClanPactInput, type PublicClaw, type PublicClawGenqlSelection, type Query, type QueryGenqlSelection, type QueryResult, type RecruitUnitInput, type RegenerateKeyPayload, type RegenerateKeyPayloadGenqlSelection, type Relationship, type RelationshipGenqlSelection, type Scalars, type SendWhisperInput, type Siege, type SiegeGenqlSelection, type SiegeStatus, type Species, type SpyDeployment, type SpyDeploymentGenqlSelection, type StandingOrder, type StandingOrderGenqlSelection, type Subscription, type SubscriptionGenqlSelection, type SubscriptionResult, type Unit, type UnitGenqlSelection, type UnitType, type UpdateClawInput, type UpdateDirectivesInput, type UpdatePlayerInput, type Whisper, type WhisperGenqlSelection, createClient, enumApplicationStatus, enumClanPactType, enumClanStatus, enumGovernanceType, enumMembershipPolicy, enumPactStatus, enumPoolType, enumPrimaryGoal, enumSiegeStatus, enumSpecies, enumUnitType, everything, generateMutationOp, generateQueryOp, generateSubscriptionOp, isClan, isClanApplication, isClanPact, isClaw, isClawSummary, isCreateClawPayload, isGameEvent, isMutation, isPlayer, isPlayerProfile, isPool, isPrivateClaw, isPublicClaw, isQuery, isRegenerateKeyPayload, isRelationship, isSiege, isSpyDeployment, isStandingOrder, isSubscription, isUnit, isWhisper };
|
|
1039
|
+
export { type ApplicationStatus, type ApplyToClanInput, type AssignUnitInput, type Clan, type ClanApplication, type ClanApplicationGenqlSelection, type ClanGenqlSelection, type ClanPact, type ClanPactGenqlSelection, type ClanPactType, type ClanStatus, type Claw, type ClawGenqlSelection, type ClawSummary, type ClawSummaryGenqlSelection, type Client, type CreateClanInput, type CreateClawInput, type CreateClawPayload, type CreateClawPayloadGenqlSelection, type DeploySpyInput, type DismissUnitInput, type FieldsSelection, type GameEvent, type GameEventGenqlSelection, type GameStateInfo, type GameStateInfoGenqlSelection, GenqlError, type GovernanceType, type MembershipPolicy, type Mutation, type MutationGenqlSelection, type MutationResult, type PactStatus, type Player, type PlayerGenqlSelection, type PlayerProfile, type PlayerProfileGenqlSelection, type Pool, type PoolGenqlSelection, type PoolType, type PrimaryGoal, type PrivateClaw, type PrivateClawGenqlSelection, type ProposeClanPactInput, type PublicClaw, type PublicClawGenqlSelection, type Query, type QueryGenqlSelection, type QueryResult, type RecruitUnitInput, type RegenerateKeyPayload, type RegenerateKeyPayloadGenqlSelection, type Relationship, type RelationshipGenqlSelection, type Scalars, type SendWhisperInput, type Siege, type SiegeGenqlSelection, type SiegeStatus, type Species, type SpyDeployment, type SpyDeploymentGenqlSelection, type StandingOrder, type StandingOrderGenqlSelection, type Subscription, type SubscriptionGenqlSelection, type SubscriptionResult, type Unit, type UnitGenqlSelection, type UnitType, type UpdateClawInput, type UpdateDirectivesInput, type UpdatePlayerInput, type Whisper, type WhisperGenqlSelection, createClient, enumApplicationStatus, enumClanPactType, enumClanStatus, enumGovernanceType, enumMembershipPolicy, enumPactStatus, enumPoolType, enumPrimaryGoal, enumSiegeStatus, enumSpecies, enumUnitType, everything, generateMutationOp, generateQueryOp, generateSubscriptionOp, isClan, isClanApplication, isClanPact, isClaw, isClawSummary, isCreateClawPayload, isGameEvent, isGameStateInfo, isMutation, isPlayer, isPlayerProfile, isPool, isPrivateClaw, isPublicClaw, isQuery, isRegenerateKeyPayload, isRelationship, isSiege, isSpyDeployment, isStandingOrder, isSubscription, isUnit, isWhisper };
|
package/dist/index.d.ts
CHANGED
|
@@ -91,6 +91,12 @@ interface GameEvent {
|
|
|
91
91
|
tick: Scalars['Int'];
|
|
92
92
|
__typename: 'GameEvent';
|
|
93
93
|
}
|
|
94
|
+
interface GameStateInfo {
|
|
95
|
+
current_cycle: Scalars['Int'];
|
|
96
|
+
current_tick: Scalars['Int'];
|
|
97
|
+
next_tick_at: (Scalars['DateTime'] | null);
|
|
98
|
+
__typename: 'GameStateInfo';
|
|
99
|
+
}
|
|
94
100
|
type GovernanceType = 'AUTOCRACY' | 'COUNCIL' | 'DEMOCRACY';
|
|
95
101
|
type MembershipPolicy = 'APPLICATION' | 'CLOSED' | 'FULLY_OPEN' | 'INVITATION_ONLY';
|
|
96
102
|
interface Mutation {
|
|
@@ -196,6 +202,7 @@ interface Query {
|
|
|
196
202
|
claw: PublicClaw;
|
|
197
203
|
countClaws: Scalars['Int'];
|
|
198
204
|
events: GameEvent[];
|
|
205
|
+
gameState: GameStateInfo;
|
|
199
206
|
inbox: Whisper[];
|
|
200
207
|
intercepted_whispers: Whisper[];
|
|
201
208
|
me: PlayerProfile;
|
|
@@ -214,6 +221,7 @@ interface Query {
|
|
|
214
221
|
pool_units: Unit[];
|
|
215
222
|
pools: Pool[];
|
|
216
223
|
siege: Siege;
|
|
224
|
+
sieges: Siege[];
|
|
217
225
|
__typename: 'Query';
|
|
218
226
|
}
|
|
219
227
|
interface RegenerateKeyPayload {
|
|
@@ -407,6 +415,13 @@ interface GameEventGenqlSelection {
|
|
|
407
415
|
__typename?: boolean | number;
|
|
408
416
|
__scalar?: boolean | number;
|
|
409
417
|
}
|
|
418
|
+
interface GameStateInfoGenqlSelection {
|
|
419
|
+
current_cycle?: boolean | number;
|
|
420
|
+
current_tick?: boolean | number;
|
|
421
|
+
next_tick_at?: boolean | number;
|
|
422
|
+
__typename?: boolean | number;
|
|
423
|
+
__scalar?: boolean | number;
|
|
424
|
+
}
|
|
410
425
|
interface MutationGenqlSelection {
|
|
411
426
|
acceptClanPact?: (ClanPactGenqlSelection & {
|
|
412
427
|
__args: {
|
|
@@ -626,6 +641,7 @@ interface QueryGenqlSelection {
|
|
|
626
641
|
tick?: (Scalars['Int'] | null);
|
|
627
642
|
};
|
|
628
643
|
});
|
|
644
|
+
gameState?: GameStateInfoGenqlSelection;
|
|
629
645
|
inbox?: (WhisperGenqlSelection & {
|
|
630
646
|
__args?: {
|
|
631
647
|
limit?: Scalars['Int'];
|
|
@@ -674,6 +690,11 @@ interface QueryGenqlSelection {
|
|
|
674
690
|
id: Scalars['String'];
|
|
675
691
|
};
|
|
676
692
|
});
|
|
693
|
+
sieges?: (SiegeGenqlSelection & {
|
|
694
|
+
__args: {
|
|
695
|
+
pool_id: Scalars['String'];
|
|
696
|
+
};
|
|
697
|
+
});
|
|
677
698
|
__typename?: boolean | number;
|
|
678
699
|
__scalar?: boolean | number;
|
|
679
700
|
}
|
|
@@ -798,6 +819,9 @@ declare const isCreateClawPayload: (obj?: {
|
|
|
798
819
|
declare const isGameEvent: (obj?: {
|
|
799
820
|
__typename?: any;
|
|
800
821
|
} | null) => obj is GameEvent;
|
|
822
|
+
declare const isGameStateInfo: (obj?: {
|
|
823
|
+
__typename?: any;
|
|
824
|
+
} | null) => obj is GameStateInfo;
|
|
801
825
|
declare const isMutation: (obj?: {
|
|
802
826
|
__typename?: any;
|
|
803
827
|
} | null) => obj is Mutation;
|
|
@@ -1012,4 +1036,4 @@ declare const generateSubscriptionOp: (fields: SubscriptionGenqlSelection & {
|
|
|
1012
1036
|
__name?: string;
|
|
1013
1037
|
}) => GraphqlOperation;
|
|
1014
1038
|
|
|
1015
|
-
export { type ApplicationStatus, type ApplyToClanInput, type AssignUnitInput, type Clan, type ClanApplication, type ClanApplicationGenqlSelection, type ClanGenqlSelection, type ClanPact, type ClanPactGenqlSelection, type ClanPactType, type ClanStatus, type Claw, type ClawGenqlSelection, type ClawSummary, type ClawSummaryGenqlSelection, type Client, type CreateClanInput, type CreateClawInput, type CreateClawPayload, type CreateClawPayloadGenqlSelection, type DeploySpyInput, type DismissUnitInput, type FieldsSelection, type GameEvent, type GameEventGenqlSelection, GenqlError, type GovernanceType, type MembershipPolicy, type Mutation, type MutationGenqlSelection, type MutationResult, type PactStatus, type Player, type PlayerGenqlSelection, type PlayerProfile, type PlayerProfileGenqlSelection, type Pool, type PoolGenqlSelection, type PoolType, type PrimaryGoal, type PrivateClaw, type PrivateClawGenqlSelection, type ProposeClanPactInput, type PublicClaw, type PublicClawGenqlSelection, type Query, type QueryGenqlSelection, type QueryResult, type RecruitUnitInput, type RegenerateKeyPayload, type RegenerateKeyPayloadGenqlSelection, type Relationship, type RelationshipGenqlSelection, type Scalars, type SendWhisperInput, type Siege, type SiegeGenqlSelection, type SiegeStatus, type Species, type SpyDeployment, type SpyDeploymentGenqlSelection, type StandingOrder, type StandingOrderGenqlSelection, type Subscription, type SubscriptionGenqlSelection, type SubscriptionResult, type Unit, type UnitGenqlSelection, type UnitType, type UpdateClawInput, type UpdateDirectivesInput, type UpdatePlayerInput, type Whisper, type WhisperGenqlSelection, createClient, enumApplicationStatus, enumClanPactType, enumClanStatus, enumGovernanceType, enumMembershipPolicy, enumPactStatus, enumPoolType, enumPrimaryGoal, enumSiegeStatus, enumSpecies, enumUnitType, everything, generateMutationOp, generateQueryOp, generateSubscriptionOp, isClan, isClanApplication, isClanPact, isClaw, isClawSummary, isCreateClawPayload, isGameEvent, isMutation, isPlayer, isPlayerProfile, isPool, isPrivateClaw, isPublicClaw, isQuery, isRegenerateKeyPayload, isRelationship, isSiege, isSpyDeployment, isStandingOrder, isSubscription, isUnit, isWhisper };
|
|
1039
|
+
export { type ApplicationStatus, type ApplyToClanInput, type AssignUnitInput, type Clan, type ClanApplication, type ClanApplicationGenqlSelection, type ClanGenqlSelection, type ClanPact, type ClanPactGenqlSelection, type ClanPactType, type ClanStatus, type Claw, type ClawGenqlSelection, type ClawSummary, type ClawSummaryGenqlSelection, type Client, type CreateClanInput, type CreateClawInput, type CreateClawPayload, type CreateClawPayloadGenqlSelection, type DeploySpyInput, type DismissUnitInput, type FieldsSelection, type GameEvent, type GameEventGenqlSelection, type GameStateInfo, type GameStateInfoGenqlSelection, GenqlError, type GovernanceType, type MembershipPolicy, type Mutation, type MutationGenqlSelection, type MutationResult, type PactStatus, type Player, type PlayerGenqlSelection, type PlayerProfile, type PlayerProfileGenqlSelection, type Pool, type PoolGenqlSelection, type PoolType, type PrimaryGoal, type PrivateClaw, type PrivateClawGenqlSelection, type ProposeClanPactInput, type PublicClaw, type PublicClawGenqlSelection, type Query, type QueryGenqlSelection, type QueryResult, type RecruitUnitInput, type RegenerateKeyPayload, type RegenerateKeyPayloadGenqlSelection, type Relationship, type RelationshipGenqlSelection, type Scalars, type SendWhisperInput, type Siege, type SiegeGenqlSelection, type SiegeStatus, type Species, type SpyDeployment, type SpyDeploymentGenqlSelection, type StandingOrder, type StandingOrderGenqlSelection, type Subscription, type SubscriptionGenqlSelection, type SubscriptionResult, type Unit, type UnitGenqlSelection, type UnitType, type UpdateClawInput, type UpdateDirectivesInput, type UpdatePlayerInput, type Whisper, type WhisperGenqlSelection, createClient, enumApplicationStatus, enumClanPactType, enumClanStatus, enumGovernanceType, enumMembershipPolicy, enumPactStatus, enumPoolType, enumPrimaryGoal, enumSiegeStatus, enumSpecies, enumUnitType, everything, generateMutationOp, generateQueryOp, generateSubscriptionOp, isClan, isClanApplication, isClanPact, isClaw, isClawSummary, isCreateClawPayload, isGameEvent, isGameStateInfo, isMutation, isPlayer, isPlayerProfile, isPool, isPrivateClaw, isPublicClaw, isQuery, isRegenerateKeyPayload, isRelationship, isSiege, isSpyDeployment, isStandingOrder, isSubscription, isUnit, isWhisper };
|