tornapi-typescript 5.7.0 → 5.8.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.d.ts +180 -3
- package/dist/index.ts +223 -3
- package/dist/openapi.json +1153 -4
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -55,7 +55,7 @@ export type JobPositionMedicalEnum = "Medical Student" | "Houseman" | "Senior Ho
|
|
|
55
55
|
export type JobPositionLawEnum = "Law Student" | "Paralegal" | "Probate Lawyer" | "Trial Lawyer" | "Circuit Court Judge" | "Federal Judge";
|
|
56
56
|
export type JobPositionEducationEnum = "Recess Supervisor" | "Substitute Teacher" | "Elementary Teacher" | "Secondary Teacher" | "Professor" | "Vice-Principal" | "Principal";
|
|
57
57
|
export type RaceCarUpgradeSubCategory = "Engine Cooling" | "Front Diffuser" | "Rear Diffuser" | "Spoiler" | "Brake Accessory" | "Brake Control" | "Callipers" | "Discs" | "Brake Cooling" | "Fluid" | "Rear Control Arms" | "Springs" | "Upper Front Brace" | "Clutch" | "Differential" | "Flywheel" | "Gearbox" | "Shifting" | "Boot" | "Hood" | "Interior" | "Roof" | "Steering wheel" | "Strip out" | "Windows" | "Tyres" | "Wheels" | "Rear Bushes" | "Rear Brace" | "Lower Front Brace" | "Front Tie Rods" | "Front Bushes" | "Seat" | "Safety Accessory" | "Roll cage" | "Overalls" | "Helmet" | "Fire Extinguisher" | "Cut-off" | "Fuel" | "Manifold" | "Exhaust" | "Air Filter" | "Turbo" | "Pistons" | "Intercooler" | "Gasket" | "Fuel Pump" | "Engine Porting" | "Engine Cleaning" | "Computer" | "Camshaft" | "Pads";
|
|
58
|
-
export type
|
|
58
|
+
export type ApplicationStatusEnum = "accepted" | "declined" | "withdrawn" | "active";
|
|
59
59
|
export type FactionRankedWarsCategoryEnum = "all" | "ongoing";
|
|
60
60
|
export type FactionTerritoryWarsCategoryEnum = "finsihed" | "ongoing";
|
|
61
61
|
/**
|
|
@@ -86,6 +86,7 @@ export type TerritoryWarId = number;
|
|
|
86
86
|
export type RaidWarId = number;
|
|
87
87
|
export type ItemUid = number;
|
|
88
88
|
export type UserId = number;
|
|
89
|
+
export type CompanyPositionId = number;
|
|
89
90
|
export type TradeId = number;
|
|
90
91
|
export type StockId = number;
|
|
91
92
|
export type DiscordId = string;
|
|
@@ -137,6 +138,8 @@ export interface RequestMetadataWithLinksAndTotal {
|
|
|
137
138
|
*/
|
|
138
139
|
export type ForumFeedTypeEnum = 1 | 2 | 3 | 4 | 5 | 6 | 7;
|
|
139
140
|
export type UserGenderEnum = "Male" | "Female" | "Enby";
|
|
141
|
+
export type CompanyStaffRoomSizeEnum = "No staff room" | "Small staff room" | "Standard staff room" | "Large staff room" | "Very large staff room" | "Huge staff room" | "Colossal staff room";
|
|
142
|
+
export type CompanyStorageSizeEnum = "Small room" | "Standard room" | "Large room" | "Huge room" | "Warehouse" | "Large warehouse" | "Huge warehouse";
|
|
140
143
|
export type HonorRarityEnum = "Extremely Rare" | "Very Rare" | "Rare" | "Limited" | "Uncommon" | "Common" | "Very Common" | "Unknown" | "Unknown Rarity";
|
|
141
144
|
export type AwardCrimesVersionEnum = "v1" | "v2";
|
|
142
145
|
export type Parameters = string;
|
|
@@ -2290,6 +2293,7 @@ export interface FactionBasic {
|
|
|
2290
2293
|
name: string;
|
|
2291
2294
|
tag: string;
|
|
2292
2295
|
tag_image: string;
|
|
2296
|
+
banner_image: string;
|
|
2293
2297
|
leader_id: UserId;
|
|
2294
2298
|
co_leader_id: UserId;
|
|
2295
2299
|
respect: number;
|
|
@@ -2308,7 +2312,7 @@ export interface FactionPact {
|
|
|
2308
2312
|
faction_id: FactionId;
|
|
2309
2313
|
faction_name: string;
|
|
2310
2314
|
/** The duration until when is the non-aggression pact valid. */
|
|
2311
|
-
until:
|
|
2315
|
+
until: number;
|
|
2312
2316
|
}
|
|
2313
2317
|
export interface FactionRankedWarParticipant {
|
|
2314
2318
|
id: FactionId;
|
|
@@ -2408,7 +2412,7 @@ export interface FactionApplication {
|
|
|
2408
2412
|
};
|
|
2409
2413
|
message: string | null;
|
|
2410
2414
|
valid_until: number;
|
|
2411
|
-
status:
|
|
2415
|
+
status: ApplicationStatusEnum;
|
|
2412
2416
|
}
|
|
2413
2417
|
export interface FactionApplicationsResponse {
|
|
2414
2418
|
applications: FactionApplication[];
|
|
@@ -2663,6 +2667,150 @@ export interface FactionRankedWarReportResponse {
|
|
|
2663
2667
|
}[];
|
|
2664
2668
|
};
|
|
2665
2669
|
}
|
|
2670
|
+
/**
|
|
2671
|
+
* The following selections will fallback to API v1 and may change at any time: 'companies', 'news', 'search'.
|
|
2672
|
+
* * The following selections are not available in API v2: 'details'.
|
|
2673
|
+
*/
|
|
2674
|
+
export type CompanySelectionName = string;
|
|
2675
|
+
export interface CompanyLookupResponse {
|
|
2676
|
+
selections: CompanySelectionName[];
|
|
2677
|
+
}
|
|
2678
|
+
export interface CompanyProfileResponse {
|
|
2679
|
+
profile: CompanyProfile;
|
|
2680
|
+
}
|
|
2681
|
+
export interface CompanyProfileExtendedResponse {
|
|
2682
|
+
profile: CompanyProfileExtended;
|
|
2683
|
+
}
|
|
2684
|
+
export interface CompanyProfileResponseMixed {
|
|
2685
|
+
profile: CompanyProfile | CompanyProfileExtended;
|
|
2686
|
+
}
|
|
2687
|
+
export interface CompanyProfileExtended extends CompanyProfile {
|
|
2688
|
+
funds: number;
|
|
2689
|
+
popularity: number;
|
|
2690
|
+
efficiency: number;
|
|
2691
|
+
environment: number;
|
|
2692
|
+
trains: number;
|
|
2693
|
+
applications_allowed: boolean;
|
|
2694
|
+
advertisement_budget: number;
|
|
2695
|
+
upgrades: CompanyUpgrades;
|
|
2696
|
+
value: number;
|
|
2697
|
+
}
|
|
2698
|
+
export interface CompanyUpgrades {
|
|
2699
|
+
staff_room: CompanyStaffRoomSizeEnum;
|
|
2700
|
+
storage: string;
|
|
2701
|
+
storage_capacity: CompanyStorageSizeEnum;
|
|
2702
|
+
}
|
|
2703
|
+
export interface CompanyProfile {
|
|
2704
|
+
id: CompanyId;
|
|
2705
|
+
name: string;
|
|
2706
|
+
created_at: number;
|
|
2707
|
+
days_old: number;
|
|
2708
|
+
image: string;
|
|
2709
|
+
type: CompanyType;
|
|
2710
|
+
rating: number;
|
|
2711
|
+
director: CompanyDirector;
|
|
2712
|
+
employees: CompanyEmployees;
|
|
2713
|
+
income: CompanyIncome;
|
|
2714
|
+
customers: CompanyCustomers;
|
|
2715
|
+
}
|
|
2716
|
+
export interface CompanyType {
|
|
2717
|
+
id: CompanyTypeId;
|
|
2718
|
+
name: string;
|
|
2719
|
+
}
|
|
2720
|
+
export interface CompanyDirector {
|
|
2721
|
+
id: UserId;
|
|
2722
|
+
name: string;
|
|
2723
|
+
status: UserStatus;
|
|
2724
|
+
last_action: UserLastAction;
|
|
2725
|
+
}
|
|
2726
|
+
export interface CompanyEmployees {
|
|
2727
|
+
hired: number;
|
|
2728
|
+
capacity: number;
|
|
2729
|
+
}
|
|
2730
|
+
export interface CompanyIncome {
|
|
2731
|
+
daily: number;
|
|
2732
|
+
weekly: number;
|
|
2733
|
+
}
|
|
2734
|
+
export interface CompanyCustomers {
|
|
2735
|
+
daily: number;
|
|
2736
|
+
weekly: number;
|
|
2737
|
+
}
|
|
2738
|
+
export interface CompanyEmployeesResponse {
|
|
2739
|
+
employees: (CompanyEmployee | CompanyEmployeeExtended)[];
|
|
2740
|
+
}
|
|
2741
|
+
export interface CompanyEmployeesResponseBasic {
|
|
2742
|
+
employees: CompanyEmployee[];
|
|
2743
|
+
}
|
|
2744
|
+
export interface CompanyEmployeeExtended extends CompanyEmployee {
|
|
2745
|
+
joined_at: number;
|
|
2746
|
+
wage: number;
|
|
2747
|
+
stats: CompanyEmployeeStats;
|
|
2748
|
+
effectiveness: CompanyEmployeeEffectiveness;
|
|
2749
|
+
value: number | null;
|
|
2750
|
+
}
|
|
2751
|
+
export interface CompanyEmployeeStats {
|
|
2752
|
+
manual_labor: number;
|
|
2753
|
+
intelligence: number;
|
|
2754
|
+
endurance: number;
|
|
2755
|
+
}
|
|
2756
|
+
export interface CompanyEmployeeEffectiveness {
|
|
2757
|
+
working_stats: number;
|
|
2758
|
+
settled_in: number;
|
|
2759
|
+
book: number;
|
|
2760
|
+
merits: number;
|
|
2761
|
+
director_education: number;
|
|
2762
|
+
management: number;
|
|
2763
|
+
wrong_gender: number;
|
|
2764
|
+
addiction: number;
|
|
2765
|
+
inactivity: number;
|
|
2766
|
+
total: number;
|
|
2767
|
+
}
|
|
2768
|
+
export interface CompanyEmployee {
|
|
2769
|
+
id: UserId;
|
|
2770
|
+
name: string;
|
|
2771
|
+
position: CompanyEmployeePosition;
|
|
2772
|
+
days_in_company: number;
|
|
2773
|
+
status: UserStatus;
|
|
2774
|
+
last_action: UserLastAction;
|
|
2775
|
+
}
|
|
2776
|
+
export interface CompanyEmployeePosition {
|
|
2777
|
+
id: CompanyPositionId;
|
|
2778
|
+
name: string;
|
|
2779
|
+
}
|
|
2780
|
+
export interface CompanyStockResponse {
|
|
2781
|
+
stock: CompanyStockItem[];
|
|
2782
|
+
}
|
|
2783
|
+
export interface CompanyStockItem {
|
|
2784
|
+
name: string;
|
|
2785
|
+
id: number;
|
|
2786
|
+
cost: number;
|
|
2787
|
+
rrp: number;
|
|
2788
|
+
price: number;
|
|
2789
|
+
in_stock: number;
|
|
2790
|
+
on_order: number;
|
|
2791
|
+
sold_amount: number;
|
|
2792
|
+
sold_worth: number;
|
|
2793
|
+
}
|
|
2794
|
+
export interface CompanyApplicationsResponse {
|
|
2795
|
+
applications: CompanyApplication[];
|
|
2796
|
+
}
|
|
2797
|
+
export interface CompanyApplication {
|
|
2798
|
+
player: CompanyApplicationPlayer;
|
|
2799
|
+
message: string | null;
|
|
2800
|
+
expires_at: number;
|
|
2801
|
+
status: ApplicationStatusEnum;
|
|
2802
|
+
}
|
|
2803
|
+
export interface CompanyApplicationPlayer {
|
|
2804
|
+
id: UserId;
|
|
2805
|
+
name: string;
|
|
2806
|
+
level: number;
|
|
2807
|
+
stats: CompanyApplicationPlayerStats;
|
|
2808
|
+
}
|
|
2809
|
+
export interface CompanyApplicationPlayerStats {
|
|
2810
|
+
manual_labor: number;
|
|
2811
|
+
intelligence: number;
|
|
2812
|
+
endurance: number;
|
|
2813
|
+
}
|
|
2666
2814
|
export interface ForumCategoriesResponse {
|
|
2667
2815
|
categories: {
|
|
2668
2816
|
id: ForumId;
|
|
@@ -7238,6 +7386,34 @@ export interface FactionV2 extends BaseSchema {
|
|
|
7238
7386
|
};
|
|
7239
7387
|
};
|
|
7240
7388
|
}
|
|
7389
|
+
export interface CompanyV2 extends BaseSchema {
|
|
7390
|
+
selections: {
|
|
7391
|
+
applications: {
|
|
7392
|
+
response: CompanyApplicationsResponse;
|
|
7393
|
+
params: "timestamp";
|
|
7394
|
+
};
|
|
7395
|
+
employees: {
|
|
7396
|
+
response: CompanyEmployeesResponse;
|
|
7397
|
+
params: "striptags" | "timestamp";
|
|
7398
|
+
};
|
|
7399
|
+
profile: {
|
|
7400
|
+
response: CompanyProfileResponseMixed;
|
|
7401
|
+
params: "striptags" | "timestamp";
|
|
7402
|
+
};
|
|
7403
|
+
stock: {
|
|
7404
|
+
response: CompanyStockResponse;
|
|
7405
|
+
params: "timestamp";
|
|
7406
|
+
};
|
|
7407
|
+
lookup: {
|
|
7408
|
+
response: CompanyLookupResponse;
|
|
7409
|
+
params: "timestamp";
|
|
7410
|
+
};
|
|
7411
|
+
timestamp: {
|
|
7412
|
+
response: TimestampResponse;
|
|
7413
|
+
params: "timestamp";
|
|
7414
|
+
};
|
|
7415
|
+
};
|
|
7416
|
+
}
|
|
7241
7417
|
export interface ForumV2 extends BaseSchema {
|
|
7242
7418
|
selections: {
|
|
7243
7419
|
categories: {
|
|
@@ -7477,6 +7653,7 @@ export interface TornV2 extends BaseSchema {
|
|
|
7477
7653
|
export interface SectionsV2Map {
|
|
7478
7654
|
user: UserV2;
|
|
7479
7655
|
faction: FactionV2;
|
|
7656
|
+
company: CompanyV2;
|
|
7480
7657
|
forum: ForumV2;
|
|
7481
7658
|
key: KeyV2;
|
|
7482
7659
|
market: MarketV2;
|
package/dist/index.ts
CHANGED
|
@@ -4722,7 +4722,7 @@ export type RaceCarUpgradeSubCategory =
|
|
|
4722
4722
|
| "Camshaft"
|
|
4723
4723
|
| "Pads";
|
|
4724
4724
|
|
|
4725
|
-
export type
|
|
4725
|
+
export type ApplicationStatusEnum =
|
|
4726
4726
|
| "accepted"
|
|
4727
4727
|
| "declined"
|
|
4728
4728
|
| "withdrawn"
|
|
@@ -4789,6 +4789,8 @@ export type ItemUid = number;
|
|
|
4789
4789
|
|
|
4790
4790
|
export type UserId = number;
|
|
4791
4791
|
|
|
4792
|
+
export type CompanyPositionId = number;
|
|
4793
|
+
|
|
4792
4794
|
export type TradeId = number;
|
|
4793
4795
|
|
|
4794
4796
|
export type StockId = number;
|
|
@@ -4871,6 +4873,24 @@ export type ForumFeedTypeEnum = 1 | 2 | 3 | 4 | 5 | 6 | 7;
|
|
|
4871
4873
|
|
|
4872
4874
|
export type UserGenderEnum = "Male" | "Female" | "Enby";
|
|
4873
4875
|
|
|
4876
|
+
export type CompanyStaffRoomSizeEnum =
|
|
4877
|
+
| "No staff room"
|
|
4878
|
+
| "Small staff room"
|
|
4879
|
+
| "Standard staff room"
|
|
4880
|
+
| "Large staff room"
|
|
4881
|
+
| "Very large staff room"
|
|
4882
|
+
| "Huge staff room"
|
|
4883
|
+
| "Colossal staff room";
|
|
4884
|
+
|
|
4885
|
+
export type CompanyStorageSizeEnum =
|
|
4886
|
+
| "Small room"
|
|
4887
|
+
| "Standard room"
|
|
4888
|
+
| "Large room"
|
|
4889
|
+
| "Huge room"
|
|
4890
|
+
| "Warehouse"
|
|
4891
|
+
| "Large warehouse"
|
|
4892
|
+
| "Huge warehouse";
|
|
4893
|
+
|
|
4874
4894
|
export type HonorRarityEnum =
|
|
4875
4895
|
| "Extremely Rare"
|
|
4876
4896
|
| "Very Rare"
|
|
@@ -7920,6 +7940,7 @@ export interface FactionBasic {
|
|
|
7920
7940
|
name: string;
|
|
7921
7941
|
tag: string;
|
|
7922
7942
|
tag_image: string;
|
|
7943
|
+
banner_image: string;
|
|
7923
7944
|
leader_id: UserId;
|
|
7924
7945
|
co_leader_id: UserId;
|
|
7925
7946
|
respect: number;
|
|
@@ -7940,7 +7961,7 @@ export interface FactionPact {
|
|
|
7940
7961
|
faction_id: FactionId;
|
|
7941
7962
|
faction_name: string;
|
|
7942
7963
|
/** The duration until when is the non-aggression pact valid. */
|
|
7943
|
-
until:
|
|
7964
|
+
until: number;
|
|
7944
7965
|
}
|
|
7945
7966
|
|
|
7946
7967
|
export interface FactionRankedWarParticipant {
|
|
@@ -8054,7 +8075,7 @@ export interface FactionApplication {
|
|
|
8054
8075
|
};
|
|
8055
8076
|
message: string | null;
|
|
8056
8077
|
valid_until: number;
|
|
8057
|
-
status:
|
|
8078
|
+
status: ApplicationStatusEnum;
|
|
8058
8079
|
}
|
|
8059
8080
|
|
|
8060
8081
|
export interface FactionApplicationsResponse {
|
|
@@ -8345,6 +8366,176 @@ export interface FactionRankedWarReportResponse {
|
|
|
8345
8366
|
};
|
|
8346
8367
|
}
|
|
8347
8368
|
|
|
8369
|
+
/**
|
|
8370
|
+
* The following selections will fallback to API v1 and may change at any time: 'companies', 'news', 'search'.
|
|
8371
|
+
* * The following selections are not available in API v2: 'details'.
|
|
8372
|
+
*/
|
|
8373
|
+
export type CompanySelectionName = string;
|
|
8374
|
+
|
|
8375
|
+
export interface CompanyLookupResponse {
|
|
8376
|
+
selections: CompanySelectionName[];
|
|
8377
|
+
}
|
|
8378
|
+
|
|
8379
|
+
export interface CompanyProfileResponse {
|
|
8380
|
+
profile: CompanyProfile;
|
|
8381
|
+
}
|
|
8382
|
+
|
|
8383
|
+
export interface CompanyProfileExtendedResponse {
|
|
8384
|
+
profile: CompanyProfileExtended;
|
|
8385
|
+
}
|
|
8386
|
+
|
|
8387
|
+
export interface CompanyProfileResponseMixed {
|
|
8388
|
+
profile: CompanyProfile | CompanyProfileExtended;
|
|
8389
|
+
}
|
|
8390
|
+
|
|
8391
|
+
export interface CompanyProfileExtended extends CompanyProfile {
|
|
8392
|
+
funds: number;
|
|
8393
|
+
popularity: number;
|
|
8394
|
+
efficiency: number;
|
|
8395
|
+
environment: number;
|
|
8396
|
+
trains: number;
|
|
8397
|
+
applications_allowed: boolean;
|
|
8398
|
+
advertisement_budget: number;
|
|
8399
|
+
upgrades: CompanyUpgrades;
|
|
8400
|
+
value: number;
|
|
8401
|
+
}
|
|
8402
|
+
|
|
8403
|
+
export interface CompanyUpgrades {
|
|
8404
|
+
staff_room: CompanyStaffRoomSizeEnum;
|
|
8405
|
+
storage: string;
|
|
8406
|
+
storage_capacity: CompanyStorageSizeEnum;
|
|
8407
|
+
}
|
|
8408
|
+
|
|
8409
|
+
export interface CompanyProfile {
|
|
8410
|
+
id: CompanyId;
|
|
8411
|
+
name: string;
|
|
8412
|
+
created_at: number;
|
|
8413
|
+
days_old: number;
|
|
8414
|
+
image: string;
|
|
8415
|
+
type: CompanyType;
|
|
8416
|
+
rating: number;
|
|
8417
|
+
director: CompanyDirector;
|
|
8418
|
+
employees: CompanyEmployees;
|
|
8419
|
+
income: CompanyIncome;
|
|
8420
|
+
customers: CompanyCustomers;
|
|
8421
|
+
}
|
|
8422
|
+
|
|
8423
|
+
export interface CompanyType {
|
|
8424
|
+
id: CompanyTypeId;
|
|
8425
|
+
name: string;
|
|
8426
|
+
}
|
|
8427
|
+
|
|
8428
|
+
export interface CompanyDirector {
|
|
8429
|
+
id: UserId;
|
|
8430
|
+
name: string;
|
|
8431
|
+
status: UserStatus;
|
|
8432
|
+
last_action: UserLastAction;
|
|
8433
|
+
}
|
|
8434
|
+
|
|
8435
|
+
export interface CompanyEmployees {
|
|
8436
|
+
hired: number;
|
|
8437
|
+
capacity: number;
|
|
8438
|
+
}
|
|
8439
|
+
|
|
8440
|
+
export interface CompanyIncome {
|
|
8441
|
+
daily: number;
|
|
8442
|
+
weekly: number;
|
|
8443
|
+
}
|
|
8444
|
+
|
|
8445
|
+
export interface CompanyCustomers {
|
|
8446
|
+
daily: number;
|
|
8447
|
+
weekly: number;
|
|
8448
|
+
}
|
|
8449
|
+
|
|
8450
|
+
export interface CompanyEmployeesResponse {
|
|
8451
|
+
employees: (CompanyEmployee | CompanyEmployeeExtended)[];
|
|
8452
|
+
}
|
|
8453
|
+
|
|
8454
|
+
export interface CompanyEmployeesResponseBasic {
|
|
8455
|
+
employees: CompanyEmployee[];
|
|
8456
|
+
}
|
|
8457
|
+
|
|
8458
|
+
export interface CompanyEmployeeExtended extends CompanyEmployee {
|
|
8459
|
+
joined_at: number;
|
|
8460
|
+
wage: number;
|
|
8461
|
+
stats: CompanyEmployeeStats;
|
|
8462
|
+
effectiveness: CompanyEmployeeEffectiveness;
|
|
8463
|
+
value: number | null;
|
|
8464
|
+
}
|
|
8465
|
+
|
|
8466
|
+
export interface CompanyEmployeeStats {
|
|
8467
|
+
manual_labor: number;
|
|
8468
|
+
intelligence: number;
|
|
8469
|
+
endurance: number;
|
|
8470
|
+
}
|
|
8471
|
+
|
|
8472
|
+
export interface CompanyEmployeeEffectiveness {
|
|
8473
|
+
working_stats: number;
|
|
8474
|
+
settled_in: number;
|
|
8475
|
+
book: number;
|
|
8476
|
+
merits: number;
|
|
8477
|
+
director_education: number;
|
|
8478
|
+
management: number;
|
|
8479
|
+
wrong_gender: number;
|
|
8480
|
+
addiction: number;
|
|
8481
|
+
inactivity: number;
|
|
8482
|
+
total: number;
|
|
8483
|
+
}
|
|
8484
|
+
|
|
8485
|
+
export interface CompanyEmployee {
|
|
8486
|
+
id: UserId;
|
|
8487
|
+
name: string;
|
|
8488
|
+
position: CompanyEmployeePosition;
|
|
8489
|
+
days_in_company: number;
|
|
8490
|
+
status: UserStatus;
|
|
8491
|
+
last_action: UserLastAction;
|
|
8492
|
+
}
|
|
8493
|
+
|
|
8494
|
+
export interface CompanyEmployeePosition {
|
|
8495
|
+
id: CompanyPositionId;
|
|
8496
|
+
name: string;
|
|
8497
|
+
}
|
|
8498
|
+
|
|
8499
|
+
export interface CompanyStockResponse {
|
|
8500
|
+
stock: CompanyStockItem[];
|
|
8501
|
+
}
|
|
8502
|
+
|
|
8503
|
+
export interface CompanyStockItem {
|
|
8504
|
+
name: string;
|
|
8505
|
+
id: number;
|
|
8506
|
+
cost: number;
|
|
8507
|
+
rrp: number;
|
|
8508
|
+
price: number;
|
|
8509
|
+
in_stock: number;
|
|
8510
|
+
on_order: number;
|
|
8511
|
+
sold_amount: number;
|
|
8512
|
+
sold_worth: number;
|
|
8513
|
+
}
|
|
8514
|
+
|
|
8515
|
+
export interface CompanyApplicationsResponse {
|
|
8516
|
+
applications: CompanyApplication[];
|
|
8517
|
+
}
|
|
8518
|
+
|
|
8519
|
+
export interface CompanyApplication {
|
|
8520
|
+
player: CompanyApplicationPlayer;
|
|
8521
|
+
message: string | null;
|
|
8522
|
+
expires_at: number;
|
|
8523
|
+
status: ApplicationStatusEnum;
|
|
8524
|
+
}
|
|
8525
|
+
|
|
8526
|
+
export interface CompanyApplicationPlayer {
|
|
8527
|
+
id: UserId;
|
|
8528
|
+
name: string;
|
|
8529
|
+
level: number;
|
|
8530
|
+
stats: CompanyApplicationPlayerStats;
|
|
8531
|
+
}
|
|
8532
|
+
|
|
8533
|
+
export interface CompanyApplicationPlayerStats {
|
|
8534
|
+
manual_labor: number;
|
|
8535
|
+
intelligence: number;
|
|
8536
|
+
endurance: number;
|
|
8537
|
+
}
|
|
8538
|
+
|
|
8348
8539
|
export interface ForumCategoriesResponse {
|
|
8349
8540
|
categories: {
|
|
8350
8541
|
id: ForumId;
|
|
@@ -13219,6 +13410,34 @@ export interface FactionV2 extends BaseSchema {
|
|
|
13219
13410
|
};
|
|
13220
13411
|
};
|
|
13221
13412
|
}
|
|
13413
|
+
export interface CompanyV2 extends BaseSchema {
|
|
13414
|
+
selections: {
|
|
13415
|
+
applications: {
|
|
13416
|
+
response: CompanyApplicationsResponse;
|
|
13417
|
+
params: "timestamp";
|
|
13418
|
+
};
|
|
13419
|
+
employees: {
|
|
13420
|
+
response: CompanyEmployeesResponse;
|
|
13421
|
+
params: "striptags" | "timestamp";
|
|
13422
|
+
};
|
|
13423
|
+
profile: {
|
|
13424
|
+
response: CompanyProfileResponseMixed;
|
|
13425
|
+
params: "striptags" | "timestamp";
|
|
13426
|
+
};
|
|
13427
|
+
stock: {
|
|
13428
|
+
response: CompanyStockResponse;
|
|
13429
|
+
params: "timestamp";
|
|
13430
|
+
};
|
|
13431
|
+
lookup: {
|
|
13432
|
+
response: CompanyLookupResponse;
|
|
13433
|
+
params: "timestamp";
|
|
13434
|
+
};
|
|
13435
|
+
timestamp: {
|
|
13436
|
+
response: TimestampResponse;
|
|
13437
|
+
params: "timestamp";
|
|
13438
|
+
};
|
|
13439
|
+
};
|
|
13440
|
+
}
|
|
13222
13441
|
export interface ForumV2 extends BaseSchema {
|
|
13223
13442
|
selections: {
|
|
13224
13443
|
categories: {
|
|
@@ -13475,6 +13694,7 @@ export interface TornV2 extends BaseSchema {
|
|
|
13475
13694
|
export interface SectionsV2Map {
|
|
13476
13695
|
user: UserV2;
|
|
13477
13696
|
faction: FactionV2;
|
|
13697
|
+
company: CompanyV2;
|
|
13478
13698
|
forum: ForumV2;
|
|
13479
13699
|
key: KeyV2;
|
|
13480
13700
|
market: MarketV2;
|