@clawconquest/client 1.8.0 → 1.10.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 +273 -248
- package/dist/index.d.cts +24 -5
- package/dist/index.d.ts +24 -5
- package/dist/index.js +272 -248
- 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 {
|
|
@@ -149,7 +155,7 @@ interface Pool {
|
|
|
149
155
|
type: PoolType;
|
|
150
156
|
__typename: 'Pool';
|
|
151
157
|
}
|
|
152
|
-
type PoolType = '
|
|
158
|
+
type PoolType = 'CORAL_REEF' | 'DEEP_TRENCH' | 'KELP_FOREST' | 'SPAWNING_GROUND' | 'TIDE_POOL' | 'VOLCANIC_VENT';
|
|
153
159
|
type PrimaryGoal = 'ATTACK' | 'DEFEND' | 'EXPAND' | 'FORTIFY' | 'IDLE' | 'MOLT' | 'SPY';
|
|
154
160
|
interface PrivateClaw {
|
|
155
161
|
aggression: Scalars['Float'];
|
|
@@ -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;
|
|
@@ -407,6 +414,13 @@ interface GameEventGenqlSelection {
|
|
|
407
414
|
__typename?: boolean | number;
|
|
408
415
|
__scalar?: boolean | number;
|
|
409
416
|
}
|
|
417
|
+
interface GameStateInfoGenqlSelection {
|
|
418
|
+
current_cycle?: boolean | number;
|
|
419
|
+
current_tick?: boolean | number;
|
|
420
|
+
next_tick_at?: boolean | number;
|
|
421
|
+
__typename?: boolean | number;
|
|
422
|
+
__scalar?: boolean | number;
|
|
423
|
+
}
|
|
410
424
|
interface MutationGenqlSelection {
|
|
411
425
|
acceptClanPact?: (ClanPactGenqlSelection & {
|
|
412
426
|
__args: {
|
|
@@ -626,6 +640,7 @@ interface QueryGenqlSelection {
|
|
|
626
640
|
tick?: (Scalars['Int'] | null);
|
|
627
641
|
};
|
|
628
642
|
});
|
|
643
|
+
gameState?: GameStateInfoGenqlSelection;
|
|
629
644
|
inbox?: (WhisperGenqlSelection & {
|
|
630
645
|
__args?: {
|
|
631
646
|
limit?: Scalars['Int'];
|
|
@@ -798,6 +813,9 @@ declare const isCreateClawPayload: (obj?: {
|
|
|
798
813
|
declare const isGameEvent: (obj?: {
|
|
799
814
|
__typename?: any;
|
|
800
815
|
} | null) => obj is GameEvent;
|
|
816
|
+
declare const isGameStateInfo: (obj?: {
|
|
817
|
+
__typename?: any;
|
|
818
|
+
} | null) => obj is GameStateInfo;
|
|
801
819
|
declare const isMutation: (obj?: {
|
|
802
820
|
__typename?: any;
|
|
803
821
|
} | null) => obj is Mutation;
|
|
@@ -874,11 +892,12 @@ declare const enumPactStatus: {
|
|
|
874
892
|
PROPOSED: "PROPOSED";
|
|
875
893
|
};
|
|
876
894
|
declare const enumPoolType: {
|
|
895
|
+
CORAL_REEF: "CORAL_REEF";
|
|
896
|
+
DEEP_TRENCH: "DEEP_TRENCH";
|
|
877
897
|
KELP_FOREST: "KELP_FOREST";
|
|
878
|
-
REEF: "REEF";
|
|
879
|
-
SHALLOWS: "SHALLOWS";
|
|
880
898
|
SPAWNING_GROUND: "SPAWNING_GROUND";
|
|
881
|
-
|
|
899
|
+
TIDE_POOL: "TIDE_POOL";
|
|
900
|
+
VOLCANIC_VENT: "VOLCANIC_VENT";
|
|
882
901
|
};
|
|
883
902
|
declare const enumPrimaryGoal: {
|
|
884
903
|
ATTACK: "ATTACK";
|
|
@@ -1011,4 +1030,4 @@ declare const generateSubscriptionOp: (fields: SubscriptionGenqlSelection & {
|
|
|
1011
1030
|
__name?: string;
|
|
1012
1031
|
}) => GraphqlOperation;
|
|
1013
1032
|
|
|
1014
|
-
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 };
|
|
1033
|
+
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 {
|
|
@@ -149,7 +155,7 @@ interface Pool {
|
|
|
149
155
|
type: PoolType;
|
|
150
156
|
__typename: 'Pool';
|
|
151
157
|
}
|
|
152
|
-
type PoolType = '
|
|
158
|
+
type PoolType = 'CORAL_REEF' | 'DEEP_TRENCH' | 'KELP_FOREST' | 'SPAWNING_GROUND' | 'TIDE_POOL' | 'VOLCANIC_VENT';
|
|
153
159
|
type PrimaryGoal = 'ATTACK' | 'DEFEND' | 'EXPAND' | 'FORTIFY' | 'IDLE' | 'MOLT' | 'SPY';
|
|
154
160
|
interface PrivateClaw {
|
|
155
161
|
aggression: Scalars['Float'];
|
|
@@ -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;
|
|
@@ -407,6 +414,13 @@ interface GameEventGenqlSelection {
|
|
|
407
414
|
__typename?: boolean | number;
|
|
408
415
|
__scalar?: boolean | number;
|
|
409
416
|
}
|
|
417
|
+
interface GameStateInfoGenqlSelection {
|
|
418
|
+
current_cycle?: boolean | number;
|
|
419
|
+
current_tick?: boolean | number;
|
|
420
|
+
next_tick_at?: boolean | number;
|
|
421
|
+
__typename?: boolean | number;
|
|
422
|
+
__scalar?: boolean | number;
|
|
423
|
+
}
|
|
410
424
|
interface MutationGenqlSelection {
|
|
411
425
|
acceptClanPact?: (ClanPactGenqlSelection & {
|
|
412
426
|
__args: {
|
|
@@ -626,6 +640,7 @@ interface QueryGenqlSelection {
|
|
|
626
640
|
tick?: (Scalars['Int'] | null);
|
|
627
641
|
};
|
|
628
642
|
});
|
|
643
|
+
gameState?: GameStateInfoGenqlSelection;
|
|
629
644
|
inbox?: (WhisperGenqlSelection & {
|
|
630
645
|
__args?: {
|
|
631
646
|
limit?: Scalars['Int'];
|
|
@@ -798,6 +813,9 @@ declare const isCreateClawPayload: (obj?: {
|
|
|
798
813
|
declare const isGameEvent: (obj?: {
|
|
799
814
|
__typename?: any;
|
|
800
815
|
} | null) => obj is GameEvent;
|
|
816
|
+
declare const isGameStateInfo: (obj?: {
|
|
817
|
+
__typename?: any;
|
|
818
|
+
} | null) => obj is GameStateInfo;
|
|
801
819
|
declare const isMutation: (obj?: {
|
|
802
820
|
__typename?: any;
|
|
803
821
|
} | null) => obj is Mutation;
|
|
@@ -874,11 +892,12 @@ declare const enumPactStatus: {
|
|
|
874
892
|
PROPOSED: "PROPOSED";
|
|
875
893
|
};
|
|
876
894
|
declare const enumPoolType: {
|
|
895
|
+
CORAL_REEF: "CORAL_REEF";
|
|
896
|
+
DEEP_TRENCH: "DEEP_TRENCH";
|
|
877
897
|
KELP_FOREST: "KELP_FOREST";
|
|
878
|
-
REEF: "REEF";
|
|
879
|
-
SHALLOWS: "SHALLOWS";
|
|
880
898
|
SPAWNING_GROUND: "SPAWNING_GROUND";
|
|
881
|
-
|
|
899
|
+
TIDE_POOL: "TIDE_POOL";
|
|
900
|
+
VOLCANIC_VENT: "VOLCANIC_VENT";
|
|
882
901
|
};
|
|
883
902
|
declare const enumPrimaryGoal: {
|
|
884
903
|
ATTACK: "ATTACK";
|
|
@@ -1011,4 +1030,4 @@ declare const generateSubscriptionOp: (fields: SubscriptionGenqlSelection & {
|
|
|
1011
1030
|
__name?: string;
|
|
1012
1031
|
}) => GraphqlOperation;
|
|
1013
1032
|
|
|
1014
|
-
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 };
|
|
1033
|
+
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 };
|