-
Notifications
You must be signed in to change notification settings - Fork 2
Resource WorkOfferResource
Endpoints: • workOffer.getById • workOffer.getWorkOfferByCompanyId • workOffer.getWorkOffersPaginated (cursor-paginated) • workOffer.getWageStats
Fetch all items across all pages concurrently using parallel time-slicing.
await client.workoffer.collect_all(**kwargs: 'typing.Any') -> 'list[WorkOffer]'| Name | Type | Default |
|---|---|---|
kwargs |
Any |
*Required* |
| Field | Type | Required | Description |
|---|---|---|---|
_id |
string |
Optional | |
__v |
integer |
Optional | |
companyId |
string |
Optional | The company id. |
regionId |
string |
Optional | The region id. |
salary |
number |
Optional | The salary. |
energy |
number |
Optional | The energy. |
production |
number |
Optional | The production. |
citizenship |
string |
Optional | The citizenship. |
positions |
integer |
Optional | The positions. |
filled |
integer |
Optional | The filled. |
createdAt |
string |
Optional | The timestamp when this record was created. |
Get a single work offer by ID.
await client.workoffer.get(work_offer_id: 'str') -> 'WorkOffer'| Name | Type | Default |
|---|---|---|
work_offer_id |
str |
*Required* |
| Field | Type | Required | Description |
|---|---|---|---|
_id |
string |
Optional | |
__v |
integer |
Optional | |
companyId |
string |
Optional | The company id. |
regionId |
string |
Optional | The region id. |
salary |
number |
Optional | The salary. |
energy |
number |
Optional | The energy. |
production |
number |
Optional | The production. |
citizenship |
string |
Optional | The citizenship. |
positions |
integer |
Optional | The positions. |
filled |
integer |
Optional | The filled. |
createdAt |
string |
Optional | The timestamp when this record was created. |
Get all work offers posted by a specific company.
await client.workoffer.get_by_company(company_id: 'str') -> 'list[WorkOffer]'| Name | Type | Default |
|---|---|---|
company_id |
str |
*Required* |
| Field | Type | Required | Description |
|---|---|---|---|
_id |
string |
Optional | |
__v |
integer |
Optional | |
companyId |
string |
Optional | The company id. |
regionId |
string |
Optional | The region id. |
salary |
number |
Optional | The salary. |
energy |
number |
Optional | The energy. |
production |
number |
Optional | The production. |
citizenship |
string |
Optional | The citizenship. |
positions |
integer |
Optional | The positions. |
filled |
integer |
Optional | The filled. |
createdAt |
string |
Optional | The timestamp when this record was created. |
Get work offers with optional filters (cursor-paginated).
Args: energy: Filter: offers requiring at most this energy. production: Filter: offers with at least this production value. level: Filter: offers requiring at most this user level. citizenship: Filter: offers open to this citizenship.
await client.workoffer.get_paginated(*, limit: 'int' = 10, cursor: 'str | None' = None, user_id: 'str | None' = None, region_id: 'str | None' = None, energy: 'float | None' = None, production: 'float | None' = None, level: 'float | None' = None, citizenship: 'str | None' = None, auto_items: 'bool' = False, max_pages: 'int | float' = inf, cursor_end: 'str | None' = None) -> 'CursorPage[WorkOffer] | AsyncIterator[WorkOffer]'| Name | Type | Default |
|---|---|---|
limit |
int |
10 |
cursor |
str |
None |
user_id |
str |
None |
region_id |
str |
None |
energy |
float |
None |
production |
float |
None |
level |
float |
None |
citizenship |
str |
None |
auto_items |
bool |
False |
max_pages |
int | float |
inf |
cursor_end |
str |
None |
| Field | Type | Required | Description |
|---|---|---|---|
_id |
string |
Optional | |
__v |
integer |
Optional | |
items |
array[WorkOffer] |
Required | |
nextCursor |
string |
Optional | |
hasMore |
boolean |
Optional |
| Field | Type | Required | Description |
|---|---|---|---|
_id |
string |
Optional | |
__v |
integer |
Optional | |
companyId |
string |
Optional | The company id. |
regionId |
string |
Optional | The region id. |
salary |
number |
Optional | The salary. |
energy |
number |
Optional | The energy. |
production |
number |
Optional | The production. |
citizenship |
string |
Optional | The citizenship. |
positions |
integer |
Optional | The positions. |
filled |
integer |
Optional | The filled. |
createdAt |
string |
Optional | The timestamp when this record was created. |
Get wage statistics for a given worker profile — the range of allowed wages, the top market offer, and the best offers this worker is eligible for.
Args: energy: The worker's energy stat. production: The worker's production stat. citizenship: The worker's citizenship country ID or code.
Returns:
A :class:WageStats object.
await client.workoffer.get_wage_stats(*, energy: 'float', production: 'float', citizenship: 'str') -> 'WageStats'| Name | Type | Default |
|---|---|---|
energy |
float |
*Required* |
production |
float |
*Required* |
citizenship |
str |
*Required* |
Clear the SWR cache for all resources.
await client.workoffer.invalidate_cache() -> 'None'- action_log
- alliance
- article
- battle
- battle_loot_summary
- battle_order
- battle_ranking
- company
- country
- donation
- election
- event
- game_config
- game_stat
- government
- inventory
- item_trading
- mercenary_contract_auction
- mu
- mu_member
- party
- ranking
- region
- round
- search
- tournament
- transaction
- upgrade
- user
- work
- work_offer
- worker