diff --git a/angular/openapi.json b/angular/openapi.json index ff3bd69..8e5af6b 100644 --- a/angular/openapi.json +++ b/angular/openapi.json @@ -1 +1 @@ -{"openapi":"3.1.0","info":{"title":"Hello API Platform","description":"","version":"1.0.0"},"servers":[{"url":"\/","description":""}],"paths":{"\/api\/account_trade_pile_items":{"get":{"operationId":"api_account_trade_pile_items_get_collection","tags":["AccountTradePileItem"],"responses":{"200":{"description":"AccountTradePileItem collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/AccountTradePileItem.jsonld"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}},"example":{"@id":"string","type":"string","hydra:first":"string","hydra:last":"string","hydra:previous":"string","hydra:next":"string"}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":["string","null"]},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}}}}},"summary":"Retrieves the collection of AccountTradePileItem resources.","description":"Retrieves the collection of AccountTradePileItem resources.","parameters":[{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false},{"name":"itemsPerPage","in":"query","description":"The number of items per page","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":50,"minimum":0,"maximum":100},"style":"form","explode":false,"allowReserved":false},{"name":"account","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"string"},"style":"form","explode":false,"allowReserved":false},{"name":"account[]","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"array","items":{"type":"string"}},"style":"form","explode":true,"allowReserved":false},{"name":"candidateItem","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"string"},"style":"form","explode":false,"allowReserved":false},{"name":"candidateItem[]","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"array","items":{"type":"string"}},"style":"form","explode":true,"allowReserved":false},{"name":"candidateNameSearch","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"string"},"style":"form","explode":false,"allowReserved":false},{"name":"accountTmOpenFilter","in":"query","description":"Filter items based on the tmOpen value of the associated account","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"boolean"},"style":"form","explode":false,"allowReserved":false},{"name":"custom_json_filter","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"string"},"style":"form","explode":false,"allowReserved":false},{"name":"custom_json_order","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"string"},"style":"form","explode":false,"allowReserved":false,"example":"{\"active\":\"cntSoldItems\",\"direction\":\"desc\",\"listColDefinition\":{\"field\":\"cntSoldItems\",\"sortingSubResource\":\"tradePileItems\",\"countSortSubresource\":true,\"countSortSubresourceValue\":[\"closed\"],\"countSortSubresourceField\":\"tradeState\",\"countSortFilterSubResource\":\"account\",\"countSortFilterSubresourceField\":\"tmOpen\",\"countSortFilterSubresourceValue\":\"0\"}}"}],"deprecated":false},"parameters":[]},"\/api\/account_trade_pile_items\/{id}":{"get":{"operationId":"api_account_trade_pile_items_id_get","tags":["AccountTradePileItem"],"responses":{"200":{"description":"AccountTradePileItem resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/AccountTradePileItem.jsonld"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a AccountTradePileItem resource.","description":"Retrieves a AccountTradePileItem resource.","parameters":[{"name":"id","in":"path","description":"AccountTradePileItem identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"patch":{"operationId":"api_account_trade_pile_items_id_patch","tags":["AccountTradePileItem"],"responses":{"200":{"description":"AccountTradePileItem resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/AccountTradePileItem.jsonld"}}},"links":{}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Updates the AccountTradePileItem resource.","description":"Updates the AccountTradePileItem resource.","parameters":[{"name":"id","in":"path","description":"AccountTradePileItem identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated AccountTradePileItem resource","content":{"application\/merge-patch+json":{"schema":{"$ref":"#\/components\/schemas\/AccountTradePileItem"}}},"required":true},"deprecated":false},"parameters":[]},"\/api\/auth":{"post":{"operationId":"login_check_post","tags":["Login Check"],"responses":{"200":{"description":"User token created","content":{"application\/json":{"schema":{"type":"object","properties":{"token":{"readOnly":true,"type":"string","nullable":false}},"required":["token"]}}}}},"summary":"Creates a user token.","description":"Creates a user token.","requestBody":{"description":"The login data","content":{"application\/json":{"schema":{"type":"object","properties":{"email":{"type":"string","nullable":false},"password":{"type":"string","nullable":false}},"required":["email","password"]}}},"required":true}},"parameters":[]},"\/api\/candidate-items\/{id}\/stock-accounts":{"get":{"operationId":"api_candidate-items_idstock-accounts_get","tags":["CandidateStockAccounts"],"responses":{"200":{"description":"CandidateStockAccounts resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/CandidateStockAccounts.jsonld"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves the stock and missing accounts for a candidate item","description":"Retrieves a CandidateStockAccounts resource.","parameters":[{"name":"id","in":"path","description":"Candidate Item ID","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"integer"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/api\/candidate_stats":{"get":{"operationId":"api_candidate_stats_get_collection","tags":["CandidateStat"],"responses":{"200":{"description":"CandidateStat collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/CandidateStat.jsonld"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}},"example":{"@id":"string","type":"string","hydra:first":"string","hydra:last":"string","hydra:previous":"string","hydra:next":"string"}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":["string","null"]},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}}}}},"summary":"Retrieves the collection of CandidateStat resources.","description":"Retrieves the collection of CandidateStat resources.","parameters":[{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false},{"name":"itemsPerPage","in":"query","description":"The number of items per page","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":50,"minimum":0,"maximum":100},"style":"form","explode":false,"allowReserved":false},{"name":"candidateNameSearch","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"string"},"style":"form","explode":false,"allowReserved":false},{"name":"custom_json_order","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"string"},"style":"form","explode":false,"allowReserved":false,"example":"{\"active\":\"cntSoldItems\",\"direction\":\"desc\",\"listColDefinition\":{\"field\":\"cntSoldItems\",\"sortingSubResource\":\"tradePileItems\",\"countSortSubresource\":true,\"countSortSubresourceValue\":[\"closed\"],\"countSortSubresourceField\":\"tradeState\",\"countSortFilterSubResource\":\"account\",\"countSortFilterSubresourceField\":\"tmOpen\",\"countSortFilterSubresourceValue\":\"0\"}}"}],"deprecated":false},"parameters":[]},"\/api\/candidate_stats\/{id}":{"get":{"operationId":"api_candidate_stats_id_get","tags":["CandidateStat"],"responses":{"200":{"description":"CandidateStat resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/CandidateStat.jsonld"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a CandidateStat resource.","description":"Retrieves a CandidateStat resource.","parameters":[{"name":"id","in":"path","description":"CandidateStat identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/api\/candidates":{"get":{"operationId":"api_candidates_get_collection","tags":["Candidate"],"responses":{"200":{"description":"Candidate collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/Candidate.jsonld"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}},"example":{"@id":"string","type":"string","hydra:first":"string","hydra:last":"string","hydra:previous":"string","hydra:next":"string"}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":["string","null"]},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}}}}},"summary":"Retrieves the collection of Candidate resources.","description":"Retrieves the collection of Candidate resources.","parameters":[{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false},{"name":"itemsPerPage","in":"query","description":"The number of items per page","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":50,"minimum":0,"maximum":100},"style":"form","explode":false,"allowReserved":false},{"name":"candidateNameSearch","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"string"},"style":"form","explode":false,"allowReserved":false},{"name":"custom_json_filter","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"string"},"style":"form","explode":false,"allowReserved":false},{"name":"custom_json_order","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"string"},"style":"form","explode":false,"allowReserved":false,"example":"{\"active\":\"cntSoldItems\",\"direction\":\"desc\",\"listColDefinition\":{\"field\":\"cntSoldItems\",\"sortingSubResource\":\"tradePileItems\",\"countSortSubresource\":true,\"countSortSubresourceValue\":[\"closed\"],\"countSortSubresourceField\":\"tradeState\",\"countSortFilterSubResource\":\"account\",\"countSortFilterSubresourceField\":\"tmOpen\",\"countSortFilterSubresourceValue\":\"0\"}}"}],"deprecated":false},"post":{"operationId":"api_candidates_post","tags":["Candidate"],"responses":{"201":{"description":"Candidate resource created","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Candidate.jsonld"}}},"links":{}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"}},"summary":"Creates a Candidate resource.","description":"Creates a Candidate resource.","parameters":[],"requestBody":{"description":"The new Candidate resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Candidate.jsonld"}}},"required":true},"deprecated":false},"parameters":[]},"\/api\/candidates\/{id}":{"get":{"operationId":"api_candidates_id_get","tags":["Candidate"],"responses":{"200":{"description":"Candidate resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Candidate.jsonld"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a Candidate resource.","description":"Retrieves a Candidate resource.","parameters":[{"name":"id","in":"path","description":"Candidate identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"patch":{"operationId":"api_candidates_id_patch","tags":["Candidate"],"responses":{"200":{"description":"Candidate resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Candidate.jsonld"}}},"links":{}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Updates the Candidate resource.","description":"Updates the Candidate resource.","parameters":[{"name":"id","in":"path","description":"Candidate identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated Candidate resource","content":{"application\/merge-patch+json":{"schema":{"$ref":"#\/components\/schemas\/Candidate"}}},"required":true},"deprecated":false},"parameters":[]},"\/api\/config":{"get":{"operationId":"api_config_get","tags":["Config"],"responses":{"200":{"description":"Config resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Config.jsonld"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a Config resource.","description":"Retrieves a Config resource.","parameters":[],"deprecated":false},"patch":{"operationId":"api_config_patch","tags":["Config"],"responses":{"200":{"description":"Config resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Config.jsonld"}}},"links":{}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Updates the Config resource.","description":"Updates the Config resource.","parameters":[],"requestBody":{"description":"The updated Config resource","content":{"application\/merge-patch+json":{"schema":{"$ref":"#\/components\/schemas\/Config"}}},"required":true},"deprecated":false},"parameters":[]},"\/api\/game_accounts":{"get":{"operationId":"api_game_accounts_get_collection","tags":["GameAccount"],"responses":{"200":{"description":"GameAccount collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/GameAccount.jsonld"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}},"example":{"@id":"string","type":"string","hydra:first":"string","hydra:last":"string","hydra:previous":"string","hydra:next":"string"}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":["string","null"]},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}}}}},"summary":"Retrieves the collection of GameAccount resources.","description":"Retrieves the collection of GameAccount resources.","parameters":[{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false},{"name":"itemsPerPage","in":"query","description":"The number of items per page","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":50,"minimum":0,"maximum":100},"style":"form","explode":false,"allowReserved":false},{"name":"owner","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"string"},"style":"form","explode":false,"allowReserved":false},{"name":"owner[]","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"array","items":{"type":"string"}},"style":"form","explode":true,"allowReserved":false},{"name":"email","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"string"},"style":"form","explode":false,"allowReserved":false},{"name":"profile","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"string"},"style":"form","explode":false,"allowReserved":false},{"name":"tmOpen","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"boolean"},"style":"form","explode":false,"allowReserved":false},{"name":"custom_json_filter","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"string"},"style":"form","explode":false,"allowReserved":false},{"name":"custom_json_order","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"string"},"style":"form","explode":false,"allowReserved":false,"example":"{\"active\":\"cntSoldItems\",\"direction\":\"desc\",\"listColDefinition\":{\"field\":\"cntSoldItems\",\"sortingSubResource\":\"tradePileItems\",\"countSortSubresource\":true,\"countSortSubresourceValue\":[\"closed\"],\"countSortSubresourceField\":\"tradeState\",\"countSortFilterSubResource\":\"account\",\"countSortFilterSubresourceField\":\"tmOpen\",\"countSortFilterSubresourceValue\":\"0\"}}"}],"deprecated":false},"post":{"operationId":"api_game_accounts_post","tags":["GameAccount"],"responses":{"201":{"description":"GameAccount resource created","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/GameAccount.jsonld"}}},"links":{}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"}},"summary":"Creates a GameAccount resource.","description":"Creates a GameAccount resource.","parameters":[],"requestBody":{"description":"The new GameAccount resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/GameAccount.jsonld"}}},"required":true},"deprecated":false},"parameters":[]},"\/api\/game_accounts\/{id}":{"get":{"operationId":"api_game_accounts_id_get","tags":["GameAccount"],"responses":{"200":{"description":"GameAccount resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/GameAccount.jsonld"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a GameAccount resource.","description":"Retrieves a GameAccount resource.","parameters":[{"name":"id","in":"path","description":"GameAccount identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"patch":{"operationId":"api_game_accounts_id_patch","tags":["GameAccount"],"responses":{"200":{"description":"GameAccount resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/GameAccount.jsonld"}}},"links":{}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Updates the GameAccount resource.","description":"Updates the GameAccount resource.","parameters":[{"name":"id","in":"path","description":"GameAccount identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated GameAccount resource","content":{"application\/merge-patch+json":{"schema":{"$ref":"#\/components\/schemas\/GameAccount"}}},"required":true},"deprecated":false},"parameters":[]},"\/api\/log_account_credits":{"get":{"operationId":"api_log_account_credits_get_collection","tags":["LogAccountCredit"],"responses":{"200":{"description":"LogAccountCredit collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/LogAccountCredit.jsonld"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}},"example":{"@id":"string","type":"string","hydra:first":"string","hydra:last":"string","hydra:previous":"string","hydra:next":"string"}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":["string","null"]},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}}}}},"summary":"Retrieves the collection of LogAccountCredit resources.","description":"Retrieves the collection of LogAccountCredit resources.","parameters":[{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false},{"name":"itemsPerPage","in":"query","description":"The number of items per page","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":50,"minimum":0,"maximum":100},"style":"form","explode":false,"allowReserved":false},{"name":"order[creationDate]","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"string","enum":["asc","desc"]},"style":"form","explode":false,"allowReserved":false},{"name":"order[credits]","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"string","enum":["asc","desc"]},"style":"form","explode":false,"allowReserved":false},{"name":"order[revenue]","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"string","enum":["asc","desc"]},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/api\/log_account_credits\/{id}":{"get":{"operationId":"api_log_account_credits_id_get","tags":["LogAccountCredit"],"responses":{"200":{"description":"LogAccountCredit resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/LogAccountCredit.jsonld"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a LogAccountCredit resource.","description":"Retrieves a LogAccountCredit resource.","parameters":[{"name":"id","in":"path","description":"LogAccountCredit identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/api\/log_account_profits":{"get":{"operationId":"api_log_account_profits_get_collection","tags":["LogAccountProfit"],"responses":{"200":{"description":"LogAccountProfit collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/LogAccountProfit.jsonld"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}},"example":{"@id":"string","type":"string","hydra:first":"string","hydra:last":"string","hydra:previous":"string","hydra:next":"string"}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":["string","null"]},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}}}}},"summary":"Retrieves the collection of LogAccountProfit resources.","description":"Retrieves the collection of LogAccountProfit resources.","parameters":[{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false},{"name":"itemsPerPage","in":"query","description":"The number of items per page","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":50,"minimum":0,"maximum":100},"style":"form","explode":false,"allowReserved":false},{"name":"gameAccount","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"string"},"style":"form","explode":false,"allowReserved":false},{"name":"gameAccount[]","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"array","items":{"type":"string"}},"style":"form","explode":true,"allowReserved":false},{"name":"isDailyProfit","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"boolean"},"style":"form","explode":false,"allowReserved":false},{"name":"gameAccountProfile","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"string"},"style":"form","explode":false,"allowReserved":false},{"name":"custom_json_filter","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"string"},"style":"form","explode":false,"allowReserved":false},{"name":"custom_json_order","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"string"},"style":"form","explode":false,"allowReserved":false,"example":"{\"active\":\"cntSoldItems\",\"direction\":\"desc\",\"listColDefinition\":{\"field\":\"cntSoldItems\",\"sortingSubResource\":\"tradePileItems\",\"countSortSubresource\":true,\"countSortSubresourceValue\":[\"closed\"],\"countSortSubresourceField\":\"tradeState\",\"countSortFilterSubResource\":\"account\",\"countSortFilterSubresourceField\":\"tmOpen\",\"countSortFilterSubresourceValue\":\"0\"}}"}],"deprecated":false},"parameters":[]},"\/api\/log_account_profits\/{id}":{"get":{"operationId":"api_log_account_profits_id_get","tags":["LogAccountProfit"],"responses":{"200":{"description":"LogAccountProfit resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/LogAccountProfit.jsonld"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a LogAccountProfit resource.","description":"Retrieves a LogAccountProfit resource.","parameters":[{"name":"id","in":"path","description":"LogAccountProfit identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/api\/log_account_sold_items":{"get":{"operationId":"api_log_account_sold_items_get_collection","tags":["LogAccountSoldItem"],"responses":{"200":{"description":"LogAccountSoldItem collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/LogAccountSoldItem.jsonld"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}},"example":{"@id":"string","type":"string","hydra:first":"string","hydra:last":"string","hydra:previous":"string","hydra:next":"string"}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":["string","null"]},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}}}}},"summary":"Retrieves the collection of LogAccountSoldItem resources.","description":"Retrieves the collection of LogAccountSoldItem resources.","parameters":[{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false},{"name":"itemsPerPage","in":"query","description":"The number of items per page","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":50,"minimum":0,"maximum":100},"style":"form","explode":false,"allowReserved":false},{"name":"account","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"string"},"style":"form","explode":false,"allowReserved":false},{"name":"account[]","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"array","items":{"type":"string"}},"style":"form","explode":true,"allowReserved":false},{"name":"candidateItem","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"string"},"style":"form","explode":false,"allowReserved":false},{"name":"candidateItem[]","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"array","items":{"type":"string"}},"style":"form","explode":true,"allowReserved":false},{"name":"candidateNameSearch","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"string"},"style":"form","explode":false,"allowReserved":false},{"name":"custom_json_filter","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"string"},"style":"form","explode":false,"allowReserved":false},{"name":"custom_json_order","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"string"},"style":"form","explode":false,"allowReserved":false,"example":"{\"active\":\"cntSoldItems\",\"direction\":\"desc\",\"listColDefinition\":{\"field\":\"cntSoldItems\",\"sortingSubResource\":\"tradePileItems\",\"countSortSubresource\":true,\"countSortSubresourceValue\":[\"closed\"],\"countSortSubresourceField\":\"tradeState\",\"countSortFilterSubResource\":\"account\",\"countSortFilterSubresourceField\":\"tmOpen\",\"countSortFilterSubresourceValue\":\"0\"}}"}],"deprecated":false},"parameters":[]},"\/api\/log_account_sold_items\/{id}":{"get":{"operationId":"api_log_account_sold_items_id_get","tags":["LogAccountSoldItem"],"responses":{"200":{"description":"LogAccountSoldItem resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/LogAccountSoldItem.jsonld"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a LogAccountSoldItem resource.","description":"Retrieves a LogAccountSoldItem resource.","parameters":[{"name":"id","in":"path","description":"LogAccountSoldItem identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/api\/log_generals":{"get":{"operationId":"api_log_generals_get_collection","tags":["LogGeneral"],"responses":{"200":{"description":"LogGeneral collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/LogGeneral.jsonld"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}},"example":{"@id":"string","type":"string","hydra:first":"string","hydra:last":"string","hydra:previous":"string","hydra:next":"string"}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":["string","null"]},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}}}}},"summary":"Retrieves the collection of LogGeneral resources.","description":"Retrieves the collection of LogGeneral resources.","parameters":[{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false},{"name":"itemsPerPage","in":"query","description":"The number of items per page","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":50,"minimum":0,"maximum":100},"style":"form","explode":false,"allowReserved":false},{"name":"gameAccountProfile","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"string"},"style":"form","explode":false,"allowReserved":false},{"name":"custom_json_filter","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"string"},"style":"form","explode":false,"allowReserved":false},{"name":"custom_json_order","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"string"},"style":"form","explode":false,"allowReserved":false,"example":"{\"active\":\"cntSoldItems\",\"direction\":\"desc\",\"listColDefinition\":{\"field\":\"cntSoldItems\",\"sortingSubResource\":\"tradePileItems\",\"countSortSubresource\":true,\"countSortSubresourceValue\":[\"closed\"],\"countSortSubresourceField\":\"tradeState\",\"countSortFilterSubResource\":\"account\",\"countSortFilterSubresourceField\":\"tmOpen\",\"countSortFilterSubresourceValue\":\"0\"}}"}],"deprecated":false},"parameters":[]},"\/api\/log_generals\/{id}":{"get":{"operationId":"api_log_generals_id_get","tags":["LogGeneral"],"responses":{"200":{"description":"LogGeneral resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/LogGeneral.jsonld"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a LogGeneral resource.","description":"Retrieves a LogGeneral resource.","parameters":[{"name":"id","in":"path","description":"LogGeneral identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/api\/log_total_profits":{"get":{"operationId":"api_log_total_profits_get_collection","tags":["LogTotalProfit"],"responses":{"200":{"description":"LogTotalProfit collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/LogTotalProfit.jsonld"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}},"example":{"@id":"string","type":"string","hydra:first":"string","hydra:last":"string","hydra:previous":"string","hydra:next":"string"}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":["string","null"]},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}}}}},"summary":"Retrieves the collection of LogTotalProfit resources.","description":"Retrieves the collection of LogTotalProfit resources.","parameters":[{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false},{"name":"itemsPerPage","in":"query","description":"The number of items per page","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":50,"minimum":0,"maximum":100},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"post":{"operationId":"api_log_total_profits_post","tags":["LogTotalProfit"],"responses":{"201":{"description":"LogTotalProfit resource created","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/LogTotalProfit.jsonld"}}},"links":{}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"}},"summary":"Creates a LogTotalProfit resource.","description":"Creates a LogTotalProfit resource.","parameters":[],"requestBody":{"description":"The new LogTotalProfit resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/LogTotalProfit.jsonld"}}},"required":true},"deprecated":false},"parameters":[]},"\/api\/log_total_profits\/{id}":{"get":{"operationId":"api_log_total_profits_id_get","tags":["LogTotalProfit"],"responses":{"200":{"description":"LogTotalProfit resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/LogTotalProfit.jsonld"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a LogTotalProfit resource.","description":"Retrieves a LogTotalProfit resource.","parameters":[{"name":"id","in":"path","description":"LogTotalProfit identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"patch":{"operationId":"api_log_total_profits_id_patch","tags":["LogTotalProfit"],"responses":{"200":{"description":"LogTotalProfit resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/LogTotalProfit.jsonld"}}},"links":{}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Updates the LogTotalProfit resource.","description":"Updates the LogTotalProfit resource.","parameters":[{"name":"id","in":"path","description":"LogTotalProfit identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated LogTotalProfit resource","content":{"application\/merge-patch+json":{"schema":{"$ref":"#\/components\/schemas\/LogTotalProfit"}}},"required":true},"deprecated":false},"parameters":[]},"\/api\/media_objects":{"get":{"operationId":"api_media_objects_get_collection","tags":["MediaObject"],"responses":{"200":{"description":"MediaObject collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/MediaObject.jsonld-media_object.read"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}},"example":{"@id":"string","type":"string","hydra:first":"string","hydra:last":"string","hydra:previous":"string","hydra:next":"string"}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":["string","null"]},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}}}}},"summary":"Retrieves the collection of MediaObject resources.","description":"Retrieves the collection of MediaObject resources.","parameters":[{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false},{"name":"itemsPerPage","in":"query","description":"The number of items per page","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":50,"minimum":0,"maximum":100},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"post":{"operationId":"api_media_objects_post","tags":["MediaObject"],"responses":{"201":{"description":"MediaObject resource created","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/MediaObject.jsonld-media_object.read"}}},"links":{}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"}},"summary":"Creates a MediaObject resource.","description":"Creates a MediaObject resource.","parameters":[],"requestBody":{"description":"","content":{"multipart\/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}}}}},"required":false},"deprecated":false},"parameters":[]},"\/api\/media_objects\/{id}":{"get":{"operationId":"api_media_objects_id_get","tags":["MediaObject"],"responses":{"200":{"description":"MediaObject resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/MediaObject.jsonld-media_object.read"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a MediaObject resource.","description":"Retrieves a MediaObject resource.","parameters":[{"name":"id","in":"path","description":"MediaObject identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"delete":{"operationId":"api_media_objects_id_delete","tags":["MediaObject"],"responses":{"204":{"description":"MediaObject resource deleted"},"404":{"description":"Resource not found"}},"summary":"Removes the MediaObject resource.","description":"Removes the MediaObject resource.","parameters":[{"name":"id","in":"path","description":"MediaObject identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]},"\/api\/mode_config":{"get":{"operationId":"api_mode_config_get","tags":["ModeConfig"],"responses":{"200":{"description":"ModeConfig resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/ModeConfig.jsonld"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a ModeConfig resource.","description":"Retrieves a ModeConfig resource.","parameters":[],"deprecated":false},"patch":{"operationId":"api_mode_config_patch","tags":["ModeConfig"],"responses":{"200":{"description":"ModeConfig resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/ModeConfig.jsonld"}}},"links":{}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Updates the ModeConfig resource.","description":"Updates the ModeConfig resource.","parameters":[],"requestBody":{"description":"The updated ModeConfig resource","content":{"application\/merge-patch+json":{"schema":{"$ref":"#\/components\/schemas\/ModeConfig"}}},"required":true},"deprecated":false},"parameters":[]},"\/api\/players":{"get":{"operationId":"api_players_get_collection","tags":["Player"],"responses":{"200":{"description":"Player collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/Player.jsonld"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}},"example":{"@id":"string","type":"string","hydra:first":"string","hydra:last":"string","hydra:previous":"string","hydra:next":"string"}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":["string","null"]},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}}}}},"summary":"Retrieves the collection of Player resources.","description":"Retrieves the collection of Player resources.","parameters":[{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false},{"name":"itemsPerPage","in":"query","description":"The number of items per page","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":50,"minimum":0,"maximum":100},"style":"form","explode":false,"allowReserved":false},{"name":"custom_json_order","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"string"},"style":"form","explode":false,"allowReserved":false,"example":"{\"active\":\"cntSoldItems\",\"direction\":\"desc\",\"listColDefinition\":{\"field\":\"cntSoldItems\",\"sortingSubResource\":\"tradePileItems\",\"countSortSubresource\":true,\"countSortSubresourceValue\":[\"closed\"],\"countSortSubresourceField\":\"tradeState\",\"countSortFilterSubResource\":\"account\",\"countSortFilterSubresourceField\":\"tmOpen\",\"countSortFilterSubresourceValue\":\"0\"}}"}],"deprecated":false},"post":{"operationId":"api_players_post","tags":["Player"],"responses":{"201":{"description":"Player resource created","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Player.jsonld"}}},"links":{}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"}},"summary":"Creates a Player resource.","description":"Creates a Player resource.","parameters":[],"requestBody":{"description":"The new Player resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Player.jsonld"}}},"required":true},"deprecated":false},"parameters":[]},"\/api\/players\/{id}":{"get":{"operationId":"api_players_id_get","tags":["Player"],"responses":{"200":{"description":"Player resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Player.jsonld"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a Player resource.","description":"Retrieves a Player resource.","parameters":[{"name":"id","in":"path","description":"Player identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"patch":{"operationId":"api_players_id_patch","tags":["Player"],"responses":{"200":{"description":"Player resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Player.jsonld"}}},"links":{}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Updates the Player resource.","description":"Updates the Player resource.","parameters":[{"name":"id","in":"path","description":"Player identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated Player resource","content":{"application\/merge-patch+json":{"schema":{"$ref":"#\/components\/schemas\/Player"}}},"required":true},"deprecated":false},"parameters":[]},"\/api\/rarities":{"get":{"operationId":"api_rarities_get_collection","tags":["Rarity"],"responses":{"200":{"description":"Rarity collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/Rarity.jsonld"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}},"example":{"@id":"string","type":"string","hydra:first":"string","hydra:last":"string","hydra:previous":"string","hydra:next":"string"}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":["string","null"]},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}}}}},"summary":"Retrieves the collection of Rarity resources.","description":"Retrieves the collection of Rarity resources.","parameters":[{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false},{"name":"itemsPerPage","in":"query","description":"The number of items per page","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":50,"minimum":0,"maximum":100},"style":"form","explode":false,"allowReserved":false},{"name":"custom_json_order","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"string"},"style":"form","explode":false,"allowReserved":false,"example":"{\"active\":\"cntSoldItems\",\"direction\":\"desc\",\"listColDefinition\":{\"field\":\"cntSoldItems\",\"sortingSubResource\":\"tradePileItems\",\"countSortSubresource\":true,\"countSortSubresourceValue\":[\"closed\"],\"countSortSubresourceField\":\"tradeState\",\"countSortFilterSubResource\":\"account\",\"countSortFilterSubresourceField\":\"tmOpen\",\"countSortFilterSubresourceValue\":\"0\"}}"}],"deprecated":false},"post":{"operationId":"api_rarities_post","tags":["Rarity"],"responses":{"201":{"description":"Rarity resource created","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Rarity.jsonld"}}},"links":{}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"}},"summary":"Creates a Rarity resource.","description":"Creates a Rarity resource.","parameters":[],"requestBody":{"description":"The new Rarity resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Rarity.jsonld"}}},"required":true},"deprecated":false},"parameters":[]},"\/api\/rarities\/{id}":{"get":{"operationId":"api_rarities_id_get","tags":["Rarity"],"responses":{"200":{"description":"Rarity resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Rarity.jsonld"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a Rarity resource.","description":"Retrieves a Rarity resource.","parameters":[{"name":"id","in":"path","description":"Rarity identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"patch":{"operationId":"api_rarities_id_patch","tags":["Rarity"],"responses":{"200":{"description":"Rarity resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Rarity.jsonld"}}},"links":{}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Updates the Rarity resource.","description":"Updates the Rarity resource.","parameters":[{"name":"id","in":"path","description":"Rarity identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated Rarity resource","content":{"application\/merge-patch+json":{"schema":{"$ref":"#\/components\/schemas\/Rarity"}}},"required":true},"deprecated":false},"parameters":[]},"\/api\/system_stats":{"get":{"operationId":"api_system_stats_get","tags":["SystemStat"],"responses":{"200":{"description":"SystemStat resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/SystemStat.jsonld"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a SystemStat resource.","description":"Retrieves a SystemStat resource.","parameters":[],"deprecated":false},"parameters":[]},"\/api\/users":{"get":{"operationId":"api_users_get_collection","tags":["User"],"responses":{"200":{"description":"User collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/User.jsonld"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}},"example":{"@id":"string","type":"string","hydra:first":"string","hydra:last":"string","hydra:previous":"string","hydra:next":"string"}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":["string","null"]},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}}}}},"summary":"Retrieves the collection of User resources.","description":"Retrieves the collection of User resources.","parameters":[{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false},{"name":"itemsPerPage","in":"query","description":"The number of items per page","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":50,"minimum":0,"maximum":100},"style":"form","explode":false,"allowReserved":false},{"name":"firstName","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"string"},"style":"form","explode":false,"allowReserved":false},{"name":"lastName","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"string"},"style":"form","explode":false,"allowReserved":false},{"name":"userNameSearch","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"string"},"style":"form","explode":false,"allowReserved":false},{"name":"custom_json_order","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"string"},"style":"form","explode":false,"allowReserved":false,"example":"{\"active\":\"cntSoldItems\",\"direction\":\"desc\",\"listColDefinition\":{\"field\":\"cntSoldItems\",\"sortingSubResource\":\"tradePileItems\",\"countSortSubresource\":true,\"countSortSubresourceValue\":[\"closed\"],\"countSortSubresourceField\":\"tradeState\",\"countSortFilterSubResource\":\"account\",\"countSortFilterSubresourceField\":\"tmOpen\",\"countSortFilterSubresourceValue\":\"0\"}}"}],"deprecated":false},"post":{"operationId":"api_users_post","tags":["User"],"responses":{"201":{"description":"User resource created","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/User.jsonld"}}},"links":{}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"}},"summary":"Creates a User resource.","description":"Creates a User resource.","parameters":[],"requestBody":{"description":"The new User resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/User.jsonld"}}},"required":true},"deprecated":false},"parameters":[]},"\/api\/users\/{id}":{"get":{"operationId":"api_users_id_get","tags":["User"],"responses":{"200":{"description":"User resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/User.jsonld"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a User resource.","description":"Retrieves a User resource.","parameters":[{"name":"id","in":"path","description":"User identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]}},"components":{"schemas":{"AccountTradePileItem":{"type":"object","description":"","deprecated":false,"properties":{"dbId":{"readOnly":true,"type":["integer","null"]},"account":{"readOnly":true,"type":"string","format":"iri-reference","example":"https:\/\/example.com\/"},"candidateItem":{"readOnly":true,"type":"string","format":"iri-reference","example":"https:\/\/example.com\/"},"eaId":{"readOnly":true,"type":"integer"},"eaAssetId":{"readOnly":true,"type":"integer"},"eaResourceId":{"readOnly":true,"type":"integer"},"rareFlag":{"readOnly":true,"type":"integer"},"itemType":{"readOnly":true,"type":"string"},"rating":{"readOnly":true,"type":"integer"},"contracts":{"readOnly":true,"type":["integer","null"]},"playStyle":{"readOnly":true,"type":["integer","null"]},"startingBid":{"type":"integer"},"binPrice":{"type":"integer"},"individualPrice":{"default":true,"example":true,"type":"boolean"},"minRange":{"readOnly":true,"type":"integer"},"maxRange":{"readOnly":true,"type":"integer"},"lastSalePrice":{"readOnly":true,"type":"integer"},"tradeState":{"readOnly":true,"type":["string","null"]},"eaTradeId":{"readOnly":true,"type":["integer","null"]},"rebuy":{"readOnly":true,"default":true,"example":true,"type":"boolean"},"leagueId":{"readOnly":true,"type":["integer","null"]},"teamId":{"readOnly":true,"type":["integer","null"]},"nationId":{"readOnly":true,"type":["integer","null"]},"listCnt":{"readOnly":true,"type":"integer"},"openBidCnt":{"readOnly":true,"type":["integer","null"]},"snipedItem":{"readOnly":true,"default":true,"example":true,"type":"boolean"},"marketAverage":{"readOnly":true,"type":["integer","null"]},"creationDate":{"readOnly":true,"type":"string","format":"date-time"}}},"AccountTradePileItem.jsonld":{"type":"object","description":"","deprecated":false,"properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"dbId":{"readOnly":true,"type":["integer","null"]},"account":{"readOnly":true,"$ref":"#\/components\/schemas\/GameAccount.jsonld"},"candidateItem":{"readOnly":true,"$ref":"#\/components\/schemas\/Candidate.jsonld"},"eaId":{"readOnly":true,"type":"integer"},"eaAssetId":{"readOnly":true,"type":"integer"},"eaResourceId":{"readOnly":true,"type":"integer"},"rareFlag":{"readOnly":true,"type":"integer"},"itemType":{"readOnly":true,"type":"string"},"rating":{"readOnly":true,"type":"integer"},"contracts":{"readOnly":true,"type":["integer","null"]},"playStyle":{"readOnly":true,"type":["integer","null"]},"startingBid":{"type":"integer"},"binPrice":{"type":"integer"},"individualPrice":{"default":true,"example":true,"type":"boolean"},"minRange":{"readOnly":true,"type":"integer"},"maxRange":{"readOnly":true,"type":"integer"},"lastSalePrice":{"readOnly":true,"type":"integer"},"tradeState":{"readOnly":true,"type":["string","null"]},"eaTradeId":{"readOnly":true,"type":["integer","null"]},"rebuy":{"readOnly":true,"default":true,"example":true,"type":"boolean"},"leagueId":{"readOnly":true,"type":["integer","null"]},"teamId":{"readOnly":true,"type":["integer","null"]},"nationId":{"readOnly":true,"type":["integer","null"]},"listCnt":{"readOnly":true,"type":"integer"},"openBidCnt":{"readOnly":true,"type":["integer","null"]},"snipedItem":{"readOnly":true,"default":true,"example":true,"type":"boolean"},"marketAverage":{"readOnly":true,"type":["integer","null"]},"creationDate":{"readOnly":true,"type":"string","format":"date-time"}}},"Candidate":{"type":"object","description":"","deprecated":false,"properties":{"dbId":{"readOnly":true,"type":["integer","null"]},"rarity":{"readOnly":true,"type":"string","format":"iri-reference","example":"https:\/\/example.com\/"},"candidateStat":{"readOnly":true,"type":"string","format":"iri-reference","example":"https:\/\/example.com\/"},"player":{"readOnly":true,"type":"string","format":"iri-reference","example":"https:\/\/example.com\/"},"firstname":{"readOnly":true,"type":["string","null"]},"lastname":{"readOnly":true,"type":["string","null"]},"nickname":{"readOnly":true,"type":["string","null"]},"fullDisplayInfo":{"readOnly":true,"type":["string","null"]},"eaAssetId":{"readOnly":true,"type":["integer","null"]},"eaResourceId":{"readOnly":true,"type":["integer","null"]},"rareFlag":{"readOnly":true,"type":["integer","null"]},"rarityName":{"readOnly":true,"type":["string","null"]},"image":{"readOnly":true,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"imageUrl":{"readOnly":true,"type":["string","null"]},"cardImageUrl":{"readOnly":true,"type":["string","null"]},"stockCountTotal":{"readOnly":true,"type":["integer","null"]},"stockCountReal":{"readOnly":true,"type":["integer","null"]},"futBinId":{"type":["integer","null"]},"futBinName":{"type":["string","null"]},"futBinPrice":{"type":["integer","null"]},"futBinSellingPrice":{"type":["integer","null"]},"lastFutBinUpdate":{"readOnly":true,"type":["string","null"],"format":"date-time"},"futWizId":{"type":["integer","null"]},"futWizPrice":{"type":["integer","null"]},"futwizName":{"type":["string","null"]},"futWizSellingPrice":{"type":["integer","null"]},"lastFutWizUpdate":{"readOnly":true,"type":["string","null"],"format":"date-time"},"rating":{"type":["integer","null"]},"highestBuyBinPrice":{"type":["integer","null"]},"sellStartingBid":{"type":["integer","null"]},"sellBinPrice":{"type":["integer","null"]},"lastFoundMinRange":{"type":["integer","null"]},"lastFoundMaxRange":{"type":["integer","null"]},"lastFoundLowestBin":{"type":["integer","null"]},"lowestBinUpdateDate":{"readOnly":true,"type":["string","null"],"format":"date-time"},"buy":{"type":["boolean","null"]},"maxBuyPrice":{"type":["integer","null"]},"buyStyle":{"type":["integer","null"]},"newBuySelective":{"type":["boolean","null"]},"remove":{"type":["boolean","null"]},"leagueId":{"type":["integer","null"]},"nationId":{"type":["integer","null"]},"prio":{"type":["integer","null"]},"listCnt":{"type":["integer","null"]},"soldCnt":{"type":["integer","null"]},"note":{"type":["string","null"]},"relevant":{"type":["boolean","null"]},"adjust100":{"type":["boolean","null"]},"directReBuy":{"type":["boolean","null"]},"marketAverage":{"readOnly":true,"type":["integer","null"]},"creationDate":{"readOnly":true,"type":["string","null"],"format":"date-time"}},"required":["eaAssetId","eaResourceId","rareFlag","rating","buy","buyStyle","newBuySelective","remove","listCnt","soldCnt","relevant","adjust100","directReBuy","creationDate"]},"Candidate.jsonld":{"type":"object","description":"","deprecated":false,"properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"dbId":{"readOnly":true,"type":["integer","null"]},"rarity":{"readOnly":true,"$ref":"#\/components\/schemas\/Rarity.jsonld"},"candidateStat":{"readOnly":true,"$ref":"#\/components\/schemas\/CandidateStat.jsonld"},"player":{"readOnly":true,"$ref":"#\/components\/schemas\/Player.jsonld"},"firstname":{"readOnly":true,"type":["string","null"]},"lastname":{"readOnly":true,"type":["string","null"]},"nickname":{"readOnly":true,"type":["string","null"]},"fullDisplayInfo":{"readOnly":true,"type":["string","null"]},"eaAssetId":{"readOnly":true,"type":["integer","null"]},"eaResourceId":{"readOnly":true,"type":["integer","null"]},"rareFlag":{"readOnly":true,"type":["integer","null"]},"rarityName":{"readOnly":true,"type":["string","null"]},"image":{"readOnly":true,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"imageUrl":{"readOnly":true,"type":["string","null"]},"cardImageUrl":{"readOnly":true,"type":["string","null"]},"stockCountTotal":{"readOnly":true,"type":["integer","null"]},"stockCountReal":{"readOnly":true,"type":["integer","null"]},"futBinId":{"type":["integer","null"]},"futBinName":{"type":["string","null"]},"futBinPrice":{"type":["integer","null"]},"futBinSellingPrice":{"type":["integer","null"]},"lastFutBinUpdate":{"readOnly":true,"type":["string","null"],"format":"date-time"},"futWizId":{"type":["integer","null"]},"futWizPrice":{"type":["integer","null"]},"futwizName":{"type":["string","null"]},"futWizSellingPrice":{"type":["integer","null"]},"lastFutWizUpdate":{"readOnly":true,"type":["string","null"],"format":"date-time"},"rating":{"type":["integer","null"]},"highestBuyBinPrice":{"type":["integer","null"]},"sellStartingBid":{"type":["integer","null"]},"sellBinPrice":{"type":["integer","null"]},"lastFoundMinRange":{"type":["integer","null"]},"lastFoundMaxRange":{"type":["integer","null"]},"lastFoundLowestBin":{"type":["integer","null"]},"lowestBinUpdateDate":{"readOnly":true,"type":["string","null"],"format":"date-time"},"buy":{"type":["boolean","null"]},"maxBuyPrice":{"type":["integer","null"]},"buyStyle":{"type":["integer","null"]},"newBuySelective":{"type":["boolean","null"]},"remove":{"type":["boolean","null"]},"leagueId":{"type":["integer","null"]},"nationId":{"type":["integer","null"]},"prio":{"type":["integer","null"]},"listCnt":{"type":["integer","null"]},"soldCnt":{"type":["integer","null"]},"note":{"type":["string","null"]},"relevant":{"type":["boolean","null"]},"adjust100":{"type":["boolean","null"]},"directReBuy":{"type":["boolean","null"]},"marketAverage":{"readOnly":true,"type":["integer","null"]},"creationDate":{"readOnly":true,"type":["string","null"],"format":"date-time"}},"required":["eaAssetId","eaResourceId","rareFlag","rating","buy","buyStyle","newBuySelective","remove","listCnt","soldCnt","relevant","adjust100","directReBuy","creationDate"]},"CandidateStat.jsonld":{"type":"object","description":"","deprecated":false,"properties":{"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"candidateItem":{"readOnly":true,"$ref":"#\/components\/schemas\/Candidate.jsonld"},"revRl6":{"type":"number"},"rl6":{"type":"integer"},"sold6":{"type":"integer"},"rat6":{"type":"number"},"rev6":{"type":"integer"},"revRl12":{"type":"number"},"rl12":{"type":"integer"},"sold12":{"type":"integer"},"rat12":{"type":"number"},"rev12":{"type":"integer"},"revRl24":{"type":"number"},"rl24":{"type":"integer"},"sold24":{"type":"integer"},"rat24":{"type":"number"},"rev24":{"type":"integer"},"revRl3d":{"type":"number"},"rl3d":{"type":"integer"},"sold3d":{"type":"integer"},"rat3d":{"type":"number"},"rev3d":{"type":"integer"},"revRl1w":{"type":"number"},"rl1w":{"type":"integer"},"sold1w":{"type":"integer"},"rat1w":{"type":"number"},"rev1w":{"type":"integer"},"revRl2w":{"type":"number"},"rl2w":{"type":"integer"},"sold2w":{"type":"integer"},"rat2w":{"type":"number"},"rev2w":{"type":"integer"},"revRl3w":{"type":"number"},"rl3w":{"type":"integer"},"sold3w":{"type":"integer"},"rat3w":{"type":"number"},"rev3w":{"type":"integer"},"revRl4w":{"type":"number"},"rl4w":{"type":"integer"},"sold4w":{"type":"integer"},"rat4w":{"type":"number"},"rev4w":{"type":"integer"},"revRl":{"type":"number"},"rl":{"type":"integer"},"sold":{"type":"integer"},"rat":{"type":"number"},"rev":{"type":"integer"},"snipingRev":{"type":"integer"},"creationDate":{"readOnly":true,"type":["string","null"],"format":"date-time"},"lastUpdateDate":{"readOnly":true,"type":["string","null"],"format":"date-time"}}},"CandidateStockAccounts.jsonld":{"type":"object","description":"","deprecated":false,"properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"candidatesStockAccounts":{"type":"array","items":{"$ref":"#\/components\/schemas\/GameAccount.jsonld"}},"candidatesMissingAccounts":{"type":"array","items":{"$ref":"#\/components\/schemas\/GameAccount.jsonld"}}}},"Config":{"type":"object","description":"","deprecated":false,"properties":{"systemActive":{"type":"boolean"},"systemRunning":{"type":"boolean"},"lastUpdateDate":{"readOnly":true,"type":"string","format":"date-time"},"lastCheckDate":{"readOnly":true,"type":"string","format":"date-time"},"processCnt":{"readOnly":true,"type":"integer"},"sleepHourStart":{"minimum":0,"maximum":23,"type":["integer","null"]},"sleepHourEnd":{"minimum":0,"maximum":23,"type":["integer","null"]},"checkMaxSales":{"type":"boolean"},"numMaxSales":{"minimum":0,"maximum":20,"type":["integer","null"]}}},"Config.jsonld":{"type":"object","description":"","deprecated":false,"properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"systemActive":{"type":"boolean"},"systemRunning":{"type":"boolean"},"lastUpdateDate":{"readOnly":true,"type":"string","format":"date-time"},"lastCheckDate":{"readOnly":true,"type":"string","format":"date-time"},"processCnt":{"readOnly":true,"type":"integer"},"sleepHourStart":{"minimum":0,"maximum":23,"type":["integer","null"]},"sleepHourEnd":{"minimum":0,"maximum":23,"type":["integer","null"]},"checkMaxSales":{"type":"boolean"},"numMaxSales":{"minimum":0,"maximum":20,"type":["integer","null"]}}},"GameAccount":{"type":"object","description":"","deprecated":false,"properties":{"dbId":{"readOnly":true,"type":["integer","null"]},"email":{"format":"email","externalDocs":{"url":"https:\/\/schema.org\/email"},"type":["string","null"]},"profile":{"type":["string","null"]},"password":{"type":["string","null"]},"emailPw":{"type":["string","null"]},"credits":{"readOnly":true,"type":["integer","null"]},"cntItems":{"readOnly":true,"type":["integer","null"]},"cntSoldItems":{"readOnly":true,"type":["integer","null"]},"cntInactiveItems":{"readOnly":true,"type":["integer","null"]},"active":{"type":["boolean","null"]},"running":{"type":["boolean","null"]},"relist":{"type":["boolean","null"]},"relistDate":{"type":["string","null"],"format":"date-time"},"blocked":{"type":["boolean","null"]},"sniping":{"type":["boolean","null"]},"snipingDate":{"readOnly":true,"type":["string","null"],"format":"date-time"},"tmOpen":{"type":["boolean","null"]},"tmState":{"type":["integer","null"]},"dead":{"type":["boolean","null"]},"lockedMsg":{"type":["boolean","null"]},"dynPrices":{"type":["boolean","null"]},"newBuy":{"type":["boolean","null"]},"newBuyDate":{"readOnly":true,"type":["string","null"],"format":"date-time"},"newBuySelective":{"type":["boolean","null"]},"reBuy":{"type":["boolean","null"]},"rebuyDate":{"readOnly":true,"type":["string","null"],"format":"date-time"},"connectionDate":{"readOnly":true,"type":["string","null"],"format":"date-time"},"importWatchlist":{"type":["boolean","null"]},"autoReBuy":{"type":["boolean","null"]},"directReBuy":{"type":["boolean","null"]},"itemMaxBuyPrice":{"minimum":0,"maximum":15000000,"type":["integer","null"]},"revenue":{"readOnly":true,"type":["integer","null"]},"futWizValue":{"readOnly":true,"type":["integer","null"]},"eaMarketAvgValue":{"readOnly":true,"type":["integer","null"]},"mfaCode":{"type":["string","null"]},"twoFactorAuthKey":{"type":["string","null"]},"login2FaViaApp":{"type":["boolean","null"]},"eaCode1":{"type":["string","null"]},"eaCode2":{"type":["string","null"]},"eaCode3":{"type":["string","null"]},"eaCode4":{"type":["string","null"]},"eaCode5":{"type":["string","null"]},"eaCode6":{"type":["string","null"]},"snipingCnt1h":{"type":["integer","null"]},"snipingCnt3h":{"type":["integer","null"]},"snipingCnt6h":{"type":["integer","null"]},"snipingCnt12h":{"type":["integer","null"]},"snipingCnt24h":{"type":["integer","null"]},"snipingCnt3d":{"type":["integer","null"]},"snipingCnt1w":{"type":["integer","null"]},"note":{"type":["string","null"]},"loopStartDate":{"readOnly":true,"type":["string","null"],"format":"date-time"},"loopFinishDate":{"readOnly":true,"type":["string","null"],"format":"date-time"},"creationDate":{"readOnly":true,"type":["string","null"],"format":"date-time"},"owner":{"readOnly":true,"type":"string","format":"iri-reference","example":"https:\/\/example.com\/"}},"required":["email","profile","password","active","running","relist","blocked","sniping","tmOpen","dead","lockedMsg","dynPrices","newBuy","newBuySelective","reBuy","importWatchlist","autoReBuy","directReBuy"]},"GameAccount.jsonld":{"type":"object","description":"","deprecated":false,"properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"dbId":{"readOnly":true,"type":["integer","null"]},"email":{"format":"email","externalDocs":{"url":"https:\/\/schema.org\/email"},"type":["string","null"]},"profile":{"type":["string","null"]},"password":{"type":["string","null"]},"emailPw":{"type":["string","null"]},"credits":{"readOnly":true,"type":["integer","null"]},"cntItems":{"readOnly":true,"type":["integer","null"]},"cntSoldItems":{"readOnly":true,"type":["integer","null"]},"cntInactiveItems":{"readOnly":true,"type":["integer","null"]},"active":{"type":["boolean","null"]},"running":{"type":["boolean","null"]},"relist":{"type":["boolean","null"]},"relistDate":{"type":["string","null"],"format":"date-time"},"blocked":{"type":["boolean","null"]},"sniping":{"type":["boolean","null"]},"snipingDate":{"readOnly":true,"type":["string","null"],"format":"date-time"},"tmOpen":{"type":["boolean","null"]},"tmState":{"type":["integer","null"]},"dead":{"type":["boolean","null"]},"lockedMsg":{"type":["boolean","null"]},"dynPrices":{"type":["boolean","null"]},"newBuy":{"type":["boolean","null"]},"newBuyDate":{"readOnly":true,"type":["string","null"],"format":"date-time"},"newBuySelective":{"type":["boolean","null"]},"reBuy":{"type":["boolean","null"]},"rebuyDate":{"readOnly":true,"type":["string","null"],"format":"date-time"},"connectionDate":{"readOnly":true,"type":["string","null"],"format":"date-time"},"importWatchlist":{"type":["boolean","null"]},"autoReBuy":{"type":["boolean","null"]},"directReBuy":{"type":["boolean","null"]},"itemMaxBuyPrice":{"minimum":0,"maximum":15000000,"type":["integer","null"]},"revenue":{"readOnly":true,"type":["integer","null"]},"futWizValue":{"readOnly":true,"type":["integer","null"]},"eaMarketAvgValue":{"readOnly":true,"type":["integer","null"]},"mfaCode":{"type":["string","null"]},"twoFactorAuthKey":{"type":["string","null"]},"login2FaViaApp":{"type":["boolean","null"]},"eaCode1":{"type":["string","null"]},"eaCode2":{"type":["string","null"]},"eaCode3":{"type":["string","null"]},"eaCode4":{"type":["string","null"]},"eaCode5":{"type":["string","null"]},"eaCode6":{"type":["string","null"]},"snipingCnt1h":{"type":["integer","null"]},"snipingCnt3h":{"type":["integer","null"]},"snipingCnt6h":{"type":["integer","null"]},"snipingCnt12h":{"type":["integer","null"]},"snipingCnt24h":{"type":["integer","null"]},"snipingCnt3d":{"type":["integer","null"]},"snipingCnt1w":{"type":["integer","null"]},"note":{"type":["string","null"]},"loopStartDate":{"readOnly":true,"type":["string","null"],"format":"date-time"},"loopFinishDate":{"readOnly":true,"type":["string","null"],"format":"date-time"},"creationDate":{"readOnly":true,"type":["string","null"],"format":"date-time"},"owner":{"readOnly":true,"$ref":"#\/components\/schemas\/User.jsonld"}},"required":["email","profile","password","active","running","relist","blocked","sniping","tmOpen","dead","lockedMsg","dynPrices","newBuy","newBuySelective","reBuy","importWatchlist","autoReBuy","directReBuy"]},"LogAccountCredit.jsonld":{"type":"object","description":"","deprecated":false,"properties":{"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"gameAccount":{"readOnly":true,"$ref":"#\/components\/schemas\/GameAccount.jsonld"},"credits":{"readOnly":true,"type":["integer","null"]},"revenue":{"readOnly":true,"type":["integer","null"]},"creationDate":{"readOnly":true,"type":["string","null"],"format":"date-time"}}},"LogAccountProfit.jsonld":{"type":"object","description":"","deprecated":false,"properties":{"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"gameAccount":{"readOnly":true,"$ref":"#\/components\/schemas\/GameAccount.jsonld"},"credits":{"type":["integer","null"]},"revenue":{"type":["integer","null"]},"tpValue":{"type":["integer","null"]},"revToday":{"type":["integer","null"]},"rev3hours":{"type":["integer","null"]},"rev6hours":{"type":["integer","null"]},"rev12hours":{"type":["integer","null"]},"rev24hours":{"type":["integer","null"]},"rev3days":{"type":["integer","null"]},"rev1week":{"type":["integer","null"]},"rev2weeks":{"type":["integer","null"]},"rev3weeks":{"type":["integer","null"]},"rev4weeks":{"type":["integer","null"]},"rev2months":{"type":["integer","null"]},"rev3months":{"type":["integer","null"]},"revTotal":{"type":["integer","null"]},"numSalesToday":{"type":["integer","null"]},"numSales3hours":{"type":["integer","null"]},"numSales6hours":{"type":["integer","null"]},"numSales12hours":{"type":["integer","null"]},"numSales24hours":{"type":["integer","null"]},"numSales3days":{"type":["integer","null"]},"numSales1week":{"type":["integer","null"]},"numSales2weeks":{"type":["integer","null"]},"numSales3weeks":{"type":["integer","null"]},"numSales4weeks":{"type":["integer","null"]},"numSales2months":{"type":["integer","null"]},"numSales3months":{"type":["integer","null"]},"numSalesTotal":{"type":["integer","null"]},"isDailyProfit":{"type":["boolean","null"]},"creationDate":{"type":["string","null"],"format":"date-time"}}},"LogAccountSoldItem.jsonld":{"type":"object","description":"","deprecated":false,"properties":{"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"dbId":{"readOnly":true,"type":["integer","null"]},"gameAccount":{"readOnly":true,"$ref":"#\/components\/schemas\/GameAccount.jsonld"},"candidateItem":{"readOnly":true,"$ref":"#\/components\/schemas\/Candidate.jsonld"},"eaId":{"readOnly":true,"type":"integer"},"contracts":{"readOnly":true,"type":["integer","null"]},"playStyle":{"readOnly":true,"type":["integer","null"]},"lastSalePrice":{"readOnly":true,"type":"integer"},"currentBid":{"readOnly":true,"type":"integer"},"startingBid":{"readOnly":true,"type":"integer"},"binPrice":{"readOnly":true,"type":"integer"},"minRange":{"readOnly":true,"type":"integer"},"maxRange":{"readOnly":true,"type":"integer"},"tradeState":{"readOnly":true,"type":"string"},"eaTradeId":{"readOnly":true,"type":"integer"},"listCnt":{"readOnly":true,"type":"integer"},"revenue":{"readOnly":true,"type":"integer"},"reBought":{"readOnly":true,"type":"boolean"},"snipedItem":{"readOnly":true,"type":"boolean"},"firstListDate":{"readOnly":true,"type":["string","null"],"format":"date-time"},"creationDate":{"readOnly":true,"type":"string","format":"date-time"}}},"LogGeneral.jsonld":{"type":"object","description":"","deprecated":false,"properties":{"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"dbId":{"readOnly":true,"type":"integer"},"gameAccount":{"readOnly":true,"$ref":"#\/components\/schemas\/GameAccount.jsonld"},"candidateItem":{"readOnly":true,"$ref":"#\/components\/schemas\/Candidate.jsonld"},"logType":{"type":"string","enum":["alert","alert_low","cant_buy","debug","debug_server_logs","info","moved_to_club","new_buy","player_price_changed","preview_pack","preview_pack_alert","price_range_errors","profit_overview","removed","rebuy","sales","server_logs","stats","hourly_stats"]},"message":{"readOnly":true,"type":["string","null"]},"creationDate":{"readOnly":true,"type":["string","null"],"format":"date-time"}},"required":["logType"]},"LogTotalProfit":{"type":"object","description":"","deprecated":false,"properties":{"credits":{"type":["integer","null"]},"revenue":{"type":["integer","null"]},"tpValueFutwiz":{"type":["integer","null"]},"tpValueEaAverage":{"type":["integer","null"]},"revToday":{"type":["integer","null"]},"rev3hours":{"type":["integer","null"]},"rev6hours":{"type":["integer","null"]},"rev12hours":{"type":["integer","null"]},"rev24hours":{"type":["integer","null"]},"rev3days":{"type":["integer","null"]},"rev1week":{"type":["integer","null"]},"rev2weeks":{"type":["integer","null"]},"rev3weeks":{"type":["integer","null"]},"rev4weeks":{"type":["integer","null"]},"rev2months":{"type":["integer","null"]},"rev3months":{"type":["integer","null"]},"revTotal":{"type":["integer","null"]},"numSalesToday":{"type":["integer","null"]},"numSales3hours":{"type":["integer","null"]},"numSales6hours":{"type":["integer","null"]},"numSales12hours":{"type":["integer","null"]},"numSales24hours":{"type":["integer","null"]},"numSales3days":{"type":["integer","null"]},"numSales1week":{"type":["integer","null"]},"numSales2weeks":{"type":["integer","null"]},"numSales3weeks":{"type":["integer","null"]},"numSales4weeks":{"type":["integer","null"]},"numSales2months":{"type":["integer","null"]},"numSales3months":{"type":["integer","null"]},"numSalesTotal":{"type":["integer","null"]},"isDailyProfit":{"type":["boolean","null"]},"creationDate":{"type":["string","null"],"format":"date-time"}}},"LogTotalProfit.jsonld":{"type":"object","description":"","deprecated":false,"properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"credits":{"type":["integer","null"]},"revenue":{"type":["integer","null"]},"tpValueFutwiz":{"type":["integer","null"]},"tpValueEaAverage":{"type":["integer","null"]},"revToday":{"type":["integer","null"]},"rev3hours":{"type":["integer","null"]},"rev6hours":{"type":["integer","null"]},"rev12hours":{"type":["integer","null"]},"rev24hours":{"type":["integer","null"]},"rev3days":{"type":["integer","null"]},"rev1week":{"type":["integer","null"]},"rev2weeks":{"type":["integer","null"]},"rev3weeks":{"type":["integer","null"]},"rev4weeks":{"type":["integer","null"]},"rev2months":{"type":["integer","null"]},"rev3months":{"type":["integer","null"]},"revTotal":{"type":["integer","null"]},"numSalesToday":{"type":["integer","null"]},"numSales3hours":{"type":["integer","null"]},"numSales6hours":{"type":["integer","null"]},"numSales12hours":{"type":["integer","null"]},"numSales24hours":{"type":["integer","null"]},"numSales3days":{"type":["integer","null"]},"numSales1week":{"type":["integer","null"]},"numSales2weeks":{"type":["integer","null"]},"numSales3weeks":{"type":["integer","null"]},"numSales4weeks":{"type":["integer","null"]},"numSales2months":{"type":["integer","null"]},"numSales3months":{"type":["integer","null"]},"numSalesTotal":{"type":["integer","null"]},"isDailyProfit":{"type":["boolean","null"]},"creationDate":{"type":["string","null"],"format":"date-time"}}},"MediaObject.jsonld-media_object.read":{"type":"object","description":"","deprecated":false,"externalDocs":{"url":"https:\/\/schema.org\/MediaObject"},"properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"contentUrl":{"externalDocs":{"url":"https:\/\/schema.org\/contentUrl"},"type":["string","null"]}}},"ModeConfig":{"type":"object","description":"","deprecated":false,"properties":{"autoReBuyMinSoldItems":{"minimum":0,"maximum":20,"default":3,"example":3,"type":"integer"},"autoReBuyMinLastHours":{"minimum":0,"maximum":20,"default":3,"example":3,"type":"integer"}}},"ModeConfig.jsonld":{"type":"object","description":"","deprecated":false,"properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"autoReBuyMinSoldItems":{"minimum":0,"maximum":20,"default":3,"example":3,"type":"integer"},"autoReBuyMinLastHours":{"minimum":0,"maximum":20,"default":3,"example":3,"type":"integer"}}},"Player":{"type":"object","description":"","deprecated":false,"properties":{"eaAssetId":{"type":"integer"},"firstname":{"type":["string","null"]},"lastname":{"type":["string","null"]},"nickname":{"type":["string","null"]},"rating":{"type":"integer"},"creationDate":{"readOnly":true,"type":"string","format":"date-time"}}},"Player.jsonld":{"type":"object","description":"","deprecated":false,"properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"eaAssetId":{"type":"integer"},"firstname":{"type":["string","null"]},"lastname":{"type":["string","null"]},"nickname":{"type":["string","null"]},"rating":{"type":"integer"},"creationDate":{"readOnly":true,"type":"string","format":"date-time"}}},"Rarity":{"type":"object","description":"","deprecated":false,"properties":{"rareFlag":{"readOnly":true,"type":"integer"},"name":{"type":["string","null"]},"untradable":{"readOnly":true,"type":"boolean"},"image":{"readOnly":true,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"imageUrl":{"readOnly":true,"type":["string","null"]},"imageBronze":{"readOnly":true,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"}}},"Rarity.jsonld":{"type":"object","description":"","deprecated":false,"properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"rareFlag":{"readOnly":true,"type":"integer"},"name":{"type":["string","null"]},"untradable":{"readOnly":true,"type":"boolean"},"image":{"readOnly":true,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"imageUrl":{"readOnly":true,"type":["string","null"]},"imageBronze":{"readOnly":true,"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"}}},"SystemStat.jsonld":{"type":"object","description":"","deprecated":false,"properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"totalLogProfit":{"readOnly":true,"$ref":"#\/components\/schemas\/LogTotalProfit.jsonld"},"config":{"readOnly":true,"$ref":"#\/components\/schemas\/Config.jsonld"},"modeConfig":{"readOnly":true,"$ref":"#\/components\/schemas\/ModeConfig.jsonld"},"numAccounts":{"type":["integer","null"]},"numDeadAccounts":{"type":["integer","null"]},"numActiveAccounts":{"type":["integer","null"]},"numTmOpenAccounts":{"type":["integer","null"]},"numTmClosedAccounts":{"type":["integer","null"]},"numBlockedAccounts":{"type":["integer","null"]},"numRunningAccounts":{"type":["integer","null"]},"numTradepileItems":{"type":["integer","null"]},"numSoldTradepileItems":{"type":["integer","null"]},"numActiveTradepileItems":{"type":["integer","null"]},"numExpiredTradepileItems":{"type":["integer","null"]},"numInactiveTradepileItems":{"type":["integer","null"]},"numCandidates":{"type":["integer","null"]},"numRelevantCandidates":{"type":["integer","null"]},"numBuyCandidates":{"type":["integer","null"]},"totalSnipingRev":{"type":["integer","null"]}}},"User.jsonld":{"type":"object","description":"","deprecated":false,"required":["email","firstName","lastName"],"properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"email":{"format":"email","externalDocs":{"url":"https:\/\/schema.org\/email"},"type":["string","null"]},"firstName":{"type":["string","null"]},"lastName":{"type":["string","null"]},"image":{"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"imageUrl":{"readOnly":true,"type":["string","null"]},"fullName":{"readOnly":true,"type":["string","null"]},"password":{"writeOnly":true,"description":"The plaintext password when being set or changed.","type":["string","null"]},"active":{"type":"boolean"},"createdAt":{"readOnly":true,"type":["string","null"],"format":"date-time"}}}},"responses":{},"parameters":{},"examples":{},"requestBodies":{},"headers":{},"securitySchemes":{"JWT":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"security":[{"JWT":[]}],"tags":[]} \ No newline at end of file +{"openapi":"3.1.0","info":{"title":"Imaq Platform","description":"","version":"1.0.0"},"servers":[{"url":"\/","description":""}],"paths":{"\/api\/locations":{"get":{"operationId":"api_locations_get_collection","tags":["Location"],"responses":{"200":{"description":"Location collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"member":{"type":"array","items":{"$ref":"#\/components\/schemas\/Location.jsonld"}},"totalItems":{"type":"integer","minimum":0},"view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"first":{"type":"string","format":"iri-reference"},"last":{"type":"string","format":"iri-reference"},"previous":{"type":"string","format":"iri-reference"},"next":{"type":"string","format":"iri-reference"}},"example":{"@id":"string","type":"string","first":"string","last":"string","previous":"string","next":"string"}},"search":{"type":"object","properties":{"@type":{"type":"string"},"template":{"type":"string"},"variableRepresentation":{"type":"string"},"mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":["string","null"]},"required":{"type":"boolean"}}}}}}},"required":["member"]}}}}},"summary":"Retrieves the collection of Location resources.","description":"Retrieves the collection of Location resources.","parameters":[{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false},{"name":"itemsPerPage","in":"query","description":"The number of items per page","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":50,"minimum":0,"maximum":100},"style":"form","explode":false,"allowReserved":false},{"name":"name","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"form","explode":false,"allowReserved":false},{"name":"custom_json_filter","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"form","explode":false,"allowReserved":false},{"name":"custom_json_order","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"post":{"operationId":"api_locations_post","tags":["Location"],"responses":{"201":{"description":"Location resource created","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Location.jsonld"}}},"links":{}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"}},"summary":"Creates a Location resource.","description":"Creates a Location resource.","parameters":[],"requestBody":{"description":"The new Location resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Location.jsonld"}}},"required":true},"deprecated":false}},"\/api\/locations\/{id}":{"get":{"operationId":"api_locations_id_get","tags":["Location"],"responses":{"200":{"description":"Location resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Location.jsonld"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a Location resource.","description":"Retrieves a Location resource.","parameters":[{"name":"id","in":"path","description":"Location identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"patch":{"operationId":"api_locations_id_patch","tags":["Location"],"responses":{"200":{"description":"Location resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Location.jsonld"}}},"links":{}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Updates the Location resource.","description":"Updates the Location resource.","parameters":[{"name":"id","in":"path","description":"Location identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated Location resource","content":{"application\/merge-patch+json":{"schema":{"$ref":"#\/components\/schemas\/Location"}}},"required":true},"deprecated":false}},"\/api\/auth":{"post":{"operationId":"login_check_post","tags":["Login Check"],"responses":{"200":{"description":"User token created","content":{"application\/json":{"schema":{"type":"object","properties":{"token":{"readOnly":true,"type":"string","nullable":false}},"required":["token"]}}}}},"summary":"Creates a user token.","description":"Creates a user token.","requestBody":{"description":"The login data","content":{"application\/json":{"schema":{"type":"object","properties":{"email":{"type":"string","nullable":false},"password":{"type":"string","nullable":false}},"required":["email","password"]}}},"required":true}}},"\/api\/media_objects":{"get":{"operationId":"api_media_objects_get_collection","tags":["MediaObject"],"responses":{"200":{"description":"MediaObject collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"member":{"type":"array","items":{"$ref":"#\/components\/schemas\/MediaObject.jsonld-media_object.read"}},"totalItems":{"type":"integer","minimum":0},"view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"first":{"type":"string","format":"iri-reference"},"last":{"type":"string","format":"iri-reference"},"previous":{"type":"string","format":"iri-reference"},"next":{"type":"string","format":"iri-reference"}},"example":{"@id":"string","type":"string","first":"string","last":"string","previous":"string","next":"string"}},"search":{"type":"object","properties":{"@type":{"type":"string"},"template":{"type":"string"},"variableRepresentation":{"type":"string"},"mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":["string","null"]},"required":{"type":"boolean"}}}}}}},"required":["member"]}}}}},"summary":"Retrieves the collection of MediaObject resources.","description":"Retrieves the collection of MediaObject resources.","parameters":[{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false},{"name":"itemsPerPage","in":"query","description":"The number of items per page","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":50,"minimum":0,"maximum":100},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"post":{"operationId":"api_media_objects_post","tags":["MediaObject"],"responses":{"201":{"description":"MediaObject resource created","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/MediaObject.jsonld-media_object.read"}}},"links":{}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"}},"summary":"Creates a MediaObject resource.","description":"Creates a MediaObject resource.","parameters":[],"requestBody":{"description":"The new MediaObject resource","content":{"multipart\/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}}}}},"required":false},"deprecated":false}},"\/api\/media_objects\/{id}":{"get":{"operationId":"api_media_objects_id_get","tags":["MediaObject"],"responses":{"200":{"description":"MediaObject resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/MediaObject.jsonld-media_object.read"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a MediaObject resource.","description":"Retrieves a MediaObject resource.","parameters":[{"name":"id","in":"path","description":"MediaObject identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"delete":{"operationId":"api_media_objects_id_delete","tags":["MediaObject"],"responses":{"204":{"description":"MediaObject resource deleted"},"404":{"description":"Resource not found"}},"summary":"Removes the MediaObject resource.","description":"Removes the MediaObject resource.","parameters":[{"name":"id","in":"path","description":"MediaObject identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false}},"\/api\/shipping_companies":{"get":{"operationId":"api_shipping_companies_get_collection","tags":["ShippingCompany"],"responses":{"200":{"description":"ShippingCompany collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"member":{"type":"array","items":{"$ref":"#\/components\/schemas\/ShippingCompany.jsonld"}},"totalItems":{"type":"integer","minimum":0},"view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"first":{"type":"string","format":"iri-reference"},"last":{"type":"string","format":"iri-reference"},"previous":{"type":"string","format":"iri-reference"},"next":{"type":"string","format":"iri-reference"}},"example":{"@id":"string","type":"string","first":"string","last":"string","previous":"string","next":"string"}},"search":{"type":"object","properties":{"@type":{"type":"string"},"template":{"type":"string"},"variableRepresentation":{"type":"string"},"mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":["string","null"]},"required":{"type":"boolean"}}}}}}},"required":["member"]}}}}},"summary":"Retrieves the collection of ShippingCompany resources.","description":"Retrieves the collection of ShippingCompany resources.","parameters":[{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false},{"name":"itemsPerPage","in":"query","description":"The number of items per page","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":50,"minimum":0,"maximum":100},"style":"form","explode":false,"allowReserved":false},{"name":"name","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"form","explode":false,"allowReserved":false},{"name":"custom_json_filter","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"form","explode":false,"allowReserved":false},{"name":"custom_json_order","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"post":{"operationId":"api_shipping_companies_post","tags":["ShippingCompany"],"responses":{"201":{"description":"ShippingCompany resource created","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/ShippingCompany.jsonld"}}},"links":{}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"}},"summary":"Creates a ShippingCompany resource.","description":"Creates a ShippingCompany resource.","parameters":[],"requestBody":{"description":"The new ShippingCompany resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/ShippingCompany.jsonld"}}},"required":true},"deprecated":false}},"\/api\/shipping_companies\/{id}":{"get":{"operationId":"api_shipping_companies_id_get","tags":["ShippingCompany"],"responses":{"200":{"description":"ShippingCompany resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/ShippingCompany.jsonld"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a ShippingCompany resource.","description":"Retrieves a ShippingCompany resource.","parameters":[{"name":"id","in":"path","description":"ShippingCompany identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"patch":{"operationId":"api_shipping_companies_id_patch","tags":["ShippingCompany"],"responses":{"200":{"description":"ShippingCompany resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/ShippingCompany.jsonld"}}},"links":{}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Updates the ShippingCompany resource.","description":"Updates the ShippingCompany resource.","parameters":[{"name":"id","in":"path","description":"ShippingCompany identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated ShippingCompany resource","content":{"application\/merge-patch+json":{"schema":{"$ref":"#\/components\/schemas\/ShippingCompany"}}},"required":true},"deprecated":false}},"\/api\/trips":{"get":{"operationId":"api_trips_get_collection","tags":["Trip"],"responses":{"200":{"description":"Trip collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"member":{"type":"array","items":{"$ref":"#\/components\/schemas\/Trip.jsonld"}},"totalItems":{"type":"integer","minimum":0},"view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"first":{"type":"string","format":"iri-reference"},"last":{"type":"string","format":"iri-reference"},"previous":{"type":"string","format":"iri-reference"},"next":{"type":"string","format":"iri-reference"}},"example":{"@id":"string","type":"string","first":"string","last":"string","previous":"string","next":"string"}},"search":{"type":"object","properties":{"@type":{"type":"string"},"template":{"type":"string"},"variableRepresentation":{"type":"string"},"mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":["string","null"]},"required":{"type":"boolean"}}}}}}},"required":["member"]}}}}},"summary":"Retrieves the collection of Trip resources.","description":"Retrieves the collection of Trip resources.","parameters":[{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false},{"name":"itemsPerPage","in":"query","description":"The number of items per page","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":50,"minimum":0,"maximum":100},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"post":{"operationId":"api_trips_post","tags":["Trip"],"responses":{"201":{"description":"Trip resource created","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Trip.jsonld"}}},"links":{}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"}},"summary":"Creates a Trip resource.","description":"Creates a Trip resource.","parameters":[],"requestBody":{"description":"The new Trip resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Trip.jsonld"}}},"required":true},"deprecated":false}},"\/api\/trips\/{id}":{"get":{"operationId":"api_trips_id_get","tags":["Trip"],"responses":{"200":{"description":"Trip resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Trip.jsonld"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a Trip resource.","description":"Retrieves a Trip resource.","parameters":[{"name":"id","in":"path","description":"Trip identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"patch":{"operationId":"api_trips_id_patch","tags":["Trip"],"responses":{"200":{"description":"Trip resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Trip.jsonld"}}},"links":{}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Updates the Trip resource.","description":"Updates the Trip resource.","parameters":[{"name":"id","in":"path","description":"Trip identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated Trip resource","content":{"application\/merge-patch+json":{"schema":{"$ref":"#\/components\/schemas\/Trip"}}},"required":true},"deprecated":false}},"\/api\/trip_locations":{"get":{"operationId":"api_trip_locations_get_collection","tags":["TripLocation"],"responses":{"200":{"description":"TripLocation collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"member":{"type":"array","items":{"$ref":"#\/components\/schemas\/TripLocation.jsonld"}},"totalItems":{"type":"integer","minimum":0},"view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"first":{"type":"string","format":"iri-reference"},"last":{"type":"string","format":"iri-reference"},"previous":{"type":"string","format":"iri-reference"},"next":{"type":"string","format":"iri-reference"}},"example":{"@id":"string","type":"string","first":"string","last":"string","previous":"string","next":"string"}},"search":{"type":"object","properties":{"@type":{"type":"string"},"template":{"type":"string"},"variableRepresentation":{"type":"string"},"mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":["string","null"]},"required":{"type":"boolean"}}}}}}},"required":["member"]}}}}},"summary":"Retrieves the collection of TripLocation resources.","description":"Retrieves the collection of TripLocation resources.","parameters":[{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false},{"name":"itemsPerPage","in":"query","description":"The number of items per page","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":50,"minimum":0,"maximum":100},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"post":{"operationId":"api_trip_locations_post","tags":["TripLocation"],"responses":{"201":{"description":"TripLocation resource created","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/TripLocation.jsonld"}}},"links":{}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"}},"summary":"Creates a TripLocation resource.","description":"Creates a TripLocation resource.","parameters":[],"requestBody":{"description":"The new TripLocation resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/TripLocation.jsonld"}}},"required":true},"deprecated":false}},"\/api\/trip_locations\/{id}":{"get":{"operationId":"api_trip_locations_id_get","tags":["TripLocation"],"responses":{"200":{"description":"TripLocation resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/TripLocation.jsonld"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a TripLocation resource.","description":"Retrieves a TripLocation resource.","parameters":[{"name":"id","in":"path","description":"TripLocation identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"patch":{"operationId":"api_trip_locations_id_patch","tags":["TripLocation"],"responses":{"200":{"description":"TripLocation resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/TripLocation.jsonld"}}},"links":{}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Updates the TripLocation resource.","description":"Updates the TripLocation resource.","parameters":[{"name":"id","in":"path","description":"TripLocation identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated TripLocation resource","content":{"application\/merge-patch+json":{"schema":{"$ref":"#\/components\/schemas\/TripLocation"}}},"required":true},"deprecated":false}},"\/api\/users":{"get":{"operationId":"api_users_get_collection","tags":["User"],"responses":{"200":{"description":"User collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"member":{"type":"array","items":{"$ref":"#\/components\/schemas\/User.jsonld"}},"totalItems":{"type":"integer","minimum":0},"view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"first":{"type":"string","format":"iri-reference"},"last":{"type":"string","format":"iri-reference"},"previous":{"type":"string","format":"iri-reference"},"next":{"type":"string","format":"iri-reference"}},"example":{"@id":"string","type":"string","first":"string","last":"string","previous":"string","next":"string"}},"search":{"type":"object","properties":{"@type":{"type":"string"},"template":{"type":"string"},"variableRepresentation":{"type":"string"},"mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":["string","null"]},"required":{"type":"boolean"}}}}}}},"required":["member"]}}}}},"summary":"Retrieves the collection of User resources.","description":"Retrieves the collection of User resources.","parameters":[{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false},{"name":"itemsPerPage","in":"query","description":"The number of items per page","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":50,"minimum":0,"maximum":100},"style":"form","explode":false,"allowReserved":false},{"name":"firstName","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"form","explode":false,"allowReserved":false},{"name":"lastName","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"form","explode":false,"allowReserved":false},{"name":"userNameSearch","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"form","explode":false,"allowReserved":false},{"name":"custom_json_order","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"post":{"operationId":"api_users_post","tags":["User"],"responses":{"201":{"description":"User resource created","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/User.jsonld"}}},"links":{}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"}},"summary":"Creates a User resource.","description":"Creates a User resource.","parameters":[],"requestBody":{"description":"The new User resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/User.jsonld"}}},"required":true},"deprecated":false}},"\/api\/users\/{id}":{"get":{"operationId":"api_users_id_get","tags":["User"],"responses":{"200":{"description":"User resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/User.jsonld"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a User resource.","description":"Retrieves a User resource.","parameters":[{"name":"id","in":"path","description":"User identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"patch":{"operationId":"api_users_id_patch","tags":["User"],"responses":{"200":{"description":"User resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/User.jsonld"}}},"links":{}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Updates the User resource.","description":"Updates the User resource.","parameters":[{"name":"id","in":"path","description":"User identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated User resource","content":{"application\/merge-patch+json":{"schema":{"$ref":"#\/components\/schemas\/User"}}},"required":true},"deprecated":false}},"\/api\/user_trips":{"get":{"operationId":"api_user_trips_get_collection","tags":["UserTrip"],"responses":{"200":{"description":"UserTrip collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"member":{"type":"array","items":{"$ref":"#\/components\/schemas\/UserTrip.jsonld"}},"totalItems":{"type":"integer","minimum":0},"view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"first":{"type":"string","format":"iri-reference"},"last":{"type":"string","format":"iri-reference"},"previous":{"type":"string","format":"iri-reference"},"next":{"type":"string","format":"iri-reference"}},"example":{"@id":"string","type":"string","first":"string","last":"string","previous":"string","next":"string"}},"search":{"type":"object","properties":{"@type":{"type":"string"},"template":{"type":"string"},"variableRepresentation":{"type":"string"},"mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":["string","null"]},"required":{"type":"boolean"}}}}}}},"required":["member"]}}}}},"summary":"Retrieves the collection of UserTrip resources.","description":"Retrieves the collection of UserTrip resources.","parameters":[{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false},{"name":"itemsPerPage","in":"query","description":"The number of items per page","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":50,"minimum":0,"maximum":100},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"post":{"operationId":"api_user_trips_post","tags":["UserTrip"],"responses":{"201":{"description":"UserTrip resource created","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/UserTrip.jsonld"}}},"links":{}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"}},"summary":"Creates a UserTrip resource.","description":"Creates a UserTrip resource.","parameters":[],"requestBody":{"description":"The new UserTrip resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/UserTrip.jsonld"}}},"required":true},"deprecated":false}},"\/api\/user_trips\/{id}":{"get":{"operationId":"api_user_trips_id_get","tags":["UserTrip"],"responses":{"200":{"description":"UserTrip resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/UserTrip.jsonld"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a UserTrip resource.","description":"Retrieves a UserTrip resource.","parameters":[{"name":"id","in":"path","description":"UserTrip identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"patch":{"operationId":"api_user_trips_id_patch","tags":["UserTrip"],"responses":{"200":{"description":"UserTrip resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/UserTrip.jsonld"}}},"links":{}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Updates the UserTrip resource.","description":"Updates the UserTrip resource.","parameters":[{"name":"id","in":"path","description":"UserTrip identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated UserTrip resource","content":{"application\/merge-patch+json":{"schema":{"$ref":"#\/components\/schemas\/UserTrip"}}},"required":true},"deprecated":false}},"\/api\/user_trip_locations":{"get":{"operationId":"api_user_trip_locations_get_collection","tags":["UserTripLocation"],"responses":{"200":{"description":"UserTripLocation collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"member":{"type":"array","items":{"$ref":"#\/components\/schemas\/UserTripLocation.jsonld"}},"totalItems":{"type":"integer","minimum":0},"view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"first":{"type":"string","format":"iri-reference"},"last":{"type":"string","format":"iri-reference"},"previous":{"type":"string","format":"iri-reference"},"next":{"type":"string","format":"iri-reference"}},"example":{"@id":"string","type":"string","first":"string","last":"string","previous":"string","next":"string"}},"search":{"type":"object","properties":{"@type":{"type":"string"},"template":{"type":"string"},"variableRepresentation":{"type":"string"},"mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":["string","null"]},"required":{"type":"boolean"}}}}}}},"required":["member"]}}}}},"summary":"Retrieves the collection of UserTripLocation resources.","description":"Retrieves the collection of UserTripLocation resources.","parameters":[{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false},{"name":"itemsPerPage","in":"query","description":"The number of items per page","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":50,"minimum":0,"maximum":100},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"post":{"operationId":"api_user_trip_locations_post","tags":["UserTripLocation"],"responses":{"201":{"description":"UserTripLocation resource created","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/UserTripLocation.jsonld"}}},"links":{}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"}},"summary":"Creates a UserTripLocation resource.","description":"Creates a UserTripLocation resource.","parameters":[],"requestBody":{"description":"The new UserTripLocation resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/UserTripLocation.jsonld"}}},"required":true},"deprecated":false}},"\/api\/user_trip_locations\/{id}":{"get":{"operationId":"api_user_trip_locations_id_get","tags":["UserTripLocation"],"responses":{"200":{"description":"UserTripLocation resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/UserTripLocation.jsonld"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a UserTripLocation resource.","description":"Retrieves a UserTripLocation resource.","parameters":[{"name":"id","in":"path","description":"UserTripLocation identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"patch":{"operationId":"api_user_trip_locations_id_patch","tags":["UserTripLocation"],"responses":{"200":{"description":"UserTripLocation resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/UserTripLocation.jsonld"}}},"links":{}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Updates the UserTripLocation resource.","description":"Updates the UserTripLocation resource.","parameters":[{"name":"id","in":"path","description":"UserTripLocation identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated UserTripLocation resource","content":{"application\/merge-patch+json":{"schema":{"$ref":"#\/components\/schemas\/UserTripLocation"}}},"required":true},"deprecated":false}},"\/api\/user_trip_work_logs":{"get":{"operationId":"api_user_trip_work_logs_get_collection","tags":["UserTripWorkLog"],"responses":{"200":{"description":"UserTripWorkLog collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"member":{"type":"array","items":{"$ref":"#\/components\/schemas\/UserTripWorkLog.jsonld"}},"totalItems":{"type":"integer","minimum":0},"view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"first":{"type":"string","format":"iri-reference"},"last":{"type":"string","format":"iri-reference"},"previous":{"type":"string","format":"iri-reference"},"next":{"type":"string","format":"iri-reference"}},"example":{"@id":"string","type":"string","first":"string","last":"string","previous":"string","next":"string"}},"search":{"type":"object","properties":{"@type":{"type":"string"},"template":{"type":"string"},"variableRepresentation":{"type":"string"},"mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":["string","null"]},"required":{"type":"boolean"}}}}}}},"required":["member"]}}}}},"summary":"Retrieves the collection of UserTripWorkLog resources.","description":"Retrieves the collection of UserTripWorkLog resources.","parameters":[{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false},{"name":"itemsPerPage","in":"query","description":"The number of items per page","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":50,"minimum":0,"maximum":100},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"post":{"operationId":"api_user_trip_work_logs_post","tags":["UserTripWorkLog"],"responses":{"201":{"description":"UserTripWorkLog resource created","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/UserTripWorkLog.jsonld"}}},"links":{}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"}},"summary":"Creates a UserTripWorkLog resource.","description":"Creates a UserTripWorkLog resource.","parameters":[],"requestBody":{"description":"The new UserTripWorkLog resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/UserTripWorkLog.jsonld"}}},"required":true},"deprecated":false}},"\/api\/user_trip_work_logs\/{id}":{"get":{"operationId":"api_user_trip_work_logs_id_get","tags":["UserTripWorkLog"],"responses":{"200":{"description":"UserTripWorkLog resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/UserTripWorkLog.jsonld"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a UserTripWorkLog resource.","description":"Retrieves a UserTripWorkLog resource.","parameters":[{"name":"id","in":"path","description":"UserTripWorkLog identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"patch":{"operationId":"api_user_trip_work_logs_id_patch","tags":["UserTripWorkLog"],"responses":{"200":{"description":"UserTripWorkLog resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/UserTripWorkLog.jsonld"}}},"links":{}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Updates the UserTripWorkLog resource.","description":"Updates the UserTripWorkLog resource.","parameters":[{"name":"id","in":"path","description":"UserTripWorkLog identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated UserTripWorkLog resource","content":{"application\/merge-patch+json":{"schema":{"$ref":"#\/components\/schemas\/UserTripWorkLog"}}},"required":true},"deprecated":false}},"\/api\/vessels":{"get":{"operationId":"api_vessels_get_collection","tags":["Vessel"],"responses":{"200":{"description":"Vessel collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"member":{"type":"array","items":{"$ref":"#\/components\/schemas\/Vessel.jsonld"}},"totalItems":{"type":"integer","minimum":0},"view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"first":{"type":"string","format":"iri-reference"},"last":{"type":"string","format":"iri-reference"},"previous":{"type":"string","format":"iri-reference"},"next":{"type":"string","format":"iri-reference"}},"example":{"@id":"string","type":"string","first":"string","last":"string","previous":"string","next":"string"}},"search":{"type":"object","properties":{"@type":{"type":"string"},"template":{"type":"string"},"variableRepresentation":{"type":"string"},"mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":["string","null"]},"required":{"type":"boolean"}}}}}}},"required":["member"]}}}}},"summary":"Retrieves the collection of Vessel resources.","description":"Retrieves the collection of Vessel resources.","parameters":[{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false},{"name":"itemsPerPage","in":"query","description":"The number of items per page","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":50,"minimum":0,"maximum":100},"style":"form","explode":false,"allowReserved":false},{"name":"name","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"form","explode":false,"allowReserved":false},{"name":"custom_json_filter","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"form","explode":false,"allowReserved":false},{"name":"custom_json_order","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"post":{"operationId":"api_vessels_post","tags":["Vessel"],"responses":{"201":{"description":"Vessel resource created","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Vessel.jsonld"}}},"links":{}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"}},"summary":"Creates a Vessel resource.","description":"Creates a Vessel resource.","parameters":[],"requestBody":{"description":"The new Vessel resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Vessel.jsonld"}}},"required":true},"deprecated":false}},"\/api\/vessels\/{id}":{"get":{"operationId":"api_vessels_id_get","tags":["Vessel"],"responses":{"200":{"description":"Vessel resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Vessel.jsonld"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a Vessel resource.","description":"Retrieves a Vessel resource.","parameters":[{"name":"id","in":"path","description":"Vessel identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"patch":{"operationId":"api_vessels_id_patch","tags":["Vessel"],"responses":{"200":{"description":"Vessel resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Vessel.jsonld"}}},"links":{}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Updates the Vessel resource.","description":"Updates the Vessel resource.","parameters":[{"name":"id","in":"path","description":"Vessel identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated Vessel resource","content":{"application\/merge-patch+json":{"schema":{"$ref":"#\/components\/schemas\/Vessel"}}},"required":true},"deprecated":false}},"\/api\/zones":{"get":{"operationId":"api_zones_get_collection","tags":["Zone"],"responses":{"200":{"description":"Zone collection","content":{"application\/ld+json":{"schema":{"type":"object","properties":{"member":{"type":"array","items":{"$ref":"#\/components\/schemas\/Zone.jsonld"}},"totalItems":{"type":"integer","minimum":0},"view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"first":{"type":"string","format":"iri-reference"},"last":{"type":"string","format":"iri-reference"},"previous":{"type":"string","format":"iri-reference"},"next":{"type":"string","format":"iri-reference"}},"example":{"@id":"string","type":"string","first":"string","last":"string","previous":"string","next":"string"}},"search":{"type":"object","properties":{"@type":{"type":"string"},"template":{"type":"string"},"variableRepresentation":{"type":"string"},"mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":["string","null"]},"required":{"type":"boolean"}}}}}}},"required":["member"]}}}}},"summary":"Retrieves the collection of Zone resources.","description":"Retrieves the collection of Zone resources.","parameters":[{"name":"page","in":"query","description":"The collection page number","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":1},"style":"form","explode":false,"allowReserved":false},{"name":"itemsPerPage","in":"query","description":"The number of items per page","required":false,"deprecated":false,"allowEmptyValue":true,"schema":{"type":"integer","default":50,"minimum":0,"maximum":100},"style":"form","explode":false,"allowReserved":false},{"name":"name","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"form","explode":false,"allowReserved":false},{"name":"custom_json_filter","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"form","explode":false,"allowReserved":false},{"name":"custom_json_order","in":"query","description":"","required":false,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"form","explode":false,"allowReserved":false}],"deprecated":false},"post":{"operationId":"api_zones_post","tags":["Zone"],"responses":{"201":{"description":"Zone resource created","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Zone.jsonld"}}},"links":{}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"}},"summary":"Creates a Zone resource.","description":"Creates a Zone resource.","parameters":[],"requestBody":{"description":"The new Zone resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Zone.jsonld"}}},"required":true},"deprecated":false}},"\/api\/zones\/{id}":{"get":{"operationId":"api_zones_id_get","tags":["Zone"],"responses":{"200":{"description":"Zone resource","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Zone.jsonld"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a Zone resource.","description":"Retrieves a Zone resource.","parameters":[{"name":"id","in":"path","description":"Zone identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"patch":{"operationId":"api_zones_id_patch","tags":["Zone"],"responses":{"200":{"description":"Zone resource updated","content":{"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Zone.jsonld"}}},"links":{}},"400":{"description":"Invalid input"},"422":{"description":"Unprocessable entity"},"404":{"description":"Resource not found"}},"summary":"Updates the Zone resource.","description":"Updates the Zone resource.","parameters":[{"name":"id","in":"path","description":"Zone identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"requestBody":{"description":"The updated Zone resource","content":{"application\/merge-patch+json":{"schema":{"$ref":"#\/components\/schemas\/Zone"}}},"required":true},"deprecated":false}}},"components":{"schemas":{"Location":{"type":"object","description":"","deprecated":false,"properties":{"zone":{"readOnly":true,"type":"string","format":"iri-reference","example":"https:\/\/example.com\/"},"name":{"type":"string"},"zoneName":{"readOnly":true,"type":"string"},"createdAt":{"readOnly":true,"type":["string","null"],"format":"date-time"}},"required":["name"]},"Location.jsonld":{"type":"object","description":"","deprecated":false,"properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"zone":{"readOnly":true,"$ref":"#\/components\/schemas\/Zone.jsonld"},"name":{"type":"string"},"zoneName":{"readOnly":true,"type":"string"},"createdAt":{"readOnly":true,"type":["string","null"],"format":"date-time"}},"required":["name"]},"MediaObject.jsonld-media_object.read":{"type":"object","description":"","deprecated":false,"externalDocs":{"url":"https:\/\/schema.org\/MediaObject"},"properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"contentUrl":{"externalDocs":{"url":"https:\/\/schema.org\/contentUrl"},"type":["string","null"]}}},"ShippingCompany":{"type":"object","description":"","deprecated":false,"required":["name"],"properties":{"name":{"type":"string"},"createdAt":{"readOnly":true,"type":["string","null"],"format":"date-time"}}},"ShippingCompany.jsonld":{"type":"object","description":"","deprecated":false,"required":["name"],"properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"name":{"type":"string"},"createdAt":{"readOnly":true,"type":["string","null"],"format":"date-time"}}},"Trip":{"type":"object","description":"","deprecated":false,"properties":{"vessel":{"readOnly":true,"type":"string","format":"iri-reference","example":"https:\/\/example.com\/"},"pilotReference":{"type":"string"},"captainName":{"type":["string","null"]},"startLocation":{"readOnly":true,"type":"string","format":"iri-reference","example":"https:\/\/example.com\/"},"endLocation":{"readOnly":true,"type":"string","format":"iri-reference","example":"https:\/\/example.com\/"},"startDate":{"type":["string","null"],"format":"date-time"},"endDate":{"type":["string","null"],"format":"date-time"},"createdAt":{"readOnly":true,"type":["string","null"],"format":"date-time"}},"required":["pilotReference","startDate","endDate"]},"Trip.jsonld":{"type":"object","description":"","deprecated":false,"properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"vessel":{"readOnly":true,"$ref":"#\/components\/schemas\/Vessel.jsonld"},"pilotReference":{"type":"string"},"captainName":{"type":["string","null"]},"startLocation":{"readOnly":true,"$ref":"#\/components\/schemas\/Location.jsonld"},"endLocation":{"readOnly":true,"$ref":"#\/components\/schemas\/Location.jsonld"},"startDate":{"type":["string","null"],"format":"date-time"},"endDate":{"type":["string","null"],"format":"date-time"},"createdAt":{"readOnly":true,"type":["string","null"],"format":"date-time"}},"required":["pilotReference","startDate","endDate"]},"TripLocation":{"type":"object","description":"","deprecated":false,"properties":{"trip":{"readOnly":true,"type":"string","format":"iri-reference","example":"https:\/\/example.com\/"},"location":{"readOnly":true,"type":"string","format":"iri-reference","example":"https:\/\/example.com\/"},"date":{"type":["string","null"],"format":"date-time"},"createdAt":{"readOnly":true,"type":["string","null"],"format":"date-time"}},"required":["date"]},"TripLocation.jsonld":{"type":"object","description":"","deprecated":false,"properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"trip":{"readOnly":true,"$ref":"#\/components\/schemas\/Trip.jsonld"},"location":{"readOnly":true,"$ref":"#\/components\/schemas\/Location.jsonld"},"date":{"type":["string","null"],"format":"date-time"},"createdAt":{"readOnly":true,"type":["string","null"],"format":"date-time"}},"required":["date"]},"User":{"type":"object","description":"","deprecated":false,"required":["email","firstName","lastName"],"properties":{"email":{"format":"email","externalDocs":{"url":"https:\/\/schema.org\/email"},"type":["string","null"]},"firstName":{"type":["string","null"]},"lastName":{"type":["string","null"]},"image":{"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"imageUrl":{"readOnly":true,"type":["string","null"]},"fullName":{"readOnly":true,"type":["string","null"]},"password":{"writeOnly":true,"description":"The plaintext password when being set or changed.","type":["string","null"]},"active":{"type":"boolean"},"createdAt":{"readOnly":true,"type":["string","null"],"format":"date-time"}}},"User.jsonld":{"type":"object","description":"","deprecated":false,"required":["email","firstName","lastName"],"properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"email":{"format":"email","externalDocs":{"url":"https:\/\/schema.org\/email"},"type":["string","null"]},"firstName":{"type":["string","null"]},"lastName":{"type":["string","null"]},"image":{"type":["string","null"],"format":"iri-reference","example":"https:\/\/example.com\/"},"imageUrl":{"readOnly":true,"type":["string","null"]},"fullName":{"readOnly":true,"type":["string","null"]},"password":{"writeOnly":true,"description":"The plaintext password when being set or changed.","type":["string","null"]},"active":{"type":"boolean"},"createdAt":{"readOnly":true,"type":["string","null"],"format":"date-time"}}},"UserTrip":{"type":"object","description":"","deprecated":false,"properties":{"trip":{"readOnly":true,"type":"string","format":"iri-reference","example":"https:\/\/example.com\/"},"user":{"readOnly":true,"type":"string","format":"iri-reference","example":"https:\/\/example.com\/"},"captainName":{"type":"string"},"startDate":{"type":["string","null"],"format":"date-time"},"endDate":{"type":["string","null"],"format":"date-time"},"createdAt":{"readOnly":true,"type":["string","null"],"format":"date-time"}},"required":["captainName","startDate","endDate"]},"UserTrip.jsonld":{"type":"object","description":"","deprecated":false,"properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"trip":{"readOnly":true,"$ref":"#\/components\/schemas\/Trip.jsonld"},"user":{"readOnly":true,"$ref":"#\/components\/schemas\/User.jsonld"},"captainName":{"type":"string"},"startDate":{"type":["string","null"],"format":"date-time"},"endDate":{"type":["string","null"],"format":"date-time"},"createdAt":{"readOnly":true,"type":["string","null"],"format":"date-time"}},"required":["captainName","startDate","endDate"]},"UserTripLocation":{"type":"object","description":"","deprecated":false,"properties":{"userTrip":{"readOnly":true,"type":"string","format":"iri-reference","example":"https:\/\/example.com\/"},"location":{"readOnly":true,"type":"string","format":"iri-reference","example":"https:\/\/example.com\/"},"plannedDate":{"type":["string","null"],"format":"date-time"},"createdAt":{"readOnly":true,"type":["string","null"],"format":"date-time"}},"required":["plannedDate"]},"UserTripLocation.jsonld":{"type":"object","description":"","deprecated":false,"properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"userTrip":{"readOnly":true,"$ref":"#\/components\/schemas\/UserTrip.jsonld"},"location":{"readOnly":true,"$ref":"#\/components\/schemas\/Location.jsonld"},"plannedDate":{"type":["string","null"],"format":"date-time"},"createdAt":{"readOnly":true,"type":["string","null"],"format":"date-time"}},"required":["plannedDate"]},"UserTripWorkLog":{"type":"object","description":"","deprecated":false,"properties":{"userTrip":{"readOnly":true,"type":"string","format":"iri-reference","example":"https:\/\/example.com\/"},"startLocation":{"readOnly":true,"type":"string","format":"iri-reference","example":"https:\/\/example.com\/"},"endLocation":{"readOnly":true,"type":"string","format":"iri-reference","example":"https:\/\/example.com\/"},"startDate":{"type":["string","null"],"format":"date-time"},"endDate":{"type":["string","null"],"format":"date-time"},"createdAt":{"readOnly":true,"type":["string","null"],"format":"date-time"}},"required":["startDate","endDate"]},"UserTripWorkLog.jsonld":{"type":"object","description":"","deprecated":false,"properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"userTrip":{"readOnly":true,"$ref":"#\/components\/schemas\/UserTrip.jsonld"},"startLocation":{"readOnly":true,"$ref":"#\/components\/schemas\/Location.jsonld"},"endLocation":{"readOnly":true,"$ref":"#\/components\/schemas\/Location.jsonld"},"startDate":{"type":["string","null"],"format":"date-time"},"endDate":{"type":["string","null"],"format":"date-time"},"createdAt":{"readOnly":true,"type":["string","null"],"format":"date-time"}},"required":["startDate","endDate"]},"Vessel":{"type":"object","description":"","deprecated":false,"required":["name"],"properties":{"name":{"type":"string"},"company":{"readOnly":true,"type":"string","format":"iri-reference","example":"https:\/\/example.com\/"},"createdAt":{"readOnly":true,"type":["string","null"],"format":"date-time"}}},"Vessel.jsonld":{"type":"object","description":"","deprecated":false,"required":["name"],"properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"name":{"type":"string"},"company":{"readOnly":true,"$ref":"#\/components\/schemas\/ShippingCompany.jsonld"},"createdAt":{"readOnly":true,"type":["string","null"],"format":"date-time"}}},"Zone":{"type":"object","description":"","deprecated":false,"required":["name"],"properties":{"name":{"type":"string"},"createdAt":{"readOnly":true,"type":["string","null"],"format":"date-time"}}},"Zone.jsonld":{"type":"object","description":"","deprecated":false,"required":["name"],"properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"name":{"type":"string"},"createdAt":{"readOnly":true,"type":["string","null"],"format":"date-time"}}}},"responses":{},"parameters":{},"examples":{},"requestBodies":{},"headers":{},"securitySchemes":{"JWT":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"security":[{"JWT":[]}],"tags":[],"webhooks":{}} \ No newline at end of file diff --git a/angular/openapi.yaml b/angular/openapi.yaml index 61a0f90..d685c83 100644 --- a/angular/openapi.yaml +++ b/angular/openapi.yaml @@ -1,6 +1,6 @@ openapi: 3.1.0 info: - title: 'Hello API Platform' + title: 'Imaq Platform' description: '' version: 1.0.0 servers: @@ -8,27 +8,27 @@ servers: url: / description: '' paths: - /api/account_trade_pile_items: + /api/locations: get: - operationId: api_account_trade_pile_items_get_collection + operationId: api_locations_get_collection tags: - - AccountTradePileItem + - Location responses: - 200: - description: 'AccountTradePileItem collection' + '200': + description: 'Location collection' content: application/ld+json: schema: type: object properties: - 'hydra:member': { type: array, items: { $ref: '#/components/schemas/AccountTradePileItem.jsonld' } } - 'hydra:totalItems': { type: integer, minimum: 0 } - 'hydra:view': { type: object, properties: { '@id': { type: string, format: iri-reference }, '@type': { type: string }, 'hydra:first': { type: string, format: iri-reference }, 'hydra:last': { type: string, format: iri-reference }, 'hydra:previous': { type: string, format: iri-reference }, 'hydra:next': { type: string, format: iri-reference } }, example: { '@id': string, type: string, 'hydra:first': string, 'hydra:last': string, 'hydra:previous': string, 'hydra:next': string } } - 'hydra:search': { type: object, properties: { '@type': { type: string }, 'hydra:template': { type: string }, 'hydra:variableRepresentation': { type: string }, 'hydra:mapping': { type: array, items: { type: object, properties: { '@type': { type: string }, variable: { type: string }, property: { type: [string, 'null'] }, required: { type: boolean } } } } } } + member: { type: array, items: { $ref: '#/components/schemas/Location.jsonld' } } + totalItems: { type: integer, minimum: 0 } + view: { type: object, properties: { '@id': { type: string, format: iri-reference }, '@type': { type: string }, first: { type: string, format: iri-reference }, last: { type: string, format: iri-reference }, previous: { type: string, format: iri-reference }, next: { type: string, format: iri-reference } }, example: { '@id': string, type: string, first: string, last: string, previous: string, next: string } } + search: { type: object, properties: { '@type': { type: string }, template: { type: string }, variableRepresentation: { type: string }, mapping: { type: array, items: { type: object, properties: { '@type': { type: string }, variable: { type: string }, property: { type: [string, 'null'] }, required: { type: boolean } } } } } } required: - - 'hydra:member' - summary: 'Retrieves the collection of AccountTradePileItem resources.' - description: 'Retrieves the collection of AccountTradePileItem resources.' + - member + summary: 'Retrieves the collection of Location resources.' + description: 'Retrieves the collection of Location resources.' parameters: - name: page @@ -59,88 +59,24 @@ paths: explode: false allowReserved: false - - name: account + name: name in: query description: '' required: false deprecated: false - allowEmptyValue: true - schema: - type: string - style: form - explode: false - allowReserved: false - - - name: 'account[]' - in: query - description: '' - required: false - deprecated: false - allowEmptyValue: true - schema: - type: array - items: - type: string - style: form - explode: true - allowReserved: false - - - name: candidateItem - in: query - description: '' - required: false - deprecated: false - allowEmptyValue: true - schema: - type: string - style: form - explode: false - allowReserved: false - - - name: 'candidateItem[]' - in: query - description: '' - required: false - deprecated: false - allowEmptyValue: true - schema: - type: array - items: - type: string - style: form - explode: true - allowReserved: false - - - name: candidateNameSearch - in: query - description: '' - required: false - deprecated: false - allowEmptyValue: true + allowEmptyValue: false schema: type: string style: form explode: false allowReserved: false - - - name: accountTmOpenFilter - in: query - description: 'Filter items based on the tmOpen value of the associated account' - required: false - deprecated: false - allowEmptyValue: true - schema: - type: boolean - style: form - explode: false - allowReserved: false - name: custom_json_filter in: query description: '' required: false deprecated: false - allowEmptyValue: true + allowEmptyValue: false schema: type: string style: form @@ -152,36 +88,61 @@ paths: description: '' required: false deprecated: false - allowEmptyValue: true + allowEmptyValue: false schema: type: string style: form explode: false allowReserved: false - example: '{"active":"cntSoldItems","direction":"desc","listColDefinition":{"field":"cntSoldItems","sortingSubResource":"tradePileItems","countSortSubresource":true,"countSortSubresourceValue":["closed"],"countSortSubresourceField":"tradeState","countSortFilterSubResource":"account","countSortFilterSubresourceField":"tmOpen","countSortFilterSubresourceValue":"0"}}' deprecated: false - parameters: [] - '/api/account_trade_pile_items/{id}': + post: + operationId: api_locations_post + tags: + - Location + responses: + '201': + description: 'Location resource created' + content: + application/ld+json: + schema: + $ref: '#/components/schemas/Location.jsonld' + links: { } + '400': + description: 'Invalid input' + '422': + description: 'Unprocessable entity' + summary: 'Creates a Location resource.' + description: 'Creates a Location resource.' + parameters: [] + requestBody: + description: 'The new Location resource' + content: + application/ld+json: + schema: + $ref: '#/components/schemas/Location.jsonld' + required: true + deprecated: false + '/api/locations/{id}': get: - operationId: api_account_trade_pile_items_id_get + operationId: api_locations_id_get tags: - - AccountTradePileItem + - Location responses: - 200: - description: 'AccountTradePileItem resource' + '200': + description: 'Location resource' content: application/ld+json: schema: - $ref: '#/components/schemas/AccountTradePileItem.jsonld' - 404: + $ref: '#/components/schemas/Location.jsonld' + '404': description: 'Resource not found' - summary: 'Retrieves a AccountTradePileItem resource.' - description: 'Retrieves a AccountTradePileItem resource.' + summary: 'Retrieves a Location resource.' + description: 'Retrieves a Location resource.' parameters: - name: id in: path - description: 'AccountTradePileItem identifier' + description: 'Location identifier' required: true deprecated: false allowEmptyValue: false @@ -192,30 +153,30 @@ paths: allowReserved: false deprecated: false patch: - operationId: api_account_trade_pile_items_id_patch + operationId: api_locations_id_patch tags: - - AccountTradePileItem + - Location responses: - 200: - description: 'AccountTradePileItem resource updated' + '200': + description: 'Location resource updated' content: application/ld+json: schema: - $ref: '#/components/schemas/AccountTradePileItem.jsonld' + $ref: '#/components/schemas/Location.jsonld' links: { } - 400: + '400': description: 'Invalid input' - 422: + '422': description: 'Unprocessable entity' - 404: + '404': description: 'Resource not found' - summary: 'Updates the AccountTradePileItem resource.' - description: 'Updates the AccountTradePileItem resource.' + summary: 'Updates the Location resource.' + description: 'Updates the Location resource.' parameters: - name: id in: path - description: 'AccountTradePileItem identifier' + description: 'Location identifier' required: true deprecated: false allowEmptyValue: false @@ -225,21 +186,20 @@ paths: explode: false allowReserved: false requestBody: - description: 'The updated AccountTradePileItem resource' + description: 'The updated Location resource' content: application/merge-patch+json: schema: - $ref: '#/components/schemas/AccountTradePileItem' + $ref: '#/components/schemas/Location' required: true deprecated: false - parameters: [] /api/auth: post: operationId: login_check_post tags: - 'Login Check' responses: - 200: + '200': description: 'User token created' content: application/json: @@ -268,59 +228,27 @@ paths: - email - password required: true - parameters: [] - '/api/candidate-items/{id}/stock-accounts': - get: - operationId: api_candidate-items_idstock-accounts_get - tags: - - CandidateStockAccounts - responses: - 200: - description: 'CandidateStockAccounts resource' - content: - application/ld+json: - schema: - $ref: '#/components/schemas/CandidateStockAccounts.jsonld' - 404: - description: 'Resource not found' - summary: 'Retrieves the stock and missing accounts for a candidate item' - description: 'Retrieves a CandidateStockAccounts resource.' - parameters: - - - name: id - in: path - description: 'Candidate Item ID' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: integer - style: simple - explode: false - allowReserved: false - deprecated: false - parameters: [] - /api/candidate_stats: + /api/media_objects: get: - operationId: api_candidate_stats_get_collection + operationId: api_media_objects_get_collection tags: - - CandidateStat + - MediaObject responses: - 200: - description: 'CandidateStat collection' + '200': + description: 'MediaObject collection' content: application/ld+json: schema: type: object properties: - 'hydra:member': { type: array, items: { $ref: '#/components/schemas/CandidateStat.jsonld' } } - 'hydra:totalItems': { type: integer, minimum: 0 } - 'hydra:view': { type: object, properties: { '@id': { type: string, format: iri-reference }, '@type': { type: string }, 'hydra:first': { type: string, format: iri-reference }, 'hydra:last': { type: string, format: iri-reference }, 'hydra:previous': { type: string, format: iri-reference }, 'hydra:next': { type: string, format: iri-reference } }, example: { '@id': string, type: string, 'hydra:first': string, 'hydra:last': string, 'hydra:previous': string, 'hydra:next': string } } - 'hydra:search': { type: object, properties: { '@type': { type: string }, 'hydra:template': { type: string }, 'hydra:variableRepresentation': { type: string }, 'hydra:mapping': { type: array, items: { type: object, properties: { '@type': { type: string }, variable: { type: string }, property: { type: [string, 'null'] }, required: { type: boolean } } } } } } + member: { type: array, items: { $ref: '#/components/schemas/MediaObject.jsonld-media_object.read' } } + totalItems: { type: integer, minimum: 0 } + view: { type: object, properties: { '@id': { type: string, format: iri-reference }, '@type': { type: string }, first: { type: string, format: iri-reference }, last: { type: string, format: iri-reference }, previous: { type: string, format: iri-reference }, next: { type: string, format: iri-reference } }, example: { '@id': string, type: string, first: string, last: string, previous: string, next: string } } + search: { type: object, properties: { '@type': { type: string }, template: { type: string }, variableRepresentation: { type: string }, mapping: { type: array, items: { type: object, properties: { '@type': { type: string }, variable: { type: string }, property: { type: [string, 'null'] }, required: { type: boolean } } } } } } required: - - 'hydra:member' - summary: 'Retrieves the collection of CandidateStat resources.' - description: 'Retrieves the collection of CandidateStat resources.' + - member + summary: 'Retrieves the collection of MediaObject resources.' + description: 'Retrieves the collection of MediaObject resources.' parameters: - name: page @@ -350,54 +278,84 @@ paths: style: form explode: false allowReserved: false + deprecated: false + post: + operationId: api_media_objects_post + tags: + - MediaObject + responses: + '201': + description: 'MediaObject resource created' + content: + application/ld+json: + schema: + $ref: '#/components/schemas/MediaObject.jsonld-media_object.read' + links: { } + '400': + description: 'Invalid input' + '422': + description: 'Unprocessable entity' + summary: 'Creates a MediaObject resource.' + description: 'Creates a MediaObject resource.' + parameters: [] + requestBody: + description: 'The new MediaObject resource' + content: + multipart/form-data: + schema: + type: object + properties: + file: + type: string + format: binary + required: false + deprecated: false + '/api/media_objects/{id}': + get: + operationId: api_media_objects_id_get + tags: + - MediaObject + responses: + '200': + description: 'MediaObject resource' + content: + application/ld+json: + schema: + $ref: '#/components/schemas/MediaObject.jsonld-media_object.read' + '404': + description: 'Resource not found' + summary: 'Retrieves a MediaObject resource.' + description: 'Retrieves a MediaObject resource.' + parameters: - - name: candidateNameSearch - in: query - description: '' - required: false - deprecated: false - allowEmptyValue: true - schema: - type: string - style: form - explode: false - allowReserved: false - - - name: custom_json_order - in: query - description: '' - required: false + name: id + in: path + description: 'MediaObject identifier' + required: true deprecated: false - allowEmptyValue: true + allowEmptyValue: false schema: type: string - style: form + style: simple explode: false allowReserved: false - example: '{"active":"cntSoldItems","direction":"desc","listColDefinition":{"field":"cntSoldItems","sortingSubResource":"tradePileItems","countSortSubresource":true,"countSortSubresourceValue":["closed"],"countSortSubresourceField":"tradeState","countSortFilterSubResource":"account","countSortFilterSubresourceField":"tmOpen","countSortFilterSubresourceValue":"0"}}' deprecated: false - parameters: [] - '/api/candidate_stats/{id}': - get: - operationId: api_candidate_stats_id_get + delete: + operationId: api_media_objects_id_delete tags: - - CandidateStat + - MediaObject responses: - 200: - description: 'CandidateStat resource' - content: - application/ld+json: - schema: - $ref: '#/components/schemas/CandidateStat.jsonld' - 404: + '204': + description: 'MediaObject resource deleted' + '404': description: 'Resource not found' - summary: 'Retrieves a CandidateStat resource.' - description: 'Retrieves a CandidateStat resource.' + summary: 'Removes the MediaObject resource.' + description: 'Removes the MediaObject resource.' parameters: - name: id in: path - description: 'CandidateStat identifier' + description: 'MediaObject identifier' required: true deprecated: false allowEmptyValue: false @@ -407,28 +365,27 @@ paths: explode: false allowReserved: false deprecated: false - parameters: [] - /api/candidates: + /api/shipping_companies: get: - operationId: api_candidates_get_collection + operationId: api_shipping_companies_get_collection tags: - - Candidate + - ShippingCompany responses: - 200: - description: 'Candidate collection' + '200': + description: 'ShippingCompany collection' content: application/ld+json: schema: type: object properties: - 'hydra:member': { type: array, items: { $ref: '#/components/schemas/Candidate.jsonld' } } - 'hydra:totalItems': { type: integer, minimum: 0 } - 'hydra:view': { type: object, properties: { '@id': { type: string, format: iri-reference }, '@type': { type: string }, 'hydra:first': { type: string, format: iri-reference }, 'hydra:last': { type: string, format: iri-reference }, 'hydra:previous': { type: string, format: iri-reference }, 'hydra:next': { type: string, format: iri-reference } }, example: { '@id': string, type: string, 'hydra:first': string, 'hydra:last': string, 'hydra:previous': string, 'hydra:next': string } } - 'hydra:search': { type: object, properties: { '@type': { type: string }, 'hydra:template': { type: string }, 'hydra:variableRepresentation': { type: string }, 'hydra:mapping': { type: array, items: { type: object, properties: { '@type': { type: string }, variable: { type: string }, property: { type: [string, 'null'] }, required: { type: boolean } } } } } } + member: { type: array, items: { $ref: '#/components/schemas/ShippingCompany.jsonld' } } + totalItems: { type: integer, minimum: 0 } + view: { type: object, properties: { '@id': { type: string, format: iri-reference }, '@type': { type: string }, first: { type: string, format: iri-reference }, last: { type: string, format: iri-reference }, previous: { type: string, format: iri-reference }, next: { type: string, format: iri-reference } }, example: { '@id': string, type: string, first: string, last: string, previous: string, next: string } } + search: { type: object, properties: { '@type': { type: string }, template: { type: string }, variableRepresentation: { type: string }, mapping: { type: array, items: { type: object, properties: { '@type': { type: string }, variable: { type: string }, property: { type: [string, 'null'] }, required: { type: boolean } } } } } } required: - - 'hydra:member' - summary: 'Retrieves the collection of Candidate resources.' - description: 'Retrieves the collection of Candidate resources.' + - member + summary: 'Retrieves the collection of ShippingCompany resources.' + description: 'Retrieves the collection of ShippingCompany resources.' parameters: - name: page @@ -459,12 +416,12 @@ paths: explode: false allowReserved: false - - name: candidateNameSearch + name: name in: query description: '' required: false deprecated: false - allowEmptyValue: true + allowEmptyValue: false schema: type: string style: form @@ -476,7 +433,7 @@ paths: description: '' required: false deprecated: false - allowEmptyValue: true + allowEmptyValue: false schema: type: string style: form @@ -488,63 +445,61 @@ paths: description: '' required: false deprecated: false - allowEmptyValue: true + allowEmptyValue: false schema: type: string style: form explode: false allowReserved: false - example: '{"active":"cntSoldItems","direction":"desc","listColDefinition":{"field":"cntSoldItems","sortingSubResource":"tradePileItems","countSortSubresource":true,"countSortSubresourceValue":["closed"],"countSortSubresourceField":"tradeState","countSortFilterSubResource":"account","countSortFilterSubresourceField":"tmOpen","countSortFilterSubresourceValue":"0"}}' deprecated: false post: - operationId: api_candidates_post + operationId: api_shipping_companies_post tags: - - Candidate + - ShippingCompany responses: - 201: - description: 'Candidate resource created' + '201': + description: 'ShippingCompany resource created' content: application/ld+json: schema: - $ref: '#/components/schemas/Candidate.jsonld' + $ref: '#/components/schemas/ShippingCompany.jsonld' links: { } - 400: + '400': description: 'Invalid input' - 422: + '422': description: 'Unprocessable entity' - summary: 'Creates a Candidate resource.' - description: 'Creates a Candidate resource.' + summary: 'Creates a ShippingCompany resource.' + description: 'Creates a ShippingCompany resource.' parameters: [] requestBody: - description: 'The new Candidate resource' + description: 'The new ShippingCompany resource' content: application/ld+json: schema: - $ref: '#/components/schemas/Candidate.jsonld' + $ref: '#/components/schemas/ShippingCompany.jsonld' required: true deprecated: false - parameters: [] - '/api/candidates/{id}': + '/api/shipping_companies/{id}': get: - operationId: api_candidates_id_get + operationId: api_shipping_companies_id_get tags: - - Candidate + - ShippingCompany responses: - 200: - description: 'Candidate resource' + '200': + description: 'ShippingCompany resource' content: application/ld+json: schema: - $ref: '#/components/schemas/Candidate.jsonld' - 404: + $ref: '#/components/schemas/ShippingCompany.jsonld' + '404': description: 'Resource not found' - summary: 'Retrieves a Candidate resource.' - description: 'Retrieves a Candidate resource.' + summary: 'Retrieves a ShippingCompany resource.' + description: 'Retrieves a ShippingCompany resource.' parameters: - name: id in: path - description: 'Candidate identifier' + description: 'ShippingCompany identifier' required: true deprecated: false allowEmptyValue: false @@ -555,30 +510,30 @@ paths: allowReserved: false deprecated: false patch: - operationId: api_candidates_id_patch + operationId: api_shipping_companies_id_patch tags: - - Candidate + - ShippingCompany responses: - 200: - description: 'Candidate resource updated' + '200': + description: 'ShippingCompany resource updated' content: application/ld+json: schema: - $ref: '#/components/schemas/Candidate.jsonld' + $ref: '#/components/schemas/ShippingCompany.jsonld' links: { } - 400: + '400': description: 'Invalid input' - 422: + '422': description: 'Unprocessable entity' - 404: + '404': description: 'Resource not found' - summary: 'Updates the Candidate resource.' - description: 'Updates the Candidate resource.' + summary: 'Updates the ShippingCompany resource.' + description: 'Updates the ShippingCompany resource.' parameters: - name: id in: path - description: 'Candidate identifier' + description: 'ShippingCompany identifier' required: true deprecated: false allowEmptyValue: false @@ -588,83 +543,34 @@ paths: explode: false allowReserved: false requestBody: - description: 'The updated Candidate resource' - content: - application/merge-patch+json: - schema: - $ref: '#/components/schemas/Candidate' - required: true - deprecated: false - parameters: [] - /api/config: - get: - operationId: api_config_get - tags: - - Config - responses: - 200: - description: 'Config resource' - content: - application/ld+json: - schema: - $ref: '#/components/schemas/Config.jsonld' - 404: - description: 'Resource not found' - summary: 'Retrieves a Config resource.' - description: 'Retrieves a Config resource.' - parameters: [] - deprecated: false - patch: - operationId: api_config_patch - tags: - - Config - responses: - 200: - description: 'Config resource updated' - content: - application/ld+json: - schema: - $ref: '#/components/schemas/Config.jsonld' - links: { } - 400: - description: 'Invalid input' - 422: - description: 'Unprocessable entity' - 404: - description: 'Resource not found' - summary: 'Updates the Config resource.' - description: 'Updates the Config resource.' - parameters: [] - requestBody: - description: 'The updated Config resource' + description: 'The updated ShippingCompany resource' content: application/merge-patch+json: schema: - $ref: '#/components/schemas/Config' + $ref: '#/components/schemas/ShippingCompany' required: true deprecated: false - parameters: [] - /api/game_accounts: + /api/trips: get: - operationId: api_game_accounts_get_collection + operationId: api_trips_get_collection tags: - - GameAccount + - Trip responses: - 200: - description: 'GameAccount collection' + '200': + description: 'Trip collection' content: application/ld+json: schema: type: object properties: - 'hydra:member': { type: array, items: { $ref: '#/components/schemas/GameAccount.jsonld' } } - 'hydra:totalItems': { type: integer, minimum: 0 } - 'hydra:view': { type: object, properties: { '@id': { type: string, format: iri-reference }, '@type': { type: string }, 'hydra:first': { type: string, format: iri-reference }, 'hydra:last': { type: string, format: iri-reference }, 'hydra:previous': { type: string, format: iri-reference }, 'hydra:next': { type: string, format: iri-reference } }, example: { '@id': string, type: string, 'hydra:first': string, 'hydra:last': string, 'hydra:previous': string, 'hydra:next': string } } - 'hydra:search': { type: object, properties: { '@type': { type: string }, 'hydra:template': { type: string }, 'hydra:variableRepresentation': { type: string }, 'hydra:mapping': { type: array, items: { type: object, properties: { '@type': { type: string }, variable: { type: string }, property: { type: [string, 'null'] }, required: { type: boolean } } } } } } + member: { type: array, items: { $ref: '#/components/schemas/Trip.jsonld' } } + totalItems: { type: integer, minimum: 0 } + view: { type: object, properties: { '@id': { type: string, format: iri-reference }, '@type': { type: string }, first: { type: string, format: iri-reference }, last: { type: string, format: iri-reference }, previous: { type: string, format: iri-reference }, next: { type: string, format: iri-reference } }, example: { '@id': string, type: string, first: string, last: string, previous: string, next: string } } + search: { type: object, properties: { '@type': { type: string }, template: { type: string }, variableRepresentation: { type: string }, mapping: { type: array, items: { type: object, properties: { '@type': { type: string }, variable: { type: string }, property: { type: [string, 'null'] }, required: { type: boolean } } } } } } required: - - 'hydra:member' - summary: 'Retrieves the collection of GameAccount resources.' - description: 'Retrieves the collection of GameAccount resources.' + - member + summary: 'Retrieves the collection of Trip resources.' + description: 'Retrieves the collection of Trip resources.' parameters: - name: page @@ -694,143 +600,204 @@ paths: style: form explode: false allowReserved: false + deprecated: false + post: + operationId: api_trips_post + tags: + - Trip + responses: + '201': + description: 'Trip resource created' + content: + application/ld+json: + schema: + $ref: '#/components/schemas/Trip.jsonld' + links: { } + '400': + description: 'Invalid input' + '422': + description: 'Unprocessable entity' + summary: 'Creates a Trip resource.' + description: 'Creates a Trip resource.' + parameters: [] + requestBody: + description: 'The new Trip resource' + content: + application/ld+json: + schema: + $ref: '#/components/schemas/Trip.jsonld' + required: true + deprecated: false + '/api/trips/{id}': + get: + operationId: api_trips_id_get + tags: + - Trip + responses: + '200': + description: 'Trip resource' + content: + application/ld+json: + schema: + $ref: '#/components/schemas/Trip.jsonld' + '404': + description: 'Resource not found' + summary: 'Retrieves a Trip resource.' + description: 'Retrieves a Trip resource.' + parameters: - - name: owner - in: query - description: '' - required: false + name: id + in: path + description: 'Trip identifier' + required: true deprecated: false - allowEmptyValue: true + allowEmptyValue: false schema: type: string - style: form + style: simple explode: false allowReserved: false + deprecated: false + patch: + operationId: api_trips_id_patch + tags: + - Trip + responses: + '200': + description: 'Trip resource updated' + content: + application/ld+json: + schema: + $ref: '#/components/schemas/Trip.jsonld' + links: { } + '400': + description: 'Invalid input' + '422': + description: 'Unprocessable entity' + '404': + description: 'Resource not found' + summary: 'Updates the Trip resource.' + description: 'Updates the Trip resource.' + parameters: - - name: 'owner[]' - in: query - description: '' - required: false - deprecated: false - allowEmptyValue: true - schema: - type: array - items: - type: string - style: form - explode: true - allowReserved: false - - - name: email - in: query - description: '' - required: false - deprecated: false - allowEmptyValue: true - schema: - type: string - style: form - explode: false - allowReserved: false - - - name: profile - in: query - description: '' - required: false + name: id + in: path + description: 'Trip identifier' + required: true deprecated: false - allowEmptyValue: true + allowEmptyValue: false schema: type: string - style: form - explode: false - allowReserved: false - - - name: tmOpen - in: query - description: '' - required: false - deprecated: false - allowEmptyValue: true - schema: - type: boolean - style: form + style: simple explode: false allowReserved: false + requestBody: + description: 'The updated Trip resource' + content: + application/merge-patch+json: + schema: + $ref: '#/components/schemas/Trip' + required: true + deprecated: false + /api/trip_locations: + get: + operationId: api_trip_locations_get_collection + tags: + - TripLocation + responses: + '200': + description: 'TripLocation collection' + content: + application/ld+json: + schema: + type: object + properties: + member: { type: array, items: { $ref: '#/components/schemas/TripLocation.jsonld' } } + totalItems: { type: integer, minimum: 0 } + view: { type: object, properties: { '@id': { type: string, format: iri-reference }, '@type': { type: string }, first: { type: string, format: iri-reference }, last: { type: string, format: iri-reference }, previous: { type: string, format: iri-reference }, next: { type: string, format: iri-reference } }, example: { '@id': string, type: string, first: string, last: string, previous: string, next: string } } + search: { type: object, properties: { '@type': { type: string }, template: { type: string }, variableRepresentation: { type: string }, mapping: { type: array, items: { type: object, properties: { '@type': { type: string }, variable: { type: string }, property: { type: [string, 'null'] }, required: { type: boolean } } } } } } + required: + - member + summary: 'Retrieves the collection of TripLocation resources.' + description: 'Retrieves the collection of TripLocation resources.' + parameters: - - name: custom_json_filter + name: page in: query - description: '' + description: 'The collection page number' required: false deprecated: false allowEmptyValue: true schema: - type: string + type: integer + default: 1 style: form explode: false allowReserved: false - - name: custom_json_order + name: itemsPerPage in: query - description: '' + description: 'The number of items per page' required: false deprecated: false allowEmptyValue: true schema: - type: string + type: integer + default: 50 + minimum: 0 + maximum: 100 style: form explode: false allowReserved: false - example: '{"active":"cntSoldItems","direction":"desc","listColDefinition":{"field":"cntSoldItems","sortingSubResource":"tradePileItems","countSortSubresource":true,"countSortSubresourceValue":["closed"],"countSortSubresourceField":"tradeState","countSortFilterSubResource":"account","countSortFilterSubresourceField":"tmOpen","countSortFilterSubresourceValue":"0"}}' deprecated: false post: - operationId: api_game_accounts_post + operationId: api_trip_locations_post tags: - - GameAccount + - TripLocation responses: - 201: - description: 'GameAccount resource created' + '201': + description: 'TripLocation resource created' content: application/ld+json: schema: - $ref: '#/components/schemas/GameAccount.jsonld' + $ref: '#/components/schemas/TripLocation.jsonld' links: { } - 400: + '400': description: 'Invalid input' - 422: + '422': description: 'Unprocessable entity' - summary: 'Creates a GameAccount resource.' - description: 'Creates a GameAccount resource.' + summary: 'Creates a TripLocation resource.' + description: 'Creates a TripLocation resource.' parameters: [] requestBody: - description: 'The new GameAccount resource' + description: 'The new TripLocation resource' content: application/ld+json: schema: - $ref: '#/components/schemas/GameAccount.jsonld' + $ref: '#/components/schemas/TripLocation.jsonld' required: true deprecated: false - parameters: [] - '/api/game_accounts/{id}': + '/api/trip_locations/{id}': get: - operationId: api_game_accounts_id_get + operationId: api_trip_locations_id_get tags: - - GameAccount + - TripLocation responses: - 200: - description: 'GameAccount resource' + '200': + description: 'TripLocation resource' content: application/ld+json: schema: - $ref: '#/components/schemas/GameAccount.jsonld' - 404: + $ref: '#/components/schemas/TripLocation.jsonld' + '404': description: 'Resource not found' - summary: 'Retrieves a GameAccount resource.' - description: 'Retrieves a GameAccount resource.' + summary: 'Retrieves a TripLocation resource.' + description: 'Retrieves a TripLocation resource.' parameters: - name: id in: path - description: 'GameAccount identifier' + description: 'TripLocation identifier' required: true deprecated: false allowEmptyValue: false @@ -841,30 +808,30 @@ paths: allowReserved: false deprecated: false patch: - operationId: api_game_accounts_id_patch + operationId: api_trip_locations_id_patch tags: - - GameAccount + - TripLocation responses: - 200: - description: 'GameAccount resource updated' + '200': + description: 'TripLocation resource updated' content: application/ld+json: schema: - $ref: '#/components/schemas/GameAccount.jsonld' + $ref: '#/components/schemas/TripLocation.jsonld' links: { } - 400: + '400': description: 'Invalid input' - 422: + '422': description: 'Unprocessable entity' - 404: + '404': description: 'Resource not found' - summary: 'Updates the GameAccount resource.' - description: 'Updates the GameAccount resource.' + summary: 'Updates the TripLocation resource.' + description: 'Updates the TripLocation resource.' parameters: - name: id in: path - description: 'GameAccount identifier' + description: 'TripLocation identifier' required: true deprecated: false allowEmptyValue: false @@ -874,35 +841,34 @@ paths: explode: false allowReserved: false requestBody: - description: 'The updated GameAccount resource' + description: 'The updated TripLocation resource' content: application/merge-patch+json: schema: - $ref: '#/components/schemas/GameAccount' + $ref: '#/components/schemas/TripLocation' required: true deprecated: false - parameters: [] - /api/log_account_credits: + /api/users: get: - operationId: api_log_account_credits_get_collection + operationId: api_users_get_collection tags: - - LogAccountCredit + - User responses: - 200: - description: 'LogAccountCredit collection' + '200': + description: 'User collection' content: application/ld+json: schema: type: object properties: - 'hydra:member': { type: array, items: { $ref: '#/components/schemas/LogAccountCredit.jsonld' } } - 'hydra:totalItems': { type: integer, minimum: 0 } - 'hydra:view': { type: object, properties: { '@id': { type: string, format: iri-reference }, '@type': { type: string }, 'hydra:first': { type: string, format: iri-reference }, 'hydra:last': { type: string, format: iri-reference }, 'hydra:previous': { type: string, format: iri-reference }, 'hydra:next': { type: string, format: iri-reference } }, example: { '@id': string, type: string, 'hydra:first': string, 'hydra:last': string, 'hydra:previous': string, 'hydra:next': string } } - 'hydra:search': { type: object, properties: { '@type': { type: string }, 'hydra:template': { type: string }, 'hydra:variableRepresentation': { type: string }, 'hydra:mapping': { type: array, items: { type: object, properties: { '@type': { type: string }, variable: { type: string }, property: { type: [string, 'null'] }, required: { type: boolean } } } } } } + member: { type: array, items: { $ref: '#/components/schemas/User.jsonld' } } + totalItems: { type: integer, minimum: 0 } + view: { type: object, properties: { '@id': { type: string, format: iri-reference }, '@type': { type: string }, first: { type: string, format: iri-reference }, last: { type: string, format: iri-reference }, previous: { type: string, format: iri-reference }, next: { type: string, format: iri-reference } }, example: { '@id': string, type: string, first: string, last: string, previous: string, next: string } } + search: { type: object, properties: { '@type': { type: string }, template: { type: string }, variableRepresentation: { type: string }, mapping: { type: array, items: { type: object, properties: { '@type': { type: string }, variable: { type: string }, property: { type: [string, 'null'] }, required: { type: boolean } } } } } } required: - - 'hydra:member' - summary: 'Retrieves the collection of LogAccountCredit resources.' - description: 'Retrieves the collection of LogAccountCredit resources.' + - member + summary: 'Retrieves the collection of User resources.' + description: 'Retrieves the collection of User resources.' parameters: - name: page @@ -933,73 +899,136 @@ paths: explode: false allowReserved: false - - name: 'order[creationDate]' + name: firstName in: query description: '' required: false deprecated: false - allowEmptyValue: true + allowEmptyValue: false schema: type: string - enum: - - asc - - desc style: form explode: false allowReserved: false - - name: 'order[credits]' + name: lastName in: query description: '' required: false deprecated: false - allowEmptyValue: true + allowEmptyValue: false schema: type: string - enum: - - asc - - desc style: form explode: false allowReserved: false - - name: 'order[revenue]' + name: userNameSearch in: query description: '' required: false deprecated: false - allowEmptyValue: true + allowEmptyValue: false + schema: + type: string + style: form + explode: false + allowReserved: false + - + name: custom_json_order + in: query + description: '' + required: false + deprecated: false + allowEmptyValue: false schema: type: string - enum: - - asc - - desc style: form explode: false allowReserved: false deprecated: false - parameters: [] - '/api/log_account_credits/{id}': + post: + operationId: api_users_post + tags: + - User + responses: + '201': + description: 'User resource created' + content: + application/ld+json: + schema: + $ref: '#/components/schemas/User.jsonld' + links: { } + '400': + description: 'Invalid input' + '422': + description: 'Unprocessable entity' + summary: 'Creates a User resource.' + description: 'Creates a User resource.' + parameters: [] + requestBody: + description: 'The new User resource' + content: + application/ld+json: + schema: + $ref: '#/components/schemas/User.jsonld' + required: true + deprecated: false + '/api/users/{id}': get: - operationId: api_log_account_credits_id_get + operationId: api_users_id_get + tags: + - User + responses: + '200': + description: 'User resource' + content: + application/ld+json: + schema: + $ref: '#/components/schemas/User.jsonld' + '404': + description: 'Resource not found' + summary: 'Retrieves a User resource.' + description: 'Retrieves a User resource.' + parameters: + - + name: id + in: path + description: 'User identifier' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + patch: + operationId: api_users_id_patch tags: - - LogAccountCredit + - User responses: - 200: - description: 'LogAccountCredit resource' + '200': + description: 'User resource updated' content: application/ld+json: schema: - $ref: '#/components/schemas/LogAccountCredit.jsonld' - 404: + $ref: '#/components/schemas/User.jsonld' + links: { } + '400': + description: 'Invalid input' + '422': + description: 'Unprocessable entity' + '404': description: 'Resource not found' - summary: 'Retrieves a LogAccountCredit resource.' - description: 'Retrieves a LogAccountCredit resource.' + summary: 'Updates the User resource.' + description: 'Updates the User resource.' parameters: - name: id in: path - description: 'LogAccountCredit identifier' + description: 'User identifier' required: true deprecated: false allowEmptyValue: false @@ -1008,29 +1037,35 @@ paths: style: simple explode: false allowReserved: false + requestBody: + description: 'The updated User resource' + content: + application/merge-patch+json: + schema: + $ref: '#/components/schemas/User' + required: true deprecated: false - parameters: [] - /api/log_account_profits: + /api/user_trips: get: - operationId: api_log_account_profits_get_collection + operationId: api_user_trips_get_collection tags: - - LogAccountProfit + - UserTrip responses: - 200: - description: 'LogAccountProfit collection' + '200': + description: 'UserTrip collection' content: application/ld+json: schema: type: object properties: - 'hydra:member': { type: array, items: { $ref: '#/components/schemas/LogAccountProfit.jsonld' } } - 'hydra:totalItems': { type: integer, minimum: 0 } - 'hydra:view': { type: object, properties: { '@id': { type: string, format: iri-reference }, '@type': { type: string }, 'hydra:first': { type: string, format: iri-reference }, 'hydra:last': { type: string, format: iri-reference }, 'hydra:previous': { type: string, format: iri-reference }, 'hydra:next': { type: string, format: iri-reference } }, example: { '@id': string, type: string, 'hydra:first': string, 'hydra:last': string, 'hydra:previous': string, 'hydra:next': string } } - 'hydra:search': { type: object, properties: { '@type': { type: string }, 'hydra:template': { type: string }, 'hydra:variableRepresentation': { type: string }, 'hydra:mapping': { type: array, items: { type: object, properties: { '@type': { type: string }, variable: { type: string }, property: { type: [string, 'null'] }, required: { type: boolean } } } } } } + member: { type: array, items: { $ref: '#/components/schemas/UserTrip.jsonld' } } + totalItems: { type: integer, minimum: 0 } + view: { type: object, properties: { '@id': { type: string, format: iri-reference }, '@type': { type: string }, first: { type: string, format: iri-reference }, last: { type: string, format: iri-reference }, previous: { type: string, format: iri-reference }, next: { type: string, format: iri-reference } }, example: { '@id': string, type: string, first: string, last: string, previous: string, next: string } } + search: { type: object, properties: { '@type': { type: string }, template: { type: string }, variableRepresentation: { type: string }, mapping: { type: array, items: { type: object, properties: { '@type': { type: string }, variable: { type: string }, property: { type: [string, 'null'] }, required: { type: boolean } } } } } } required: - - 'hydra:member' - summary: 'Retrieves the collection of LogAccountProfit resources.' - description: 'Retrieves the collection of LogAccountProfit resources.' + - member + summary: 'Retrieves the collection of UserTrip resources.' + description: 'Retrieves the collection of UserTrip resources.' parameters: - name: page @@ -1060,104 +1095,55 @@ paths: style: form explode: false allowReserved: false - - - name: gameAccount - in: query - description: '' - required: false - deprecated: false - allowEmptyValue: true - schema: - type: string - style: form - explode: false - allowReserved: false - - - name: 'gameAccount[]' - in: query - description: '' - required: false - deprecated: false - allowEmptyValue: true - schema: - type: array - items: - type: string - style: form - explode: true - allowReserved: false - - - name: isDailyProfit - in: query - description: '' - required: false - deprecated: false - allowEmptyValue: true - schema: - type: boolean - style: form - explode: false - allowReserved: false - - - name: gameAccountProfile - in: query - description: '' - required: false - deprecated: false - allowEmptyValue: true - schema: - type: string - style: form - explode: false - allowReserved: false - - - name: custom_json_filter - in: query - description: '' - required: false - deprecated: false - allowEmptyValue: true - schema: - type: string - style: form - explode: false - allowReserved: false - - - name: custom_json_order - in: query - description: '' - required: false - deprecated: false - allowEmptyValue: true - schema: - type: string - style: form - explode: false - allowReserved: false - example: '{"active":"cntSoldItems","direction":"desc","listColDefinition":{"field":"cntSoldItems","sortingSubResource":"tradePileItems","countSortSubresource":true,"countSortSubresourceValue":["closed"],"countSortSubresourceField":"tradeState","countSortFilterSubResource":"account","countSortFilterSubresourceField":"tmOpen","countSortFilterSubresourceValue":"0"}}' deprecated: false - parameters: [] - '/api/log_account_profits/{id}': + post: + operationId: api_user_trips_post + tags: + - UserTrip + responses: + '201': + description: 'UserTrip resource created' + content: + application/ld+json: + schema: + $ref: '#/components/schemas/UserTrip.jsonld' + links: { } + '400': + description: 'Invalid input' + '422': + description: 'Unprocessable entity' + summary: 'Creates a UserTrip resource.' + description: 'Creates a UserTrip resource.' + parameters: [] + requestBody: + description: 'The new UserTrip resource' + content: + application/ld+json: + schema: + $ref: '#/components/schemas/UserTrip.jsonld' + required: true + deprecated: false + '/api/user_trips/{id}': get: - operationId: api_log_account_profits_id_get + operationId: api_user_trips_id_get tags: - - LogAccountProfit + - UserTrip responses: - 200: - description: 'LogAccountProfit resource' + '200': + description: 'UserTrip resource' content: application/ld+json: schema: - $ref: '#/components/schemas/LogAccountProfit.jsonld' - 404: + $ref: '#/components/schemas/UserTrip.jsonld' + '404': description: 'Resource not found' - summary: 'Retrieves a LogAccountProfit resource.' - description: 'Retrieves a LogAccountProfit resource.' + summary: 'Retrieves a UserTrip resource.' + description: 'Retrieves a UserTrip resource.' parameters: - name: id in: path - description: 'LogAccountProfit identifier' + description: 'UserTrip identifier' required: true deprecated: false allowEmptyValue: false @@ -1167,33 +1153,73 @@ paths: explode: false allowReserved: false deprecated: false - parameters: [] - /api/log_account_sold_items: - get: - operationId: api_log_account_sold_items_get_collection + patch: + operationId: api_user_trips_id_patch tags: - - LogAccountSoldItem + - UserTrip responses: - 200: - description: 'LogAccountSoldItem collection' + '200': + description: 'UserTrip resource updated' content: application/ld+json: schema: - type: object - properties: - 'hydra:member': { type: array, items: { $ref: '#/components/schemas/LogAccountSoldItem.jsonld' } } - 'hydra:totalItems': { type: integer, minimum: 0 } - 'hydra:view': { type: object, properties: { '@id': { type: string, format: iri-reference }, '@type': { type: string }, 'hydra:first': { type: string, format: iri-reference }, 'hydra:last': { type: string, format: iri-reference }, 'hydra:previous': { type: string, format: iri-reference }, 'hydra:next': { type: string, format: iri-reference } }, example: { '@id': string, type: string, 'hydra:first': string, 'hydra:last': string, 'hydra:previous': string, 'hydra:next': string } } - 'hydra:search': { type: object, properties: { '@type': { type: string }, 'hydra:template': { type: string }, 'hydra:variableRepresentation': { type: string }, 'hydra:mapping': { type: array, items: { type: object, properties: { '@type': { type: string }, variable: { type: string }, property: { type: [string, 'null'] }, required: { type: boolean } } } } } } - required: - - 'hydra:member' - summary: 'Retrieves the collection of LogAccountSoldItem resources.' - description: 'Retrieves the collection of LogAccountSoldItem resources.' + $ref: '#/components/schemas/UserTrip.jsonld' + links: { } + '400': + description: 'Invalid input' + '422': + description: 'Unprocessable entity' + '404': + description: 'Resource not found' + summary: 'Updates the UserTrip resource.' + description: 'Updates the UserTrip resource.' parameters: - - name: page - in: query - description: 'The collection page number' + name: id + in: path + description: 'UserTrip identifier' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The updated UserTrip resource' + content: + application/merge-patch+json: + schema: + $ref: '#/components/schemas/UserTrip' + required: true + deprecated: false + /api/user_trip_locations: + get: + operationId: api_user_trip_locations_get_collection + tags: + - UserTripLocation + responses: + '200': + description: 'UserTripLocation collection' + content: + application/ld+json: + schema: + type: object + properties: + member: { type: array, items: { $ref: '#/components/schemas/UserTripLocation.jsonld' } } + totalItems: { type: integer, minimum: 0 } + view: { type: object, properties: { '@id': { type: string, format: iri-reference }, '@type': { type: string }, first: { type: string, format: iri-reference }, last: { type: string, format: iri-reference }, previous: { type: string, format: iri-reference }, next: { type: string, format: iri-reference } }, example: { '@id': string, type: string, first: string, last: string, previous: string, next: string } } + search: { type: object, properties: { '@type': { type: string }, template: { type: string }, variableRepresentation: { type: string }, mapping: { type: array, items: { type: object, properties: { '@type': { type: string }, variable: { type: string }, property: { type: [string, 'null'] }, required: { type: boolean } } } } } } + required: + - member + summary: 'Retrieves the collection of UserTripLocation resources.' + description: 'Retrieves the collection of UserTripLocation resources.' + parameters: + - + name: page + in: query + description: 'The collection page number' required: false deprecated: false allowEmptyValue: true @@ -1218,118 +1244,89 @@ paths: style: form explode: false allowReserved: false + deprecated: false + post: + operationId: api_user_trip_locations_post + tags: + - UserTripLocation + responses: + '201': + description: 'UserTripLocation resource created' + content: + application/ld+json: + schema: + $ref: '#/components/schemas/UserTripLocation.jsonld' + links: { } + '400': + description: 'Invalid input' + '422': + description: 'Unprocessable entity' + summary: 'Creates a UserTripLocation resource.' + description: 'Creates a UserTripLocation resource.' + parameters: [] + requestBody: + description: 'The new UserTripLocation resource' + content: + application/ld+json: + schema: + $ref: '#/components/schemas/UserTripLocation.jsonld' + required: true + deprecated: false + '/api/user_trip_locations/{id}': + get: + operationId: api_user_trip_locations_id_get + tags: + - UserTripLocation + responses: + '200': + description: 'UserTripLocation resource' + content: + application/ld+json: + schema: + $ref: '#/components/schemas/UserTripLocation.jsonld' + '404': + description: 'Resource not found' + summary: 'Retrieves a UserTripLocation resource.' + description: 'Retrieves a UserTripLocation resource.' + parameters: - - name: account - in: query - description: '' - required: false - deprecated: false - allowEmptyValue: true - schema: - type: string - style: form - explode: false - allowReserved: false - - - name: 'account[]' - in: query - description: '' - required: false - deprecated: false - allowEmptyValue: true - schema: - type: array - items: - type: string - style: form - explode: true - allowReserved: false - - - name: candidateItem - in: query - description: '' - required: false - deprecated: false - allowEmptyValue: true - schema: - type: string - style: form - explode: false - allowReserved: false - - - name: 'candidateItem[]' - in: query - description: '' - required: false - deprecated: false - allowEmptyValue: true - schema: - type: array - items: - type: string - style: form - explode: true - allowReserved: false - - - name: candidateNameSearch - in: query - description: '' - required: false - deprecated: false - allowEmptyValue: true - schema: - type: string - style: form - explode: false - allowReserved: false - - - name: custom_json_filter - in: query - description: '' - required: false - deprecated: false - allowEmptyValue: true - schema: - type: string - style: form - explode: false - allowReserved: false - - - name: custom_json_order - in: query - description: '' - required: false + name: id + in: path + description: 'UserTripLocation identifier' + required: true deprecated: false - allowEmptyValue: true + allowEmptyValue: false schema: type: string - style: form + style: simple explode: false allowReserved: false - example: '{"active":"cntSoldItems","direction":"desc","listColDefinition":{"field":"cntSoldItems","sortingSubResource":"tradePileItems","countSortSubresource":true,"countSortSubresourceValue":["closed"],"countSortSubresourceField":"tradeState","countSortFilterSubResource":"account","countSortFilterSubresourceField":"tmOpen","countSortFilterSubresourceValue":"0"}}' deprecated: false - parameters: [] - '/api/log_account_sold_items/{id}': - get: - operationId: api_log_account_sold_items_id_get + patch: + operationId: api_user_trip_locations_id_patch tags: - - LogAccountSoldItem + - UserTripLocation responses: - 200: - description: 'LogAccountSoldItem resource' + '200': + description: 'UserTripLocation resource updated' content: application/ld+json: schema: - $ref: '#/components/schemas/LogAccountSoldItem.jsonld' - 404: + $ref: '#/components/schemas/UserTripLocation.jsonld' + links: { } + '400': + description: 'Invalid input' + '422': + description: 'Unprocessable entity' + '404': description: 'Resource not found' - summary: 'Retrieves a LogAccountSoldItem resource.' - description: 'Retrieves a LogAccountSoldItem resource.' + summary: 'Updates the UserTripLocation resource.' + description: 'Updates the UserTripLocation resource.' parameters: - name: id in: path - description: 'LogAccountSoldItem identifier' + description: 'UserTripLocation identifier' required: true deprecated: false allowEmptyValue: false @@ -1338,29 +1335,35 @@ paths: style: simple explode: false allowReserved: false + requestBody: + description: 'The updated UserTripLocation resource' + content: + application/merge-patch+json: + schema: + $ref: '#/components/schemas/UserTripLocation' + required: true deprecated: false - parameters: [] - /api/log_generals: + /api/user_trip_work_logs: get: - operationId: api_log_generals_get_collection + operationId: api_user_trip_work_logs_get_collection tags: - - LogGeneral + - UserTripWorkLog responses: - 200: - description: 'LogGeneral collection' + '200': + description: 'UserTripWorkLog collection' content: application/ld+json: schema: type: object properties: - 'hydra:member': { type: array, items: { $ref: '#/components/schemas/LogGeneral.jsonld' } } - 'hydra:totalItems': { type: integer, minimum: 0 } - 'hydra:view': { type: object, properties: { '@id': { type: string, format: iri-reference }, '@type': { type: string }, 'hydra:first': { type: string, format: iri-reference }, 'hydra:last': { type: string, format: iri-reference }, 'hydra:previous': { type: string, format: iri-reference }, 'hydra:next': { type: string, format: iri-reference } }, example: { '@id': string, type: string, 'hydra:first': string, 'hydra:last': string, 'hydra:previous': string, 'hydra:next': string } } - 'hydra:search': { type: object, properties: { '@type': { type: string }, 'hydra:template': { type: string }, 'hydra:variableRepresentation': { type: string }, 'hydra:mapping': { type: array, items: { type: object, properties: { '@type': { type: string }, variable: { type: string }, property: { type: [string, 'null'] }, required: { type: boolean } } } } } } + member: { type: array, items: { $ref: '#/components/schemas/UserTripWorkLog.jsonld' } } + totalItems: { type: integer, minimum: 0 } + view: { type: object, properties: { '@id': { type: string, format: iri-reference }, '@type': { type: string }, first: { type: string, format: iri-reference }, last: { type: string, format: iri-reference }, previous: { type: string, format: iri-reference }, next: { type: string, format: iri-reference } }, example: { '@id': string, type: string, first: string, last: string, previous: string, next: string } } + search: { type: object, properties: { '@type': { type: string }, template: { type: string }, variableRepresentation: { type: string }, mapping: { type: array, items: { type: object, properties: { '@type': { type: string }, variable: { type: string }, property: { type: [string, 'null'] }, required: { type: boolean } } } } } } required: - - 'hydra:member' - summary: 'Retrieves the collection of LogGeneral resources.' - description: 'Retrieves the collection of LogGeneral resources.' + - member + summary: 'Retrieves the collection of UserTripWorkLog resources.' + description: 'Retrieves the collection of UserTripWorkLog resources.' parameters: - name: page @@ -1390,66 +1393,89 @@ paths: style: form explode: false allowReserved: false + deprecated: false + post: + operationId: api_user_trip_work_logs_post + tags: + - UserTripWorkLog + responses: + '201': + description: 'UserTripWorkLog resource created' + content: + application/ld+json: + schema: + $ref: '#/components/schemas/UserTripWorkLog.jsonld' + links: { } + '400': + description: 'Invalid input' + '422': + description: 'Unprocessable entity' + summary: 'Creates a UserTripWorkLog resource.' + description: 'Creates a UserTripWorkLog resource.' + parameters: [] + requestBody: + description: 'The new UserTripWorkLog resource' + content: + application/ld+json: + schema: + $ref: '#/components/schemas/UserTripWorkLog.jsonld' + required: true + deprecated: false + '/api/user_trip_work_logs/{id}': + get: + operationId: api_user_trip_work_logs_id_get + tags: + - UserTripWorkLog + responses: + '200': + description: 'UserTripWorkLog resource' + content: + application/ld+json: + schema: + $ref: '#/components/schemas/UserTripWorkLog.jsonld' + '404': + description: 'Resource not found' + summary: 'Retrieves a UserTripWorkLog resource.' + description: 'Retrieves a UserTripWorkLog resource.' + parameters: - - name: gameAccountProfile - in: query - description: '' - required: false - deprecated: false - allowEmptyValue: true - schema: - type: string - style: form - explode: false - allowReserved: false - - - name: custom_json_filter - in: query - description: '' - required: false - deprecated: false - allowEmptyValue: true - schema: - type: string - style: form - explode: false - allowReserved: false - - - name: custom_json_order - in: query - description: '' - required: false + name: id + in: path + description: 'UserTripWorkLog identifier' + required: true deprecated: false - allowEmptyValue: true + allowEmptyValue: false schema: type: string - style: form + style: simple explode: false allowReserved: false - example: '{"active":"cntSoldItems","direction":"desc","listColDefinition":{"field":"cntSoldItems","sortingSubResource":"tradePileItems","countSortSubresource":true,"countSortSubresourceValue":["closed"],"countSortSubresourceField":"tradeState","countSortFilterSubResource":"account","countSortFilterSubresourceField":"tmOpen","countSortFilterSubresourceValue":"0"}}' deprecated: false - parameters: [] - '/api/log_generals/{id}': - get: - operationId: api_log_generals_id_get + patch: + operationId: api_user_trip_work_logs_id_patch tags: - - LogGeneral + - UserTripWorkLog responses: - 200: - description: 'LogGeneral resource' + '200': + description: 'UserTripWorkLog resource updated' content: application/ld+json: schema: - $ref: '#/components/schemas/LogGeneral.jsonld' - 404: + $ref: '#/components/schemas/UserTripWorkLog.jsonld' + links: { } + '400': + description: 'Invalid input' + '422': + description: 'Unprocessable entity' + '404': description: 'Resource not found' - summary: 'Retrieves a LogGeneral resource.' - description: 'Retrieves a LogGeneral resource.' + summary: 'Updates the UserTripWorkLog resource.' + description: 'Updates the UserTripWorkLog resource.' parameters: - name: id in: path - description: 'LogGeneral identifier' + description: 'UserTripWorkLog identifier' required: true deprecated: false allowEmptyValue: false @@ -1458,29 +1484,35 @@ paths: style: simple explode: false allowReserved: false + requestBody: + description: 'The updated UserTripWorkLog resource' + content: + application/merge-patch+json: + schema: + $ref: '#/components/schemas/UserTripWorkLog' + required: true deprecated: false - parameters: [] - /api/log_total_profits: + /api/vessels: get: - operationId: api_log_total_profits_get_collection + operationId: api_vessels_get_collection tags: - - LogTotalProfit + - Vessel responses: - 200: - description: 'LogTotalProfit collection' + '200': + description: 'Vessel collection' content: application/ld+json: schema: type: object properties: - 'hydra:member': { type: array, items: { $ref: '#/components/schemas/LogTotalProfit.jsonld' } } - 'hydra:totalItems': { type: integer, minimum: 0 } - 'hydra:view': { type: object, properties: { '@id': { type: string, format: iri-reference }, '@type': { type: string }, 'hydra:first': { type: string, format: iri-reference }, 'hydra:last': { type: string, format: iri-reference }, 'hydra:previous': { type: string, format: iri-reference }, 'hydra:next': { type: string, format: iri-reference } }, example: { '@id': string, type: string, 'hydra:first': string, 'hydra:last': string, 'hydra:previous': string, 'hydra:next': string } } - 'hydra:search': { type: object, properties: { '@type': { type: string }, 'hydra:template': { type: string }, 'hydra:variableRepresentation': { type: string }, 'hydra:mapping': { type: array, items: { type: object, properties: { '@type': { type: string }, variable: { type: string }, property: { type: [string, 'null'] }, required: { type: boolean } } } } } } + member: { type: array, items: { $ref: '#/components/schemas/Vessel.jsonld' } } + totalItems: { type: integer, minimum: 0 } + view: { type: object, properties: { '@id': { type: string, format: iri-reference }, '@type': { type: string }, first: { type: string, format: iri-reference }, last: { type: string, format: iri-reference }, previous: { type: string, format: iri-reference }, next: { type: string, format: iri-reference } }, example: { '@id': string, type: string, first: string, last: string, previous: string, next: string } } + search: { type: object, properties: { '@type': { type: string }, template: { type: string }, variableRepresentation: { type: string }, mapping: { type: array, items: { type: object, properties: { '@type': { type: string }, variable: { type: string }, property: { type: [string, 'null'] }, required: { type: boolean } } } } } } required: - - 'hydra:member' - summary: 'Retrieves the collection of LogTotalProfit resources.' - description: 'Retrieves the collection of LogTotalProfit resources.' + - member + summary: 'Retrieves the collection of Vessel resources.' + description: 'Retrieves the collection of Vessel resources.' parameters: - name: page @@ -1510,56 +1542,91 @@ paths: style: form explode: false allowReserved: false + - + name: name + in: query + description: '' + required: false + deprecated: false + allowEmptyValue: false + schema: + type: string + style: form + explode: false + allowReserved: false + - + name: custom_json_filter + in: query + description: '' + required: false + deprecated: false + allowEmptyValue: false + schema: + type: string + style: form + explode: false + allowReserved: false + - + name: custom_json_order + in: query + description: '' + required: false + deprecated: false + allowEmptyValue: false + schema: + type: string + style: form + explode: false + allowReserved: false deprecated: false post: - operationId: api_log_total_profits_post + operationId: api_vessels_post tags: - - LogTotalProfit + - Vessel responses: - 201: - description: 'LogTotalProfit resource created' + '201': + description: 'Vessel resource created' content: application/ld+json: schema: - $ref: '#/components/schemas/LogTotalProfit.jsonld' + $ref: '#/components/schemas/Vessel.jsonld' links: { } - 400: + '400': description: 'Invalid input' - 422: + '422': description: 'Unprocessable entity' - summary: 'Creates a LogTotalProfit resource.' - description: 'Creates a LogTotalProfit resource.' + summary: 'Creates a Vessel resource.' + description: 'Creates a Vessel resource.' parameters: [] requestBody: - description: 'The new LogTotalProfit resource' + description: 'The new Vessel resource' content: application/ld+json: schema: - $ref: '#/components/schemas/LogTotalProfit.jsonld' + $ref: '#/components/schemas/Vessel.jsonld' required: true deprecated: false - parameters: [] - '/api/log_total_profits/{id}': + '/api/vessels/{id}': get: - operationId: api_log_total_profits_id_get + operationId: api_vessels_id_get tags: - - LogTotalProfit + - Vessel responses: - 200: - description: 'LogTotalProfit resource' + '200': + description: 'Vessel resource' content: application/ld+json: schema: - $ref: '#/components/schemas/LogTotalProfit.jsonld' - 404: + $ref: '#/components/schemas/Vessel.jsonld' + '404': description: 'Resource not found' - summary: 'Retrieves a LogTotalProfit resource.' - description: 'Retrieves a LogTotalProfit resource.' + summary: 'Retrieves a Vessel resource.' + description: 'Retrieves a Vessel resource.' parameters: - name: id in: path - description: 'LogTotalProfit identifier' + description: 'Vessel identifier' required: true deprecated: false allowEmptyValue: false @@ -1570,30 +1637,30 @@ paths: allowReserved: false deprecated: false patch: - operationId: api_log_total_profits_id_patch + operationId: api_vessels_id_patch tags: - - LogTotalProfit + - Vessel responses: - 200: - description: 'LogTotalProfit resource updated' + '200': + description: 'Vessel resource updated' content: application/ld+json: schema: - $ref: '#/components/schemas/LogTotalProfit.jsonld' + $ref: '#/components/schemas/Vessel.jsonld' links: { } - 400: + '400': description: 'Invalid input' - 422: + '422': description: 'Unprocessable entity' - 404: + '404': description: 'Resource not found' - summary: 'Updates the LogTotalProfit resource.' - description: 'Updates the LogTotalProfit resource.' + summary: 'Updates the Vessel resource.' + description: 'Updates the Vessel resource.' parameters: - name: id in: path - description: 'LogTotalProfit identifier' + description: 'Vessel identifier' required: true deprecated: false allowEmptyValue: false @@ -1603,222 +1670,34 @@ paths: explode: false allowReserved: false requestBody: - description: 'The updated LogTotalProfit resource' + description: 'The updated Vessel resource' content: application/merge-patch+json: schema: - $ref: '#/components/schemas/LogTotalProfit' + $ref: '#/components/schemas/Vessel' required: true deprecated: false - parameters: [] - /api/media_objects: + /api/zones: get: - operationId: api_media_objects_get_collection + operationId: api_zones_get_collection tags: - - MediaObject + - Zone responses: - 200: - description: 'MediaObject collection' + '200': + description: 'Zone collection' content: application/ld+json: schema: type: object properties: - 'hydra:member': { type: array, items: { $ref: '#/components/schemas/MediaObject.jsonld-media_object.read' } } - 'hydra:totalItems': { type: integer, minimum: 0 } - 'hydra:view': { type: object, properties: { '@id': { type: string, format: iri-reference }, '@type': { type: string }, 'hydra:first': { type: string, format: iri-reference }, 'hydra:last': { type: string, format: iri-reference }, 'hydra:previous': { type: string, format: iri-reference }, 'hydra:next': { type: string, format: iri-reference } }, example: { '@id': string, type: string, 'hydra:first': string, 'hydra:last': string, 'hydra:previous': string, 'hydra:next': string } } - 'hydra:search': { type: object, properties: { '@type': { type: string }, 'hydra:template': { type: string }, 'hydra:variableRepresentation': { type: string }, 'hydra:mapping': { type: array, items: { type: object, properties: { '@type': { type: string }, variable: { type: string }, property: { type: [string, 'null'] }, required: { type: boolean } } } } } } + member: { type: array, items: { $ref: '#/components/schemas/Zone.jsonld' } } + totalItems: { type: integer, minimum: 0 } + view: { type: object, properties: { '@id': { type: string, format: iri-reference }, '@type': { type: string }, first: { type: string, format: iri-reference }, last: { type: string, format: iri-reference }, previous: { type: string, format: iri-reference }, next: { type: string, format: iri-reference } }, example: { '@id': string, type: string, first: string, last: string, previous: string, next: string } } + search: { type: object, properties: { '@type': { type: string }, template: { type: string }, variableRepresentation: { type: string }, mapping: { type: array, items: { type: object, properties: { '@type': { type: string }, variable: { type: string }, property: { type: [string, 'null'] }, required: { type: boolean } } } } } } required: - - 'hydra:member' - summary: 'Retrieves the collection of MediaObject resources.' - description: 'Retrieves the collection of MediaObject resources.' - parameters: - - - name: page - in: query - description: 'The collection page number' - required: false - deprecated: false - allowEmptyValue: true - schema: - type: integer - default: 1 - style: form - explode: false - allowReserved: false - - - name: itemsPerPage - in: query - description: 'The number of items per page' - required: false - deprecated: false - allowEmptyValue: true - schema: - type: integer - default: 50 - minimum: 0 - maximum: 100 - style: form - explode: false - allowReserved: false - deprecated: false - post: - operationId: api_media_objects_post - tags: - - MediaObject - responses: - 201: - description: 'MediaObject resource created' - content: - application/ld+json: - schema: - $ref: '#/components/schemas/MediaObject.jsonld-media_object.read' - links: { } - 400: - description: 'Invalid input' - 422: - description: 'Unprocessable entity' - summary: 'Creates a MediaObject resource.' - description: 'Creates a MediaObject resource.' - parameters: [] - requestBody: - description: '' - content: - multipart/form-data: - schema: - type: object - properties: - file: - type: string - format: binary - required: false - deprecated: false - parameters: [] - '/api/media_objects/{id}': - get: - operationId: api_media_objects_id_get - tags: - - MediaObject - responses: - 200: - description: 'MediaObject resource' - content: - application/ld+json: - schema: - $ref: '#/components/schemas/MediaObject.jsonld-media_object.read' - 404: - description: 'Resource not found' - summary: 'Retrieves a MediaObject resource.' - description: 'Retrieves a MediaObject resource.' - parameters: - - - name: id - in: path - description: 'MediaObject identifier' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - delete: - operationId: api_media_objects_id_delete - tags: - - MediaObject - responses: - 204: - description: 'MediaObject resource deleted' - 404: - description: 'Resource not found' - summary: 'Removes the MediaObject resource.' - description: 'Removes the MediaObject resource.' - parameters: - - - name: id - in: path - description: 'MediaObject identifier' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - parameters: [] - /api/mode_config: - get: - operationId: api_mode_config_get - tags: - - ModeConfig - responses: - 200: - description: 'ModeConfig resource' - content: - application/ld+json: - schema: - $ref: '#/components/schemas/ModeConfig.jsonld' - 404: - description: 'Resource not found' - summary: 'Retrieves a ModeConfig resource.' - description: 'Retrieves a ModeConfig resource.' - parameters: [] - deprecated: false - patch: - operationId: api_mode_config_patch - tags: - - ModeConfig - responses: - 200: - description: 'ModeConfig resource updated' - content: - application/ld+json: - schema: - $ref: '#/components/schemas/ModeConfig.jsonld' - links: { } - 400: - description: 'Invalid input' - 422: - description: 'Unprocessable entity' - 404: - description: 'Resource not found' - summary: 'Updates the ModeConfig resource.' - description: 'Updates the ModeConfig resource.' - parameters: [] - requestBody: - description: 'The updated ModeConfig resource' - content: - application/merge-patch+json: - schema: - $ref: '#/components/schemas/ModeConfig' - required: true - deprecated: false - parameters: [] - /api/players: - get: - operationId: api_players_get_collection - tags: - - Player - responses: - 200: - description: 'Player collection' - content: - application/ld+json: - schema: - type: object - properties: - 'hydra:member': { type: array, items: { $ref: '#/components/schemas/Player.jsonld' } } - 'hydra:totalItems': { type: integer, minimum: 0 } - 'hydra:view': { type: object, properties: { '@id': { type: string, format: iri-reference }, '@type': { type: string }, 'hydra:first': { type: string, format: iri-reference }, 'hydra:last': { type: string, format: iri-reference }, 'hydra:previous': { type: string, format: iri-reference }, 'hydra:next': { type: string, format: iri-reference } }, example: { '@id': string, type: string, 'hydra:first': string, 'hydra:last': string, 'hydra:previous': string, 'hydra:next': string } } - 'hydra:search': { type: object, properties: { '@type': { type: string }, 'hydra:template': { type: string }, 'hydra:variableRepresentation': { type: string }, 'hydra:mapping': { type: array, items: { type: object, properties: { '@type': { type: string }, variable: { type: string }, property: { type: [string, 'null'] }, required: { type: boolean } } } } } } - required: - - 'hydra:member' - summary: 'Retrieves the collection of Player resources.' - description: 'Retrieves the collection of Player resources.' + - member + summary: 'Retrieves the collection of Zone resources.' + description: 'Retrieves the collection of Zone resources.' parameters: - name: page @@ -1849,166 +1728,26 @@ paths: explode: false allowReserved: false - - name: custom_json_order + name: name in: query description: '' required: false deprecated: false - allowEmptyValue: true - schema: - type: string - style: form - explode: false - allowReserved: false - example: '{"active":"cntSoldItems","direction":"desc","listColDefinition":{"field":"cntSoldItems","sortingSubResource":"tradePileItems","countSortSubresource":true,"countSortSubresourceValue":["closed"],"countSortSubresourceField":"tradeState","countSortFilterSubResource":"account","countSortFilterSubresourceField":"tmOpen","countSortFilterSubresourceValue":"0"}}' - deprecated: false - post: - operationId: api_players_post - tags: - - Player - responses: - 201: - description: 'Player resource created' - content: - application/ld+json: - schema: - $ref: '#/components/schemas/Player.jsonld' - links: { } - 400: - description: 'Invalid input' - 422: - description: 'Unprocessable entity' - summary: 'Creates a Player resource.' - description: 'Creates a Player resource.' - parameters: [] - requestBody: - description: 'The new Player resource' - content: - application/ld+json: - schema: - $ref: '#/components/schemas/Player.jsonld' - required: true - deprecated: false - parameters: [] - '/api/players/{id}': - get: - operationId: api_players_id_get - tags: - - Player - responses: - 200: - description: 'Player resource' - content: - application/ld+json: - schema: - $ref: '#/components/schemas/Player.jsonld' - 404: - description: 'Resource not found' - summary: 'Retrieves a Player resource.' - description: 'Retrieves a Player resource.' - parameters: - - - name: id - in: path - description: 'Player identifier' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - patch: - operationId: api_players_id_patch - tags: - - Player - responses: - 200: - description: 'Player resource updated' - content: - application/ld+json: - schema: - $ref: '#/components/schemas/Player.jsonld' - links: { } - 400: - description: 'Invalid input' - 422: - description: 'Unprocessable entity' - 404: - description: 'Resource not found' - summary: 'Updates the Player resource.' - description: 'Updates the Player resource.' - parameters: - - - name: id - in: path - description: 'Player identifier' - required: true - deprecated: false allowEmptyValue: false schema: type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The updated Player resource' - content: - application/merge-patch+json: - schema: - $ref: '#/components/schemas/Player' - required: true - deprecated: false - parameters: [] - /api/rarities: - get: - operationId: api_rarities_get_collection - tags: - - Rarity - responses: - 200: - description: 'Rarity collection' - content: - application/ld+json: - schema: - type: object - properties: - 'hydra:member': { type: array, items: { $ref: '#/components/schemas/Rarity.jsonld' } } - 'hydra:totalItems': { type: integer, minimum: 0 } - 'hydra:view': { type: object, properties: { '@id': { type: string, format: iri-reference }, '@type': { type: string }, 'hydra:first': { type: string, format: iri-reference }, 'hydra:last': { type: string, format: iri-reference }, 'hydra:previous': { type: string, format: iri-reference }, 'hydra:next': { type: string, format: iri-reference } }, example: { '@id': string, type: string, 'hydra:first': string, 'hydra:last': string, 'hydra:previous': string, 'hydra:next': string } } - 'hydra:search': { type: object, properties: { '@type': { type: string }, 'hydra:template': { type: string }, 'hydra:variableRepresentation': { type: string }, 'hydra:mapping': { type: array, items: { type: object, properties: { '@type': { type: string }, variable: { type: string }, property: { type: [string, 'null'] }, required: { type: boolean } } } } } } - required: - - 'hydra:member' - summary: 'Retrieves the collection of Rarity resources.' - description: 'Retrieves the collection of Rarity resources.' - parameters: - - - name: page - in: query - description: 'The collection page number' - required: false - deprecated: false - allowEmptyValue: true - schema: - type: integer - default: 1 style: form explode: false allowReserved: false - - name: itemsPerPage + name: custom_json_filter in: query - description: 'The number of items per page' + description: '' required: false deprecated: false - allowEmptyValue: true + allowEmptyValue: false schema: - type: integer - default: 50 - minimum: 0 - maximum: 100 + type: string style: form explode: false allowReserved: false @@ -2018,63 +1757,61 @@ paths: description: '' required: false deprecated: false - allowEmptyValue: true + allowEmptyValue: false schema: type: string style: form explode: false allowReserved: false - example: '{"active":"cntSoldItems","direction":"desc","listColDefinition":{"field":"cntSoldItems","sortingSubResource":"tradePileItems","countSortSubresource":true,"countSortSubresourceValue":["closed"],"countSortSubresourceField":"tradeState","countSortFilterSubResource":"account","countSortFilterSubresourceField":"tmOpen","countSortFilterSubresourceValue":"0"}}' deprecated: false post: - operationId: api_rarities_post + operationId: api_zones_post tags: - - Rarity + - Zone responses: - 201: - description: 'Rarity resource created' + '201': + description: 'Zone resource created' content: application/ld+json: schema: - $ref: '#/components/schemas/Rarity.jsonld' + $ref: '#/components/schemas/Zone.jsonld' links: { } - 400: + '400': description: 'Invalid input' - 422: + '422': description: 'Unprocessable entity' - summary: 'Creates a Rarity resource.' - description: 'Creates a Rarity resource.' + summary: 'Creates a Zone resource.' + description: 'Creates a Zone resource.' parameters: [] requestBody: - description: 'The new Rarity resource' + description: 'The new Zone resource' content: application/ld+json: schema: - $ref: '#/components/schemas/Rarity.jsonld' + $ref: '#/components/schemas/Zone.jsonld' required: true deprecated: false - parameters: [] - '/api/rarities/{id}': + '/api/zones/{id}': get: - operationId: api_rarities_id_get + operationId: api_zones_id_get tags: - - Rarity + - Zone responses: - 200: - description: 'Rarity resource' + '200': + description: 'Zone resource' content: application/ld+json: schema: - $ref: '#/components/schemas/Rarity.jsonld' - 404: + $ref: '#/components/schemas/Zone.jsonld' + '404': description: 'Resource not found' - summary: 'Retrieves a Rarity resource.' - description: 'Retrieves a Rarity resource.' + summary: 'Retrieves a Zone resource.' + description: 'Retrieves a Zone resource.' parameters: - name: id in: path - description: 'Rarity identifier' + description: 'Zone identifier' required: true deprecated: false allowEmptyValue: false @@ -2085,30 +1822,30 @@ paths: allowReserved: false deprecated: false patch: - operationId: api_rarities_id_patch + operationId: api_zones_id_patch tags: - - Rarity + - Zone responses: - 200: - description: 'Rarity resource updated' + '200': + description: 'Zone resource updated' content: application/ld+json: schema: - $ref: '#/components/schemas/Rarity.jsonld' + $ref: '#/components/schemas/Zone.jsonld' links: { } - 400: + '400': description: 'Invalid input' - 422: + '422': description: 'Unprocessable entity' - 404: + '404': description: 'Resource not found' - summary: 'Updates the Rarity resource.' - description: 'Updates the Rarity resource.' + summary: 'Updates the Zone resource.' + description: 'Updates the Zone resource.' parameters: - name: id in: path - description: 'Rarity identifier' + description: 'Zone identifier' required: true deprecated: false allowEmptyValue: false @@ -2118,1820 +1855,43 @@ paths: explode: false allowReserved: false requestBody: - description: 'The updated Rarity resource' + description: 'The updated Zone resource' content: application/merge-patch+json: schema: - $ref: '#/components/schemas/Rarity' + $ref: '#/components/schemas/Zone' required: true deprecated: false - parameters: [] - /api/system_stats: - get: - operationId: api_system_stats_get - tags: - - SystemStat - responses: - 200: - description: 'SystemStat resource' - content: - application/ld+json: - schema: - $ref: '#/components/schemas/SystemStat.jsonld' - 404: - description: 'Resource not found' - summary: 'Retrieves a SystemStat resource.' - description: 'Retrieves a SystemStat resource.' - parameters: [] +components: + schemas: + Location: + type: object + description: '' deprecated: false - parameters: [] - /api/users: - get: - operationId: api_users_get_collection - tags: - - User - responses: - 200: - description: 'User collection' - content: - application/ld+json: - schema: - type: object - properties: - 'hydra:member': { type: array, items: { $ref: '#/components/schemas/User.jsonld' } } - 'hydra:totalItems': { type: integer, minimum: 0 } - 'hydra:view': { type: object, properties: { '@id': { type: string, format: iri-reference }, '@type': { type: string }, 'hydra:first': { type: string, format: iri-reference }, 'hydra:last': { type: string, format: iri-reference }, 'hydra:previous': { type: string, format: iri-reference }, 'hydra:next': { type: string, format: iri-reference } }, example: { '@id': string, type: string, 'hydra:first': string, 'hydra:last': string, 'hydra:previous': string, 'hydra:next': string } } - 'hydra:search': { type: object, properties: { '@type': { type: string }, 'hydra:template': { type: string }, 'hydra:variableRepresentation': { type: string }, 'hydra:mapping': { type: array, items: { type: object, properties: { '@type': { type: string }, variable: { type: string }, property: { type: [string, 'null'] }, required: { type: boolean } } } } } } - required: - - 'hydra:member' - summary: 'Retrieves the collection of User resources.' - description: 'Retrieves the collection of User resources.' - parameters: - - - name: page - in: query - description: 'The collection page number' - required: false - deprecated: false - allowEmptyValue: true - schema: - type: integer - default: 1 - style: form - explode: false - allowReserved: false - - - name: itemsPerPage - in: query - description: 'The number of items per page' - required: false - deprecated: false - allowEmptyValue: true - schema: - type: integer - default: 50 - minimum: 0 - maximum: 100 - style: form - explode: false - allowReserved: false - - - name: firstName - in: query - description: '' - required: false - deprecated: false - allowEmptyValue: true - schema: - type: string - style: form - explode: false - allowReserved: false - - - name: lastName - in: query - description: '' - required: false - deprecated: false - allowEmptyValue: true - schema: - type: string - style: form - explode: false - allowReserved: false - - - name: userNameSearch - in: query - description: '' - required: false - deprecated: false - allowEmptyValue: true - schema: - type: string - style: form - explode: false - allowReserved: false - - - name: custom_json_order - in: query - description: '' - required: false - deprecated: false - allowEmptyValue: true - schema: - type: string - style: form - explode: false - allowReserved: false - example: '{"active":"cntSoldItems","direction":"desc","listColDefinition":{"field":"cntSoldItems","sortingSubResource":"tradePileItems","countSortSubresource":true,"countSortSubresourceValue":["closed"],"countSortSubresourceField":"tradeState","countSortFilterSubResource":"account","countSortFilterSubresourceField":"tmOpen","countSortFilterSubresourceValue":"0"}}' - deprecated: false - post: - operationId: api_users_post - tags: - - User - responses: - 201: - description: 'User resource created' - content: - application/ld+json: - schema: - $ref: '#/components/schemas/User.jsonld' - links: { } - 400: - description: 'Invalid input' - 422: - description: 'Unprocessable entity' - summary: 'Creates a User resource.' - description: 'Creates a User resource.' - parameters: [] - requestBody: - description: 'The new User resource' - content: - application/ld+json: - schema: - $ref: '#/components/schemas/User.jsonld' - required: true - deprecated: false - parameters: [] - '/api/users/{id}': - get: - operationId: api_users_id_get - tags: - - User - responses: - 200: - description: 'User resource' - content: - application/ld+json: - schema: - $ref: '#/components/schemas/User.jsonld' - 404: - description: 'Resource not found' - summary: 'Retrieves a User resource.' - description: 'Retrieves a User resource.' - parameters: - - - name: id - in: path - description: 'User identifier' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - parameters: [] -components: - schemas: - AccountTradePileItem: - type: object - description: '' - deprecated: false - properties: - dbId: - readOnly: true - type: - - integer - - 'null' - account: - readOnly: true - type: string - format: iri-reference - example: 'https://example.com/' - candidateItem: - readOnly: true - type: string - format: iri-reference - example: 'https://example.com/' - eaId: - readOnly: true - type: integer - eaAssetId: - readOnly: true - type: integer - eaResourceId: - readOnly: true - type: integer - rareFlag: - readOnly: true - type: integer - itemType: - readOnly: true - type: string - rating: - readOnly: true - type: integer - contracts: - readOnly: true - type: - - integer - - 'null' - playStyle: - readOnly: true - type: - - integer - - 'null' - startingBid: - type: integer - binPrice: - type: integer - individualPrice: - default: true - example: true - type: boolean - minRange: - readOnly: true - type: integer - maxRange: - readOnly: true - type: integer - lastSalePrice: - readOnly: true - type: integer - tradeState: - readOnly: true - type: - - string - - 'null' - eaTradeId: - readOnly: true - type: - - integer - - 'null' - rebuy: - readOnly: true - default: true - example: true - type: boolean - leagueId: - readOnly: true - type: - - integer - - 'null' - teamId: - readOnly: true - type: - - integer - - 'null' - nationId: - readOnly: true - type: - - integer - - 'null' - listCnt: - readOnly: true - type: integer - openBidCnt: - readOnly: true - type: - - integer - - 'null' - snipedItem: - readOnly: true - default: true - example: true - type: boolean - marketAverage: - readOnly: true - type: - - integer - - 'null' - creationDate: - readOnly: true - type: string - format: date-time - AccountTradePileItem.jsonld: - type: object - description: '' - deprecated: false - properties: - '@context': - readOnly: true - oneOf: - - - type: string - - - type: object - properties: - '@vocab': - type: string - hydra: - type: string - enum: ['http://www.w3.org/ns/hydra/core#'] - required: - - '@vocab' - - hydra - additionalProperties: true - '@id': - readOnly: true - type: string - '@type': - readOnly: true - type: string - dbId: - readOnly: true - type: - - integer - - 'null' - account: - readOnly: true - $ref: '#/components/schemas/GameAccount.jsonld' - candidateItem: - readOnly: true - $ref: '#/components/schemas/Candidate.jsonld' - eaId: - readOnly: true - type: integer - eaAssetId: - readOnly: true - type: integer - eaResourceId: - readOnly: true - type: integer - rareFlag: - readOnly: true - type: integer - itemType: - readOnly: true - type: string - rating: - readOnly: true - type: integer - contracts: - readOnly: true - type: - - integer - - 'null' - playStyle: - readOnly: true - type: - - integer - - 'null' - startingBid: - type: integer - binPrice: - type: integer - individualPrice: - default: true - example: true - type: boolean - minRange: - readOnly: true - type: integer - maxRange: - readOnly: true - type: integer - lastSalePrice: - readOnly: true - type: integer - tradeState: - readOnly: true - type: - - string - - 'null' - eaTradeId: - readOnly: true - type: - - integer - - 'null' - rebuy: - readOnly: true - default: true - example: true - type: boolean - leagueId: - readOnly: true - type: - - integer - - 'null' - teamId: - readOnly: true - type: - - integer - - 'null' - nationId: - readOnly: true - type: - - integer - - 'null' - listCnt: - readOnly: true - type: integer - openBidCnt: - readOnly: true - type: - - integer - - 'null' - snipedItem: - readOnly: true - default: true - example: true - type: boolean - marketAverage: - readOnly: true - type: - - integer - - 'null' - creationDate: - readOnly: true - type: string - format: date-time - Candidate: - type: object - description: '' - deprecated: false - properties: - dbId: - readOnly: true - type: - - integer - - 'null' - rarity: - readOnly: true - type: string - format: iri-reference - example: 'https://example.com/' - candidateStat: - readOnly: true - type: string - format: iri-reference - example: 'https://example.com/' - player: - readOnly: true - type: string - format: iri-reference - example: 'https://example.com/' - firstname: - readOnly: true - type: - - string - - 'null' - lastname: - readOnly: true - type: - - string - - 'null' - nickname: - readOnly: true - type: - - string - - 'null' - fullDisplayInfo: - readOnly: true - type: - - string - - 'null' - eaAssetId: - readOnly: true - type: - - integer - - 'null' - eaResourceId: - readOnly: true - type: - - integer - - 'null' - rareFlag: - readOnly: true - type: - - integer - - 'null' - rarityName: - readOnly: true - type: - - string - - 'null' - image: - readOnly: true - type: - - string - - 'null' - format: iri-reference - example: 'https://example.com/' - imageUrl: - readOnly: true - type: - - string - - 'null' - cardImageUrl: - readOnly: true - type: - - string - - 'null' - stockCountTotal: - readOnly: true - type: - - integer - - 'null' - stockCountReal: - readOnly: true - type: - - integer - - 'null' - futBinId: - type: - - integer - - 'null' - futBinName: - type: - - string - - 'null' - futBinPrice: - type: - - integer - - 'null' - futBinSellingPrice: - type: - - integer - - 'null' - lastFutBinUpdate: - readOnly: true - type: - - string - - 'null' - format: date-time - futWizId: - type: - - integer - - 'null' - futWizPrice: - type: - - integer - - 'null' - futwizName: - type: - - string - - 'null' - futWizSellingPrice: - type: - - integer - - 'null' - lastFutWizUpdate: - readOnly: true - type: - - string - - 'null' - format: date-time - rating: - type: - - integer - - 'null' - highestBuyBinPrice: - type: - - integer - - 'null' - sellStartingBid: - type: - - integer - - 'null' - sellBinPrice: - type: - - integer - - 'null' - lastFoundMinRange: - type: - - integer - - 'null' - lastFoundMaxRange: - type: - - integer - - 'null' - lastFoundLowestBin: - type: - - integer - - 'null' - lowestBinUpdateDate: - readOnly: true - type: - - string - - 'null' - format: date-time - buy: - type: - - boolean - - 'null' - maxBuyPrice: - type: - - integer - - 'null' - buyStyle: - type: - - integer - - 'null' - newBuySelective: - type: - - boolean - - 'null' - remove: - type: - - boolean - - 'null' - leagueId: - type: - - integer - - 'null' - nationId: - type: - - integer - - 'null' - prio: - type: - - integer - - 'null' - listCnt: - type: - - integer - - 'null' - soldCnt: - type: - - integer - - 'null' - note: - type: - - string - - 'null' - relevant: - type: - - boolean - - 'null' - adjust100: - type: - - boolean - - 'null' - directReBuy: - type: - - boolean - - 'null' - marketAverage: - readOnly: true - type: - - integer - - 'null' - creationDate: - readOnly: true - type: - - string - - 'null' - format: date-time - required: - - eaAssetId - - eaResourceId - - rareFlag - - rating - - buy - - buyStyle - - newBuySelective - - remove - - listCnt - - soldCnt - - relevant - - adjust100 - - directReBuy - - creationDate - Candidate.jsonld: - type: object - description: '' - deprecated: false - properties: - '@context': - readOnly: true - oneOf: - - - type: string - - - type: object - properties: - '@vocab': - type: string - hydra: - type: string - enum: ['http://www.w3.org/ns/hydra/core#'] - required: - - '@vocab' - - hydra - additionalProperties: true - '@id': - readOnly: true - type: string - '@type': - readOnly: true - type: string - dbId: - readOnly: true - type: - - integer - - 'null' - rarity: - readOnly: true - $ref: '#/components/schemas/Rarity.jsonld' - candidateStat: - readOnly: true - $ref: '#/components/schemas/CandidateStat.jsonld' - player: - readOnly: true - $ref: '#/components/schemas/Player.jsonld' - firstname: - readOnly: true - type: - - string - - 'null' - lastname: - readOnly: true - type: - - string - - 'null' - nickname: - readOnly: true - type: - - string - - 'null' - fullDisplayInfo: - readOnly: true - type: - - string - - 'null' - eaAssetId: - readOnly: true - type: - - integer - - 'null' - eaResourceId: - readOnly: true - type: - - integer - - 'null' - rareFlag: - readOnly: true - type: - - integer - - 'null' - rarityName: - readOnly: true - type: - - string - - 'null' - image: - readOnly: true - type: - - string - - 'null' - format: iri-reference - example: 'https://example.com/' - imageUrl: - readOnly: true - type: - - string - - 'null' - cardImageUrl: - readOnly: true - type: - - string - - 'null' - stockCountTotal: - readOnly: true - type: - - integer - - 'null' - stockCountReal: - readOnly: true - type: - - integer - - 'null' - futBinId: - type: - - integer - - 'null' - futBinName: - type: - - string - - 'null' - futBinPrice: - type: - - integer - - 'null' - futBinSellingPrice: - type: - - integer - - 'null' - lastFutBinUpdate: - readOnly: true - type: - - string - - 'null' - format: date-time - futWizId: - type: - - integer - - 'null' - futWizPrice: - type: - - integer - - 'null' - futwizName: - type: - - string - - 'null' - futWizSellingPrice: - type: - - integer - - 'null' - lastFutWizUpdate: - readOnly: true - type: - - string - - 'null' - format: date-time - rating: - type: - - integer - - 'null' - highestBuyBinPrice: - type: - - integer - - 'null' - sellStartingBid: - type: - - integer - - 'null' - sellBinPrice: - type: - - integer - - 'null' - lastFoundMinRange: - type: - - integer - - 'null' - lastFoundMaxRange: - type: - - integer - - 'null' - lastFoundLowestBin: - type: - - integer - - 'null' - lowestBinUpdateDate: - readOnly: true - type: - - string - - 'null' - format: date-time - buy: - type: - - boolean - - 'null' - maxBuyPrice: - type: - - integer - - 'null' - buyStyle: - type: - - integer - - 'null' - newBuySelective: - type: - - boolean - - 'null' - remove: - type: - - boolean - - 'null' - leagueId: - type: - - integer - - 'null' - nationId: - type: - - integer - - 'null' - prio: - type: - - integer - - 'null' - listCnt: - type: - - integer - - 'null' - soldCnt: - type: - - integer - - 'null' - note: - type: - - string - - 'null' - relevant: - type: - - boolean - - 'null' - adjust100: - type: - - boolean - - 'null' - directReBuy: - type: - - boolean - - 'null' - marketAverage: - readOnly: true - type: - - integer - - 'null' - creationDate: - readOnly: true - type: - - string - - 'null' - format: date-time - required: - - eaAssetId - - eaResourceId - - rareFlag - - rating - - buy - - buyStyle - - newBuySelective - - remove - - listCnt - - soldCnt - - relevant - - adjust100 - - directReBuy - - creationDate - CandidateStat.jsonld: - type: object - description: '' - deprecated: false - properties: - '@id': - readOnly: true - type: string - '@type': - readOnly: true - type: string - '@context': - readOnly: true - oneOf: - - - type: string - - - type: object - properties: - '@vocab': - type: string - hydra: - type: string - enum: ['http://www.w3.org/ns/hydra/core#'] - required: - - '@vocab' - - hydra - additionalProperties: true - candidateItem: - readOnly: true - $ref: '#/components/schemas/Candidate.jsonld' - revRl6: - type: number - rl6: - type: integer - sold6: - type: integer - rat6: - type: number - rev6: - type: integer - revRl12: - type: number - rl12: - type: integer - sold12: - type: integer - rat12: - type: number - rev12: - type: integer - revRl24: - type: number - rl24: - type: integer - sold24: - type: integer - rat24: - type: number - rev24: - type: integer - revRl3d: - type: number - rl3d: - type: integer - sold3d: - type: integer - rat3d: - type: number - rev3d: - type: integer - revRl1w: - type: number - rl1w: - type: integer - sold1w: - type: integer - rat1w: - type: number - rev1w: - type: integer - revRl2w: - type: number - rl2w: - type: integer - sold2w: - type: integer - rat2w: - type: number - rev2w: - type: integer - revRl3w: - type: number - rl3w: - type: integer - sold3w: - type: integer - rat3w: - type: number - rev3w: - type: integer - revRl4w: - type: number - rl4w: - type: integer - sold4w: - type: integer - rat4w: - type: number - rev4w: - type: integer - revRl: - type: number - rl: - type: integer - sold: - type: integer - rat: - type: number - rev: - type: integer - snipingRev: - type: integer - creationDate: - readOnly: true - type: - - string - - 'null' - format: date-time - lastUpdateDate: - readOnly: true - type: - - string - - 'null' - format: date-time - CandidateStockAccounts.jsonld: - type: object - description: '' - deprecated: false - properties: - '@context': - readOnly: true - oneOf: - - - type: string - - - type: object - properties: - '@vocab': - type: string - hydra: - type: string - enum: ['http://www.w3.org/ns/hydra/core#'] - required: - - '@vocab' - - hydra - additionalProperties: true - '@id': - readOnly: true - type: string - '@type': - readOnly: true - type: string - candidatesStockAccounts: - type: array - items: - $ref: '#/components/schemas/GameAccount.jsonld' - candidatesMissingAccounts: - type: array - items: - $ref: '#/components/schemas/GameAccount.jsonld' - Config: - type: object - description: '' - deprecated: false - properties: - systemActive: - type: boolean - systemRunning: - type: boolean - lastUpdateDate: - readOnly: true - type: string - format: date-time - lastCheckDate: - readOnly: true - type: string - format: date-time - processCnt: - readOnly: true - type: integer - sleepHourStart: - minimum: 0 - maximum: 23 - type: - - integer - - 'null' - sleepHourEnd: - minimum: 0 - maximum: 23 - type: - - integer - - 'null' - checkMaxSales: - type: boolean - numMaxSales: - minimum: 0 - maximum: 20 - type: - - integer - - 'null' - Config.jsonld: - type: object - description: '' - deprecated: false - properties: - '@context': - readOnly: true - oneOf: - - - type: string - - - type: object - properties: - '@vocab': - type: string - hydra: - type: string - enum: ['http://www.w3.org/ns/hydra/core#'] - required: - - '@vocab' - - hydra - additionalProperties: true - '@id': - readOnly: true - type: string - '@type': - readOnly: true - type: string - systemActive: - type: boolean - systemRunning: - type: boolean - lastUpdateDate: - readOnly: true - type: string - format: date-time - lastCheckDate: - readOnly: true - type: string - format: date-time - processCnt: - readOnly: true - type: integer - sleepHourStart: - minimum: 0 - maximum: 23 - type: - - integer - - 'null' - sleepHourEnd: - minimum: 0 - maximum: 23 - type: - - integer - - 'null' - checkMaxSales: - type: boolean - numMaxSales: - minimum: 0 - maximum: 20 - type: - - integer - - 'null' - GameAccount: - type: object - description: '' - deprecated: false - properties: - dbId: - readOnly: true - type: - - integer - - 'null' - email: - format: email - externalDocs: - url: 'https://schema.org/email' - type: - - string - - 'null' - profile: - type: - - string - - 'null' - password: - type: - - string - - 'null' - emailPw: - type: - - string - - 'null' - credits: - readOnly: true - type: - - integer - - 'null' - cntItems: - readOnly: true - type: - - integer - - 'null' - cntSoldItems: - readOnly: true - type: - - integer - - 'null' - cntInactiveItems: - readOnly: true - type: - - integer - - 'null' - active: - type: - - boolean - - 'null' - running: - type: - - boolean - - 'null' - relist: - type: - - boolean - - 'null' - relistDate: - type: - - string - - 'null' - format: date-time - blocked: - type: - - boolean - - 'null' - sniping: - type: - - boolean - - 'null' - snipingDate: - readOnly: true - type: - - string - - 'null' - format: date-time - tmOpen: - type: - - boolean - - 'null' - tmState: - type: - - integer - - 'null' - dead: - type: - - boolean - - 'null' - lockedMsg: - type: - - boolean - - 'null' - dynPrices: - type: - - boolean - - 'null' - newBuy: - type: - - boolean - - 'null' - newBuyDate: - readOnly: true - type: - - string - - 'null' - format: date-time - newBuySelective: - type: - - boolean - - 'null' - reBuy: - type: - - boolean - - 'null' - rebuyDate: - readOnly: true - type: - - string - - 'null' - format: date-time - connectionDate: - readOnly: true - type: - - string - - 'null' - format: date-time - importWatchlist: - type: - - boolean - - 'null' - autoReBuy: - type: - - boolean - - 'null' - directReBuy: - type: - - boolean - - 'null' - itemMaxBuyPrice: - minimum: 0 - maximum: 15000000 - type: - - integer - - 'null' - revenue: - readOnly: true - type: - - integer - - 'null' - futWizValue: - readOnly: true - type: - - integer - - 'null' - eaMarketAvgValue: - readOnly: true - type: - - integer - - 'null' - mfaCode: - type: - - string - - 'null' - twoFactorAuthKey: - type: - - string - - 'null' - login2FaViaApp: - type: - - boolean - - 'null' - eaCode1: - type: - - string - - 'null' - eaCode2: - type: - - string - - 'null' - eaCode3: - type: - - string - - 'null' - eaCode4: - type: - - string - - 'null' - eaCode5: - type: - - string - - 'null' - eaCode6: - type: - - string - - 'null' - snipingCnt1h: - type: - - integer - - 'null' - snipingCnt3h: - type: - - integer - - 'null' - snipingCnt6h: - type: - - integer - - 'null' - snipingCnt12h: - type: - - integer - - 'null' - snipingCnt24h: - type: - - integer - - 'null' - snipingCnt3d: - type: - - integer - - 'null' - snipingCnt1w: - type: - - integer - - 'null' - note: - type: - - string - - 'null' - loopStartDate: - readOnly: true - type: - - string - - 'null' - format: date-time - loopFinishDate: - readOnly: true - type: - - string - - 'null' - format: date-time - creationDate: - readOnly: true - type: - - string - - 'null' - format: date-time - owner: - readOnly: true - type: string - format: iri-reference - example: 'https://example.com/' - required: - - email - - profile - - password - - active - - running - - relist - - blocked - - sniping - - tmOpen - - dead - - lockedMsg - - dynPrices - - newBuy - - newBuySelective - - reBuy - - importWatchlist - - autoReBuy - - directReBuy - GameAccount.jsonld: - type: object - description: '' - deprecated: false - properties: - '@context': - readOnly: true - oneOf: - - - type: string - - - type: object - properties: - '@vocab': - type: string - hydra: - type: string - enum: ['http://www.w3.org/ns/hydra/core#'] - required: - - '@vocab' - - hydra - additionalProperties: true - '@id': - readOnly: true - type: string - '@type': - readOnly: true - type: string - dbId: - readOnly: true - type: - - integer - - 'null' - email: - format: email - externalDocs: - url: 'https://schema.org/email' - type: - - string - - 'null' - profile: - type: - - string - - 'null' - password: - type: - - string - - 'null' - emailPw: - type: - - string - - 'null' - credits: - readOnly: true - type: - - integer - - 'null' - cntItems: - readOnly: true - type: - - integer - - 'null' - cntSoldItems: - readOnly: true - type: - - integer - - 'null' - cntInactiveItems: - readOnly: true - type: - - integer - - 'null' - active: - type: - - boolean - - 'null' - running: - type: - - boolean - - 'null' - relist: - type: - - boolean - - 'null' - relistDate: - type: - - string - - 'null' - format: date-time - blocked: - type: - - boolean - - 'null' - sniping: - type: - - boolean - - 'null' - snipingDate: - readOnly: true - type: - - string - - 'null' - format: date-time - tmOpen: - type: - - boolean - - 'null' - tmState: - type: - - integer - - 'null' - dead: - type: - - boolean - - 'null' - lockedMsg: - type: - - boolean - - 'null' - dynPrices: - type: - - boolean - - 'null' - newBuy: - type: - - boolean - - 'null' - newBuyDate: - readOnly: true - type: - - string - - 'null' - format: date-time - newBuySelective: - type: - - boolean - - 'null' - reBuy: - type: - - boolean - - 'null' - rebuyDate: - readOnly: true - type: - - string - - 'null' - format: date-time - connectionDate: - readOnly: true - type: - - string - - 'null' - format: date-time - importWatchlist: - type: - - boolean - - 'null' - autoReBuy: - type: - - boolean - - 'null' - directReBuy: - type: - - boolean - - 'null' - itemMaxBuyPrice: - minimum: 0 - maximum: 15000000 - type: - - integer - - 'null' - revenue: - readOnly: true - type: - - integer - - 'null' - futWizValue: - readOnly: true - type: - - integer - - 'null' - eaMarketAvgValue: - readOnly: true - type: - - integer - - 'null' - mfaCode: - type: - - string - - 'null' - twoFactorAuthKey: - type: - - string - - 'null' - login2FaViaApp: - type: - - boolean - - 'null' - eaCode1: - type: - - string - - 'null' - eaCode2: - type: - - string - - 'null' - eaCode3: - type: - - string - - 'null' - eaCode4: - type: - - string - - 'null' - eaCode5: - type: - - string - - 'null' - eaCode6: - type: - - string - - 'null' - snipingCnt1h: - type: - - integer - - 'null' - snipingCnt3h: - type: - - integer - - 'null' - snipingCnt6h: - type: - - integer - - 'null' - snipingCnt12h: - type: - - integer - - 'null' - snipingCnt24h: - type: - - integer - - 'null' - snipingCnt3d: - type: - - integer - - 'null' - snipingCnt1w: - type: - - integer - - 'null' - note: - type: - - string - - 'null' - loopStartDate: + properties: + zone: readOnly: true - type: - - string - - 'null' - format: date-time - loopFinishDate: + type: string + format: iri-reference + example: 'https://example.com/' + name: + type: string + zoneName: readOnly: true - type: - - string - - 'null' - format: date-time - creationDate: + type: string + createdAt: readOnly: true type: - string - 'null' format: date-time - owner: - readOnly: true - $ref: '#/components/schemas/User.jsonld' required: - - email - - profile - - password - - active - - running - - relist - - blocked - - sniping - - tmOpen - - dead - - lockedMsg - - dynPrices - - newBuy - - newBuySelective - - reBuy - - importWatchlist - - autoReBuy - - directReBuy - LogAccountCredit.jsonld: + - name + Location.jsonld: type: object description: '' deprecated: false properties: - '@id': - readOnly: true - type: string - '@type': - readOnly: true - type: string '@context': readOnly: true oneOf: @@ -3949,36 +1909,35 @@ components: - '@vocab' - hydra additionalProperties: true - gameAccount: + '@id': readOnly: true - $ref: '#/components/schemas/GameAccount.jsonld' - credits: + type: string + '@type': readOnly: true - type: - - integer - - 'null' - revenue: + type: string + zone: readOnly: true - type: - - integer - - 'null' - creationDate: + $ref: '#/components/schemas/Zone.jsonld' + name: + type: string + zoneName: + readOnly: true + type: string + createdAt: readOnly: true type: - string - 'null' format: date-time - LogAccountProfit.jsonld: + required: + - name + MediaObject.jsonld-media_object.read: type: object description: '' deprecated: false + externalDocs: + url: 'https://schema.org/MediaObject' properties: - '@id': - readOnly: true - type: string - '@type': - readOnly: true - type: string '@context': readOnly: true oneOf: @@ -3996,145 +1955,122 @@ components: - '@vocab' - hydra additionalProperties: true - gameAccount: + '@id': readOnly: true - $ref: '#/components/schemas/GameAccount.jsonld' - credits: - type: - - integer - - 'null' - revenue: - type: - - integer - - 'null' - tpValue: - type: - - integer - - 'null' - revToday: - type: - - integer - - 'null' - rev3hours: - type: - - integer - - 'null' - rev6hours: - type: - - integer - - 'null' - rev12hours: - type: - - integer - - 'null' - rev24hours: - type: - - integer - - 'null' - rev3days: - type: - - integer - - 'null' - rev1week: - type: - - integer - - 'null' - rev2weeks: - type: - - integer - - 'null' - rev3weeks: - type: - - integer - - 'null' - rev4weeks: - type: - - integer - - 'null' - rev2months: - type: - - integer - - 'null' - rev3months: - type: - - integer - - 'null' - revTotal: - type: - - integer - - 'null' - numSalesToday: - type: - - integer - - 'null' - numSales3hours: - type: - - integer - - 'null' - numSales6hours: - type: - - integer - - 'null' - numSales12hours: - type: - - integer - - 'null' - numSales24hours: - type: - - integer - - 'null' - numSales3days: - type: - - integer - - 'null' - numSales1week: - type: - - integer - - 'null' - numSales2weeks: - type: - - integer - - 'null' - numSales3weeks: + type: string + '@type': + readOnly: true + type: string + contentUrl: + externalDocs: + url: 'https://schema.org/contentUrl' type: - - integer + - string - 'null' - numSales4weeks: + ShippingCompany: + type: object + description: '' + deprecated: false + required: + - name + properties: + name: + type: string + createdAt: + readOnly: true type: - - integer + - string - 'null' - numSales2months: + format: date-time + ShippingCompany.jsonld: + type: object + description: '' + deprecated: false + required: + - name + properties: + '@context': + readOnly: true + oneOf: + - + type: string + - + type: object + properties: + '@vocab': + type: string + hydra: + type: string + enum: ['http://www.w3.org/ns/hydra/core#'] + required: + - '@vocab' + - hydra + additionalProperties: true + '@id': + readOnly: true + type: string + '@type': + readOnly: true + type: string + name: + type: string + createdAt: + readOnly: true type: - - integer + - string - 'null' - numSales3months: + format: date-time + Trip: + type: object + description: '' + deprecated: false + properties: + vessel: + readOnly: true + type: string + format: iri-reference + example: 'https://example.com/' + pilotReference: + type: string + captainName: type: - - integer + - string - 'null' - numSalesTotal: + startLocation: + readOnly: true + type: string + format: iri-reference + example: 'https://example.com/' + endLocation: + readOnly: true + type: string + format: iri-reference + example: 'https://example.com/' + startDate: type: - - integer + - string - 'null' - isDailyProfit: + format: date-time + endDate: type: - - boolean + - string - 'null' - creationDate: + format: date-time + createdAt: + readOnly: true type: - string - 'null' format: date-time - LogAccountSoldItem.jsonld: + required: + - pilotReference + - startDate + - endDate + Trip.jsonld: type: object description: '' deprecated: false properties: - '@id': - readOnly: true - type: string - '@type': - readOnly: true - type: string '@context': readOnly: true oneOf: @@ -4152,87 +2088,80 @@ components: - '@vocab' - hydra additionalProperties: true - dbId: + '@id': readOnly: true - type: - - integer - - 'null' - gameAccount: + type: string + '@type': readOnly: true - $ref: '#/components/schemas/GameAccount.jsonld' - candidateItem: + type: string + vessel: readOnly: true - $ref: '#/components/schemas/Candidate.jsonld' - eaId: + $ref: '#/components/schemas/Vessel.jsonld' + pilotReference: + type: string + captainName: + type: + - string + - 'null' + startLocation: readOnly: true - type: integer - contracts: + $ref: '#/components/schemas/Location.jsonld' + endLocation: readOnly: true + $ref: '#/components/schemas/Location.jsonld' + startDate: type: - - integer + - string - 'null' - playStyle: - readOnly: true + format: date-time + endDate: type: - - integer + - string - 'null' - lastSalePrice: - readOnly: true - type: integer - currentBid: - readOnly: true - type: integer - startingBid: - readOnly: true - type: integer - binPrice: - readOnly: true - type: integer - minRange: - readOnly: true - type: integer - maxRange: + format: date-time + createdAt: readOnly: true - type: integer - tradeState: + type: + - string + - 'null' + format: date-time + required: + - pilotReference + - startDate + - endDate + TripLocation: + type: object + description: '' + deprecated: false + properties: + trip: readOnly: true type: string - eaTradeId: - readOnly: true - type: integer - listCnt: - readOnly: true - type: integer - revenue: - readOnly: true - type: integer - reBought: - readOnly: true - type: boolean - snipedItem: - readOnly: true - type: boolean - firstListDate: + format: iri-reference + example: 'https://example.com/' + location: readOnly: true + type: string + format: iri-reference + example: 'https://example.com/' + date: type: - string - 'null' format: date-time - creationDate: + createdAt: readOnly: true - type: string + type: + - string + - 'null' format: date-time - LogGeneral.jsonld: + required: + - date + TripLocation.jsonld: type: object description: '' deprecated: false properties: - '@id': - readOnly: true - type: string - '@type': - readOnly: true - type: string '@context': readOnly: true oneOf: @@ -4250,188 +2179,93 @@ components: - '@vocab' - hydra additionalProperties: true - dbId: - readOnly: true - type: integer - gameAccount: + '@id': readOnly: true - $ref: '#/components/schemas/GameAccount.jsonld' - candidateItem: + type: string + '@type': readOnly: true - $ref: '#/components/schemas/Candidate.jsonld' - logType: type: string - enum: - - alert - - alert_low - - cant_buy - - debug - - debug_server_logs - - info - - moved_to_club - - new_buy - - player_price_changed - - preview_pack - - preview_pack_alert - - price_range_errors - - profit_overview - - removed - - rebuy - - sales - - server_logs - - stats - - hourly_stats - message: + trip: readOnly: true + $ref: '#/components/schemas/Trip.jsonld' + location: + readOnly: true + $ref: '#/components/schemas/Location.jsonld' + date: type: - string - 'null' - creationDate: + format: date-time + createdAt: readOnly: true type: - string - 'null' format: date-time required: - - logType - LogTotalProfit: + - date + User: type: object description: '' deprecated: false + required: + - email + - firstName + - lastName properties: - credits: - type: - - integer - - 'null' - revenue: - type: - - integer - - 'null' - tpValueFutwiz: - type: - - integer - - 'null' - tpValueEaAverage: - type: - - integer - - 'null' - revToday: - type: - - integer - - 'null' - rev3hours: - type: - - integer - - 'null' - rev6hours: - type: - - integer - - 'null' - rev12hours: - type: - - integer - - 'null' - rev24hours: - type: - - integer - - 'null' - rev3days: - type: - - integer - - 'null' - rev1week: - type: - - integer - - 'null' - rev2weeks: - type: - - integer - - 'null' - rev3weeks: - type: - - integer - - 'null' - rev4weeks: - type: - - integer - - 'null' - rev2months: - type: - - integer - - 'null' - rev3months: - type: - - integer - - 'null' - revTotal: - type: - - integer - - 'null' - numSalesToday: - type: - - integer - - 'null' - numSales3hours: - type: - - integer - - 'null' - numSales6hours: - type: - - integer - - 'null' - numSales12hours: - type: - - integer - - 'null' - numSales24hours: - type: - - integer - - 'null' - numSales3days: - type: - - integer - - 'null' - numSales1week: - type: - - integer - - 'null' - numSales2weeks: + email: + format: email + externalDocs: + url: 'https://schema.org/email' type: - - integer + - string - 'null' - numSales3weeks: + firstName: type: - - integer + - string - 'null' - numSales4weeks: + lastName: type: - - integer + - string - 'null' - numSales2months: + image: type: - - integer + - string - 'null' - numSales3months: + format: iri-reference + example: 'https://example.com/' + imageUrl: + readOnly: true type: - - integer + - string - 'null' - numSalesTotal: + fullName: + readOnly: true type: - - integer + - string - 'null' - isDailyProfit: + password: + writeOnly: true + description: 'The plaintext password when being set or changed.' type: - - boolean + - string - 'null' - creationDate: + active: + type: boolean + createdAt: + readOnly: true type: - string - 'null' format: date-time - LogTotalProfit.jsonld: + User.jsonld: type: object description: '' deprecated: false + required: + - email + - firstName + - lastName properties: '@context': readOnly: true @@ -4456,189 +2290,89 @@ components: '@type': readOnly: true type: string - credits: - type: - - integer - - 'null' - revenue: - type: - - integer - - 'null' - tpValueFutwiz: - type: - - integer - - 'null' - tpValueEaAverage: - type: - - integer - - 'null' - revToday: - type: - - integer - - 'null' - rev3hours: - type: - - integer - - 'null' - rev6hours: - type: - - integer - - 'null' - rev12hours: - type: - - integer - - 'null' - rev24hours: - type: - - integer - - 'null' - rev3days: - type: - - integer - - 'null' - rev1week: - type: - - integer - - 'null' - rev2weeks: - type: - - integer - - 'null' - rev3weeks: - type: - - integer - - 'null' - rev4weeks: - type: - - integer - - 'null' - rev2months: - type: - - integer - - 'null' - rev3months: - type: - - integer - - 'null' - revTotal: - type: - - integer - - 'null' - numSalesToday: - type: - - integer - - 'null' - numSales3hours: - type: - - integer - - 'null' - numSales6hours: - type: - - integer - - 'null' - numSales12hours: - type: - - integer - - 'null' - numSales24hours: - type: - - integer - - 'null' - numSales3days: - type: - - integer - - 'null' - numSales1week: - type: - - integer - - 'null' - numSales2weeks: + email: + format: email + externalDocs: + url: 'https://schema.org/email' type: - - integer + - string - 'null' - numSales3weeks: + firstName: type: - - integer + - string - 'null' - numSales4weeks: + lastName: type: - - integer + - string - 'null' - numSales2months: + image: type: - - integer + - string - 'null' - numSales3months: + format: iri-reference + example: 'https://example.com/' + imageUrl: + readOnly: true type: - - integer + - string - 'null' - numSalesTotal: + fullName: + readOnly: true type: - - integer + - string - 'null' - isDailyProfit: + password: + writeOnly: true + description: 'The plaintext password when being set or changed.' type: - - boolean + - string - 'null' - creationDate: + active: + type: boolean + createdAt: + readOnly: true type: - string - 'null' format: date-time - MediaObject.jsonld-media_object.read: + UserTrip: type: object description: '' deprecated: false - externalDocs: - url: 'https://schema.org/MediaObject' properties: - '@context': - readOnly: true - oneOf: - - - type: string - - - type: object - properties: - '@vocab': - type: string - hydra: - type: string - enum: ['http://www.w3.org/ns/hydra/core#'] - required: - - '@vocab' - - hydra - additionalProperties: true - '@id': + trip: readOnly: true type: string - '@type': + format: iri-reference + example: 'https://example.com/' + user: readOnly: true type: string - contentUrl: - externalDocs: - url: 'https://schema.org/contentUrl' + format: iri-reference + example: 'https://example.com/' + captainName: + type: string + startDate: type: - string - 'null' - ModeConfig: - type: object - description: '' - deprecated: false - properties: - autoReBuyMinSoldItems: - minimum: 0 - maximum: 20 - default: 3 - example: 3 - type: integer - autoReBuyMinLastHours: - minimum: 0 - maximum: 20 - default: 3 - example: 3 - type: integer - ModeConfig.jsonld: + format: date-time + endDate: + type: + - string + - 'null' + format: date-time + createdAt: + readOnly: true + type: + - string + - 'null' + format: date-time + required: + - captainName + - startDate + - endDate + UserTrip.jsonld: type: object description: '' deprecated: false @@ -4666,44 +2400,63 @@ components: '@type': readOnly: true type: string - autoReBuyMinSoldItems: - minimum: 0 - maximum: 20 - default: 3 - example: 3 - type: integer - autoReBuyMinLastHours: - minimum: 0 - maximum: 20 - default: 3 - example: 3 - type: integer - Player: - type: object - description: '' - deprecated: false - properties: - eaAssetId: - type: integer - firstname: + trip: + readOnly: true + $ref: '#/components/schemas/Trip.jsonld' + user: + readOnly: true + $ref: '#/components/schemas/User.jsonld' + captainName: + type: string + startDate: type: - string - 'null' - lastname: + format: date-time + endDate: type: - string - 'null' - nickname: + format: date-time + createdAt: + readOnly: true type: - string - 'null' - rating: - type: integer - creationDate: + format: date-time + required: + - captainName + - startDate + - endDate + UserTripLocation: + type: object + description: '' + deprecated: false + properties: + userTrip: + readOnly: true + type: string + format: iri-reference + example: 'https://example.com/' + location: readOnly: true type: string + format: iri-reference + example: 'https://example.com/' + plannedDate: + type: + - string + - 'null' + format: date-time + createdAt: + readOnly: true + type: + - string + - 'null' format: date-time - Player.jsonld: + required: + - plannedDate + UserTripLocation.jsonld: type: object description: '' deprecated: false @@ -4731,61 +2484,65 @@ components: '@type': readOnly: true type: string - eaAssetId: - type: integer - firstname: - type: - - string - - 'null' - lastname: + userTrip: + readOnly: true + $ref: '#/components/schemas/UserTrip.jsonld' + location: + readOnly: true + $ref: '#/components/schemas/Location.jsonld' + plannedDate: type: - string - 'null' - nickname: + format: date-time + createdAt: + readOnly: true type: - string - 'null' - rating: - type: integer - creationDate: - readOnly: true - type: string format: date-time - Rarity: + required: + - plannedDate + UserTripWorkLog: type: object description: '' deprecated: false properties: - rareFlag: + userTrip: readOnly: true - type: integer - name: - type: - - string - - 'null' - untradable: + type: string + format: iri-reference + example: 'https://example.com/' + startLocation: readOnly: true - type: boolean - image: + type: string + format: iri-reference + example: 'https://example.com/' + endLocation: readOnly: true + type: string + format: iri-reference + example: 'https://example.com/' + startDate: type: - string - 'null' - format: iri-reference - example: 'https://example.com/' - imageUrl: - readOnly: true + format: date-time + endDate: type: - string - 'null' - imageBronze: + format: date-time + createdAt: readOnly: true type: - string - 'null' - format: iri-reference - example: 'https://example.com/' - Rarity.jsonld: + format: date-time + required: + - startDate + - endDate + UserTripWorkLog.jsonld: type: object description: '' deprecated: false @@ -4813,39 +2570,60 @@ components: '@type': readOnly: true type: string - rareFlag: + userTrip: readOnly: true - type: integer - name: - type: - - string - - 'null' - untradable: + $ref: '#/components/schemas/UserTrip.jsonld' + startLocation: readOnly: true - type: boolean - image: + $ref: '#/components/schemas/Location.jsonld' + endLocation: readOnly: true + $ref: '#/components/schemas/Location.jsonld' + startDate: type: - string - 'null' - format: iri-reference - example: 'https://example.com/' - imageUrl: - readOnly: true + format: date-time + endDate: type: - string - 'null' - imageBronze: + format: date-time + createdAt: readOnly: true type: - string - 'null' + format: date-time + required: + - startDate + - endDate + Vessel: + type: object + description: '' + deprecated: false + required: + - name + properties: + name: + type: string + company: + readOnly: true + type: string format: iri-reference example: 'https://example.com/' - SystemStat.jsonld: + createdAt: + readOnly: true + type: + - string + - 'null' + format: date-time + Vessel.jsonld: type: object description: '' deprecated: false + required: + - name properties: '@context': readOnly: true @@ -4870,87 +2648,38 @@ components: '@type': readOnly: true type: string - totalLogProfit: - readOnly: true - $ref: '#/components/schemas/LogTotalProfit.jsonld' - config: + name: + type: string + company: readOnly: true - $ref: '#/components/schemas/Config.jsonld' - modeConfig: + $ref: '#/components/schemas/ShippingCompany.jsonld' + createdAt: readOnly: true - $ref: '#/components/schemas/ModeConfig.jsonld' - numAccounts: - type: - - integer - - 'null' - numDeadAccounts: - type: - - integer - - 'null' - numActiveAccounts: - type: - - integer - - 'null' - numTmOpenAccounts: - type: - - integer - - 'null' - numTmClosedAccounts: - type: - - integer - - 'null' - numBlockedAccounts: - type: - - integer - - 'null' - numRunningAccounts: - type: - - integer - - 'null' - numTradepileItems: - type: - - integer - - 'null' - numSoldTradepileItems: - type: - - integer - - 'null' - numActiveTradepileItems: - type: - - integer - - 'null' - numExpiredTradepileItems: - type: - - integer - - 'null' - numInactiveTradepileItems: type: - - integer - - 'null' - numCandidates: - type: - - integer - - 'null' - numRelevantCandidates: - type: - - integer - - 'null' - numBuyCandidates: - type: - - integer + - string - 'null' - totalSnipingRev: + format: date-time + Zone: + type: object + description: '' + deprecated: false + required: + - name + properties: + name: + type: string + createdAt: + readOnly: true type: - - integer + - string - 'null' - User.jsonld: + format: date-time + Zone.jsonld: type: object description: '' deprecated: false required: - - email - - firstName - - lastName + - name properties: '@context': readOnly: true @@ -4975,45 +2704,8 @@ components: '@type': readOnly: true type: string - email: - format: email - externalDocs: - url: 'https://schema.org/email' - type: - - string - - 'null' - firstName: - type: - - string - - 'null' - lastName: - type: - - string - - 'null' - image: - type: - - string - - 'null' - format: iri-reference - example: 'https://example.com/' - imageUrl: - readOnly: true - type: - - string - - 'null' - fullName: - readOnly: true - type: - - string - - 'null' - password: - writeOnly: true - description: 'The plaintext password when being set or changed.' - type: - - string - - 'null' - active: - type: boolean + name: + type: string createdAt: readOnly: true type: @@ -5034,4 +2726,5 @@ security: - JWT: [] tags: [] +webhooks: { } diff --git a/angular/src/app/_components/filter-bar/filter-bar.component.html b/angular/src/app/_components/filter-bar/filter-bar.component.html index b08de56..9c03517 100644 --- a/angular/src/app/_components/filter-bar/filter-bar.component.html +++ b/angular/src/app/_components/filter-bar/filter-bar.component.html @@ -9,13 +9,13 @@ -

{{ getColumnText(filter.field) | translate }}

+ (change)="onFilterActiveChanged(filter.name, $event)"> +

{{ getColumnText(filter.name) | translate }}

@@ -28,13 +28,13 @@ - + (change)="onFilterActiveChanged(filter.name, $event)"> + + (input)="onTextFilterChanged(filter.name, $event)"> @@ -45,21 +45,21 @@ - + (change)="onFilterActiveChanged(filter.name, $event)"> +
+ (change)="onDateFilterChanged(filter.name, 'start', $event)">
+ (change)="onDateFilterChanged(filter.name, 'end', $event)">
@@ -72,22 +72,22 @@ - + (change)="onFilterActiveChanged(filter.name, $event)"> +
@@ -99,8 +99,8 @@ -

{{ getColumnText(filter.field) | translate }}

+ (change)="onFilterActiveChanged(filter.name, $event)"> +

{{ getColumnText(filter.name) | translate }}

@@ -110,7 +110,7 @@
+
diff --git a/angular/src/app/_components/paging/paging.component.ts b/angular/src/app/_components/paging/paging.component.ts index e7a40a7..5ecc6f8 100644 --- a/angular/src/app/_components/paging/paging.component.ts +++ b/angular/src/app/_components/paging/paging.component.ts @@ -27,7 +27,9 @@ export class PagingComponent implements OnInit, AfterViewInit { @Input() public hidePageSize: boolean; @Input() public displayOptions!: { [key: string]: any }; @Input() public defaultDisplayOption!: string; + @Input() public showCreateDataButton: boolean; @Output() public displayOptionChange = new EventEmitter(); + @Output() public createNewData = new EventEmitter(); @ViewChild(MatPaginator) public paginator!: MatPaginator; @@ -50,6 +52,7 @@ export class PagingComponent implements OnInit, AfterViewInit { this.pageIndex = 0; this.searchable = false; this.hidePageSize = false; + this.showCreateDataButton = false; } ngOnInit() { @@ -88,6 +91,10 @@ export class PagingComponent implements OnInit, AfterViewInit { ); } + onCreateData() { + this.createNewData.emit(); + } + handlePageEvent(e: PageEvent) { this.pageEvent = e; this.dataLength = e.length; diff --git a/angular/src/app/_forms/apiForms.ts b/angular/src/app/_forms/apiForms.ts index aea914b..f349615 100644 --- a/angular/src/app/_forms/apiForms.ts +++ b/angular/src/app/_forms/apiForms.ts @@ -1,620 +1,161 @@ import { FormGroup, FormControl, Validators } from '@angular/forms'; -export const accountTradePileItemForm = new FormGroup({ - dbId: new FormControl(null, []), - account: new FormControl(null, []), - candidateItem: new FormControl(null, []), - eaId: new FormControl(null, []), - eaAssetId: new FormControl(null, []), - eaResourceId: new FormControl(null, []), - rareFlag: new FormControl(null, []), - itemType: new FormControl(null, []), - rating: new FormControl(null, []), - contracts: new FormControl(null, []), - playStyle: new FormControl(null, []), - startingBid: new FormControl(null, []), - binPrice: new FormControl(null, []), - individualPrice: new FormControl(null, []), - minRange: new FormControl(null, []), - maxRange: new FormControl(null, []), - lastSalePrice: new FormControl(null, []), - tradeState: new FormControl(null, []), - eaTradeId: new FormControl(null, []), - rebuy: new FormControl(null, []), - leagueId: new FormControl(null, []), - teamId: new FormControl(null, []), - nationId: new FormControl(null, []), - listCnt: new FormControl(null, []), - openBidCnt: new FormControl(null, []), - snipedItem: new FormControl(null, []), - marketAverage: new FormControl(null, []), - creationDate: new FormControl(null, []) +export const locationForm = new FormGroup({ + zone: new FormControl(null, []), + name: new FormControl(null, [Validators.required]), + zoneName: new FormControl(null, []), + createdAt: new FormControl(null, []) }); -export const accountTradePileItemJsonldForm = new FormGroup({ - dbId: new FormControl(null, []), - account: new FormControl(null, []), - candidateItem: new FormControl(null, []), - eaId: new FormControl(null, []), - eaAssetId: new FormControl(null, []), - eaResourceId: new FormControl(null, []), - rareFlag: new FormControl(null, []), - itemType: new FormControl(null, []), - rating: new FormControl(null, []), - contracts: new FormControl(null, []), - playStyle: new FormControl(null, []), - startingBid: new FormControl(null, []), - binPrice: new FormControl(null, []), - individualPrice: new FormControl(null, []), - minRange: new FormControl(null, []), - maxRange: new FormControl(null, []), - lastSalePrice: new FormControl(null, []), - tradeState: new FormControl(null, []), - eaTradeId: new FormControl(null, []), - rebuy: new FormControl(null, []), - leagueId: new FormControl(null, []), - teamId: new FormControl(null, []), - nationId: new FormControl(null, []), - listCnt: new FormControl(null, []), - openBidCnt: new FormControl(null, []), - snipedItem: new FormControl(null, []), - marketAverage: new FormControl(null, []), - creationDate: new FormControl(null, []) +export const locationJsonldForm = new FormGroup({ + zone: new FormControl(null, []), + name: new FormControl(null, [Validators.required]), + zoneName: new FormControl(null, []), + createdAt: new FormControl(null, []) }); -export const candidateForm = new FormGroup({ - dbId: new FormControl(null, []), - rarity: new FormControl(null, []), - candidateStat: new FormControl(null, []), - player: new FormControl(null, []), - firstname: new FormControl(null, []), - lastname: new FormControl(null, []), - nickname: new FormControl(null, []), - fullDisplayInfo: new FormControl(null, []), - eaAssetId: new FormControl(null, [Validators.required]), - eaResourceId: new FormControl(null, [Validators.required]), - rareFlag: new FormControl(null, [Validators.required]), - rarityName: new FormControl(null, []), - image: new FormControl(null, []), - imageUrl: new FormControl(null, []), - cardImageUrl: new FormControl(null, []), - stockCountTotal: new FormControl(null, []), - stockCountReal: new FormControl(null, []), - futBinId: new FormControl(null, []), - futBinName: new FormControl(null, []), - futBinPrice: new FormControl(null, []), - futBinSellingPrice: new FormControl(null, []), - lastFutBinUpdate: new FormControl(null, []), - futWizId: new FormControl(null, []), - futWizPrice: new FormControl(null, []), - futwizName: new FormControl(null, []), - futWizSellingPrice: new FormControl(null, []), - lastFutWizUpdate: new FormControl(null, []), - rating: new FormControl(null, [Validators.required]), - highestBuyBinPrice: new FormControl(null, []), - sellStartingBid: new FormControl(null, []), - sellBinPrice: new FormControl(null, []), - lastFoundMinRange: new FormControl(null, []), - lastFoundMaxRange: new FormControl(null, []), - lastFoundLowestBin: new FormControl(null, []), - lowestBinUpdateDate: new FormControl(null, []), - buy: new FormControl(null, [Validators.required]), - maxBuyPrice: new FormControl(null, []), - buyStyle: new FormControl(null, [Validators.required]), - newBuySelective: new FormControl(null, [Validators.required]), - remove: new FormControl(null, [Validators.required]), - leagueId: new FormControl(null, []), - nationId: new FormControl(null, []), - prio: new FormControl(null, []), - listCnt: new FormControl(null, [Validators.required]), - soldCnt: new FormControl(null, [Validators.required]), - note: new FormControl(null, []), - relevant: new FormControl(null, [Validators.required]), - adjust100: new FormControl(null, [Validators.required]), - directReBuy: new FormControl(null, [Validators.required]), - marketAverage: new FormControl(null, []), - creationDate: new FormControl(null, [Validators.required]) +export const mediaObjectJsonldMediaObjectReadForm = new FormGroup({ + contentUrl: new FormControl(null, []) }); -export const candidateJsonldForm = new FormGroup({ - dbId: new FormControl(null, []), - rarity: new FormControl(null, []), - candidateStat: new FormControl(null, []), - player: new FormControl(null, []), - firstname: new FormControl(null, []), - lastname: new FormControl(null, []), - nickname: new FormControl(null, []), - fullDisplayInfo: new FormControl(null, []), - eaAssetId: new FormControl(null, [Validators.required]), - eaResourceId: new FormControl(null, [Validators.required]), - rareFlag: new FormControl(null, [Validators.required]), - rarityName: new FormControl(null, []), - image: new FormControl(null, []), - imageUrl: new FormControl(null, []), - cardImageUrl: new FormControl(null, []), - stockCountTotal: new FormControl(null, []), - stockCountReal: new FormControl(null, []), - futBinId: new FormControl(null, []), - futBinName: new FormControl(null, []), - futBinPrice: new FormControl(null, []), - futBinSellingPrice: new FormControl(null, []), - lastFutBinUpdate: new FormControl(null, []), - futWizId: new FormControl(null, []), - futWizPrice: new FormControl(null, []), - futwizName: new FormControl(null, []), - futWizSellingPrice: new FormControl(null, []), - lastFutWizUpdate: new FormControl(null, []), - rating: new FormControl(null, [Validators.required]), - highestBuyBinPrice: new FormControl(null, []), - sellStartingBid: new FormControl(null, []), - sellBinPrice: new FormControl(null, []), - lastFoundMinRange: new FormControl(null, []), - lastFoundMaxRange: new FormControl(null, []), - lastFoundLowestBin: new FormControl(null, []), - lowestBinUpdateDate: new FormControl(null, []), - buy: new FormControl(null, [Validators.required]), - maxBuyPrice: new FormControl(null, []), - buyStyle: new FormControl(null, [Validators.required]), - newBuySelective: new FormControl(null, [Validators.required]), - remove: new FormControl(null, [Validators.required]), - leagueId: new FormControl(null, []), - nationId: new FormControl(null, []), - prio: new FormControl(null, []), - listCnt: new FormControl(null, [Validators.required]), - soldCnt: new FormControl(null, [Validators.required]), - note: new FormControl(null, []), - relevant: new FormControl(null, [Validators.required]), - adjust100: new FormControl(null, [Validators.required]), - directReBuy: new FormControl(null, [Validators.required]), - marketAverage: new FormControl(null, []), - creationDate: new FormControl(null, [Validators.required]) +export const shippingCompanyForm = new FormGroup({ + name: new FormControl(null, [Validators.required]), + createdAt: new FormControl(null, []) }); -export const candidateStatJsonldForm = new FormGroup({ - candidateItem: new FormControl(null, []), - revRl6: new FormControl(null, []), - rl6: new FormControl(null, []), - sold6: new FormControl(null, []), - rat6: new FormControl(null, []), - rev6: new FormControl(null, []), - revRl12: new FormControl(null, []), - rl12: new FormControl(null, []), - sold12: new FormControl(null, []), - rat12: new FormControl(null, []), - rev12: new FormControl(null, []), - revRl24: new FormControl(null, []), - rl24: new FormControl(null, []), - sold24: new FormControl(null, []), - rat24: new FormControl(null, []), - rev24: new FormControl(null, []), - revRl3d: new FormControl(null, []), - rl3d: new FormControl(null, []), - sold3d: new FormControl(null, []), - rat3d: new FormControl(null, []), - rev3d: new FormControl(null, []), - revRl1w: new FormControl(null, []), - rl1w: new FormControl(null, []), - sold1w: new FormControl(null, []), - rat1w: new FormControl(null, []), - rev1w: new FormControl(null, []), - revRl2w: new FormControl(null, []), - rl2w: new FormControl(null, []), - sold2w: new FormControl(null, []), - rat2w: new FormControl(null, []), - rev2w: new FormControl(null, []), - revRl3w: new FormControl(null, []), - rl3w: new FormControl(null, []), - sold3w: new FormControl(null, []), - rat3w: new FormControl(null, []), - rev3w: new FormControl(null, []), - revRl4w: new FormControl(null, []), - rl4w: new FormControl(null, []), - sold4w: new FormControl(null, []), - rat4w: new FormControl(null, []), - rev4w: new FormControl(null, []), - revRl: new FormControl(null, []), - rl: new FormControl(null, []), - sold: new FormControl(null, []), - rat: new FormControl(null, []), - rev: new FormControl(null, []), - snipingRev: new FormControl(null, []), - creationDate: new FormControl(null, []), - lastUpdateDate: new FormControl(null, []) +export const shippingCompanyJsonldForm = new FormGroup({ + name: new FormControl(null, [Validators.required]), + createdAt: new FormControl(null, []) }); -export const candidateStockAccountsJsonldForm = new FormGroup({ - candidatesStockAccounts: new FormControl(null, []), - candidatesMissingAccounts: new FormControl(null, []) +export const tripForm = new FormGroup({ + vessel: new FormControl(null, []), + pilotReference: new FormControl(null, [Validators.required]), + captainName: new FormControl(null, []), + startLocation: new FormControl(null, []), + endLocation: new FormControl(null, []), + startDate: new FormControl(null, [Validators.required]), + endDate: new FormControl(null, [Validators.required]), + createdAt: new FormControl(null, []) }); -export const configForm = new FormGroup({ - systemActive: new FormControl(null, []), - systemRunning: new FormControl(null, []), - lastUpdateDate: new FormControl(null, []), - lastCheckDate: new FormControl(null, []), - processCnt: new FormControl(null, []), - sleepHourStart: new FormControl(null, [ - Validators.min(0), - Validators.max(23) - ]), - sleepHourEnd: new FormControl(null, [Validators.min(0), Validators.max(23)]), - checkMaxSales: new FormControl(null, []), - numMaxSales: new FormControl(null, [Validators.min(0), Validators.max(20)]) +export const tripJsonldForm = new FormGroup({ + vessel: new FormControl(null, []), + pilotReference: new FormControl(null, [Validators.required]), + captainName: new FormControl(null, []), + startLocation: new FormControl(null, []), + endLocation: new FormControl(null, []), + startDate: new FormControl(null, [Validators.required]), + endDate: new FormControl(null, [Validators.required]), + createdAt: new FormControl(null, []) }); -export const configJsonldForm = new FormGroup({ - systemActive: new FormControl(null, []), - systemRunning: new FormControl(null, []), - lastUpdateDate: new FormControl(null, []), - lastCheckDate: new FormControl(null, []), - processCnt: new FormControl(null, []), - sleepHourStart: new FormControl(null, [ - Validators.min(0), - Validators.max(23) - ]), - sleepHourEnd: new FormControl(null, [Validators.min(0), Validators.max(23)]), - checkMaxSales: new FormControl(null, []), - numMaxSales: new FormControl(null, [Validators.min(0), Validators.max(20)]) +export const tripLocationForm = new FormGroup({ + trip: new FormControl(null, []), + location: new FormControl(null, []), + date: new FormControl(null, [Validators.required]), + createdAt: new FormControl(null, []) }); -export const gameAccountForm = new FormGroup({ - dbId: new FormControl(null, []), - email: new FormControl(null, [Validators.required, Validators.email]), - profile: new FormControl(null, [Validators.required]), - password: new FormControl(null, [Validators.required]), - emailPw: new FormControl(null, []), - credits: new FormControl(null, []), - cntItems: new FormControl(null, []), - cntSoldItems: new FormControl(null, []), - cntInactiveItems: new FormControl(null, []), - active: new FormControl(null, [Validators.required]), - running: new FormControl(null, [Validators.required]), - relist: new FormControl(null, [Validators.required]), - relistDate: new FormControl(null, []), - blocked: new FormControl(null, [Validators.required]), - sniping: new FormControl(null, [Validators.required]), - snipingDate: new FormControl(null, []), - tmOpen: new FormControl(null, [Validators.required]), - tmState: new FormControl(null, []), - dead: new FormControl(null, [Validators.required]), - lockedMsg: new FormControl(null, [Validators.required]), - dynPrices: new FormControl(null, [Validators.required]), - newBuy: new FormControl(null, [Validators.required]), - newBuyDate: new FormControl(null, []), - newBuySelective: new FormControl(null, [Validators.required]), - reBuy: new FormControl(null, [Validators.required]), - rebuyDate: new FormControl(null, []), - connectionDate: new FormControl(null, []), - importWatchlist: new FormControl(null, [Validators.required]), - autoReBuy: new FormControl(null, [Validators.required]), - directReBuy: new FormControl(null, [Validators.required]), - itemMaxBuyPrice: new FormControl(null, [ - Validators.min(0), - Validators.max(15000000) - ]), - revenue: new FormControl(null, []), - futWizValue: new FormControl(null, []), - eaMarketAvgValue: new FormControl(null, []), - mfaCode: new FormControl(null, []), - twoFactorAuthKey: new FormControl(null, []), - login2FaViaApp: new FormControl(null, []), - eaCode1: new FormControl(null, []), - eaCode2: new FormControl(null, []), - eaCode3: new FormControl(null, []), - eaCode4: new FormControl(null, []), - eaCode5: new FormControl(null, []), - eaCode6: new FormControl(null, []), - snipingCnt1h: new FormControl(null, []), - snipingCnt3h: new FormControl(null, []), - snipingCnt6h: new FormControl(null, []), - snipingCnt12h: new FormControl(null, []), - snipingCnt24h: new FormControl(null, []), - snipingCnt3d: new FormControl(null, []), - snipingCnt1w: new FormControl(null, []), - note: new FormControl(null, []), - loopStartDate: new FormControl(null, []), - loopFinishDate: new FormControl(null, []), - creationDate: new FormControl(null, []), - owner: new FormControl(null, []) +export const tripLocationJsonldForm = new FormGroup({ + trip: new FormControl(null, []), + location: new FormControl(null, []), + date: new FormControl(null, [Validators.required]), + createdAt: new FormControl(null, []) }); -export const gameAccountJsonldForm = new FormGroup({ - dbId: new FormControl(null, []), +export const userForm = new FormGroup({ email: new FormControl(null, [Validators.required, Validators.email]), - profile: new FormControl(null, [Validators.required]), - password: new FormControl(null, [Validators.required]), - emailPw: new FormControl(null, []), - credits: new FormControl(null, []), - cntItems: new FormControl(null, []), - cntSoldItems: new FormControl(null, []), - cntInactiveItems: new FormControl(null, []), - active: new FormControl(null, [Validators.required]), - running: new FormControl(null, [Validators.required]), - relist: new FormControl(null, [Validators.required]), - relistDate: new FormControl(null, []), - blocked: new FormControl(null, [Validators.required]), - sniping: new FormControl(null, [Validators.required]), - snipingDate: new FormControl(null, []), - tmOpen: new FormControl(null, [Validators.required]), - tmState: new FormControl(null, []), - dead: new FormControl(null, [Validators.required]), - lockedMsg: new FormControl(null, [Validators.required]), - dynPrices: new FormControl(null, [Validators.required]), - newBuy: new FormControl(null, [Validators.required]), - newBuyDate: new FormControl(null, []), - newBuySelective: new FormControl(null, [Validators.required]), - reBuy: new FormControl(null, [Validators.required]), - rebuyDate: new FormControl(null, []), - connectionDate: new FormControl(null, []), - importWatchlist: new FormControl(null, [Validators.required]), - autoReBuy: new FormControl(null, [Validators.required]), - directReBuy: new FormControl(null, [Validators.required]), - itemMaxBuyPrice: new FormControl(null, [ - Validators.min(0), - Validators.max(15000000) - ]), - revenue: new FormControl(null, []), - futWizValue: new FormControl(null, []), - eaMarketAvgValue: new FormControl(null, []), - mfaCode: new FormControl(null, []), - twoFactorAuthKey: new FormControl(null, []), - login2FaViaApp: new FormControl(null, []), - eaCode1: new FormControl(null, []), - eaCode2: new FormControl(null, []), - eaCode3: new FormControl(null, []), - eaCode4: new FormControl(null, []), - eaCode5: new FormControl(null, []), - eaCode6: new FormControl(null, []), - snipingCnt1h: new FormControl(null, []), - snipingCnt3h: new FormControl(null, []), - snipingCnt6h: new FormControl(null, []), - snipingCnt12h: new FormControl(null, []), - snipingCnt24h: new FormControl(null, []), - snipingCnt3d: new FormControl(null, []), - snipingCnt1w: new FormControl(null, []), - note: new FormControl(null, []), - loopStartDate: new FormControl(null, []), - loopFinishDate: new FormControl(null, []), - creationDate: new FormControl(null, []), - owner: new FormControl(null, []) -}); - -export const logAccountCreditJsonldForm = new FormGroup({ - gameAccount: new FormControl(null, []), - credits: new FormControl(null, []), - revenue: new FormControl(null, []), - creationDate: new FormControl(null, []) -}); - -export const logAccountProfitJsonldForm = new FormGroup({ - gameAccount: new FormControl(null, []), - credits: new FormControl(null, []), - revenue: new FormControl(null, []), - tpValue: new FormControl(null, []), - revToday: new FormControl(null, []), - rev3hours: new FormControl(null, []), - rev6hours: new FormControl(null, []), - rev12hours: new FormControl(null, []), - rev24hours: new FormControl(null, []), - rev3days: new FormControl(null, []), - rev1week: new FormControl(null, []), - rev2weeks: new FormControl(null, []), - rev3weeks: new FormControl(null, []), - rev4weeks: new FormControl(null, []), - rev2months: new FormControl(null, []), - rev3months: new FormControl(null, []), - revTotal: new FormControl(null, []), - numSalesToday: new FormControl(null, []), - numSales3hours: new FormControl(null, []), - numSales6hours: new FormControl(null, []), - numSales12hours: new FormControl(null, []), - numSales24hours: new FormControl(null, []), - numSales3days: new FormControl(null, []), - numSales1week: new FormControl(null, []), - numSales2weeks: new FormControl(null, []), - numSales3weeks: new FormControl(null, []), - numSales4weeks: new FormControl(null, []), - numSales2months: new FormControl(null, []), - numSales3months: new FormControl(null, []), - numSalesTotal: new FormControl(null, []), - isDailyProfit: new FormControl(null, []), - creationDate: new FormControl(null, []) -}); - -export const logAccountSoldItemJsonldForm = new FormGroup({ - dbId: new FormControl(null, []), - gameAccount: new FormControl(null, []), - candidateItem: new FormControl(null, []), - eaId: new FormControl(null, []), - contracts: new FormControl(null, []), - playStyle: new FormControl(null, []), - lastSalePrice: new FormControl(null, []), - currentBid: new FormControl(null, []), - startingBid: new FormControl(null, []), - binPrice: new FormControl(null, []), - minRange: new FormControl(null, []), - maxRange: new FormControl(null, []), - tradeState: new FormControl(null, []), - eaTradeId: new FormControl(null, []), - listCnt: new FormControl(null, []), - revenue: new FormControl(null, []), - reBought: new FormControl(null, []), - snipedItem: new FormControl(null, []), - firstListDate: new FormControl(null, []), - creationDate: new FormControl(null, []) -}); - -export const logGeneralJsonldForm = new FormGroup({ - dbId: new FormControl(null, []), - gameAccount: new FormControl(null, []), - candidateItem: new FormControl(null, []), - logType: new FormControl(null, [Validators.required]), - message: new FormControl(null, []), - creationDate: new FormControl(null, []) + firstName: new FormControl(null, [Validators.required]), + lastName: new FormControl(null, [Validators.required]), + image: new FormControl(null, []), + imageUrl: new FormControl(null, []), + fullName: new FormControl(null, []), + password: new FormControl(null, []), + active: new FormControl(null, []), + createdAt: new FormControl(null, []) }); -export const logTotalProfitForm = new FormGroup({ - credits: new FormControl(null, []), - revenue: new FormControl(null, []), - tpValueFutwiz: new FormControl(null, []), - tpValueEaAverage: new FormControl(null, []), - revToday: new FormControl(null, []), - rev3hours: new FormControl(null, []), - rev6hours: new FormControl(null, []), - rev12hours: new FormControl(null, []), - rev24hours: new FormControl(null, []), - rev3days: new FormControl(null, []), - rev1week: new FormControl(null, []), - rev2weeks: new FormControl(null, []), - rev3weeks: new FormControl(null, []), - rev4weeks: new FormControl(null, []), - rev2months: new FormControl(null, []), - rev3months: new FormControl(null, []), - revTotal: new FormControl(null, []), - numSalesToday: new FormControl(null, []), - numSales3hours: new FormControl(null, []), - numSales6hours: new FormControl(null, []), - numSales12hours: new FormControl(null, []), - numSales24hours: new FormControl(null, []), - numSales3days: new FormControl(null, []), - numSales1week: new FormControl(null, []), - numSales2weeks: new FormControl(null, []), - numSales3weeks: new FormControl(null, []), - numSales4weeks: new FormControl(null, []), - numSales2months: new FormControl(null, []), - numSales3months: new FormControl(null, []), - numSalesTotal: new FormControl(null, []), - isDailyProfit: new FormControl(null, []), - creationDate: new FormControl(null, []) +export const userJsonldForm = new FormGroup({ + email: new FormControl(null, [Validators.required, Validators.email]), + firstName: new FormControl(null, [Validators.required]), + lastName: new FormControl(null, [Validators.required]), + image: new FormControl(null, []), + imageUrl: new FormControl(null, []), + fullName: new FormControl(null, []), + password: new FormControl(null, []), + active: new FormControl(null, []), + createdAt: new FormControl(null, []) }); -export const logTotalProfitJsonldForm = new FormGroup({ - credits: new FormControl(null, []), - revenue: new FormControl(null, []), - tpValueFutwiz: new FormControl(null, []), - tpValueEaAverage: new FormControl(null, []), - revToday: new FormControl(null, []), - rev3hours: new FormControl(null, []), - rev6hours: new FormControl(null, []), - rev12hours: new FormControl(null, []), - rev24hours: new FormControl(null, []), - rev3days: new FormControl(null, []), - rev1week: new FormControl(null, []), - rev2weeks: new FormControl(null, []), - rev3weeks: new FormControl(null, []), - rev4weeks: new FormControl(null, []), - rev2months: new FormControl(null, []), - rev3months: new FormControl(null, []), - revTotal: new FormControl(null, []), - numSalesToday: new FormControl(null, []), - numSales3hours: new FormControl(null, []), - numSales6hours: new FormControl(null, []), - numSales12hours: new FormControl(null, []), - numSales24hours: new FormControl(null, []), - numSales3days: new FormControl(null, []), - numSales1week: new FormControl(null, []), - numSales2weeks: new FormControl(null, []), - numSales3weeks: new FormControl(null, []), - numSales4weeks: new FormControl(null, []), - numSales2months: new FormControl(null, []), - numSales3months: new FormControl(null, []), - numSalesTotal: new FormControl(null, []), - isDailyProfit: new FormControl(null, []), - creationDate: new FormControl(null, []) +export const userTripForm = new FormGroup({ + trip: new FormControl(null, []), + user: new FormControl(null, []), + captainName: new FormControl(null, [Validators.required]), + startDate: new FormControl(null, [Validators.required]), + endDate: new FormControl(null, [Validators.required]), + createdAt: new FormControl(null, []) }); -export const mediaObjectJsonldMediaObjectReadForm = new FormGroup({ - contentUrl: new FormControl(null, []) +export const userTripJsonldForm = new FormGroup({ + trip: new FormControl(null, []), + user: new FormControl(null, []), + captainName: new FormControl(null, [Validators.required]), + startDate: new FormControl(null, [Validators.required]), + endDate: new FormControl(null, [Validators.required]), + createdAt: new FormControl(null, []) }); -export const modeConfigForm = new FormGroup({ - autoReBuyMinSoldItems: new FormControl(null, [ - Validators.min(0), - Validators.max(20) - ]), - autoReBuyMinLastHours: new FormControl(null, [ - Validators.min(0), - Validators.max(20) - ]) +export const userTripLocationForm = new FormGroup({ + userTrip: new FormControl(null, []), + location: new FormControl(null, []), + plannedDate: new FormControl(null, [Validators.required]), + createdAt: new FormControl(null, []) }); -export const modeConfigJsonldForm = new FormGroup({ - autoReBuyMinSoldItems: new FormControl(null, [ - Validators.min(0), - Validators.max(20) - ]), - autoReBuyMinLastHours: new FormControl(null, [ - Validators.min(0), - Validators.max(20) - ]) +export const userTripLocationJsonldForm = new FormGroup({ + userTrip: new FormControl(null, []), + location: new FormControl(null, []), + plannedDate: new FormControl(null, [Validators.required]), + createdAt: new FormControl(null, []) }); -export const playerForm = new FormGroup({ - eaAssetId: new FormControl(null, []), - firstname: new FormControl(null, []), - lastname: new FormControl(null, []), - nickname: new FormControl(null, []), - rating: new FormControl(null, []), - creationDate: new FormControl(null, []) +export const userTripWorkLogForm = new FormGroup({ + userTrip: new FormControl(null, []), + startLocation: new FormControl(null, []), + endLocation: new FormControl(null, []), + startDate: new FormControl(null, [Validators.required]), + endDate: new FormControl(null, [Validators.required]), + createdAt: new FormControl(null, []) }); -export const playerJsonldForm = new FormGroup({ - eaAssetId: new FormControl(null, []), - firstname: new FormControl(null, []), - lastname: new FormControl(null, []), - nickname: new FormControl(null, []), - rating: new FormControl(null, []), - creationDate: new FormControl(null, []) +export const userTripWorkLogJsonldForm = new FormGroup({ + userTrip: new FormControl(null, []), + startLocation: new FormControl(null, []), + endLocation: new FormControl(null, []), + startDate: new FormControl(null, [Validators.required]), + endDate: new FormControl(null, [Validators.required]), + createdAt: new FormControl(null, []) }); -export const rarityForm = new FormGroup({ - rareFlag: new FormControl(null, []), - name: new FormControl(null, []), - untradable: new FormControl(null, []), - image: new FormControl(null, []), - imageUrl: new FormControl(null, []), - imageBronze: new FormControl(null, []) +export const vesselForm = new FormGroup({ + name: new FormControl(null, [Validators.required]), + company: new FormControl(null, []), + createdAt: new FormControl(null, []) }); -export const rarityJsonldForm = new FormGroup({ - rareFlag: new FormControl(null, []), - name: new FormControl(null, []), - untradable: new FormControl(null, []), - image: new FormControl(null, []), - imageUrl: new FormControl(null, []), - imageBronze: new FormControl(null, []) +export const vesselJsonldForm = new FormGroup({ + name: new FormControl(null, [Validators.required]), + company: new FormControl(null, []), + createdAt: new FormControl(null, []) }); -export const systemStatJsonldForm = new FormGroup({ - totalLogProfit: new FormControl(null, []), - config: new FormControl(null, []), - modeConfig: new FormControl(null, []), - numAccounts: new FormControl(null, []), - numDeadAccounts: new FormControl(null, []), - numActiveAccounts: new FormControl(null, []), - numTmOpenAccounts: new FormControl(null, []), - numTmClosedAccounts: new FormControl(null, []), - numBlockedAccounts: new FormControl(null, []), - numRunningAccounts: new FormControl(null, []), - numTradepileItems: new FormControl(null, []), - numSoldTradepileItems: new FormControl(null, []), - numActiveTradepileItems: new FormControl(null, []), - numExpiredTradepileItems: new FormControl(null, []), - numInactiveTradepileItems: new FormControl(null, []), - numCandidates: new FormControl(null, []), - numRelevantCandidates: new FormControl(null, []), - numBuyCandidates: new FormControl(null, []), - totalSnipingRev: new FormControl(null, []) +export const zoneForm = new FormGroup({ + name: new FormControl(null, [Validators.required]), + createdAt: new FormControl(null, []) }); -export const userJsonldForm = new FormGroup({ - email: new FormControl(null, [Validators.required, Validators.email]), - firstName: new FormControl(null, [Validators.required]), - lastName: new FormControl(null, [Validators.required]), - image: new FormControl(null, []), - imageUrl: new FormControl(null, []), - fullName: new FormControl(null, []), - password: new FormControl(null, []), - active: new FormControl(null, []), +export const zoneJsonldForm = new FormGroup({ + name: new FormControl(null, [Validators.required]), createdAt: new FormControl(null, []) }); diff --git a/angular/src/app/_interfaces/AbstractCreateDataComponent.ts b/angular/src/app/_interfaces/AbstractCreateDataComponent.ts new file mode 100644 index 0000000..061f01b --- /dev/null +++ b/angular/src/app/_interfaces/AbstractCreateDataComponent.ts @@ -0,0 +1,19 @@ +import {ModalStatus} from "@app/_helpers/modal.states"; +import {FormGroup} from "@angular/forms"; +import {Directive, EventEmitter} from "@angular/core"; +import {CreateDataComponentInterface} from "@app/_interfaces/CreateDataComponentInterface"; +import {FormGroupInitializer} from "@app/_helpers/formgroup.initializer"; + +@Directive() +export abstract class AbstractCreateDataComponent implements CreateDataComponentInterface { + data!: T; + submit = new EventEmitter(); + form!: FormGroup; + + ngOnInit(): void { + this.form = FormGroupInitializer.initFormGroup(this.form, this.data); + } + + abstract getInitialData(): T; + abstract onSubmit(): void; +} \ No newline at end of file diff --git a/angular/src/app/_interfaces/CreateDataComponentInterface.ts b/angular/src/app/_interfaces/CreateDataComponentInterface.ts new file mode 100644 index 0000000..cb90f46 --- /dev/null +++ b/angular/src/app/_interfaces/CreateDataComponentInterface.ts @@ -0,0 +1,12 @@ +import {ModalStatus} from "@app/_helpers/modal.states"; +import {FormGroup} from "@angular/forms"; +import {EventEmitter} from "@angular/core"; + +export interface CreateDataComponentInterface { + data: T; + submit: EventEmitter; + form: FormGroup; + onSubmit(): void; + ngOnInit(): void; + getInitialData(): T; +} \ No newline at end of file diff --git a/angular/src/app/_models/priceError.ts b/angular/src/app/_models/priceError.ts deleted file mode 100644 index b54f310..0000000 --- a/angular/src/app/_models/priceError.ts +++ /dev/null @@ -1,4 +0,0 @@ -export interface PriceError { - message: string; - error: boolean; -} \ No newline at end of file diff --git a/angular/src/app/_models/snipingResponse.ts b/angular/src/app/_models/snipingResponse.ts deleted file mode 100644 index fa06b50..0000000 --- a/angular/src/app/_models/snipingResponse.ts +++ /dev/null @@ -1,11 +0,0 @@ -export interface SnipingResponse { - messages: string[]; - excludedAccountIds: number[], - errorAccountIds: number[], - snipingAccountIds: number[], - abortSniping: boolean, - boughtItems: number; - priceCheckFoundItems: number; - priceCheckFoundPrices: number[]; - priceCheckMessages: string[]; -} \ No newline at end of file diff --git a/angular/src/app/_views/base-data/base-data.component.html b/angular/src/app/_views/base-data/base-data.component.html new file mode 100644 index 0000000..82c9082 --- /dev/null +++ b/angular/src/app/_views/base-data/base-data.component.html @@ -0,0 +1,19 @@ +
+
+

{{ 'view.base_data' | translate }}

+
+ + + + + + + + + + + + + + +
\ No newline at end of file diff --git a/angular/src/app/_views/base-data/base-data.component.scss b/angular/src/app/_views/base-data/base-data.component.scss new file mode 100644 index 0000000..e69de29 diff --git a/angular/src/app/_views/base-data/base-data.component.spec.ts b/angular/src/app/_views/base-data/base-data.component.spec.ts new file mode 100644 index 0000000..841a69c --- /dev/null +++ b/angular/src/app/_views/base-data/base-data.component.spec.ts @@ -0,0 +1,23 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { BaseDataComponent } from './base-data.component'; + +describe('BaseDataComponent', () => { + let component: BaseDataComponent; + let fixture: ComponentFixture; + + beforeEach(async () => { + await TestBed.configureTestingModule({ + declarations: [BaseDataComponent] + }) + .compileComponents(); + + fixture = TestBed.createComponent(BaseDataComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/angular/src/app/_views/base-data/base-data.component.ts b/angular/src/app/_views/base-data/base-data.component.ts new file mode 100644 index 0000000..555c1dc --- /dev/null +++ b/angular/src/app/_views/base-data/base-data.component.ts @@ -0,0 +1,10 @@ +import { Component } from '@angular/core'; + +@Component({ + selector: 'app-base-data', + templateUrl: './base-data.component.html', + styleUrl: './base-data.component.scss' +}) +export class BaseDataComponent { + +} diff --git a/angular/src/app/_views/dashboard/dashboard.component.html b/angular/src/app/_views/dashboard/dashboard.component.html index 3400001..94efa18 100644 --- a/angular/src/app/_views/dashboard/dashboard.component.html +++ b/angular/src/app/_views/dashboard/dashboard.component.html @@ -2,12 +2,5 @@

{{ 'dashboard.view' | translate }}

- - - OVERVIEW - - - OVERVIEW 2 - - + Space for important stuff. diff --git a/angular/src/app/_views/dashboard/dashboard.component.ts b/angular/src/app/_views/dashboard/dashboard.component.ts index 56120f4..9062db4 100644 --- a/angular/src/app/_views/dashboard/dashboard.component.ts +++ b/angular/src/app/_views/dashboard/dashboard.component.ts @@ -1,5 +1,4 @@ import {AfterViewInit, Component, OnInit, ViewChild} from '@angular/core'; -import {SystemStatService, SystemStatJsonld} from "@app/core/api/v1"; import {LogService} from "@app/_services/log.service"; import {FormControl} from "@angular/forms"; diff --git a/angular/src/app/_views/location/location-list/location-list.component.html b/angular/src/app/_views/location/location-list/location-list.component.html new file mode 100644 index 0000000..d89cf02 --- /dev/null +++ b/angular/src/app/_views/location/location-list/location-list.component.html @@ -0,0 +1,9 @@ +
+ +
\ No newline at end of file diff --git a/angular/src/app/_views/location/location-list/location-list.component.scss b/angular/src/app/_views/location/location-list/location-list.component.scss new file mode 100644 index 0000000..e69de29 diff --git a/angular/src/app/_views/location/location-list/location-list.component.spec.ts b/angular/src/app/_views/location/location-list/location-list.component.spec.ts new file mode 100644 index 0000000..89bb944 --- /dev/null +++ b/angular/src/app/_views/location/location-list/location-list.component.spec.ts @@ -0,0 +1,23 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { LocationListComponent } from './location-list.component'; + +describe('LocationListComponent', () => { + let component: LocationListComponent; + let fixture: ComponentFixture; + + beforeEach(async () => { + await TestBed.configureTestingModule({ + declarations: [LocationListComponent] + }) + .compileComponents(); + + fixture = TestBed.createComponent(LocationListComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/angular/src/app/_views/location/location-list/location-list.component.ts b/angular/src/app/_views/location/location-list/location-list.component.ts new file mode 100644 index 0000000..1a8e830 --- /dev/null +++ b/angular/src/app/_views/location/location-list/location-list.component.ts @@ -0,0 +1,88 @@ +import {AfterViewInit, Component, OnInit, ViewChild} from '@angular/core'; +import {ListColDefinition} from "@app/_components/list/list-col-definition"; +import {ListComponent} from "@app/_components/list/list.component"; +import {LocationJsonld, LocationService, UserService} from "@app/core/api/v1"; +import {Router} from "@angular/router"; +import {AppHelperService} from "@app/_helpers/app-helper.service"; +import {OrderFilter} from "@app/_models/orderFilter"; +import {FilterBarComponent} from "@app/_components/filter-bar/filter-bar.component"; +import {ListGetDataFunctionType} from "@app/_components/list/list-get-data-function-type"; +import {ROUTE_LOCATIONS} from "@app/app-routing.module"; +import {Sort} from "@angular/material/sort"; + +@Component({ + selector: 'app-location-list', + templateUrl: './location-list.component.html', + styleUrl: './location-list.component.scss' +}) +export class LocationListComponent implements OnInit, AfterViewInit { + + @ViewChild("listComponent", {static: false}) listComponent!: ListComponent; + + protected listColDefinitions!: ListColDefinition[]; + + constructor( + private locationService: LocationService, + private router: Router, + protected appHelperService: AppHelperService, + ) { + + this.listColDefinitions = [ + { + name: 'name', + text: 'common.name', + type: ListComponent.COLUMN_TYPE_TEXT, + field: 'name', + sortable: true, + filterType: FilterBarComponent.FILTER_TYPE_TEXT, + } as ListColDefinition, + { + name: 'zone', + text: 'location.zone', + type: ListComponent.COLUMN_TYPE_TEXT, + field: 'name', + sortable: true, + filterType: FilterBarComponent.FILTER_TYPE_TEXT, + } as ListColDefinition, + { + name: 'creationDate', + text: 'common.creation_date', + type: ListComponent.COLUMN_TYPE_DATE, + field: 'creationDate', + sortable: true, + filterType: FilterBarComponent.FILTER_TYPE_DATE, + } as ListColDefinition, + ]; + } + + ngOnInit() { + + } + + ngAfterViewInit(): void { + this.listComponent.getData(); + } + + getData: ListGetDataFunctionType = ( + index: number, + pageSize: number, + term?: string, + ) => { + return this.locationService.locationsGetCollection( + index, + pageSize, + term, + this.listComponent.getFilterJsonString(), + this.listComponent.getSortingJsonString() + ); + } + + onSortChange = (sortState: Sort) => { + } + + navigateToLocationDetail = (element: any) => { + const location: LocationJsonld = element as LocationJsonld; + this.router.navigate(['/' + ROUTE_LOCATIONS, this.appHelperService.extractId(location.id)]); + } + +} diff --git a/angular/src/app/_views/location/location.component.html b/angular/src/app/_views/location/location.component.html new file mode 100644 index 0000000..ebd0258 --- /dev/null +++ b/angular/src/app/_views/location/location.component.html @@ -0,0 +1 @@ +

location works!

diff --git a/angular/src/app/_views/location/location.component.scss b/angular/src/app/_views/location/location.component.scss new file mode 100644 index 0000000..e69de29 diff --git a/angular/src/app/_views/location/location.component.spec.ts b/angular/src/app/_views/location/location.component.spec.ts new file mode 100644 index 0000000..045572f --- /dev/null +++ b/angular/src/app/_views/location/location.component.spec.ts @@ -0,0 +1,23 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { LocationComponent } from './location.component'; + +describe('LocationComponent', () => { + let component: LocationComponent; + let fixture: ComponentFixture; + + beforeEach(async () => { + await TestBed.configureTestingModule({ + declarations: [LocationComponent] + }) + .compileComponents(); + + fixture = TestBed.createComponent(LocationComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/angular/src/app/_views/location/location.component.ts b/angular/src/app/_views/location/location.component.ts new file mode 100644 index 0000000..d589d67 --- /dev/null +++ b/angular/src/app/_views/location/location.component.ts @@ -0,0 +1,10 @@ +import { Component } from '@angular/core'; + +@Component({ + selector: 'app-location', + templateUrl: './location.component.html', + styleUrl: './location.component.scss' +}) +export class LocationComponent { + +} diff --git a/angular/src/app/_views/shipping-company/shipping-company-list/shipping-company-list.component.html b/angular/src/app/_views/shipping-company/shipping-company-list/shipping-company-list.component.html new file mode 100644 index 0000000..5768716 --- /dev/null +++ b/angular/src/app/_views/shipping-company/shipping-company-list/shipping-company-list.component.html @@ -0,0 +1,9 @@ +
+ +
\ No newline at end of file diff --git a/angular/src/app/_views/shipping-company/shipping-company-list/shipping-company-list.component.scss b/angular/src/app/_views/shipping-company/shipping-company-list/shipping-company-list.component.scss new file mode 100644 index 0000000..e69de29 diff --git a/angular/src/app/_views/shipping-company/shipping-company-list/shipping-company-list.component.spec.ts b/angular/src/app/_views/shipping-company/shipping-company-list/shipping-company-list.component.spec.ts new file mode 100644 index 0000000..a0d640f --- /dev/null +++ b/angular/src/app/_views/shipping-company/shipping-company-list/shipping-company-list.component.spec.ts @@ -0,0 +1,23 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { ShippingCompanyListComponent } from './shipping-company-list.component'; + +describe('ShippingCompanyListComponent', () => { + let component: ShippingCompanyListComponent; + let fixture: ComponentFixture; + + beforeEach(async () => { + await TestBed.configureTestingModule({ + declarations: [ShippingCompanyListComponent] + }) + .compileComponents(); + + fixture = TestBed.createComponent(ShippingCompanyListComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/angular/src/app/_views/shipping-company/shipping-company-list/shipping-company-list.component.ts b/angular/src/app/_views/shipping-company/shipping-company-list/shipping-company-list.component.ts new file mode 100644 index 0000000..581461f --- /dev/null +++ b/angular/src/app/_views/shipping-company/shipping-company-list/shipping-company-list.component.ts @@ -0,0 +1,80 @@ +import {Component, ViewChild} from '@angular/core'; +import {ListComponent} from "@app/_components/list/list.component"; +import {ListColDefinition} from "@app/_components/list/list-col-definition"; +import { + ShippingCompanyJsonld, + ShippingCompanyService, +} from "@app/core/api/v1"; +import {Router} from "@angular/router"; +import {AppHelperService} from "@app/_helpers/app-helper.service"; +import {FilterBarComponent} from "@app/_components/filter-bar/filter-bar.component"; +import {ListGetDataFunctionType} from "@app/_components/list/list-get-data-function-type"; +import {Sort} from "@angular/material/sort"; +import {ROUTE_SHIPPING_COMPANIES, ROUTE_VESSELS} from "@app/app-routing.module"; + +@Component({ + selector: 'app-shipping-company-list', + templateUrl: './shipping-company-list.component.html', + styleUrl: './shipping-company-list.component.scss' +}) +export class ShippingCompanyListComponent { + @ViewChild("listComponent", {static: false}) listComponent!: ListComponent; + + protected listColDefinitions!: ListColDefinition[]; + + constructor( + private shippingCompanyService: ShippingCompanyService, + private router: Router, + protected appHelperService: AppHelperService, + ) { + + this.listColDefinitions = [ + { + name: 'name', + text: 'common.name', + type: ListComponent.COLUMN_TYPE_TEXT, + field: 'name', + sortable: true, + filterType: FilterBarComponent.FILTER_TYPE_TEXT, + } as ListColDefinition, + { + name: 'creationDate', + text: 'common.creation_date', + type: ListComponent.COLUMN_TYPE_DATE, + field: 'creationDate', + sortable: true, + filterType: FilterBarComponent.FILTER_TYPE_DATE, + } as ListColDefinition, + ]; + } + + ngOnInit() { + + } + + ngAfterViewInit(): void { + this.listComponent.getData(); + } + + getData: ListGetDataFunctionType = ( + index: number, + pageSize: number, + term?: string, + ) => { + return this.shippingCompanyService.shippingCompaniesGetCollection( + index, + pageSize, + term, + this.listComponent.getFilterJsonString(), + this.listComponent.getSortingJsonString() + ); + } + + onSortChange = (sortState: Sort) => { + } + + navigateToZoneDetail = (element: any) => { + const shippingCompany: ShippingCompanyJsonld = element as ShippingCompanyJsonld; + this.router.navigate(['/' + ROUTE_SHIPPING_COMPANIES, this.appHelperService.extractId(shippingCompany.id)]); + } +} diff --git a/angular/src/app/_views/shipping-company/shipping-company.component.html b/angular/src/app/_views/shipping-company/shipping-company.component.html new file mode 100644 index 0000000..56d5f15 --- /dev/null +++ b/angular/src/app/_views/shipping-company/shipping-company.component.html @@ -0,0 +1 @@ +

shipping-company works!

diff --git a/angular/src/app/_views/shipping-company/shipping-company.component.scss b/angular/src/app/_views/shipping-company/shipping-company.component.scss new file mode 100644 index 0000000..e69de29 diff --git a/angular/src/app/_views/shipping-company/shipping-company.component.spec.ts b/angular/src/app/_views/shipping-company/shipping-company.component.spec.ts new file mode 100644 index 0000000..bf0e811 --- /dev/null +++ b/angular/src/app/_views/shipping-company/shipping-company.component.spec.ts @@ -0,0 +1,23 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { ShippingCompanyComponent } from './shipping-company.component'; + +describe('ShippingCompanyComponent', () => { + let component: ShippingCompanyComponent; + let fixture: ComponentFixture; + + beforeEach(async () => { + await TestBed.configureTestingModule({ + declarations: [ShippingCompanyComponent] + }) + .compileComponents(); + + fixture = TestBed.createComponent(ShippingCompanyComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/angular/src/app/_views/shipping-company/shipping-company.component.ts b/angular/src/app/_views/shipping-company/shipping-company.component.ts new file mode 100644 index 0000000..3c732c2 --- /dev/null +++ b/angular/src/app/_views/shipping-company/shipping-company.component.ts @@ -0,0 +1,10 @@ +import { Component } from '@angular/core'; + +@Component({ + selector: 'app-shipping-company', + templateUrl: './shipping-company.component.html', + styleUrl: './shipping-company.component.scss' +}) +export class ShippingCompanyComponent { + +} diff --git a/angular/src/app/_views/trip-location/trip-location.component.html b/angular/src/app/_views/trip-location/trip-location.component.html new file mode 100644 index 0000000..3aac2a1 --- /dev/null +++ b/angular/src/app/_views/trip-location/trip-location.component.html @@ -0,0 +1 @@ +

trip-location works!

diff --git a/angular/src/app/_views/trip-location/trip-location.component.scss b/angular/src/app/_views/trip-location/trip-location.component.scss new file mode 100644 index 0000000..e69de29 diff --git a/angular/src/app/_views/trip-location/trip-location.component.spec.ts b/angular/src/app/_views/trip-location/trip-location.component.spec.ts new file mode 100644 index 0000000..c005657 --- /dev/null +++ b/angular/src/app/_views/trip-location/trip-location.component.spec.ts @@ -0,0 +1,23 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { TripLocationComponent } from './trip-location.component'; + +describe('TripLocationComponent', () => { + let component: TripLocationComponent; + let fixture: ComponentFixture; + + beforeEach(async () => { + await TestBed.configureTestingModule({ + declarations: [TripLocationComponent] + }) + .compileComponents(); + + fixture = TestBed.createComponent(TripLocationComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/angular/src/app/_views/trip-location/trip-location.component.ts b/angular/src/app/_views/trip-location/trip-location.component.ts new file mode 100644 index 0000000..dc070c6 --- /dev/null +++ b/angular/src/app/_views/trip-location/trip-location.component.ts @@ -0,0 +1,10 @@ +import { Component } from '@angular/core'; + +@Component({ + selector: 'app-trip-location', + templateUrl: './trip-location.component.html', + styleUrl: './trip-location.component.scss' +}) +export class TripLocationComponent { + +} diff --git a/angular/src/app/_views/trip-work-log/trip-work-log.component.html b/angular/src/app/_views/trip-work-log/trip-work-log.component.html new file mode 100644 index 0000000..269562f --- /dev/null +++ b/angular/src/app/_views/trip-work-log/trip-work-log.component.html @@ -0,0 +1 @@ +

trip-work-log works!

diff --git a/angular/src/app/_views/trip-work-log/trip-work-log.component.scss b/angular/src/app/_views/trip-work-log/trip-work-log.component.scss new file mode 100644 index 0000000..e69de29 diff --git a/angular/src/app/_views/trip-work-log/trip-work-log.component.spec.ts b/angular/src/app/_views/trip-work-log/trip-work-log.component.spec.ts new file mode 100644 index 0000000..5cfa9e1 --- /dev/null +++ b/angular/src/app/_views/trip-work-log/trip-work-log.component.spec.ts @@ -0,0 +1,23 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { TripWorkLogComponent } from './trip-work-log.component'; + +describe('TripWorkLogComponent', () => { + let component: TripWorkLogComponent; + let fixture: ComponentFixture; + + beforeEach(async () => { + await TestBed.configureTestingModule({ + declarations: [TripWorkLogComponent] + }) + .compileComponents(); + + fixture = TestBed.createComponent(TripWorkLogComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/angular/src/app/_views/trip-work-log/trip-work-log.component.ts b/angular/src/app/_views/trip-work-log/trip-work-log.component.ts new file mode 100644 index 0000000..5474e22 --- /dev/null +++ b/angular/src/app/_views/trip-work-log/trip-work-log.component.ts @@ -0,0 +1,10 @@ +import { Component } from '@angular/core'; + +@Component({ + selector: 'app-trip-work-log', + templateUrl: './trip-work-log.component.html', + styleUrl: './trip-work-log.component.scss' +}) +export class TripWorkLogComponent { + +} diff --git a/angular/src/app/_views/trip/trip.component.html b/angular/src/app/_views/trip/trip.component.html new file mode 100644 index 0000000..66e5e2f --- /dev/null +++ b/angular/src/app/_views/trip/trip.component.html @@ -0,0 +1 @@ +

trip works!

diff --git a/angular/src/app/_views/trip/trip.component.scss b/angular/src/app/_views/trip/trip.component.scss new file mode 100644 index 0000000..e69de29 diff --git a/angular/src/app/_views/trip/trip.component.spec.ts b/angular/src/app/_views/trip/trip.component.spec.ts new file mode 100644 index 0000000..498035e --- /dev/null +++ b/angular/src/app/_views/trip/trip.component.spec.ts @@ -0,0 +1,23 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { TripComponent } from './trip.component'; + +describe('TripComponent', () => { + let component: TripComponent; + let fixture: ComponentFixture; + + beforeEach(async () => { + await TestBed.configureTestingModule({ + declarations: [TripComponent] + }) + .compileComponents(); + + fixture = TestBed.createComponent(TripComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/angular/src/app/_views/trip/trip.component.ts b/angular/src/app/_views/trip/trip.component.ts new file mode 100644 index 0000000..a90da56 --- /dev/null +++ b/angular/src/app/_views/trip/trip.component.ts @@ -0,0 +1,10 @@ +import { Component } from '@angular/core'; + +@Component({ + selector: 'app-trip', + templateUrl: './trip.component.html', + styleUrl: './trip.component.scss' +}) +export class TripComponent { + +} diff --git a/angular/src/app/_views/vessel/vessel-list/vessel-list.component.html b/angular/src/app/_views/vessel/vessel-list/vessel-list.component.html new file mode 100644 index 0000000..3f932ec --- /dev/null +++ b/angular/src/app/_views/vessel/vessel-list/vessel-list.component.html @@ -0,0 +1,9 @@ +
+ +
\ No newline at end of file diff --git a/angular/src/app/_views/vessel/vessel-list/vessel-list.component.scss b/angular/src/app/_views/vessel/vessel-list/vessel-list.component.scss new file mode 100644 index 0000000..e69de29 diff --git a/angular/src/app/_views/vessel/vessel-list/vessel-list.component.spec.ts b/angular/src/app/_views/vessel/vessel-list/vessel-list.component.spec.ts new file mode 100644 index 0000000..69a08c4 --- /dev/null +++ b/angular/src/app/_views/vessel/vessel-list/vessel-list.component.spec.ts @@ -0,0 +1,23 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { VesselListComponent } from './vessel-list.component'; + +describe('VesselListComponent', () => { + let component: VesselListComponent; + let fixture: ComponentFixture; + + beforeEach(async () => { + await TestBed.configureTestingModule({ + declarations: [VesselListComponent] + }) + .compileComponents(); + + fixture = TestBed.createComponent(VesselListComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/angular/src/app/_views/vessel/vessel-list/vessel-list.component.ts b/angular/src/app/_views/vessel/vessel-list/vessel-list.component.ts new file mode 100644 index 0000000..cb9b523 --- /dev/null +++ b/angular/src/app/_views/vessel/vessel-list/vessel-list.component.ts @@ -0,0 +1,77 @@ +import {Component, ViewChild} from '@angular/core'; +import {ListComponent} from "@app/_components/list/list.component"; +import {ListColDefinition} from "@app/_components/list/list-col-definition"; +import {VesselJsonld, VesselService} from "@app/core/api/v1"; +import {Router} from "@angular/router"; +import {AppHelperService} from "@app/_helpers/app-helper.service"; +import {FilterBarComponent} from "@app/_components/filter-bar/filter-bar.component"; +import {ListGetDataFunctionType} from "@app/_components/list/list-get-data-function-type"; +import {Sort} from "@angular/material/sort"; +import {ROUTE_VESSELS} from "@app/app-routing.module"; + +@Component({ + selector: 'app-vessel-list', + templateUrl: './vessel-list.component.html', + styleUrl: './vessel-list.component.scss' +}) +export class VesselListComponent { + @ViewChild("listComponent", {static: false}) listComponent!: ListComponent; + + protected listColDefinitions!: ListColDefinition[]; + + constructor( + private vesselService: VesselService, + private router: Router, + protected appHelperService: AppHelperService, + ) { + + this.listColDefinitions = [ + { + name: 'name', + text: 'common.name', + type: ListComponent.COLUMN_TYPE_TEXT, + field: 'name', + sortable: true, + filterType: FilterBarComponent.FILTER_TYPE_TEXT, + } as ListColDefinition, + { + name: 'creationDate', + text: 'common.creation_date', + type: ListComponent.COLUMN_TYPE_DATE, + field: 'creationDate', + sortable: true, + filterType: FilterBarComponent.FILTER_TYPE_DATE, + } as ListColDefinition, + ]; + } + + ngOnInit() { + + } + + ngAfterViewInit(): void { + this.listComponent.getData(); + } + + getData: ListGetDataFunctionType = ( + index: number, + pageSize: number, + term?: string, + ) => { + return this.vesselService.vesselsGetCollection( + index, + pageSize, + term, + this.listComponent.getFilterJsonString(), + this.listComponent.getSortingJsonString() + ); + } + + onSortChange = (sortState: Sort) => { + } + + navigateToVesselDetail = (element: any) => { + const vessel: VesselJsonld = element as VesselJsonld; + this.router.navigate(['/' + ROUTE_VESSELS, this.appHelperService.extractId(vessel.id)]); + } +} diff --git a/angular/src/app/_views/vessel/vessel.component.html b/angular/src/app/_views/vessel/vessel.component.html new file mode 100644 index 0000000..9eebfd1 --- /dev/null +++ b/angular/src/app/_views/vessel/vessel.component.html @@ -0,0 +1 @@ +

vessel works!

diff --git a/angular/src/app/_views/vessel/vessel.component.scss b/angular/src/app/_views/vessel/vessel.component.scss new file mode 100644 index 0000000..e69de29 diff --git a/angular/src/app/_views/vessel/vessel.component.spec.ts b/angular/src/app/_views/vessel/vessel.component.spec.ts new file mode 100644 index 0000000..a3ba2f3 --- /dev/null +++ b/angular/src/app/_views/vessel/vessel.component.spec.ts @@ -0,0 +1,23 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { VesselComponent } from './vessel.component'; + +describe('VesselComponent', () => { + let component: VesselComponent; + let fixture: ComponentFixture; + + beforeEach(async () => { + await TestBed.configureTestingModule({ + declarations: [VesselComponent] + }) + .compileComponents(); + + fixture = TestBed.createComponent(VesselComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/angular/src/app/_views/vessel/vessel.component.ts b/angular/src/app/_views/vessel/vessel.component.ts new file mode 100644 index 0000000..aa19025 --- /dev/null +++ b/angular/src/app/_views/vessel/vessel.component.ts @@ -0,0 +1,10 @@ +import { Component } from '@angular/core'; + +@Component({ + selector: 'app-vessel', + templateUrl: './vessel.component.html', + styleUrl: './vessel.component.scss' +}) +export class VesselComponent { + +} diff --git a/angular/src/app/_views/zone/zone-list/zone-list.component.html b/angular/src/app/_views/zone/zone-list/zone-list.component.html new file mode 100644 index 0000000..221a66b --- /dev/null +++ b/angular/src/app/_views/zone/zone-list/zone-list.component.html @@ -0,0 +1,10 @@ +
+ +
\ No newline at end of file diff --git a/angular/src/app/_views/zone/zone-list/zone-list.component.scss b/angular/src/app/_views/zone/zone-list/zone-list.component.scss new file mode 100644 index 0000000..e69de29 diff --git a/angular/src/app/_views/zone/zone-list/zone-list.component.spec.ts b/angular/src/app/_views/zone/zone-list/zone-list.component.spec.ts new file mode 100644 index 0000000..54e7131 --- /dev/null +++ b/angular/src/app/_views/zone/zone-list/zone-list.component.spec.ts @@ -0,0 +1,23 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { ZoneListComponent } from './zone-list.component'; + +describe('ZoneListComponent', () => { + let component: ZoneListComponent; + let fixture: ComponentFixture; + + beforeEach(async () => { + await TestBed.configureTestingModule({ + declarations: [ZoneListComponent] + }) + .compileComponents(); + + fixture = TestBed.createComponent(ZoneListComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/angular/src/app/_views/zone/zone-list/zone-list.component.ts b/angular/src/app/_views/zone/zone-list/zone-list.component.ts new file mode 100644 index 0000000..48830f3 --- /dev/null +++ b/angular/src/app/_views/zone/zone-list/zone-list.component.ts @@ -0,0 +1,79 @@ +import {Component, ViewChild} from '@angular/core'; +import {ListComponent} from "@app/_components/list/list.component"; +import {ListColDefinition} from "@app/_components/list/list-col-definition"; +import {ZoneJsonld, ZoneService} from "@app/core/api/v1"; +import {Router} from "@angular/router"; +import {AppHelperService} from "@app/_helpers/app-helper.service"; +import {FilterBarComponent} from "@app/_components/filter-bar/filter-bar.component"; +import {ListGetDataFunctionType} from "@app/_components/list/list-get-data-function-type"; +import {Sort} from "@angular/material/sort"; +import {ROUTE_ZONES} from "@app/app-routing.module"; +import {ZoneNewComponent} from "@app/_views/zone/zone-new/zone-new.component"; + +@Component({ + selector: 'app-zone-list', + templateUrl: './zone-list.component.html', + styleUrl: './zone-list.component.scss' +}) +export class ZoneListComponent { + @ViewChild("listComponent", {static: false}) listComponent!: ListComponent; + + protected listColDefinitions!: ListColDefinition[]; + + constructor( + private zoneService: ZoneService, + private router: Router, + protected appHelperService: AppHelperService, + ) { + + this.listColDefinitions = [ + { + name: 'name', + text: 'common.name', + type: ListComponent.COLUMN_TYPE_TEXT, + field: 'name', + sortable: true, + filterType: FilterBarComponent.FILTER_TYPE_TEXT, + } as ListColDefinition, + { + name: 'creationDate', + text: 'common.creation_date', + type: ListComponent.COLUMN_TYPE_DATE, + field: 'creationDate', + sortable: true, + filterType: FilterBarComponent.FILTER_TYPE_DATE, + } as ListColDefinition, + ]; + } + + ngOnInit() { + + } + + ngAfterViewInit(): void { + this.listComponent.getData(); + } + + getData: ListGetDataFunctionType = ( + index: number, + pageSize: number, + term?: string, + ) => { + return this.zoneService.zonesGetCollection( + index, + pageSize, + term, + this.listComponent.getFilterJsonString(), + this.listComponent.getSortingJsonString() + ); + } + + onSortChange = (sortState: Sort) => { + } + + navigateToZoneDetail = (element: any) => { + const zone: ZoneJsonld = element as ZoneJsonld; + this.router.navigate(['/' + ROUTE_ZONES, this.appHelperService.extractId(zone.id)]); + } + protected readonly ZoneNewComponent = ZoneNewComponent; +} diff --git a/angular/src/app/_views/zone/zone-new/zone-new.component.html b/angular/src/app/_views/zone/zone-new/zone-new.component.html new file mode 100644 index 0000000..88c90b9 --- /dev/null +++ b/angular/src/app/_views/zone/zone-new/zone-new.component.html @@ -0,0 +1 @@ +

zone-new works!

diff --git a/angular/src/app/_views/zone/zone-new/zone-new.component.scss b/angular/src/app/_views/zone/zone-new/zone-new.component.scss new file mode 100644 index 0000000..e69de29 diff --git a/angular/src/app/_views/zone/zone-new/zone-new.component.spec.ts b/angular/src/app/_views/zone/zone-new/zone-new.component.spec.ts new file mode 100644 index 0000000..7fbe5ec --- /dev/null +++ b/angular/src/app/_views/zone/zone-new/zone-new.component.spec.ts @@ -0,0 +1,23 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { ZoneNewComponent } from './zone-new.component'; + +describe('ZoneNewComponent', () => { + let component: ZoneNewComponent; + let fixture: ComponentFixture; + + beforeEach(async () => { + await TestBed.configureTestingModule({ + declarations: [ZoneNewComponent] + }) + .compileComponents(); + + fixture = TestBed.createComponent(ZoneNewComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/angular/src/app/_views/zone/zone-new/zone-new.component.ts b/angular/src/app/_views/zone/zone-new/zone-new.component.ts new file mode 100644 index 0000000..157334f --- /dev/null +++ b/angular/src/app/_views/zone/zone-new/zone-new.component.ts @@ -0,0 +1,43 @@ +import {Component, EventEmitter, Input, Output} from '@angular/core'; +import {ZoneJsonld, ZoneService} from "@app/core/api/v1"; +import {ModalStatus} from "@app/_helpers/modal.states"; +import {FormGroup} from "@angular/forms"; +import {zoneForm} from "@app/_forms/apiForms"; +import {AbstractCreateDataComponent} from "@app/_interfaces/AbstractCreateDataComponent"; + +@Component({ + selector: 'app-zone-new', + templateUrl: './zone-new.component.html', + styleUrl: './zone-new.component.scss' +}) +export class ZoneNewComponent extends AbstractCreateDataComponent{ + + @Input() public override data!: ZoneJsonld; + @Output() public override submit: EventEmitter = new EventEmitter(); + + override form: FormGroup = zoneForm; + + constructor( + private zoneService: ZoneService + ) { + super(); + } + + getInitialData(): ZoneJsonld { + let zone: ZoneJsonld = {} as ZoneJsonld; + return zone; + } + + onSubmit() { + if (this.form.valid) { + this.zoneService.zonesPost( + this.form.value as ZoneJsonld + ).subscribe( + data => { + this.form.reset(); + this.submit.emit(ModalStatus.Submitted); + } + ); + } + } +} diff --git a/angular/src/app/_views/zone/zone.component.html b/angular/src/app/_views/zone/zone.component.html new file mode 100644 index 0000000..59b0f36 --- /dev/null +++ b/angular/src/app/_views/zone/zone.component.html @@ -0,0 +1 @@ +

zone works!

diff --git a/angular/src/app/_views/zone/zone.component.scss b/angular/src/app/_views/zone/zone.component.scss new file mode 100644 index 0000000..e69de29 diff --git a/angular/src/app/_views/zone/zone.component.spec.ts b/angular/src/app/_views/zone/zone.component.spec.ts new file mode 100644 index 0000000..debb5fc --- /dev/null +++ b/angular/src/app/_views/zone/zone.component.spec.ts @@ -0,0 +1,23 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { ZoneComponent } from './zone.component'; + +describe('ZoneComponent', () => { + let component: ZoneComponent; + let fixture: ComponentFixture; + + beforeEach(async () => { + await TestBed.configureTestingModule({ + declarations: [ZoneComponent] + }) + .compileComponents(); + + fixture = TestBed.createComponent(ZoneComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/angular/src/app/_views/zone/zone.component.ts b/angular/src/app/_views/zone/zone.component.ts new file mode 100644 index 0000000..c3f9f58 --- /dev/null +++ b/angular/src/app/_views/zone/zone.component.ts @@ -0,0 +1,10 @@ +import { Component } from '@angular/core'; + +@Component({ + selector: 'app-zone', + templateUrl: './zone.component.html', + styleUrl: './zone.component.scss' +}) +export class ZoneComponent { + +} diff --git a/angular/src/app/app-routing.module.ts b/angular/src/app/app-routing.module.ts index 7b906b4..0a7329c 100644 --- a/angular/src/app/app-routing.module.ts +++ b/angular/src/app/app-routing.module.ts @@ -7,12 +7,19 @@ import {adminGuard} from "@app/_guards/admin.guard"; import {UsersComponent} from "@app/_views/user/users.component"; import {TwoColumnComponent} from "@app/_components/layout/two-column/two-column.component"; import {DashboardComponent} from "@app/_views/dashboard/dashboard.component"; +import {BaseDataComponent} from "@app/_views/base-data/base-data.component"; const accountModule = () => import('@app/_views/account/account.module').then(x => x.AccountModule); export const ROUTE_DASHBOARD = 'dashboard'; +export const ROUTE_BASE_DATA = 'base-data'; +export const ROUTE_LOCATIONS = 'locations'; +export const ROUTE_SHIPPING_COMPANIES = 'shipping-companies'; +export const ROUTE_TRIPS = 'trips'; export const ROUTE_PROFILE = 'profile'; export const ROUTE_USERS = 'users'; +export const ROUTE_VESSELS = 'vessels'; +export const ROUTE_ZONES = 'zones'; const routes: Routes = [ { @@ -28,6 +35,14 @@ const routes: Routes = [ {path: '', component: DashboardComponent}, ] }, + { + path: ROUTE_BASE_DATA, + component: TwoColumnComponent, + canActivate: [userGuard], + children: [ + {path: '', component: BaseDataComponent}, + ] + }, { path: ROUTE_PROFILE, component: TwoColumnComponent, diff --git a/angular/src/app/app.module.ts b/angular/src/app/app.module.ts index 12a234f..30717b6 100644 --- a/angular/src/app/app.module.ts +++ b/angular/src/app/app.module.ts @@ -41,6 +41,19 @@ import {MatTabsModule} from "@angular/material/tabs"; import {DashboardComponent} from './_views/dashboard/dashboard.component'; import localeDe from '@angular/common/locales/de'; import { FilterBarComponent } from './_components/filter-bar/filter-bar.component'; +import { LocationComponent } from './_views/location/location.component'; +import { ZoneComponent } from './_views/zone/zone.component'; +import { ShippingCompanyComponent } from './_views/shipping-company/shipping-company.component'; +import { TripComponent } from './_views/trip/trip.component'; +import { TripLocationComponent } from './_views/trip-location/trip-location.component'; +import { TripWorkLogComponent } from './_views/trip-work-log/trip-work-log.component'; +import { VesselComponent } from './_views/vessel/vessel.component'; +import { BaseDataComponent } from './_views/base-data/base-data.component'; +import { LocationListComponent } from './_views/location/location-list/location-list.component'; +import { ZoneListComponent } from './_views/zone/zone-list/zone-list.component'; +import { VesselListComponent } from './_views/vessel/vessel-list/vessel-list.component'; +import { ShippingCompanyListComponent } from './_views/shipping-company/shipping-company-list/shipping-company-list.component'; +import { ZoneNewComponent } from './_views/zone/zone-new/zone-new.component'; registerLocaleData(localeDe, 'de-DE'); @@ -104,6 +117,19 @@ export function HttpLoaderFactory(http: HttpClient) { ListComponent, DashboardComponent, FilterBarComponent, + LocationComponent, + ZoneComponent, + ShippingCompanyComponent, + TripComponent, + TripLocationComponent, + TripWorkLogComponent, + VesselComponent, + BaseDataComponent, + LocationListComponent, + ZoneListComponent, + VesselListComponent, + ShippingCompanyListComponent, + ZoneNewComponent, ], providers: [ {provide: HTTP_INTERCEPTORS, useClass: JwtInterceptor, multi: true}, diff --git a/angular/src/app/core/api/v1/.openapi-generator/FILES b/angular/src/app/core/api/v1/.openapi-generator/FILES index e0382e8..49ad28a 100644 --- a/angular/src/app/core/api/v1/.openapi-generator/FILES +++ b/angular/src/app/core/api/v1/.openapi-generator/FILES @@ -1,74 +1,62 @@ .gitignore README.md api.module.ts -api/accountTradePileItem.service.ts api/api.ts -api/candidate.service.ts -api/candidateStat.service.ts -api/candidateStockAccounts.service.ts -api/config.service.ts -api/gameAccount.service.ts -api/logAccountCredit.service.ts -api/logAccountProfit.service.ts -api/logAccountSoldItem.service.ts -api/logGeneral.service.ts -api/logTotalProfit.service.ts +api/location.service.ts api/loginCheck.service.ts api/mediaObject.service.ts -api/modeConfig.service.ts -api/player.service.ts -api/rarity.service.ts -api/systemStat.service.ts +api/shippingCompany.service.ts +api/trip.service.ts +api/tripLocation.service.ts api/user.service.ts +api/userTrip.service.ts +api/userTripLocation.service.ts +api/userTripWorkLog.service.ts +api/vessel.service.ts +api/zone.service.ts configuration.ts encoder.ts git_push.sh index.ts -model/accountTradePileItem.ts -model/accountTradePileItemJsonld.ts -model/accountTradePileItemJsonldContext.ts -model/accountTradePileItemJsonldContextOneOf.ts -model/apiAccountTradePileItemsGetCollection200Response.ts -model/apiAccountTradePileItemsGetCollection200ResponseHydraSearch.ts -model/apiAccountTradePileItemsGetCollection200ResponseHydraSearchHydraMappingInner.ts -model/apiAccountTradePileItemsGetCollection200ResponseHydraView.ts -model/apiCandidateStatsGetCollection200Response.ts -model/apiCandidatesGetCollection200Response.ts -model/apiGameAccountsGetCollection200Response.ts -model/apiLogAccountCreditsGetCollection200Response.ts -model/apiLogAccountProfitsGetCollection200Response.ts -model/apiLogAccountSoldItemsGetCollection200Response.ts -model/apiLogGeneralsGetCollection200Response.ts -model/apiLogTotalProfitsGetCollection200Response.ts +model/apiLocationsGetCollection200Response.ts +model/apiLocationsGetCollection200ResponseSearch.ts +model/apiLocationsGetCollection200ResponseSearchMappingInner.ts +model/apiLocationsGetCollection200ResponseView.ts model/apiMediaObjectsGetCollection200Response.ts -model/apiPlayersGetCollection200Response.ts -model/apiRaritiesGetCollection200Response.ts +model/apiShippingCompaniesGetCollection200Response.ts +model/apiTripLocationsGetCollection200Response.ts +model/apiTripsGetCollection200Response.ts +model/apiUserTripLocationsGetCollection200Response.ts +model/apiUserTripWorkLogsGetCollection200Response.ts +model/apiUserTripsGetCollection200Response.ts model/apiUsersGetCollection200Response.ts -model/candidate.ts -model/candidateJsonld.ts -model/candidateStatJsonld.ts -model/candidateStockAccountsJsonld.ts -model/config.ts -model/configJsonld.ts -model/gameAccount.ts -model/gameAccountJsonld.ts -model/logAccountCreditJsonld.ts -model/logAccountProfitJsonld.ts -model/logAccountSoldItemJsonld.ts -model/logGeneralJsonld.ts -model/logTotalProfit.ts -model/logTotalProfitJsonld.ts +model/apiVesselsGetCollection200Response.ts +model/apiZonesGetCollection200Response.ts +model/location.ts +model/locationJsonld.ts +model/locationJsonldContext.ts +model/locationJsonldContextOneOf.ts model/loginCheckPost200Response.ts model/loginCheckPostRequest.ts model/mediaObjectJsonldMediaObjectRead.ts -model/modeConfig.ts -model/modeConfigJsonld.ts model/models.ts -model/player.ts -model/playerJsonld.ts -model/rarity.ts -model/rarityJsonld.ts -model/systemStatJsonld.ts +model/shippingCompany.ts +model/shippingCompanyJsonld.ts +model/trip.ts +model/tripJsonld.ts +model/tripLocation.ts +model/tripLocationJsonld.ts +model/user.ts model/userJsonld.ts +model/userTrip.ts +model/userTripJsonld.ts +model/userTripLocation.ts +model/userTripLocationJsonld.ts +model/userTripWorkLog.ts +model/userTripWorkLogJsonld.ts +model/vessel.ts +model/vesselJsonld.ts +model/zone.ts +model/zoneJsonld.ts param.ts variables.ts diff --git a/angular/src/app/core/api/v1/api/api.ts b/angular/src/app/core/api/v1/api/api.ts index 2c562c6..90af7ac 100644 --- a/angular/src/app/core/api/v1/api/api.ts +++ b/angular/src/app/core/api/v1/api/api.ts @@ -1,37 +1,25 @@ -export * from './accountTradePileItem.service'; -import { AccountTradePileItemService } from './accountTradePileItem.service'; -export * from './candidate.service'; -import { CandidateService } from './candidate.service'; -export * from './candidateStat.service'; -import { CandidateStatService } from './candidateStat.service'; -export * from './candidateStockAccounts.service'; -import { CandidateStockAccountsService } from './candidateStockAccounts.service'; -export * from './config.service'; -import { ConfigService } from './config.service'; -export * from './gameAccount.service'; -import { GameAccountService } from './gameAccount.service'; -export * from './logAccountCredit.service'; -import { LogAccountCreditService } from './logAccountCredit.service'; -export * from './logAccountProfit.service'; -import { LogAccountProfitService } from './logAccountProfit.service'; -export * from './logAccountSoldItem.service'; -import { LogAccountSoldItemService } from './logAccountSoldItem.service'; -export * from './logGeneral.service'; -import { LogGeneralService } from './logGeneral.service'; -export * from './logTotalProfit.service'; -import { LogTotalProfitService } from './logTotalProfit.service'; +export * from './location.service'; +import { LocationService } from './location.service'; export * from './loginCheck.service'; import { LoginCheckService } from './loginCheck.service'; export * from './mediaObject.service'; import { MediaObjectService } from './mediaObject.service'; -export * from './modeConfig.service'; -import { ModeConfigService } from './modeConfig.service'; -export * from './player.service'; -import { PlayerService } from './player.service'; -export * from './rarity.service'; -import { RarityService } from './rarity.service'; -export * from './systemStat.service'; -import { SystemStatService } from './systemStat.service'; +export * from './shippingCompany.service'; +import { ShippingCompanyService } from './shippingCompany.service'; +export * from './trip.service'; +import { TripService } from './trip.service'; +export * from './tripLocation.service'; +import { TripLocationService } from './tripLocation.service'; export * from './user.service'; import { UserService } from './user.service'; -export const APIS = [AccountTradePileItemService, CandidateService, CandidateStatService, CandidateStockAccountsService, ConfigService, GameAccountService, LogAccountCreditService, LogAccountProfitService, LogAccountSoldItemService, LogGeneralService, LogTotalProfitService, LoginCheckService, MediaObjectService, ModeConfigService, PlayerService, RarityService, SystemStatService, UserService]; +export * from './userTrip.service'; +import { UserTripService } from './userTrip.service'; +export * from './userTripLocation.service'; +import { UserTripLocationService } from './userTripLocation.service'; +export * from './userTripWorkLog.service'; +import { UserTripWorkLogService } from './userTripWorkLog.service'; +export * from './vessel.service'; +import { VesselService } from './vessel.service'; +export * from './zone.service'; +import { ZoneService } from './zone.service'; +export const APIS = [LocationService, LoginCheckService, MediaObjectService, ShippingCompanyService, TripService, TripLocationService, UserService, UserTripService, UserTripLocationService, UserTripWorkLogService, VesselService, ZoneService]; diff --git a/angular/src/app/core/api/v1/api/location.service.ts b/angular/src/app/core/api/v1/api/location.service.ts new file mode 100644 index 0000000..c2de5ca --- /dev/null +++ b/angular/src/app/core/api/v1/api/location.service.ts @@ -0,0 +1,434 @@ +/** + * Imaq Platform + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { ApiLocationsGetCollection200Response } from '../model/apiLocationsGetCollection200Response'; +// @ts-ignore +import { Location } from '../model/location'; +// @ts-ignore +import { LocationJsonld } from '../model/locationJsonld'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class LocationService { + + protected basePath = 'http://localhost'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substring(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Retrieves the collection of Location resources. + * Retrieves the collection of Location resources. + * @param page The collection page number + * @param itemsPerPage The number of items per page + * @param name + * @param customJsonFilter + * @param customJsonOrder + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public locationsGetCollection(page?: number, itemsPerPage?: number, name?: string, customJsonFilter?: string, customJsonOrder?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable; + public locationsGetCollection(page?: number, itemsPerPage?: number, name?: string, customJsonFilter?: string, customJsonOrder?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public locationsGetCollection(page?: number, itemsPerPage?: number, name?: string, customJsonFilter?: string, customJsonOrder?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public locationsGetCollection(page?: number, itemsPerPage?: number, name?: string, customJsonFilter?: string, customJsonOrder?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (page !== undefined && page !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + page, 'page'); + } + if (itemsPerPage !== undefined && itemsPerPage !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + itemsPerPage, 'itemsPerPage'); + } + if (name !== undefined && name !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + name, 'name'); + } + if (customJsonFilter !== undefined && customJsonFilter !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + customJsonFilter, 'custom_json_filter'); + } + if (customJsonOrder !== undefined && customJsonOrder !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + customJsonOrder, 'custom_json_order'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (JWT) required + localVarCredential = this.configuration.lookupCredential('JWT'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/ld+json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + let localVarTransferCache: boolean | undefined = options && options.transferCache; + if (localVarTransferCache === undefined) { + localVarTransferCache = true; + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/api/locations`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + transferCache: localVarTransferCache, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieves a Location resource. + * Retrieves a Location resource. + * @param id Location identifier + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public locationsIdGet(id: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable; + public locationsIdGet(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public locationsIdGet(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public locationsIdGet(id: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable { + if (id === null || id === undefined) { + throw new Error('Required parameter id was null or undefined when calling locationsIdGet.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (JWT) required + localVarCredential = this.configuration.lookupCredential('JWT'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/ld+json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + let localVarTransferCache: boolean | undefined = options && options.transferCache; + if (localVarTransferCache === undefined) { + localVarTransferCache = true; + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/api/locations/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + transferCache: localVarTransferCache, + reportProgress: reportProgress + } + ); + } + + /** + * Updates the Location resource. + * Updates the Location resource. + * @param id Location identifier + * @param location The updated Location resource + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public locationsIdPatch(id: string, location: Location, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable; + public locationsIdPatch(id: string, location: Location, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public locationsIdPatch(id: string, location: Location, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public locationsIdPatch(id: string, location: Location, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable { + if (id === null || id === undefined) { + throw new Error('Required parameter id was null or undefined when calling locationsIdPatch.'); + } + if (location === null || location === undefined) { + throw new Error('Required parameter location was null or undefined when calling locationsIdPatch.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (JWT) required + localVarCredential = this.configuration.lookupCredential('JWT'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/ld+json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + let localVarTransferCache: boolean | undefined = options && options.transferCache; + if (localVarTransferCache === undefined) { + localVarTransferCache = true; + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/merge-patch+json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/api/locations/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; + return this.httpClient.request('patch', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: location, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + transferCache: localVarTransferCache, + reportProgress: reportProgress + } + ); + } + + /** + * Creates a Location resource. + * Creates a Location resource. + * @param locationJsonld The new Location resource + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public locationsPost(locationJsonld: LocationJsonld, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable; + public locationsPost(locationJsonld: LocationJsonld, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public locationsPost(locationJsonld: LocationJsonld, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public locationsPost(locationJsonld: LocationJsonld, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable { + if (locationJsonld === null || locationJsonld === undefined) { + throw new Error('Required parameter locationJsonld was null or undefined when calling locationsPost.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (JWT) required + localVarCredential = this.configuration.lookupCredential('JWT'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/ld+json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + let localVarTransferCache: boolean | undefined = options && options.transferCache; + if (localVarTransferCache === undefined) { + localVarTransferCache = true; + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/ld+json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/api/locations`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: locationJsonld, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + transferCache: localVarTransferCache, + reportProgress: reportProgress + } + ); + } + +} diff --git a/angular/src/app/core/api/v1/api/loginCheck.service.ts b/angular/src/app/core/api/v1/api/loginCheck.service.ts index e9cfb64..6a5c15d 100644 --- a/angular/src/app/core/api/v1/api/loginCheck.service.ts +++ b/angular/src/app/core/api/v1/api/loginCheck.service.ts @@ -1,5 +1,5 @@ /** - * Hello API Platform + * Imaq Platform * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 1.0.0 diff --git a/angular/src/app/core/api/v1/api/mediaObject.service.ts b/angular/src/app/core/api/v1/api/mediaObject.service.ts index 6575af0..a3ab982 100644 --- a/angular/src/app/core/api/v1/api/mediaObject.service.ts +++ b/angular/src/app/core/api/v1/api/mediaObject.service.ts @@ -1,5 +1,5 @@ /** - * Hello API Platform + * Imaq Platform * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 1.0.0 diff --git a/angular/src/app/core/api/v1/api/shippingCompany.service.ts b/angular/src/app/core/api/v1/api/shippingCompany.service.ts new file mode 100644 index 0000000..273045d --- /dev/null +++ b/angular/src/app/core/api/v1/api/shippingCompany.service.ts @@ -0,0 +1,434 @@ +/** + * Imaq Platform + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { ApiShippingCompaniesGetCollection200Response } from '../model/apiShippingCompaniesGetCollection200Response'; +// @ts-ignore +import { ShippingCompany } from '../model/shippingCompany'; +// @ts-ignore +import { ShippingCompanyJsonld } from '../model/shippingCompanyJsonld'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class ShippingCompanyService { + + protected basePath = 'http://localhost'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substring(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Retrieves the collection of ShippingCompany resources. + * Retrieves the collection of ShippingCompany resources. + * @param page The collection page number + * @param itemsPerPage The number of items per page + * @param name + * @param customJsonFilter + * @param customJsonOrder + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public shippingCompaniesGetCollection(page?: number, itemsPerPage?: number, name?: string, customJsonFilter?: string, customJsonOrder?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable; + public shippingCompaniesGetCollection(page?: number, itemsPerPage?: number, name?: string, customJsonFilter?: string, customJsonOrder?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public shippingCompaniesGetCollection(page?: number, itemsPerPage?: number, name?: string, customJsonFilter?: string, customJsonOrder?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public shippingCompaniesGetCollection(page?: number, itemsPerPage?: number, name?: string, customJsonFilter?: string, customJsonOrder?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (page !== undefined && page !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + page, 'page'); + } + if (itemsPerPage !== undefined && itemsPerPage !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + itemsPerPage, 'itemsPerPage'); + } + if (name !== undefined && name !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + name, 'name'); + } + if (customJsonFilter !== undefined && customJsonFilter !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + customJsonFilter, 'custom_json_filter'); + } + if (customJsonOrder !== undefined && customJsonOrder !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + customJsonOrder, 'custom_json_order'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (JWT) required + localVarCredential = this.configuration.lookupCredential('JWT'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/ld+json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + let localVarTransferCache: boolean | undefined = options && options.transferCache; + if (localVarTransferCache === undefined) { + localVarTransferCache = true; + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/api/shipping_companies`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + transferCache: localVarTransferCache, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieves a ShippingCompany resource. + * Retrieves a ShippingCompany resource. + * @param id ShippingCompany identifier + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public shippingCompaniesIdGet(id: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable; + public shippingCompaniesIdGet(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public shippingCompaniesIdGet(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public shippingCompaniesIdGet(id: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable { + if (id === null || id === undefined) { + throw new Error('Required parameter id was null or undefined when calling shippingCompaniesIdGet.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (JWT) required + localVarCredential = this.configuration.lookupCredential('JWT'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/ld+json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + let localVarTransferCache: boolean | undefined = options && options.transferCache; + if (localVarTransferCache === undefined) { + localVarTransferCache = true; + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/api/shipping_companies/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + transferCache: localVarTransferCache, + reportProgress: reportProgress + } + ); + } + + /** + * Updates the ShippingCompany resource. + * Updates the ShippingCompany resource. + * @param id ShippingCompany identifier + * @param shippingCompany The updated ShippingCompany resource + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public shippingCompaniesIdPatch(id: string, shippingCompany: ShippingCompany, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable; + public shippingCompaniesIdPatch(id: string, shippingCompany: ShippingCompany, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public shippingCompaniesIdPatch(id: string, shippingCompany: ShippingCompany, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public shippingCompaniesIdPatch(id: string, shippingCompany: ShippingCompany, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable { + if (id === null || id === undefined) { + throw new Error('Required parameter id was null or undefined when calling shippingCompaniesIdPatch.'); + } + if (shippingCompany === null || shippingCompany === undefined) { + throw new Error('Required parameter shippingCompany was null or undefined when calling shippingCompaniesIdPatch.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (JWT) required + localVarCredential = this.configuration.lookupCredential('JWT'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/ld+json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + let localVarTransferCache: boolean | undefined = options && options.transferCache; + if (localVarTransferCache === undefined) { + localVarTransferCache = true; + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/merge-patch+json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/api/shipping_companies/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; + return this.httpClient.request('patch', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: shippingCompany, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + transferCache: localVarTransferCache, + reportProgress: reportProgress + } + ); + } + + /** + * Creates a ShippingCompany resource. + * Creates a ShippingCompany resource. + * @param shippingCompanyJsonld The new ShippingCompany resource + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public shippingCompaniesPost(shippingCompanyJsonld: ShippingCompanyJsonld, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable; + public shippingCompaniesPost(shippingCompanyJsonld: ShippingCompanyJsonld, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public shippingCompaniesPost(shippingCompanyJsonld: ShippingCompanyJsonld, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public shippingCompaniesPost(shippingCompanyJsonld: ShippingCompanyJsonld, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable { + if (shippingCompanyJsonld === null || shippingCompanyJsonld === undefined) { + throw new Error('Required parameter shippingCompanyJsonld was null or undefined when calling shippingCompaniesPost.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (JWT) required + localVarCredential = this.configuration.lookupCredential('JWT'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/ld+json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + let localVarTransferCache: boolean | undefined = options && options.transferCache; + if (localVarTransferCache === undefined) { + localVarTransferCache = true; + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/ld+json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/api/shipping_companies`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: shippingCompanyJsonld, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + transferCache: localVarTransferCache, + reportProgress: reportProgress + } + ); + } + +} diff --git a/angular/src/app/core/api/v1/api/trip.service.ts b/angular/src/app/core/api/v1/api/trip.service.ts new file mode 100644 index 0000000..9d5fff2 --- /dev/null +++ b/angular/src/app/core/api/v1/api/trip.service.ts @@ -0,0 +1,419 @@ +/** + * Imaq Platform + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { ApiTripsGetCollection200Response } from '../model/apiTripsGetCollection200Response'; +// @ts-ignore +import { Trip } from '../model/trip'; +// @ts-ignore +import { TripJsonld } from '../model/tripJsonld'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class TripService { + + protected basePath = 'http://localhost'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substring(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Retrieves the collection of Trip resources. + * Retrieves the collection of Trip resources. + * @param page The collection page number + * @param itemsPerPage The number of items per page + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public tripsGetCollection(page?: number, itemsPerPage?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable; + public tripsGetCollection(page?: number, itemsPerPage?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public tripsGetCollection(page?: number, itemsPerPage?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public tripsGetCollection(page?: number, itemsPerPage?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (page !== undefined && page !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + page, 'page'); + } + if (itemsPerPage !== undefined && itemsPerPage !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + itemsPerPage, 'itemsPerPage'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (JWT) required + localVarCredential = this.configuration.lookupCredential('JWT'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/ld+json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + let localVarTransferCache: boolean | undefined = options && options.transferCache; + if (localVarTransferCache === undefined) { + localVarTransferCache = true; + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/api/trips`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + transferCache: localVarTransferCache, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieves a Trip resource. + * Retrieves a Trip resource. + * @param id Trip identifier + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public tripsIdGet(id: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable; + public tripsIdGet(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public tripsIdGet(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public tripsIdGet(id: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable { + if (id === null || id === undefined) { + throw new Error('Required parameter id was null or undefined when calling tripsIdGet.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (JWT) required + localVarCredential = this.configuration.lookupCredential('JWT'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/ld+json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + let localVarTransferCache: boolean | undefined = options && options.transferCache; + if (localVarTransferCache === undefined) { + localVarTransferCache = true; + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/api/trips/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + transferCache: localVarTransferCache, + reportProgress: reportProgress + } + ); + } + + /** + * Updates the Trip resource. + * Updates the Trip resource. + * @param id Trip identifier + * @param trip The updated Trip resource + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public tripsIdPatch(id: string, trip: Trip, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable; + public tripsIdPatch(id: string, trip: Trip, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public tripsIdPatch(id: string, trip: Trip, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public tripsIdPatch(id: string, trip: Trip, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable { + if (id === null || id === undefined) { + throw new Error('Required parameter id was null or undefined when calling tripsIdPatch.'); + } + if (trip === null || trip === undefined) { + throw new Error('Required parameter trip was null or undefined when calling tripsIdPatch.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (JWT) required + localVarCredential = this.configuration.lookupCredential('JWT'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/ld+json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + let localVarTransferCache: boolean | undefined = options && options.transferCache; + if (localVarTransferCache === undefined) { + localVarTransferCache = true; + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/merge-patch+json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/api/trips/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; + return this.httpClient.request('patch', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: trip, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + transferCache: localVarTransferCache, + reportProgress: reportProgress + } + ); + } + + /** + * Creates a Trip resource. + * Creates a Trip resource. + * @param tripJsonld The new Trip resource + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public tripsPost(tripJsonld: TripJsonld, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable; + public tripsPost(tripJsonld: TripJsonld, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public tripsPost(tripJsonld: TripJsonld, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public tripsPost(tripJsonld: TripJsonld, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable { + if (tripJsonld === null || tripJsonld === undefined) { + throw new Error('Required parameter tripJsonld was null or undefined when calling tripsPost.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (JWT) required + localVarCredential = this.configuration.lookupCredential('JWT'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/ld+json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + let localVarTransferCache: boolean | undefined = options && options.transferCache; + if (localVarTransferCache === undefined) { + localVarTransferCache = true; + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/ld+json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/api/trips`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: tripJsonld, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + transferCache: localVarTransferCache, + reportProgress: reportProgress + } + ); + } + +} diff --git a/angular/src/app/core/api/v1/api/tripLocation.service.ts b/angular/src/app/core/api/v1/api/tripLocation.service.ts new file mode 100644 index 0000000..35cace8 --- /dev/null +++ b/angular/src/app/core/api/v1/api/tripLocation.service.ts @@ -0,0 +1,419 @@ +/** + * Imaq Platform + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { ApiTripLocationsGetCollection200Response } from '../model/apiTripLocationsGetCollection200Response'; +// @ts-ignore +import { TripLocation } from '../model/tripLocation'; +// @ts-ignore +import { TripLocationJsonld } from '../model/tripLocationJsonld'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class TripLocationService { + + protected basePath = 'http://localhost'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substring(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Retrieves the collection of TripLocation resources. + * Retrieves the collection of TripLocation resources. + * @param page The collection page number + * @param itemsPerPage The number of items per page + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public tripLocationsGetCollection(page?: number, itemsPerPage?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable; + public tripLocationsGetCollection(page?: number, itemsPerPage?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public tripLocationsGetCollection(page?: number, itemsPerPage?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public tripLocationsGetCollection(page?: number, itemsPerPage?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (page !== undefined && page !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + page, 'page'); + } + if (itemsPerPage !== undefined && itemsPerPage !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + itemsPerPage, 'itemsPerPage'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (JWT) required + localVarCredential = this.configuration.lookupCredential('JWT'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/ld+json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + let localVarTransferCache: boolean | undefined = options && options.transferCache; + if (localVarTransferCache === undefined) { + localVarTransferCache = true; + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/api/trip_locations`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + transferCache: localVarTransferCache, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieves a TripLocation resource. + * Retrieves a TripLocation resource. + * @param id TripLocation identifier + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public tripLocationsIdGet(id: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable; + public tripLocationsIdGet(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public tripLocationsIdGet(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public tripLocationsIdGet(id: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable { + if (id === null || id === undefined) { + throw new Error('Required parameter id was null or undefined when calling tripLocationsIdGet.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (JWT) required + localVarCredential = this.configuration.lookupCredential('JWT'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/ld+json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + let localVarTransferCache: boolean | undefined = options && options.transferCache; + if (localVarTransferCache === undefined) { + localVarTransferCache = true; + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/api/trip_locations/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + transferCache: localVarTransferCache, + reportProgress: reportProgress + } + ); + } + + /** + * Updates the TripLocation resource. + * Updates the TripLocation resource. + * @param id TripLocation identifier + * @param tripLocation The updated TripLocation resource + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public tripLocationsIdPatch(id: string, tripLocation: TripLocation, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable; + public tripLocationsIdPatch(id: string, tripLocation: TripLocation, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public tripLocationsIdPatch(id: string, tripLocation: TripLocation, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public tripLocationsIdPatch(id: string, tripLocation: TripLocation, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable { + if (id === null || id === undefined) { + throw new Error('Required parameter id was null or undefined when calling tripLocationsIdPatch.'); + } + if (tripLocation === null || tripLocation === undefined) { + throw new Error('Required parameter tripLocation was null or undefined when calling tripLocationsIdPatch.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (JWT) required + localVarCredential = this.configuration.lookupCredential('JWT'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/ld+json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + let localVarTransferCache: boolean | undefined = options && options.transferCache; + if (localVarTransferCache === undefined) { + localVarTransferCache = true; + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/merge-patch+json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/api/trip_locations/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; + return this.httpClient.request('patch', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: tripLocation, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + transferCache: localVarTransferCache, + reportProgress: reportProgress + } + ); + } + + /** + * Creates a TripLocation resource. + * Creates a TripLocation resource. + * @param tripLocationJsonld The new TripLocation resource + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public tripLocationsPost(tripLocationJsonld: TripLocationJsonld, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable; + public tripLocationsPost(tripLocationJsonld: TripLocationJsonld, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public tripLocationsPost(tripLocationJsonld: TripLocationJsonld, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public tripLocationsPost(tripLocationJsonld: TripLocationJsonld, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable { + if (tripLocationJsonld === null || tripLocationJsonld === undefined) { + throw new Error('Required parameter tripLocationJsonld was null or undefined when calling tripLocationsPost.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (JWT) required + localVarCredential = this.configuration.lookupCredential('JWT'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/ld+json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + let localVarTransferCache: boolean | undefined = options && options.transferCache; + if (localVarTransferCache === undefined) { + localVarTransferCache = true; + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/ld+json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/api/trip_locations`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: tripLocationJsonld, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + transferCache: localVarTransferCache, + reportProgress: reportProgress + } + ); + } + +} diff --git a/angular/src/app/core/api/v1/api/user.service.ts b/angular/src/app/core/api/v1/api/user.service.ts index 15751b8..ef5bb53 100644 --- a/angular/src/app/core/api/v1/api/user.service.ts +++ b/angular/src/app/core/api/v1/api/user.service.ts @@ -1,5 +1,5 @@ /** - * Hello API Platform + * Imaq Platform * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 1.0.0 @@ -21,6 +21,8 @@ import { Observable } from 'rxjs'; // @ts-ignore import { ApiUsersGetCollection200Response } from '../model/apiUsersGetCollection200Response'; // @ts-ignore +import { User } from '../model/user'; +// @ts-ignore import { UserJsonld } from '../model/userJsonld'; // @ts-ignore @@ -266,6 +268,92 @@ export class UserService { ); } + /** + * Updates the User resource. + * Updates the User resource. + * @param id User identifier + * @param user The updated User resource + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public usersIdPatch(id: string, user: User, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable; + public usersIdPatch(id: string, user: User, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public usersIdPatch(id: string, user: User, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public usersIdPatch(id: string, user: User, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable { + if (id === null || id === undefined) { + throw new Error('Required parameter id was null or undefined when calling usersIdPatch.'); + } + if (user === null || user === undefined) { + throw new Error('Required parameter user was null or undefined when calling usersIdPatch.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (JWT) required + localVarCredential = this.configuration.lookupCredential('JWT'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/ld+json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + let localVarTransferCache: boolean | undefined = options && options.transferCache; + if (localVarTransferCache === undefined) { + localVarTransferCache = true; + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/merge-patch+json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/api/users/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; + return this.httpClient.request('patch', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: user, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + transferCache: localVarTransferCache, + reportProgress: reportProgress + } + ); + } + /** * Creates a User resource. * Creates a User resource. diff --git a/angular/src/app/core/api/v1/api/userTrip.service.ts b/angular/src/app/core/api/v1/api/userTrip.service.ts new file mode 100644 index 0000000..2e15b4f --- /dev/null +++ b/angular/src/app/core/api/v1/api/userTrip.service.ts @@ -0,0 +1,419 @@ +/** + * Imaq Platform + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { ApiUserTripsGetCollection200Response } from '../model/apiUserTripsGetCollection200Response'; +// @ts-ignore +import { UserTrip } from '../model/userTrip'; +// @ts-ignore +import { UserTripJsonld } from '../model/userTripJsonld'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class UserTripService { + + protected basePath = 'http://localhost'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substring(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Retrieves the collection of UserTrip resources. + * Retrieves the collection of UserTrip resources. + * @param page The collection page number + * @param itemsPerPage The number of items per page + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public userTripsGetCollection(page?: number, itemsPerPage?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable; + public userTripsGetCollection(page?: number, itemsPerPage?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public userTripsGetCollection(page?: number, itemsPerPage?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public userTripsGetCollection(page?: number, itemsPerPage?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (page !== undefined && page !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + page, 'page'); + } + if (itemsPerPage !== undefined && itemsPerPage !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + itemsPerPage, 'itemsPerPage'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (JWT) required + localVarCredential = this.configuration.lookupCredential('JWT'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/ld+json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + let localVarTransferCache: boolean | undefined = options && options.transferCache; + if (localVarTransferCache === undefined) { + localVarTransferCache = true; + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/api/user_trips`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + transferCache: localVarTransferCache, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieves a UserTrip resource. + * Retrieves a UserTrip resource. + * @param id UserTrip identifier + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public userTripsIdGet(id: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable; + public userTripsIdGet(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public userTripsIdGet(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public userTripsIdGet(id: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable { + if (id === null || id === undefined) { + throw new Error('Required parameter id was null or undefined when calling userTripsIdGet.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (JWT) required + localVarCredential = this.configuration.lookupCredential('JWT'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/ld+json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + let localVarTransferCache: boolean | undefined = options && options.transferCache; + if (localVarTransferCache === undefined) { + localVarTransferCache = true; + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/api/user_trips/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + transferCache: localVarTransferCache, + reportProgress: reportProgress + } + ); + } + + /** + * Updates the UserTrip resource. + * Updates the UserTrip resource. + * @param id UserTrip identifier + * @param userTrip The updated UserTrip resource + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public userTripsIdPatch(id: string, userTrip: UserTrip, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable; + public userTripsIdPatch(id: string, userTrip: UserTrip, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public userTripsIdPatch(id: string, userTrip: UserTrip, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public userTripsIdPatch(id: string, userTrip: UserTrip, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable { + if (id === null || id === undefined) { + throw new Error('Required parameter id was null or undefined when calling userTripsIdPatch.'); + } + if (userTrip === null || userTrip === undefined) { + throw new Error('Required parameter userTrip was null or undefined when calling userTripsIdPatch.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (JWT) required + localVarCredential = this.configuration.lookupCredential('JWT'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/ld+json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + let localVarTransferCache: boolean | undefined = options && options.transferCache; + if (localVarTransferCache === undefined) { + localVarTransferCache = true; + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/merge-patch+json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/api/user_trips/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; + return this.httpClient.request('patch', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: userTrip, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + transferCache: localVarTransferCache, + reportProgress: reportProgress + } + ); + } + + /** + * Creates a UserTrip resource. + * Creates a UserTrip resource. + * @param userTripJsonld The new UserTrip resource + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public userTripsPost(userTripJsonld: UserTripJsonld, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable; + public userTripsPost(userTripJsonld: UserTripJsonld, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public userTripsPost(userTripJsonld: UserTripJsonld, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public userTripsPost(userTripJsonld: UserTripJsonld, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable { + if (userTripJsonld === null || userTripJsonld === undefined) { + throw new Error('Required parameter userTripJsonld was null or undefined when calling userTripsPost.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (JWT) required + localVarCredential = this.configuration.lookupCredential('JWT'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/ld+json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + let localVarTransferCache: boolean | undefined = options && options.transferCache; + if (localVarTransferCache === undefined) { + localVarTransferCache = true; + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/ld+json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/api/user_trips`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: userTripJsonld, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + transferCache: localVarTransferCache, + reportProgress: reportProgress + } + ); + } + +} diff --git a/angular/src/app/core/api/v1/api/userTripLocation.service.ts b/angular/src/app/core/api/v1/api/userTripLocation.service.ts new file mode 100644 index 0000000..f2301dc --- /dev/null +++ b/angular/src/app/core/api/v1/api/userTripLocation.service.ts @@ -0,0 +1,419 @@ +/** + * Imaq Platform + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { ApiUserTripLocationsGetCollection200Response } from '../model/apiUserTripLocationsGetCollection200Response'; +// @ts-ignore +import { UserTripLocation } from '../model/userTripLocation'; +// @ts-ignore +import { UserTripLocationJsonld } from '../model/userTripLocationJsonld'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class UserTripLocationService { + + protected basePath = 'http://localhost'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substring(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Retrieves the collection of UserTripLocation resources. + * Retrieves the collection of UserTripLocation resources. + * @param page The collection page number + * @param itemsPerPage The number of items per page + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public userTripLocationsGetCollection(page?: number, itemsPerPage?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable; + public userTripLocationsGetCollection(page?: number, itemsPerPage?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public userTripLocationsGetCollection(page?: number, itemsPerPage?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public userTripLocationsGetCollection(page?: number, itemsPerPage?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (page !== undefined && page !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + page, 'page'); + } + if (itemsPerPage !== undefined && itemsPerPage !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + itemsPerPage, 'itemsPerPage'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (JWT) required + localVarCredential = this.configuration.lookupCredential('JWT'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/ld+json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + let localVarTransferCache: boolean | undefined = options && options.transferCache; + if (localVarTransferCache === undefined) { + localVarTransferCache = true; + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/api/user_trip_locations`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + transferCache: localVarTransferCache, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieves a UserTripLocation resource. + * Retrieves a UserTripLocation resource. + * @param id UserTripLocation identifier + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public userTripLocationsIdGet(id: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable; + public userTripLocationsIdGet(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public userTripLocationsIdGet(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public userTripLocationsIdGet(id: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable { + if (id === null || id === undefined) { + throw new Error('Required parameter id was null or undefined when calling userTripLocationsIdGet.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (JWT) required + localVarCredential = this.configuration.lookupCredential('JWT'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/ld+json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + let localVarTransferCache: boolean | undefined = options && options.transferCache; + if (localVarTransferCache === undefined) { + localVarTransferCache = true; + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/api/user_trip_locations/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + transferCache: localVarTransferCache, + reportProgress: reportProgress + } + ); + } + + /** + * Updates the UserTripLocation resource. + * Updates the UserTripLocation resource. + * @param id UserTripLocation identifier + * @param userTripLocation The updated UserTripLocation resource + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public userTripLocationsIdPatch(id: string, userTripLocation: UserTripLocation, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable; + public userTripLocationsIdPatch(id: string, userTripLocation: UserTripLocation, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public userTripLocationsIdPatch(id: string, userTripLocation: UserTripLocation, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public userTripLocationsIdPatch(id: string, userTripLocation: UserTripLocation, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable { + if (id === null || id === undefined) { + throw new Error('Required parameter id was null or undefined when calling userTripLocationsIdPatch.'); + } + if (userTripLocation === null || userTripLocation === undefined) { + throw new Error('Required parameter userTripLocation was null or undefined when calling userTripLocationsIdPatch.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (JWT) required + localVarCredential = this.configuration.lookupCredential('JWT'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/ld+json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + let localVarTransferCache: boolean | undefined = options && options.transferCache; + if (localVarTransferCache === undefined) { + localVarTransferCache = true; + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/merge-patch+json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/api/user_trip_locations/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; + return this.httpClient.request('patch', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: userTripLocation, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + transferCache: localVarTransferCache, + reportProgress: reportProgress + } + ); + } + + /** + * Creates a UserTripLocation resource. + * Creates a UserTripLocation resource. + * @param userTripLocationJsonld The new UserTripLocation resource + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public userTripLocationsPost(userTripLocationJsonld: UserTripLocationJsonld, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable; + public userTripLocationsPost(userTripLocationJsonld: UserTripLocationJsonld, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public userTripLocationsPost(userTripLocationJsonld: UserTripLocationJsonld, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public userTripLocationsPost(userTripLocationJsonld: UserTripLocationJsonld, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable { + if (userTripLocationJsonld === null || userTripLocationJsonld === undefined) { + throw new Error('Required parameter userTripLocationJsonld was null or undefined when calling userTripLocationsPost.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (JWT) required + localVarCredential = this.configuration.lookupCredential('JWT'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/ld+json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + let localVarTransferCache: boolean | undefined = options && options.transferCache; + if (localVarTransferCache === undefined) { + localVarTransferCache = true; + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/ld+json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/api/user_trip_locations`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: userTripLocationJsonld, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + transferCache: localVarTransferCache, + reportProgress: reportProgress + } + ); + } + +} diff --git a/angular/src/app/core/api/v1/api/userTripWorkLog.service.ts b/angular/src/app/core/api/v1/api/userTripWorkLog.service.ts new file mode 100644 index 0000000..feff8c7 --- /dev/null +++ b/angular/src/app/core/api/v1/api/userTripWorkLog.service.ts @@ -0,0 +1,419 @@ +/** + * Imaq Platform + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { ApiUserTripWorkLogsGetCollection200Response } from '../model/apiUserTripWorkLogsGetCollection200Response'; +// @ts-ignore +import { UserTripWorkLog } from '../model/userTripWorkLog'; +// @ts-ignore +import { UserTripWorkLogJsonld } from '../model/userTripWorkLogJsonld'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class UserTripWorkLogService { + + protected basePath = 'http://localhost'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substring(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Retrieves the collection of UserTripWorkLog resources. + * Retrieves the collection of UserTripWorkLog resources. + * @param page The collection page number + * @param itemsPerPage The number of items per page + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public userTripWorkLogsGetCollection(page?: number, itemsPerPage?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable; + public userTripWorkLogsGetCollection(page?: number, itemsPerPage?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public userTripWorkLogsGetCollection(page?: number, itemsPerPage?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public userTripWorkLogsGetCollection(page?: number, itemsPerPage?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (page !== undefined && page !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + page, 'page'); + } + if (itemsPerPage !== undefined && itemsPerPage !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + itemsPerPage, 'itemsPerPage'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (JWT) required + localVarCredential = this.configuration.lookupCredential('JWT'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/ld+json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + let localVarTransferCache: boolean | undefined = options && options.transferCache; + if (localVarTransferCache === undefined) { + localVarTransferCache = true; + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/api/user_trip_work_logs`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + transferCache: localVarTransferCache, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieves a UserTripWorkLog resource. + * Retrieves a UserTripWorkLog resource. + * @param id UserTripWorkLog identifier + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public userTripWorkLogsIdGet(id: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable; + public userTripWorkLogsIdGet(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public userTripWorkLogsIdGet(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public userTripWorkLogsIdGet(id: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable { + if (id === null || id === undefined) { + throw new Error('Required parameter id was null or undefined when calling userTripWorkLogsIdGet.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (JWT) required + localVarCredential = this.configuration.lookupCredential('JWT'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/ld+json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + let localVarTransferCache: boolean | undefined = options && options.transferCache; + if (localVarTransferCache === undefined) { + localVarTransferCache = true; + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/api/user_trip_work_logs/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + transferCache: localVarTransferCache, + reportProgress: reportProgress + } + ); + } + + /** + * Updates the UserTripWorkLog resource. + * Updates the UserTripWorkLog resource. + * @param id UserTripWorkLog identifier + * @param userTripWorkLog The updated UserTripWorkLog resource + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public userTripWorkLogsIdPatch(id: string, userTripWorkLog: UserTripWorkLog, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable; + public userTripWorkLogsIdPatch(id: string, userTripWorkLog: UserTripWorkLog, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public userTripWorkLogsIdPatch(id: string, userTripWorkLog: UserTripWorkLog, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public userTripWorkLogsIdPatch(id: string, userTripWorkLog: UserTripWorkLog, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable { + if (id === null || id === undefined) { + throw new Error('Required parameter id was null or undefined when calling userTripWorkLogsIdPatch.'); + } + if (userTripWorkLog === null || userTripWorkLog === undefined) { + throw new Error('Required parameter userTripWorkLog was null or undefined when calling userTripWorkLogsIdPatch.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (JWT) required + localVarCredential = this.configuration.lookupCredential('JWT'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/ld+json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + let localVarTransferCache: boolean | undefined = options && options.transferCache; + if (localVarTransferCache === undefined) { + localVarTransferCache = true; + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/merge-patch+json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/api/user_trip_work_logs/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; + return this.httpClient.request('patch', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: userTripWorkLog, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + transferCache: localVarTransferCache, + reportProgress: reportProgress + } + ); + } + + /** + * Creates a UserTripWorkLog resource. + * Creates a UserTripWorkLog resource. + * @param userTripWorkLogJsonld The new UserTripWorkLog resource + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public userTripWorkLogsPost(userTripWorkLogJsonld: UserTripWorkLogJsonld, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable; + public userTripWorkLogsPost(userTripWorkLogJsonld: UserTripWorkLogJsonld, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public userTripWorkLogsPost(userTripWorkLogJsonld: UserTripWorkLogJsonld, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public userTripWorkLogsPost(userTripWorkLogJsonld: UserTripWorkLogJsonld, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable { + if (userTripWorkLogJsonld === null || userTripWorkLogJsonld === undefined) { + throw new Error('Required parameter userTripWorkLogJsonld was null or undefined when calling userTripWorkLogsPost.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (JWT) required + localVarCredential = this.configuration.lookupCredential('JWT'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/ld+json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + let localVarTransferCache: boolean | undefined = options && options.transferCache; + if (localVarTransferCache === undefined) { + localVarTransferCache = true; + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/ld+json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/api/user_trip_work_logs`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: userTripWorkLogJsonld, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + transferCache: localVarTransferCache, + reportProgress: reportProgress + } + ); + } + +} diff --git a/angular/src/app/core/api/v1/api/vessel.service.ts b/angular/src/app/core/api/v1/api/vessel.service.ts new file mode 100644 index 0000000..fc740ee --- /dev/null +++ b/angular/src/app/core/api/v1/api/vessel.service.ts @@ -0,0 +1,434 @@ +/** + * Imaq Platform + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { ApiVesselsGetCollection200Response } from '../model/apiVesselsGetCollection200Response'; +// @ts-ignore +import { Vessel } from '../model/vessel'; +// @ts-ignore +import { VesselJsonld } from '../model/vesselJsonld'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class VesselService { + + protected basePath = 'http://localhost'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substring(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Retrieves the collection of Vessel resources. + * Retrieves the collection of Vessel resources. + * @param page The collection page number + * @param itemsPerPage The number of items per page + * @param name + * @param customJsonFilter + * @param customJsonOrder + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public vesselsGetCollection(page?: number, itemsPerPage?: number, name?: string, customJsonFilter?: string, customJsonOrder?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable; + public vesselsGetCollection(page?: number, itemsPerPage?: number, name?: string, customJsonFilter?: string, customJsonOrder?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public vesselsGetCollection(page?: number, itemsPerPage?: number, name?: string, customJsonFilter?: string, customJsonOrder?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public vesselsGetCollection(page?: number, itemsPerPage?: number, name?: string, customJsonFilter?: string, customJsonOrder?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (page !== undefined && page !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + page, 'page'); + } + if (itemsPerPage !== undefined && itemsPerPage !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + itemsPerPage, 'itemsPerPage'); + } + if (name !== undefined && name !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + name, 'name'); + } + if (customJsonFilter !== undefined && customJsonFilter !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + customJsonFilter, 'custom_json_filter'); + } + if (customJsonOrder !== undefined && customJsonOrder !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + customJsonOrder, 'custom_json_order'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (JWT) required + localVarCredential = this.configuration.lookupCredential('JWT'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/ld+json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + let localVarTransferCache: boolean | undefined = options && options.transferCache; + if (localVarTransferCache === undefined) { + localVarTransferCache = true; + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/api/vessels`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + transferCache: localVarTransferCache, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieves a Vessel resource. + * Retrieves a Vessel resource. + * @param id Vessel identifier + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public vesselsIdGet(id: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable; + public vesselsIdGet(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public vesselsIdGet(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public vesselsIdGet(id: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable { + if (id === null || id === undefined) { + throw new Error('Required parameter id was null or undefined when calling vesselsIdGet.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (JWT) required + localVarCredential = this.configuration.lookupCredential('JWT'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/ld+json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + let localVarTransferCache: boolean | undefined = options && options.transferCache; + if (localVarTransferCache === undefined) { + localVarTransferCache = true; + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/api/vessels/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + transferCache: localVarTransferCache, + reportProgress: reportProgress + } + ); + } + + /** + * Updates the Vessel resource. + * Updates the Vessel resource. + * @param id Vessel identifier + * @param vessel The updated Vessel resource + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public vesselsIdPatch(id: string, vessel: Vessel, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable; + public vesselsIdPatch(id: string, vessel: Vessel, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public vesselsIdPatch(id: string, vessel: Vessel, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public vesselsIdPatch(id: string, vessel: Vessel, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable { + if (id === null || id === undefined) { + throw new Error('Required parameter id was null or undefined when calling vesselsIdPatch.'); + } + if (vessel === null || vessel === undefined) { + throw new Error('Required parameter vessel was null or undefined when calling vesselsIdPatch.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (JWT) required + localVarCredential = this.configuration.lookupCredential('JWT'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/ld+json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + let localVarTransferCache: boolean | undefined = options && options.transferCache; + if (localVarTransferCache === undefined) { + localVarTransferCache = true; + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/merge-patch+json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/api/vessels/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; + return this.httpClient.request('patch', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: vessel, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + transferCache: localVarTransferCache, + reportProgress: reportProgress + } + ); + } + + /** + * Creates a Vessel resource. + * Creates a Vessel resource. + * @param vesselJsonld The new Vessel resource + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public vesselsPost(vesselJsonld: VesselJsonld, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable; + public vesselsPost(vesselJsonld: VesselJsonld, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public vesselsPost(vesselJsonld: VesselJsonld, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public vesselsPost(vesselJsonld: VesselJsonld, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable { + if (vesselJsonld === null || vesselJsonld === undefined) { + throw new Error('Required parameter vesselJsonld was null or undefined when calling vesselsPost.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (JWT) required + localVarCredential = this.configuration.lookupCredential('JWT'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/ld+json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + let localVarTransferCache: boolean | undefined = options && options.transferCache; + if (localVarTransferCache === undefined) { + localVarTransferCache = true; + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/ld+json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/api/vessels`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: vesselJsonld, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + transferCache: localVarTransferCache, + reportProgress: reportProgress + } + ); + } + +} diff --git a/angular/src/app/core/api/v1/api/zone.service.ts b/angular/src/app/core/api/v1/api/zone.service.ts new file mode 100644 index 0000000..aa53cfc --- /dev/null +++ b/angular/src/app/core/api/v1/api/zone.service.ts @@ -0,0 +1,434 @@ +/** + * Imaq Platform + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/* tslint:disable:no-unused-variable member-ordering */ + +import { Inject, Injectable, Optional } from '@angular/core'; +import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpParameterCodec, HttpContext + } from '@angular/common/http'; +import { CustomHttpParameterCodec } from '../encoder'; +import { Observable } from 'rxjs'; + +// @ts-ignore +import { ApiZonesGetCollection200Response } from '../model/apiZonesGetCollection200Response'; +// @ts-ignore +import { Zone } from '../model/zone'; +// @ts-ignore +import { ZoneJsonld } from '../model/zoneJsonld'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; + + + +@Injectable({ + providedIn: 'root' +}) +export class ZoneService { + + protected basePath = 'http://localhost'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + public encoder: HttpParameterCodec; + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + } + if (typeof this.configuration.basePath !== 'string') { + if (Array.isArray(basePath) && basePath.length > 0) { + basePath = basePath[0]; + } + + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; + } + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + + // @ts-ignore + private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams { + if (typeof value === "object" && value instanceof Date === false) { + httpParams = this.addToHttpParamsRecursive(httpParams, value); + } else { + httpParams = this.addToHttpParamsRecursive(httpParams, value, key); + } + return httpParams; + } + + private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams { + if (value == null) { + return httpParams; + } + + if (typeof value === "object") { + if (Array.isArray(value)) { + (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, (value as Date).toISOString().substring(0, 10)); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive( + httpParams, value[k], key != null ? `${key}.${k}` : k)); + } + } else if (key != null) { + httpParams = httpParams.append(key, value); + } else { + throw Error("key may not be null if value is not object or array"); + } + return httpParams; + } + + /** + * Retrieves the collection of Zone resources. + * Retrieves the collection of Zone resources. + * @param page The collection page number + * @param itemsPerPage The number of items per page + * @param name + * @param customJsonFilter + * @param customJsonOrder + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public zonesGetCollection(page?: number, itemsPerPage?: number, name?: string, customJsonFilter?: string, customJsonOrder?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable; + public zonesGetCollection(page?: number, itemsPerPage?: number, name?: string, customJsonFilter?: string, customJsonOrder?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public zonesGetCollection(page?: number, itemsPerPage?: number, name?: string, customJsonFilter?: string, customJsonOrder?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public zonesGetCollection(page?: number, itemsPerPage?: number, name?: string, customJsonFilter?: string, customJsonOrder?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable { + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (page !== undefined && page !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + page, 'page'); + } + if (itemsPerPage !== undefined && itemsPerPage !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + itemsPerPage, 'itemsPerPage'); + } + if (name !== undefined && name !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + name, 'name'); + } + if (customJsonFilter !== undefined && customJsonFilter !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + customJsonFilter, 'custom_json_filter'); + } + if (customJsonOrder !== undefined && customJsonOrder !== null) { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + customJsonOrder, 'custom_json_order'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (JWT) required + localVarCredential = this.configuration.lookupCredential('JWT'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/ld+json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + let localVarTransferCache: boolean | undefined = options && options.transferCache; + if (localVarTransferCache === undefined) { + localVarTransferCache = true; + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/api/zones`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + params: localVarQueryParameters, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + transferCache: localVarTransferCache, + reportProgress: reportProgress + } + ); + } + + /** + * Retrieves a Zone resource. + * Retrieves a Zone resource. + * @param id Zone identifier + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public zonesIdGet(id: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable; + public zonesIdGet(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public zonesIdGet(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public zonesIdGet(id: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable { + if (id === null || id === undefined) { + throw new Error('Required parameter id was null or undefined when calling zonesIdGet.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (JWT) required + localVarCredential = this.configuration.lookupCredential('JWT'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/ld+json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + let localVarTransferCache: boolean | undefined = options && options.transferCache; + if (localVarTransferCache === undefined) { + localVarTransferCache = true; + } + + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/api/zones/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; + return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + transferCache: localVarTransferCache, + reportProgress: reportProgress + } + ); + } + + /** + * Updates the Zone resource. + * Updates the Zone resource. + * @param id Zone identifier + * @param zone The updated Zone resource + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public zonesIdPatch(id: string, zone: Zone, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable; + public zonesIdPatch(id: string, zone: Zone, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public zonesIdPatch(id: string, zone: Zone, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public zonesIdPatch(id: string, zone: Zone, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable { + if (id === null || id === undefined) { + throw new Error('Required parameter id was null or undefined when calling zonesIdPatch.'); + } + if (zone === null || zone === undefined) { + throw new Error('Required parameter zone was null or undefined when calling zonesIdPatch.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (JWT) required + localVarCredential = this.configuration.lookupCredential('JWT'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/ld+json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + let localVarTransferCache: boolean | undefined = options && options.transferCache; + if (localVarTransferCache === undefined) { + localVarTransferCache = true; + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/merge-patch+json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/api/zones/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; + return this.httpClient.request('patch', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: zone, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + transferCache: localVarTransferCache, + reportProgress: reportProgress + } + ); + } + + /** + * Creates a Zone resource. + * Creates a Zone resource. + * @param zoneJsonld The new Zone resource + * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. + * @param reportProgress flag to report request and response progress. + */ + public zonesPost(zoneJsonld: ZoneJsonld, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable; + public zonesPost(zoneJsonld: ZoneJsonld, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public zonesPost(zoneJsonld: ZoneJsonld, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable>; + public zonesPost(zoneJsonld: ZoneJsonld, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json', context?: HttpContext, transferCache?: boolean}): Observable { + if (zoneJsonld === null || zoneJsonld === undefined) { + throw new Error('Required parameter zoneJsonld was null or undefined when calling zonesPost.'); + } + + let localVarHeaders = this.defaultHeaders; + + let localVarCredential: string | undefined; + // authentication (JWT) required + localVarCredential = this.configuration.lookupCredential('JWT'); + if (localVarCredential) { + localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential); + } + + let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept; + if (localVarHttpHeaderAcceptSelected === undefined) { + // to determine the Accept header + const httpHeaderAccepts: string[] = [ + 'application/ld+json' + ]; + localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); + } + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } + + let localVarHttpContext: HttpContext | undefined = options && options.context; + if (localVarHttpContext === undefined) { + localVarHttpContext = new HttpContext(); + } + + let localVarTransferCache: boolean | undefined = options && options.transferCache; + if (localVarTransferCache === undefined) { + localVarTransferCache = true; + } + + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/ld+json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected); + } + + let responseType_: 'text' | 'json' | 'blob' = 'json'; + if (localVarHttpHeaderAcceptSelected) { + if (localVarHttpHeaderAcceptSelected.startsWith('text')) { + responseType_ = 'text'; + } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) { + responseType_ = 'json'; + } else { + responseType_ = 'blob'; + } + } + + let localVarPath = `/api/zones`; + return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: zoneJsonld, + responseType: responseType_, + withCredentials: this.configuration.withCredentials, + headers: localVarHeaders, + observe: observe, + transferCache: localVarTransferCache, + reportProgress: reportProgress + } + ); + } + +} diff --git a/angular/src/app/core/api/v1/model/apiLocationsGetCollection200Response.ts b/angular/src/app/core/api/v1/model/apiLocationsGetCollection200Response.ts new file mode 100644 index 0000000..5a1c33e --- /dev/null +++ b/angular/src/app/core/api/v1/model/apiLocationsGetCollection200Response.ts @@ -0,0 +1,23 @@ +/** + * Imaq Platform + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ApiLocationsGetCollection200ResponseSearch } from './apiLocationsGetCollection200ResponseSearch'; +import { ApiLocationsGetCollection200ResponseView } from './apiLocationsGetCollection200ResponseView'; +import { LocationJsonld } from './locationJsonld'; + + +export interface ApiLocationsGetCollection200Response { + member: Array; + totalItems?: number; + view?: ApiLocationsGetCollection200ResponseView; + search?: ApiLocationsGetCollection200ResponseSearch; +} + diff --git a/angular/src/app/core/api/v1/model/apiLocationsGetCollection200ResponseSearch.ts b/angular/src/app/core/api/v1/model/apiLocationsGetCollection200ResponseSearch.ts new file mode 100644 index 0000000..e5c9000 --- /dev/null +++ b/angular/src/app/core/api/v1/model/apiLocationsGetCollection200ResponseSearch.ts @@ -0,0 +1,21 @@ +/** + * Imaq Platform + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ApiLocationsGetCollection200ResponseSearchMappingInner } from './apiLocationsGetCollection200ResponseSearchMappingInner'; + + +export interface ApiLocationsGetCollection200ResponseSearch { + type?: string; + template?: string; + variableRepresentation?: string; + mapping?: Array; +} + diff --git a/angular/src/app/core/api/v1/model/apiLocationsGetCollection200ResponseSearchMappingInner.ts b/angular/src/app/core/api/v1/model/apiLocationsGetCollection200ResponseSearchMappingInner.ts new file mode 100644 index 0000000..99607e2 --- /dev/null +++ b/angular/src/app/core/api/v1/model/apiLocationsGetCollection200ResponseSearchMappingInner.ts @@ -0,0 +1,20 @@ +/** + * Imaq Platform + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export interface ApiLocationsGetCollection200ResponseSearchMappingInner { + type?: string; + variable?: string; + property?: string | null; + required?: boolean; +} + diff --git a/angular/src/app/core/api/v1/model/apiLocationsGetCollection200ResponseView.ts b/angular/src/app/core/api/v1/model/apiLocationsGetCollection200ResponseView.ts new file mode 100644 index 0000000..32cc610 --- /dev/null +++ b/angular/src/app/core/api/v1/model/apiLocationsGetCollection200ResponseView.ts @@ -0,0 +1,22 @@ +/** + * Imaq Platform + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export interface ApiLocationsGetCollection200ResponseView { + id?: string; + type?: string; + first?: string; + last?: string; + previous?: string; + next?: string; +} + diff --git a/angular/src/app/core/api/v1/model/apiMediaObjectsGetCollection200Response.ts b/angular/src/app/core/api/v1/model/apiMediaObjectsGetCollection200Response.ts index c25e377..e176ea8 100644 --- a/angular/src/app/core/api/v1/model/apiMediaObjectsGetCollection200Response.ts +++ b/angular/src/app/core/api/v1/model/apiMediaObjectsGetCollection200Response.ts @@ -1,5 +1,5 @@ /** - * Hello API Platform + * Imaq Platform * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 1.0.0 @@ -9,15 +9,15 @@ * https://openapi-generator.tech * Do not edit the class manually. */ -import { ApiAccountTradePileItemsGetCollection200ResponseHydraView } from './apiAccountTradePileItemsGetCollection200ResponseHydraView'; -import { ApiAccountTradePileItemsGetCollection200ResponseHydraSearch } from './apiAccountTradePileItemsGetCollection200ResponseHydraSearch'; +import { ApiLocationsGetCollection200ResponseSearch } from './apiLocationsGetCollection200ResponseSearch'; +import { ApiLocationsGetCollection200ResponseView } from './apiLocationsGetCollection200ResponseView'; import { MediaObjectJsonldMediaObjectRead } from './mediaObjectJsonldMediaObjectRead'; export interface ApiMediaObjectsGetCollection200Response { - 'hydra:member': Array; - 'hydra:totalItems'?: number; - 'hydra:view'?: ApiAccountTradePileItemsGetCollection200ResponseHydraView; - 'hydra:search'?: ApiAccountTradePileItemsGetCollection200ResponseHydraSearch; + member: Array; + totalItems?: number; + view?: ApiLocationsGetCollection200ResponseView; + search?: ApiLocationsGetCollection200ResponseSearch; } diff --git a/angular/src/app/core/api/v1/model/apiShippingCompaniesGetCollection200Response.ts b/angular/src/app/core/api/v1/model/apiShippingCompaniesGetCollection200Response.ts new file mode 100644 index 0000000..957aa88 --- /dev/null +++ b/angular/src/app/core/api/v1/model/apiShippingCompaniesGetCollection200Response.ts @@ -0,0 +1,23 @@ +/** + * Imaq Platform + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ApiLocationsGetCollection200ResponseSearch } from './apiLocationsGetCollection200ResponseSearch'; +import { ApiLocationsGetCollection200ResponseView } from './apiLocationsGetCollection200ResponseView'; +import { ShippingCompanyJsonld } from './shippingCompanyJsonld'; + + +export interface ApiShippingCompaniesGetCollection200Response { + member: Array; + totalItems?: number; + view?: ApiLocationsGetCollection200ResponseView; + search?: ApiLocationsGetCollection200ResponseSearch; +} + diff --git a/angular/src/app/core/api/v1/model/apiTripLocationsGetCollection200Response.ts b/angular/src/app/core/api/v1/model/apiTripLocationsGetCollection200Response.ts new file mode 100644 index 0000000..da6ed06 --- /dev/null +++ b/angular/src/app/core/api/v1/model/apiTripLocationsGetCollection200Response.ts @@ -0,0 +1,23 @@ +/** + * Imaq Platform + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ApiLocationsGetCollection200ResponseSearch } from './apiLocationsGetCollection200ResponseSearch'; +import { ApiLocationsGetCollection200ResponseView } from './apiLocationsGetCollection200ResponseView'; +import { TripLocationJsonld } from './tripLocationJsonld'; + + +export interface ApiTripLocationsGetCollection200Response { + member: Array; + totalItems?: number; + view?: ApiLocationsGetCollection200ResponseView; + search?: ApiLocationsGetCollection200ResponseSearch; +} + diff --git a/angular/src/app/core/api/v1/model/apiTripsGetCollection200Response.ts b/angular/src/app/core/api/v1/model/apiTripsGetCollection200Response.ts new file mode 100644 index 0000000..4af3e85 --- /dev/null +++ b/angular/src/app/core/api/v1/model/apiTripsGetCollection200Response.ts @@ -0,0 +1,23 @@ +/** + * Imaq Platform + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ApiLocationsGetCollection200ResponseSearch } from './apiLocationsGetCollection200ResponseSearch'; +import { ApiLocationsGetCollection200ResponseView } from './apiLocationsGetCollection200ResponseView'; +import { TripJsonld } from './tripJsonld'; + + +export interface ApiTripsGetCollection200Response { + member: Array; + totalItems?: number; + view?: ApiLocationsGetCollection200ResponseView; + search?: ApiLocationsGetCollection200ResponseSearch; +} + diff --git a/angular/src/app/core/api/v1/model/apiUserTripLocationsGetCollection200Response.ts b/angular/src/app/core/api/v1/model/apiUserTripLocationsGetCollection200Response.ts new file mode 100644 index 0000000..f393b69 --- /dev/null +++ b/angular/src/app/core/api/v1/model/apiUserTripLocationsGetCollection200Response.ts @@ -0,0 +1,23 @@ +/** + * Imaq Platform + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ApiLocationsGetCollection200ResponseSearch } from './apiLocationsGetCollection200ResponseSearch'; +import { ApiLocationsGetCollection200ResponseView } from './apiLocationsGetCollection200ResponseView'; +import { UserTripLocationJsonld } from './userTripLocationJsonld'; + + +export interface ApiUserTripLocationsGetCollection200Response { + member: Array; + totalItems?: number; + view?: ApiLocationsGetCollection200ResponseView; + search?: ApiLocationsGetCollection200ResponseSearch; +} + diff --git a/angular/src/app/core/api/v1/model/apiUserTripWorkLogsGetCollection200Response.ts b/angular/src/app/core/api/v1/model/apiUserTripWorkLogsGetCollection200Response.ts new file mode 100644 index 0000000..a82286b --- /dev/null +++ b/angular/src/app/core/api/v1/model/apiUserTripWorkLogsGetCollection200Response.ts @@ -0,0 +1,23 @@ +/** + * Imaq Platform + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ApiLocationsGetCollection200ResponseSearch } from './apiLocationsGetCollection200ResponseSearch'; +import { ApiLocationsGetCollection200ResponseView } from './apiLocationsGetCollection200ResponseView'; +import { UserTripWorkLogJsonld } from './userTripWorkLogJsonld'; + + +export interface ApiUserTripWorkLogsGetCollection200Response { + member: Array; + totalItems?: number; + view?: ApiLocationsGetCollection200ResponseView; + search?: ApiLocationsGetCollection200ResponseSearch; +} + diff --git a/angular/src/app/core/api/v1/model/apiUserTripsGetCollection200Response.ts b/angular/src/app/core/api/v1/model/apiUserTripsGetCollection200Response.ts new file mode 100644 index 0000000..9ef1eb3 --- /dev/null +++ b/angular/src/app/core/api/v1/model/apiUserTripsGetCollection200Response.ts @@ -0,0 +1,23 @@ +/** + * Imaq Platform + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ApiLocationsGetCollection200ResponseSearch } from './apiLocationsGetCollection200ResponseSearch'; +import { ApiLocationsGetCollection200ResponseView } from './apiLocationsGetCollection200ResponseView'; +import { UserTripJsonld } from './userTripJsonld'; + + +export interface ApiUserTripsGetCollection200Response { + member: Array; + totalItems?: number; + view?: ApiLocationsGetCollection200ResponseView; + search?: ApiLocationsGetCollection200ResponseSearch; +} + diff --git a/angular/src/app/core/api/v1/model/apiUsersGetCollection200Response.ts b/angular/src/app/core/api/v1/model/apiUsersGetCollection200Response.ts index 183aeef..fe00593 100644 --- a/angular/src/app/core/api/v1/model/apiUsersGetCollection200Response.ts +++ b/angular/src/app/core/api/v1/model/apiUsersGetCollection200Response.ts @@ -1,5 +1,5 @@ /** - * Hello API Platform + * Imaq Platform * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 1.0.0 @@ -9,15 +9,15 @@ * https://openapi-generator.tech * Do not edit the class manually. */ -import { ApiAccountTradePileItemsGetCollection200ResponseHydraView } from './apiAccountTradePileItemsGetCollection200ResponseHydraView'; +import { ApiLocationsGetCollection200ResponseSearch } from './apiLocationsGetCollection200ResponseSearch'; +import { ApiLocationsGetCollection200ResponseView } from './apiLocationsGetCollection200ResponseView'; import { UserJsonld } from './userJsonld'; -import { ApiAccountTradePileItemsGetCollection200ResponseHydraSearch } from './apiAccountTradePileItemsGetCollection200ResponseHydraSearch'; export interface ApiUsersGetCollection200Response { - 'hydra:member': Array; - 'hydra:totalItems'?: number; - 'hydra:view'?: ApiAccountTradePileItemsGetCollection200ResponseHydraView; - 'hydra:search'?: ApiAccountTradePileItemsGetCollection200ResponseHydraSearch; + member: Array; + totalItems?: number; + view?: ApiLocationsGetCollection200ResponseView; + search?: ApiLocationsGetCollection200ResponseSearch; } diff --git a/angular/src/app/core/api/v1/model/apiVesselsGetCollection200Response.ts b/angular/src/app/core/api/v1/model/apiVesselsGetCollection200Response.ts new file mode 100644 index 0000000..976d2aa --- /dev/null +++ b/angular/src/app/core/api/v1/model/apiVesselsGetCollection200Response.ts @@ -0,0 +1,23 @@ +/** + * Imaq Platform + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ApiLocationsGetCollection200ResponseSearch } from './apiLocationsGetCollection200ResponseSearch'; +import { ApiLocationsGetCollection200ResponseView } from './apiLocationsGetCollection200ResponseView'; +import { VesselJsonld } from './vesselJsonld'; + + +export interface ApiVesselsGetCollection200Response { + member: Array; + totalItems?: number; + view?: ApiLocationsGetCollection200ResponseView; + search?: ApiLocationsGetCollection200ResponseSearch; +} + diff --git a/angular/src/app/core/api/v1/model/apiZonesGetCollection200Response.ts b/angular/src/app/core/api/v1/model/apiZonesGetCollection200Response.ts new file mode 100644 index 0000000..8ced97a --- /dev/null +++ b/angular/src/app/core/api/v1/model/apiZonesGetCollection200Response.ts @@ -0,0 +1,23 @@ +/** + * Imaq Platform + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ApiLocationsGetCollection200ResponseSearch } from './apiLocationsGetCollection200ResponseSearch'; +import { ApiLocationsGetCollection200ResponseView } from './apiLocationsGetCollection200ResponseView'; +import { ZoneJsonld } from './zoneJsonld'; + + +export interface ApiZonesGetCollection200Response { + member: Array; + totalItems?: number; + view?: ApiLocationsGetCollection200ResponseView; + search?: ApiLocationsGetCollection200ResponseSearch; +} + diff --git a/angular/src/app/core/api/v1/model/location.ts b/angular/src/app/core/api/v1/model/location.ts new file mode 100644 index 0000000..96d26b4 --- /dev/null +++ b/angular/src/app/core/api/v1/model/location.ts @@ -0,0 +1,23 @@ +/** + * Imaq Platform + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +/** + * + */ +export interface Location { + readonly zone?: string; + name: string; + readonly zoneName?: string; + readonly createdAt?: string | null; +} + diff --git a/angular/src/app/core/api/v1/model/locationJsonld.ts b/angular/src/app/core/api/v1/model/locationJsonld.ts new file mode 100644 index 0000000..44b447e --- /dev/null +++ b/angular/src/app/core/api/v1/model/locationJsonld.ts @@ -0,0 +1,28 @@ +/** + * Imaq Platform + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { LocationJsonldContext } from './locationJsonldContext'; +import { ZoneJsonld } from './zoneJsonld'; + + +/** + * + */ +export interface LocationJsonld { + context?: LocationJsonldContext; + readonly id?: string; + readonly type?: string; + readonly zone?: ZoneJsonld; + name: string; + readonly zoneName?: string; + readonly createdAt?: string | null; +} + diff --git a/angular/src/app/core/api/v1/model/locationJsonldContext.ts b/angular/src/app/core/api/v1/model/locationJsonldContext.ts new file mode 100644 index 0000000..b297fc8 --- /dev/null +++ b/angular/src/app/core/api/v1/model/locationJsonldContext.ts @@ -0,0 +1,20 @@ +/** + * Imaq Platform + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { LocationJsonldContextOneOf } from './locationJsonldContextOneOf'; + + +/** + * @type LocationJsonldContext + * @export + */ +export type LocationJsonldContext = LocationJsonldContextOneOf | string; + diff --git a/angular/src/app/core/api/v1/model/locationJsonldContextOneOf.ts b/angular/src/app/core/api/v1/model/locationJsonldContextOneOf.ts new file mode 100644 index 0000000..e8f17b1 --- /dev/null +++ b/angular/src/app/core/api/v1/model/locationJsonldContextOneOf.ts @@ -0,0 +1,28 @@ +/** + * Imaq Platform + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export interface LocationJsonldContextOneOf { + [key: string]: any | any; + + + vocab: string; + hydra: LocationJsonldContextOneOf.HydraEnum; +} +export namespace LocationJsonldContextOneOf { + export type HydraEnum = 'http://www.w3.org/ns/hydra/core#'; + export const HydraEnum = { + HttpWwwW3OrgNsHydraCore: 'http://www.w3.org/ns/hydra/core#' as HydraEnum + }; +} + + diff --git a/angular/src/app/core/api/v1/model/loginCheckPost200Response.ts b/angular/src/app/core/api/v1/model/loginCheckPost200Response.ts index ee7303b..fab630b 100644 --- a/angular/src/app/core/api/v1/model/loginCheckPost200Response.ts +++ b/angular/src/app/core/api/v1/model/loginCheckPost200Response.ts @@ -1,5 +1,5 @@ /** - * Hello API Platform + * Imaq Platform * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 1.0.0 diff --git a/angular/src/app/core/api/v1/model/loginCheckPostRequest.ts b/angular/src/app/core/api/v1/model/loginCheckPostRequest.ts index 1d223b5..1360d9f 100644 --- a/angular/src/app/core/api/v1/model/loginCheckPostRequest.ts +++ b/angular/src/app/core/api/v1/model/loginCheckPostRequest.ts @@ -1,5 +1,5 @@ /** - * Hello API Platform + * Imaq Platform * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 1.0.0 diff --git a/angular/src/app/core/api/v1/model/mediaObjectJsonldMediaObjectRead.ts b/angular/src/app/core/api/v1/model/mediaObjectJsonldMediaObjectRead.ts index 2fcbe96..998b0b9 100644 --- a/angular/src/app/core/api/v1/model/mediaObjectJsonldMediaObjectRead.ts +++ b/angular/src/app/core/api/v1/model/mediaObjectJsonldMediaObjectRead.ts @@ -1,5 +1,5 @@ /** - * Hello API Platform + * Imaq Platform * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 1.0.0 @@ -9,14 +9,14 @@ * https://openapi-generator.tech * Do not edit the class manually. */ -import { AccountTradePileItemJsonldContext } from './accountTradePileItemJsonldContext'; +import { LocationJsonldContext } from './locationJsonldContext'; /** * */ export interface MediaObjectJsonldMediaObjectRead { - context?: AccountTradePileItemJsonldContext; + context?: LocationJsonldContext; readonly id?: string; readonly type?: string; contentUrl?: string | null; diff --git a/angular/src/app/core/api/v1/model/models.ts b/angular/src/app/core/api/v1/model/models.ts index 5d5198e..b18b4e9 100644 --- a/angular/src/app/core/api/v1/model/models.ts +++ b/angular/src/app/core/api/v1/model/models.ts @@ -1,45 +1,39 @@ -export * from './accountTradePileItem'; -export * from './accountTradePileItemJsonld'; -export * from './accountTradePileItemJsonldContext'; -export * from './accountTradePileItemJsonldContextOneOf'; -export * from './apiAccountTradePileItemsGetCollection200Response'; -export * from './apiAccountTradePileItemsGetCollection200ResponseHydraSearch'; -export * from './apiAccountTradePileItemsGetCollection200ResponseHydraSearchHydraMappingInner'; -export * from './apiAccountTradePileItemsGetCollection200ResponseHydraView'; -export * from './apiCandidateStatsGetCollection200Response'; -export * from './apiCandidatesGetCollection200Response'; -export * from './apiGameAccountsGetCollection200Response'; -export * from './apiLogAccountCreditsGetCollection200Response'; -export * from './apiLogAccountProfitsGetCollection200Response'; -export * from './apiLogAccountSoldItemsGetCollection200Response'; -export * from './apiLogGeneralsGetCollection200Response'; -export * from './apiLogTotalProfitsGetCollection200Response'; +export * from './apiLocationsGetCollection200Response'; +export * from './apiLocationsGetCollection200ResponseSearch'; +export * from './apiLocationsGetCollection200ResponseSearchMappingInner'; +export * from './apiLocationsGetCollection200ResponseView'; export * from './apiMediaObjectsGetCollection200Response'; -export * from './apiPlayersGetCollection200Response'; -export * from './apiRaritiesGetCollection200Response'; +export * from './apiShippingCompaniesGetCollection200Response'; +export * from './apiTripLocationsGetCollection200Response'; +export * from './apiTripsGetCollection200Response'; +export * from './apiUserTripLocationsGetCollection200Response'; +export * from './apiUserTripWorkLogsGetCollection200Response'; +export * from './apiUserTripsGetCollection200Response'; export * from './apiUsersGetCollection200Response'; -export * from './candidate'; -export * from './candidateJsonld'; -export * from './candidateStatJsonld'; -export * from './candidateStockAccountsJsonld'; -export * from './config'; -export * from './configJsonld'; -export * from './gameAccount'; -export * from './gameAccountJsonld'; -export * from './logAccountCreditJsonld'; -export * from './logAccountProfitJsonld'; -export * from './logAccountSoldItemJsonld'; -export * from './logGeneralJsonld'; -export * from './logTotalProfit'; -export * from './logTotalProfitJsonld'; +export * from './apiVesselsGetCollection200Response'; +export * from './apiZonesGetCollection200Response'; +export * from './location'; +export * from './locationJsonld'; +export * from './locationJsonldContext'; +export * from './locationJsonldContextOneOf'; export * from './loginCheckPost200Response'; export * from './loginCheckPostRequest'; export * from './mediaObjectJsonldMediaObjectRead'; -export * from './modeConfig'; -export * from './modeConfigJsonld'; -export * from './player'; -export * from './playerJsonld'; -export * from './rarity'; -export * from './rarityJsonld'; -export * from './systemStatJsonld'; +export * from './shippingCompany'; +export * from './shippingCompanyJsonld'; +export * from './trip'; +export * from './tripJsonld'; +export * from './tripLocation'; +export * from './tripLocationJsonld'; +export * from './user'; export * from './userJsonld'; +export * from './userTrip'; +export * from './userTripJsonld'; +export * from './userTripLocation'; +export * from './userTripLocationJsonld'; +export * from './userTripWorkLog'; +export * from './userTripWorkLogJsonld'; +export * from './vessel'; +export * from './vesselJsonld'; +export * from './zone'; +export * from './zoneJsonld'; diff --git a/angular/src/app/core/api/v1/model/shippingCompany.ts b/angular/src/app/core/api/v1/model/shippingCompany.ts new file mode 100644 index 0000000..00f1a77 --- /dev/null +++ b/angular/src/app/core/api/v1/model/shippingCompany.ts @@ -0,0 +1,21 @@ +/** + * Imaq Platform + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +/** + * + */ +export interface ShippingCompany { + name: string; + readonly createdAt?: string | null; +} + diff --git a/angular/src/app/core/api/v1/model/shippingCompanyJsonld.ts b/angular/src/app/core/api/v1/model/shippingCompanyJsonld.ts new file mode 100644 index 0000000..e5fc411 --- /dev/null +++ b/angular/src/app/core/api/v1/model/shippingCompanyJsonld.ts @@ -0,0 +1,25 @@ +/** + * Imaq Platform + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { LocationJsonldContext } from './locationJsonldContext'; + + +/** + * + */ +export interface ShippingCompanyJsonld { + context?: LocationJsonldContext; + readonly id?: string; + readonly type?: string; + name: string; + readonly createdAt?: string | null; +} + diff --git a/angular/src/app/core/api/v1/model/trip.ts b/angular/src/app/core/api/v1/model/trip.ts new file mode 100644 index 0000000..8009427 --- /dev/null +++ b/angular/src/app/core/api/v1/model/trip.ts @@ -0,0 +1,27 @@ +/** + * Imaq Platform + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +/** + * + */ +export interface Trip { + readonly vessel?: string; + pilotReference: string; + captainName?: string | null; + readonly startLocation?: string; + readonly endLocation?: string; + startDate: string | null; + endDate: string | null; + readonly createdAt?: string | null; +} + diff --git a/angular/src/app/core/api/v1/model/tripJsonld.ts b/angular/src/app/core/api/v1/model/tripJsonld.ts new file mode 100644 index 0000000..1398d6f --- /dev/null +++ b/angular/src/app/core/api/v1/model/tripJsonld.ts @@ -0,0 +1,33 @@ +/** + * Imaq Platform + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { VesselJsonld } from './vesselJsonld'; +import { LocationJsonld } from './locationJsonld'; +import { LocationJsonldContext } from './locationJsonldContext'; + + +/** + * + */ +export interface TripJsonld { + context?: LocationJsonldContext; + readonly id?: string; + readonly type?: string; + readonly vessel?: VesselJsonld; + pilotReference: string; + captainName?: string | null; + readonly startLocation?: LocationJsonld; + readonly endLocation?: LocationJsonld; + startDate: string | null; + endDate: string | null; + readonly createdAt?: string | null; +} + diff --git a/angular/src/app/core/api/v1/model/tripLocation.ts b/angular/src/app/core/api/v1/model/tripLocation.ts new file mode 100644 index 0000000..9442eca --- /dev/null +++ b/angular/src/app/core/api/v1/model/tripLocation.ts @@ -0,0 +1,23 @@ +/** + * Imaq Platform + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +/** + * + */ +export interface TripLocation { + readonly trip?: string; + readonly location?: string; + date: string | null; + readonly createdAt?: string | null; +} + diff --git a/angular/src/app/core/api/v1/model/tripLocationJsonld.ts b/angular/src/app/core/api/v1/model/tripLocationJsonld.ts new file mode 100644 index 0000000..7e7a868 --- /dev/null +++ b/angular/src/app/core/api/v1/model/tripLocationJsonld.ts @@ -0,0 +1,29 @@ +/** + * Imaq Platform + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { TripJsonld } from './tripJsonld'; +import { LocationJsonld } from './locationJsonld'; +import { LocationJsonldContext } from './locationJsonldContext'; + + +/** + * + */ +export interface TripLocationJsonld { + context?: LocationJsonldContext; + readonly id?: string; + readonly type?: string; + readonly trip?: TripJsonld; + readonly location?: LocationJsonld; + date: string | null; + readonly createdAt?: string | null; +} + diff --git a/angular/src/app/core/api/v1/model/user.ts b/angular/src/app/core/api/v1/model/user.ts new file mode 100644 index 0000000..da1af13 --- /dev/null +++ b/angular/src/app/core/api/v1/model/user.ts @@ -0,0 +1,31 @@ +/** + * Imaq Platform + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +/** + * + */ +export interface User { + email: string | null; + firstName: string | null; + lastName: string | null; + image?: string | null; + readonly imageUrl?: string | null; + readonly fullName?: string | null; + /** + * The plaintext password when being set or changed. + */ + password?: string | null; + active?: boolean; + readonly createdAt?: string | null; +} + diff --git a/angular/src/app/core/api/v1/model/userJsonld.ts b/angular/src/app/core/api/v1/model/userJsonld.ts index 8721099..c04f03e 100644 --- a/angular/src/app/core/api/v1/model/userJsonld.ts +++ b/angular/src/app/core/api/v1/model/userJsonld.ts @@ -1,5 +1,5 @@ /** - * Hello API Platform + * Imaq Platform * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 1.0.0 @@ -9,14 +9,14 @@ * https://openapi-generator.tech * Do not edit the class manually. */ -import { AccountTradePileItemJsonldContext } from './accountTradePileItemJsonldContext'; +import { LocationJsonldContext } from './locationJsonldContext'; /** * */ export interface UserJsonld { - context?: AccountTradePileItemJsonldContext; + context?: LocationJsonldContext; readonly id?: string; readonly type?: string; email: string | null; diff --git a/angular/src/app/core/api/v1/model/userTrip.ts b/angular/src/app/core/api/v1/model/userTrip.ts new file mode 100644 index 0000000..a7a6b93 --- /dev/null +++ b/angular/src/app/core/api/v1/model/userTrip.ts @@ -0,0 +1,25 @@ +/** + * Imaq Platform + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +/** + * + */ +export interface UserTrip { + readonly trip?: string; + readonly user?: string; + captainName: string; + startDate: string | null; + endDate: string | null; + readonly createdAt?: string | null; +} + diff --git a/angular/src/app/core/api/v1/model/userTripJsonld.ts b/angular/src/app/core/api/v1/model/userTripJsonld.ts new file mode 100644 index 0000000..f47ea25 --- /dev/null +++ b/angular/src/app/core/api/v1/model/userTripJsonld.ts @@ -0,0 +1,31 @@ +/** + * Imaq Platform + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { TripJsonld } from './tripJsonld'; +import { UserJsonld } from './userJsonld'; +import { LocationJsonldContext } from './locationJsonldContext'; + + +/** + * + */ +export interface UserTripJsonld { + context?: LocationJsonldContext; + readonly id?: string; + readonly type?: string; + readonly trip?: TripJsonld; + readonly user?: UserJsonld; + captainName: string; + startDate: string | null; + endDate: string | null; + readonly createdAt?: string | null; +} + diff --git a/angular/src/app/core/api/v1/model/userTripLocation.ts b/angular/src/app/core/api/v1/model/userTripLocation.ts new file mode 100644 index 0000000..7d3ae0a --- /dev/null +++ b/angular/src/app/core/api/v1/model/userTripLocation.ts @@ -0,0 +1,23 @@ +/** + * Imaq Platform + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +/** + * + */ +export interface UserTripLocation { + readonly userTrip?: string; + readonly location?: string; + plannedDate: string | null; + readonly createdAt?: string | null; +} + diff --git a/angular/src/app/core/api/v1/model/userTripLocationJsonld.ts b/angular/src/app/core/api/v1/model/userTripLocationJsonld.ts new file mode 100644 index 0000000..58a5f76 --- /dev/null +++ b/angular/src/app/core/api/v1/model/userTripLocationJsonld.ts @@ -0,0 +1,29 @@ +/** + * Imaq Platform + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { UserTripJsonld } from './userTripJsonld'; +import { LocationJsonld } from './locationJsonld'; +import { LocationJsonldContext } from './locationJsonldContext'; + + +/** + * + */ +export interface UserTripLocationJsonld { + context?: LocationJsonldContext; + readonly id?: string; + readonly type?: string; + readonly userTrip?: UserTripJsonld; + readonly location?: LocationJsonld; + plannedDate: string | null; + readonly createdAt?: string | null; +} + diff --git a/angular/src/app/core/api/v1/model/userTripWorkLog.ts b/angular/src/app/core/api/v1/model/userTripWorkLog.ts new file mode 100644 index 0000000..25a1637 --- /dev/null +++ b/angular/src/app/core/api/v1/model/userTripWorkLog.ts @@ -0,0 +1,25 @@ +/** + * Imaq Platform + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +/** + * + */ +export interface UserTripWorkLog { + readonly userTrip?: string; + readonly startLocation?: string; + readonly endLocation?: string; + startDate: string | null; + endDate: string | null; + readonly createdAt?: string | null; +} + diff --git a/angular/src/app/core/api/v1/model/userTripWorkLogJsonld.ts b/angular/src/app/core/api/v1/model/userTripWorkLogJsonld.ts new file mode 100644 index 0000000..b6d7c33 --- /dev/null +++ b/angular/src/app/core/api/v1/model/userTripWorkLogJsonld.ts @@ -0,0 +1,31 @@ +/** + * Imaq Platform + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { UserTripJsonld } from './userTripJsonld'; +import { LocationJsonld } from './locationJsonld'; +import { LocationJsonldContext } from './locationJsonldContext'; + + +/** + * + */ +export interface UserTripWorkLogJsonld { + context?: LocationJsonldContext; + readonly id?: string; + readonly type?: string; + readonly userTrip?: UserTripJsonld; + readonly startLocation?: LocationJsonld; + readonly endLocation?: LocationJsonld; + startDate: string | null; + endDate: string | null; + readonly createdAt?: string | null; +} + diff --git a/angular/src/app/core/api/v1/model/vessel.ts b/angular/src/app/core/api/v1/model/vessel.ts new file mode 100644 index 0000000..2e23b90 --- /dev/null +++ b/angular/src/app/core/api/v1/model/vessel.ts @@ -0,0 +1,22 @@ +/** + * Imaq Platform + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +/** + * + */ +export interface Vessel { + name: string; + readonly company?: string; + readonly createdAt?: string | null; +} + diff --git a/angular/src/app/core/api/v1/model/vesselJsonld.ts b/angular/src/app/core/api/v1/model/vesselJsonld.ts new file mode 100644 index 0000000..7b4afec --- /dev/null +++ b/angular/src/app/core/api/v1/model/vesselJsonld.ts @@ -0,0 +1,27 @@ +/** + * Imaq Platform + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ShippingCompanyJsonld } from './shippingCompanyJsonld'; +import { LocationJsonldContext } from './locationJsonldContext'; + + +/** + * + */ +export interface VesselJsonld { + context?: LocationJsonldContext; + readonly id?: string; + readonly type?: string; + name: string; + readonly company?: ShippingCompanyJsonld; + readonly createdAt?: string | null; +} + diff --git a/angular/src/app/core/api/v1/model/zone.ts b/angular/src/app/core/api/v1/model/zone.ts new file mode 100644 index 0000000..f500cb4 --- /dev/null +++ b/angular/src/app/core/api/v1/model/zone.ts @@ -0,0 +1,21 @@ +/** + * Imaq Platform + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +/** + * + */ +export interface Zone { + name: string; + readonly createdAt?: string | null; +} + diff --git a/angular/src/app/core/api/v1/model/zoneJsonld.ts b/angular/src/app/core/api/v1/model/zoneJsonld.ts new file mode 100644 index 0000000..7a434c6 --- /dev/null +++ b/angular/src/app/core/api/v1/model/zoneJsonld.ts @@ -0,0 +1,25 @@ +/** + * Imaq Platform + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { LocationJsonldContext } from './locationJsonldContext'; + + +/** + * + */ +export interface ZoneJsonld { + context?: LocationJsonldContext; + readonly id?: string; + readonly type?: string; + name: string; + readonly createdAt?: string | null; +} + diff --git a/angular/src/assets/i18n/en.json b/angular/src/assets/i18n/en.json index 13ad89c..5a5d8b1 100644 --- a/angular/src/assets/i18n/en.json +++ b/angular/src/assets/i18n/en.json @@ -4,6 +4,29 @@ "view": "Dashboard", "overview": "Overview" }, + "view": + { + "dashboard": "Dashboard", + "base_data": "Base data" + }, + "common": + { + "name": "Name", + "zone": "Zone", + "creation_date": "Creation date" + }, + "base_data": + { + "view": "Base data", + "locations": "Locations", + "zones": "Zones", + "vessels": "Vessels", + "shipping_companies": "Shipping companies" + }, + "location": + { + "zone": "Zone" + }, "profile": { "view": "Profile" diff --git a/docs/Matrix over Lods certificeringer - Januar 2024.numbers b/docs/Matrix over Lods certificeringer - Januar 2024.numbers new file mode 100644 index 0000000..5954192 Binary files /dev/null and b/docs/Matrix over Lods certificeringer - Januar 2024.numbers differ diff --git a/docs/shipping-class-diagramV2.mermaid b/docs/shipping-class-diagramV2.mermaid new file mode 100644 index 0000000..ff04fae --- /dev/null +++ b/docs/shipping-class-diagramV2.mermaid @@ -0,0 +1,110 @@ +classDiagram + class ShippingCompany { + +Int id* + +String name* + +Date createdAt* + +Collection~Vessel~ vessels* + } + + class Vessel { + +Int id* + +ShippingCompany company* + +String name* + +String type* + +Date createdAt* + +Collection~Trip~ trips* + } + + class Trip { + +Int id* + +Vessel vessel* + +String pilotageReference* + +String captainName + +Location startLocation* + +Location endLocation* + +Date startDate* + +Date endDate* + +Date createdAt* + +Collection~TripLocation~ tripLocations* + +Collection~UserTrip~ userTrips* + } + + class TripLocation { + +Int id* + +Trip trip* + +Location location* + +Date date* + +Date createdAt* + } + + class Location { + +Int id* + +Zone zone* + +String name* + +Date createdAt* + +Collection~TripLocation~ tripLocations* + +Collection~UserTripLocation~ userTripLocations* + +Collection~UserTripWorkLog~ startWorkLogs* + +Collection~UserTripWorkLog~ endWorkLogs* + } + + class Zone { + +Int id* + +String name* + +Date createdAt* + +Collection~Location~ locations* + } + + class User { + +Int id* + +String firstName* + +String lastName* + +String email* + +String pilotageId* + +Boolean active* + +Date createdAt* + +Collection~UserTrip~ userTrips* + } + + class UserTrip { + +Int id* + +Trip trip* + +User user* + +String captainName* + +Date startDate* + +Date endDate* + +Date createdAt* + +Collection~UserTripLocation~ tripLocations* + +Collection~UserTripWorkLog~ workLogs* + } + + class UserTripLocation { + +Int id* + +UserTrip userTrip* + +Location location* + +Date plannedDate* + +Date createdAt* + } + + class UserTripWorkLog { + +Int id* + +UserTrip userTrip* + +Location startLocation* + +Location endLocation* + +Date startDate* + +Date endDate* + +Date createdAt* + } + + ShippingCompany "1" -- "*" Vessel + Vessel "1" -- "*" Trip + Trip "1" -- "*" TripLocation + Trip "1" -- "*" UserTrip + TripLocation "1" -- "1" Location + UserTrip "1" -- "*" UserTripWorkLog + UserTrip "1" -- "*" UserTripLocation + UserTripLocation "1" -- "1" Location + UserTripWorkLog "1" -- "1" Location : startLocation + UserTripWorkLog "1" -- "1" Location : endLocation + User "1" -- "*" UserTrip + Zone "1" -- "*" Location \ No newline at end of file diff --git a/httpdocs/exportApi.sh b/httpdocs/exportApi.sh index 968aadf..85ec12b 100644 --- a/httpdocs/exportApi.sh +++ b/httpdocs/exportApi.sh @@ -18,7 +18,7 @@ fi bin/console api:openapi:export --yaml > "${EXPORT_DIR}/openapi.yaml" # URL der JSON-Datei -JSON_URL="https://futbase.ddev.site:8453/api/docs.json" +JSON_URL="https://imaq.ddev.site:8454/api/docs.json" # JSON von der URL abrufen und im Export-Verzeichnis speichern curl -o "${EXPORT_DIR}/openapi.json" "${JSON_URL}" diff --git a/httpdocs/migrations/Version20241114121031.php b/httpdocs/migrations/Version20241114121031.php new file mode 100644 index 0000000..5b75e81 --- /dev/null +++ b/httpdocs/migrations/Version20241114121031.php @@ -0,0 +1,75 @@ +addSql('CREATE TABLE location (id INT AUTO_INCREMENT NOT NULL, zone_id INT NOT NULL, name VARCHAR(255) NOT NULL, created_at DATETIME NOT NULL COMMENT \'(DC2Type:datetime_immutable)\', INDEX IDX_5E9E89CB9F2C3FAB (zone_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE shipping_company (id INT AUTO_INCREMENT NOT NULL, name VARCHAR(255) NOT NULL, created_at DATETIME NOT NULL COMMENT \'(DC2Type:datetime_immutable)\', PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE trip (id INT AUTO_INCREMENT NOT NULL, vessel_id INT NOT NULL, start_location_id INT NOT NULL, end_location_id INT NOT NULL, pilot_reference VARCHAR(255) NOT NULL, captain_name VARCHAR(255) DEFAULT NULL, start_date DATETIME NOT NULL COMMENT \'(DC2Type:datetime_immutable)\', end_date DATETIME NOT NULL COMMENT \'(DC2Type:datetime_immutable)\', created_at DATETIME NOT NULL COMMENT \'(DC2Type:datetime_immutable)\', INDEX IDX_7656F53B14AF1953 (vessel_id), INDEX IDX_7656F53B5C3A313A (start_location_id), INDEX IDX_7656F53BC43C7F1 (end_location_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE trip_location (id INT AUTO_INCREMENT NOT NULL, trip_id INT NOT NULL, location_id INT NOT NULL, date DATETIME NOT NULL COMMENT \'(DC2Type:datetime_immutable)\', created_at DATETIME NOT NULL COMMENT \'(DC2Type:datetime_immutable)\', INDEX IDX_F6CFBADBA5BC2E0E (trip_id), INDEX IDX_F6CFBADB64D218E (location_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE user_trip (id INT AUTO_INCREMENT NOT NULL, trip_id INT NOT NULL, user_id INT NOT NULL, captain_name VARCHAR(255) NOT NULL, start_date DATETIME NOT NULL COMMENT \'(DC2Type:datetime_immutable)\', end_date DATETIME NOT NULL COMMENT \'(DC2Type:datetime_immutable)\', created_at DATETIME NOT NULL COMMENT \'(DC2Type:datetime_immutable)\', INDEX IDX_CD7B9F2A5BC2E0E (trip_id), INDEX IDX_CD7B9F2A76ED395 (user_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE user_trip_location (id INT AUTO_INCREMENT NOT NULL, user_trip_id INT NOT NULL, location_id INT NOT NULL, planned_date DATETIME NOT NULL COMMENT \'(DC2Type:datetime_immutable)\', created_at DATETIME NOT NULL COMMENT \'(DC2Type:datetime_immutable)\', INDEX IDX_1841178BFDB13004 (user_trip_id), INDEX IDX_1841178B64D218E (location_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE user_trip_work_log (id INT AUTO_INCREMENT NOT NULL, user_trip_id INT NOT NULL, start_location_id INT NOT NULL, end_location_id INT NOT NULL, start_date DATETIME NOT NULL COMMENT \'(DC2Type:datetime_immutable)\', end_date DATETIME NOT NULL COMMENT \'(DC2Type:datetime_immutable)\', created_at DATETIME NOT NULL COMMENT \'(DC2Type:datetime_immutable)\', INDEX IDX_B38EA119FDB13004 (user_trip_id), INDEX IDX_B38EA1195C3A313A (start_location_id), INDEX IDX_B38EA119C43C7F1 (end_location_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE vessel (id INT AUTO_INCREMENT NOT NULL, company_id INT NOT NULL, name VARCHAR(255) NOT NULL, created_at DATETIME NOT NULL COMMENT \'(DC2Type:datetime_immutable)\', INDEX IDX_4ED8DCA8979B1AD6 (company_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE zone (id INT AUTO_INCREMENT NOT NULL, name VARCHAR(255) NOT NULL, created_at DATETIME NOT NULL COMMENT \'(DC2Type:datetime_immutable)\', PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); + $this->addSql('ALTER TABLE location ADD CONSTRAINT FK_5E9E89CB9F2C3FAB FOREIGN KEY (zone_id) REFERENCES zone (id)'); + $this->addSql('ALTER TABLE trip ADD CONSTRAINT FK_7656F53B14AF1953 FOREIGN KEY (vessel_id) REFERENCES vessel (id)'); + $this->addSql('ALTER TABLE trip ADD CONSTRAINT FK_7656F53B5C3A313A FOREIGN KEY (start_location_id) REFERENCES location (id)'); + $this->addSql('ALTER TABLE trip ADD CONSTRAINT FK_7656F53BC43C7F1 FOREIGN KEY (end_location_id) REFERENCES location (id)'); + $this->addSql('ALTER TABLE trip_location ADD CONSTRAINT FK_F6CFBADBA5BC2E0E FOREIGN KEY (trip_id) REFERENCES trip (id)'); + $this->addSql('ALTER TABLE trip_location ADD CONSTRAINT FK_F6CFBADB64D218E FOREIGN KEY (location_id) REFERENCES location (id)'); + $this->addSql('ALTER TABLE user_trip ADD CONSTRAINT FK_CD7B9F2A5BC2E0E FOREIGN KEY (trip_id) REFERENCES trip (id)'); + $this->addSql('ALTER TABLE user_trip ADD CONSTRAINT FK_CD7B9F2A76ED395 FOREIGN KEY (user_id) REFERENCES `user` (id)'); + $this->addSql('ALTER TABLE user_trip_location ADD CONSTRAINT FK_1841178BFDB13004 FOREIGN KEY (user_trip_id) REFERENCES user_trip (id)'); + $this->addSql('ALTER TABLE user_trip_location ADD CONSTRAINT FK_1841178B64D218E FOREIGN KEY (location_id) REFERENCES location (id)'); + $this->addSql('ALTER TABLE user_trip_work_log ADD CONSTRAINT FK_B38EA119FDB13004 FOREIGN KEY (user_trip_id) REFERENCES user_trip (id)'); + $this->addSql('ALTER TABLE user_trip_work_log ADD CONSTRAINT FK_B38EA1195C3A313A FOREIGN KEY (start_location_id) REFERENCES location (id)'); + $this->addSql('ALTER TABLE user_trip_work_log ADD CONSTRAINT FK_B38EA119C43C7F1 FOREIGN KEY (end_location_id) REFERENCES location (id)'); + $this->addSql('ALTER TABLE vessel ADD CONSTRAINT FK_4ED8DCA8979B1AD6 FOREIGN KEY (company_id) REFERENCES shipping_company (id)'); + } + + public function down(Schema $schema): void + { + // this down() migration is auto-generated, please modify it to your needs + $this->addSql('ALTER TABLE location DROP FOREIGN KEY FK_5E9E89CB9F2C3FAB'); + $this->addSql('ALTER TABLE trip DROP FOREIGN KEY FK_7656F53B14AF1953'); + $this->addSql('ALTER TABLE trip DROP FOREIGN KEY FK_7656F53B5C3A313A'); + $this->addSql('ALTER TABLE trip DROP FOREIGN KEY FK_7656F53BC43C7F1'); + $this->addSql('ALTER TABLE trip_location DROP FOREIGN KEY FK_F6CFBADBA5BC2E0E'); + $this->addSql('ALTER TABLE trip_location DROP FOREIGN KEY FK_F6CFBADB64D218E'); + $this->addSql('ALTER TABLE user_trip DROP FOREIGN KEY FK_CD7B9F2A5BC2E0E'); + $this->addSql('ALTER TABLE user_trip DROP FOREIGN KEY FK_CD7B9F2A76ED395'); + $this->addSql('ALTER TABLE user_trip_location DROP FOREIGN KEY FK_1841178BFDB13004'); + $this->addSql('ALTER TABLE user_trip_location DROP FOREIGN KEY FK_1841178B64D218E'); + $this->addSql('ALTER TABLE user_trip_work_log DROP FOREIGN KEY FK_B38EA119FDB13004'); + $this->addSql('ALTER TABLE user_trip_work_log DROP FOREIGN KEY FK_B38EA1195C3A313A'); + $this->addSql('ALTER TABLE user_trip_work_log DROP FOREIGN KEY FK_B38EA119C43C7F1'); + $this->addSql('ALTER TABLE vessel DROP FOREIGN KEY FK_4ED8DCA8979B1AD6'); + $this->addSql('DROP TABLE location'); + $this->addSql('DROP TABLE shipping_company'); + $this->addSql('DROP TABLE trip'); + $this->addSql('DROP TABLE trip_location'); + $this->addSql('DROP TABLE user_trip'); + $this->addSql('DROP TABLE user_trip_location'); + $this->addSql('DROP TABLE user_trip_work_log'); + $this->addSql('DROP TABLE vessel'); + $this->addSql('DROP TABLE zone'); + } +} diff --git a/httpdocs/src/ApiResource/LocationApi.php b/httpdocs/src/ApiResource/LocationApi.php new file mode 100644 index 0000000..307baeb --- /dev/null +++ b/httpdocs/src/ApiResource/LocationApi.php @@ -0,0 +1,77 @@ + 'ipartial', +])] +#[ApiFilter(CustomJsonFilter::class)] +#[ApiFilter(CustomJsonOrderFilter::class)] +class LocationApi +{ + #[ApiProperty(readable: false, writable: false, identifier: true)] + public ?int $id = null; + + /** + * @var ZoneApi + */ + #[ApiProperty( + writable: false, + readableLink: true, + writableLink: false, + builtinTypes: [ + new Type( + 'object', + class: ZoneApi::class, + ) + ] + )] + public ?ZoneApi $zone = null; + + #[Assert\NotBlank] + public string $name; + + #[ApiProperty(writable: false)] + public string $zoneName; + + #[ApiProperty(writable: false)] + public ?\DateTimeImmutable $createdAt = null; +} \ No newline at end of file diff --git a/httpdocs/src/ApiResource/ShippingCompanyApi.php b/httpdocs/src/ApiResource/ShippingCompanyApi.php new file mode 100644 index 0000000..7786404 --- /dev/null +++ b/httpdocs/src/ApiResource/ShippingCompanyApi.php @@ -0,0 +1,57 @@ + 'ipartial', +])] +#[ApiFilter(CustomJsonFilter::class)] +#[ApiFilter(CustomJsonOrderFilter::class)] +class ShippingCompanyApi +{ + #[ApiProperty(readable: false, writable: false, identifier: true)] + public ?int $id = null; + + #[Assert\NotBlank] + public string $name; + + #[ApiProperty(writable: false)] + public ?\DateTimeImmutable $createdAt = null; +} \ No newline at end of file diff --git a/httpdocs/src/ApiResource/TripApi.php b/httpdocs/src/ApiResource/TripApi.php new file mode 100644 index 0000000..6ede6d4 --- /dev/null +++ b/httpdocs/src/ApiResource/TripApi.php @@ -0,0 +1,105 @@ + ['Default', 'postValidation']] ), -// new Patch( -// security: 'is_granted("is_granted("EDIT", object)")' -// ), + new Patch( + security: 'is_granted("is_granted("EDIT", object)")' + ), ], security: 'is_granted("ROLE_USER")', provider: EntityToDtoStateProvider::class, diff --git a/httpdocs/src/ApiResource/UserTripApi.php b/httpdocs/src/ApiResource/UserTripApi.php new file mode 100644 index 0000000..29110c1 --- /dev/null +++ b/httpdocs/src/ApiResource/UserTripApi.php @@ -0,0 +1,87 @@ + 'ipartial', +])] +#[ApiFilter(CustomJsonFilter::class)] +#[ApiFilter(CustomJsonOrderFilter::class)] +class VesselApi +{ + #[ApiProperty(readable: false, writable: false, identifier: true)] + public ?int $id = null; + + #[Assert\NotBlank] + public string $name; + + /** + * @var ShippingCompanyApi + */ + #[ApiProperty( + writable: false, + readableLink: true, + writableLink: false, + builtinTypes: [ + new Type( + 'object', + class: ShippingCompanyApi::class, + ) + ] + )] + public ?ShippingCompanyApi $company = null; + + #[ApiProperty(writable: false)] + public ?\DateTimeImmutable $createdAt = null; +} \ No newline at end of file diff --git a/httpdocs/src/ApiResource/ZoneApi.php b/httpdocs/src/ApiResource/ZoneApi.php new file mode 100644 index 0000000..64545e4 --- /dev/null +++ b/httpdocs/src/ApiResource/ZoneApi.php @@ -0,0 +1,57 @@ + 'ipartial', +])] +#[ApiFilter(CustomJsonFilter::class)] +#[ApiFilter(CustomJsonOrderFilter::class)] +class ZoneApi +{ + #[ApiProperty(readable: false, writable: false, identifier: true)] + public ?int $id = null; + + #[Assert\NotBlank] + public string $name; + + #[ApiProperty(writable: false)] + public ?\DateTimeImmutable $createdAt = null; +} \ No newline at end of file diff --git a/httpdocs/src/Entity/Location.php b/httpdocs/src/Entity/Location.php new file mode 100644 index 0000000..393ce49 --- /dev/null +++ b/httpdocs/src/Entity/Location.php @@ -0,0 +1,106 @@ +zone = $zone; + $this->name = $name; + $this->createdAt = new DateTimeImmutable(); + $this->tripLocations = new ArrayCollection(); + $this->userTripLocations = new ArrayCollection(); + $this->startWorkLogs = new ArrayCollection(); + $this->endWorkLogs = new ArrayCollection(); + } + + public function getId(): ?int + { + return $this->id; + } + + public function getZone(): Zone + { + return $this->zone; + } + + public function setZone(Zone $zone): self + { + $this->zone = $zone; + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->name = $name; + return $this; + } + + public function getCreatedAt(): DateTimeImmutable + { + return $this->createdAt; + } + + public function getTripLocations(): Collection + { + return $this->tripLocations; + } + + public function getUserTripLocations(): Collection + { + return $this->userTripLocations; + } + + public function getStartWorkLogs(): Collection + { + return $this->startWorkLogs; + } + + public function getEndWorkLogs(): Collection + { + return $this->endWorkLogs; + } + +} \ No newline at end of file diff --git a/httpdocs/src/Entity/ShippingCompany.php b/httpdocs/src/Entity/ShippingCompany.php new file mode 100644 index 0000000..2a8e5b2 --- /dev/null +++ b/httpdocs/src/Entity/ShippingCompany.php @@ -0,0 +1,63 @@ +name = $name; + $this->createdAt = new DateTimeImmutable(); + $this->vessels = new ArrayCollection(); + } + + public function getId(): ?int + { + return $this->id; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->name = $name; + return $this; + } + + public function getCreatedAt(): DateTimeImmutable + { + return $this->createdAt; + } + + public function getVessels(): Collection + { + return $this->vessels; + } + +} \ No newline at end of file diff --git a/httpdocs/src/Entity/Trip.php b/httpdocs/src/Entity/Trip.php new file mode 100644 index 0000000..24f2e82 --- /dev/null +++ b/httpdocs/src/Entity/Trip.php @@ -0,0 +1,169 @@ +vessel = $vessel; + $this->pilotReference = $pilotageReference; + $this->startLocation = $startLocation; + $this->endLocation = $endLocation; + $this->startDate = $startDate; + $this->endDate = $endDate; + $this->createdAt = new DateTimeImmutable(); + $this->tripLocations = new ArrayCollection(); + $this->userTrips = new ArrayCollection(); + } + + public function getId(): ?int + { + return $this->id; + } + + public function getVessel(): Vessel + { + return $this->vessel; + } + + public function setVessel(Vessel $vessel): self + { + $this->vessel = $vessel; + return $this; + } + + public function getPilotReference(): string + { + return $this->pilotReference; + } + + public function setPilotReference(string $pilotReference): self + { + $this->pilotReference = $pilotReference; + return $this; + } + + public function getCaptainName(): ?string + { + return $this->captainName; + } + + public function setCaptainName(?string $captainName): self + { + $this->captainName = $captainName; + return $this; + } + + public function getStartLocation(): Location + { + return $this->startLocation; + } + + public function setStartLocation(Location $startLocation): self + { + $this->startLocation = $startLocation; + return $this; + } + + public function getEndLocation(): Location + { + return $this->endLocation; + } + + public function setEndLocation(Location $endLocation): self + { + $this->endLocation = $endLocation; + return $this; + } + + public function getStartDate(): DateTimeImmutable + { + return $this->startDate; + } + + public function setStartDate(DateTimeImmutable $startDate): self + { + $this->startDate = $startDate; + return $this; + } + + public function getEndDate(): DateTimeImmutable + { + return $this->endDate; + } + + public function setEndDate(DateTimeImmutable $endDate): self + { + $this->endDate = $endDate; + return $this; + } + + public function getCreatedAt(): DateTimeImmutable + { + return $this->createdAt; + } + + public function getTripLocations(): Collection + { + return $this->tripLocations; + } + + public function getUserTrips(): Collection + { + return $this->userTrips; + } +} \ No newline at end of file diff --git a/httpdocs/src/Entity/TripLocation.php b/httpdocs/src/Entity/TripLocation.php new file mode 100644 index 0000000..12a7301 --- /dev/null +++ b/httpdocs/src/Entity/TripLocation.php @@ -0,0 +1,83 @@ +trip = $trip; + $this->location = $location; + $this->date = $date; + $this->createdAt = new DateTimeImmutable(); + } + + public function getId(): ?int + { + return $this->id; + } + + public function getTrip(): Trip + { + return $this->trip; + } + + public function setTrip(Trip $trip): self + { + $this->trip = $trip; + return $this; + } + + public function getLocation(): Location + { + return $this->location; + } + + public function setLocation(Location $location): self + { + $this->location = $location; + return $this; + } + + public function getDate(): DateTimeImmutable + { + return $this->date; + } + + public function setDate(DateTimeImmutable $date): self + { + $this->date = $date; + return $this; + } + + public function getCreatedAt(): DateTimeImmutable + { + return $this->createdAt; + } +} \ No newline at end of file diff --git a/httpdocs/src/Entity/UserTrip.php b/httpdocs/src/Entity/UserTrip.php new file mode 100644 index 0000000..bc8ac5c --- /dev/null +++ b/httpdocs/src/Entity/UserTrip.php @@ -0,0 +1,176 @@ +trip = $trip; + $this->user = $user; + $this->captainName = $captainName; + $this->startDate = $startDate; + $this->endDate = $endDate; + $this->createdAt = new DateTimeImmutable(); + $this->tripLocations = new ArrayCollection(); + $this->workLogs = new ArrayCollection(); + } + + public function getId(): ?int + { + return $this->id; + } + + public function getTrip(): Trip + { + return $this->trip; + } + + public function setTrip(Trip $trip): self + { + $this->trip = $trip; + return $this; + } + + public function getUser(): User + { + return $this->user; + } + + public function setUser(User $user): self + { + $this->user = $user; + return $this; + } + + public function getCaptainName(): string + { + return $this->captainName; + } + + public function setCaptainName(string $captainName): self + { + $this->captainName = $captainName; + return $this; + } + + public function getStartDate(): DateTimeImmutable + { + return $this->startDate; + } + + public function setStartDate(DateTimeImmutable $startDate): self + { + $this->startDate = $startDate; + return $this; + } + + public function getEndDate(): DateTimeImmutable + { + return $this->endDate; + } + + public function setEndDate(DateTimeImmutable $endDate): self + { + $this->endDate = $endDate; + return $this; + } + + public function getCreatedAt(): DateTimeImmutable + { + return $this->createdAt; + } + + public function getTripLocations(): Collection + { + return $this->tripLocations; + } + + public function addTripLocation(UserTripLocation $tripLocation): self + { + if (!$this->tripLocations->contains($tripLocation)) { + $this->tripLocations->add($tripLocation); + $tripLocation->setUserTrip($this); + } + return $this; + } + + public function removeTripLocation(UserTripLocation $tripLocation): self + { + if ($this->tripLocations->removeElement($tripLocation)) { + if ($tripLocation->getUserTrip() === $this) { + $tripLocation->setUserTrip(null); + } + } + return $this; + } + + public function getWorkLogs(): Collection + { + return $this->workLogs; + } + + public function addWorkLog(UserTripWorkLog $workLog): self + { + if (!$this->workLogs->contains($workLog)) { + $this->workLogs->add($workLog); + $workLog->setUserTrip($this); + } + return $this; + } + + public function removeWorkLog(UserTripWorkLog $workLog): self + { + if ($this->workLogs->removeElement($workLog)) { + if ($workLog->getUserTrip() === $this) { + $workLog->setUserTrip(null); + } + } + return $this; + } +} \ No newline at end of file diff --git a/httpdocs/src/Entity/UserTripLocation.php b/httpdocs/src/Entity/UserTripLocation.php new file mode 100644 index 0000000..6a22d96 --- /dev/null +++ b/httpdocs/src/Entity/UserTripLocation.php @@ -0,0 +1,83 @@ +userTrip = $userTrip; + $this->location = $location; + $this->plannedDate = $plannedDate; + $this->createdAt = new DateTimeImmutable(); + } + + public function getId(): ?int + { + return $this->id; + } + + public function getUserTrip(): UserTrip + { + return $this->userTrip; + } + + public function setUserTrip(UserTrip $userTrip): self + { + $this->userTrip = $userTrip; + return $this; + } + + public function getLocation(): Location + { + return $this->location; + } + + public function setLocation(Location $location): self + { + $this->location = $location; + return $this; + } + + public function getPlannedDate(): DateTimeImmutable + { + return $this->plannedDate; + } + + public function setPlannedDate(DateTimeImmutable $plannedDate): self + { + $this->plannedDate = $plannedDate; + return $this; + } + + public function getCreatedAt(): DateTimeImmutable + { + return $this->createdAt; + } +} \ No newline at end of file diff --git a/httpdocs/src/Entity/UserTripWorkLog.php b/httpdocs/src/Entity/UserTripWorkLog.php new file mode 100644 index 0000000..aecd2be --- /dev/null +++ b/httpdocs/src/Entity/UserTripWorkLog.php @@ -0,0 +1,119 @@ +userTrip = $userTrip; + $this->startLocation = $startLocation; + $this->endLocation = $endLocation; + $this->startDate = $startDate; + $this->endDate = $endDate; + $this->createdAt = new DateTimeImmutable(); + } + + public function getId(): ?int + { + return $this->id; + } + + public function getUserTrip(): UserTrip + { + return $this->userTrip; + } + + public function setUserTrip(UserTrip $userTrip): self + { + $this->userTrip = $userTrip; + return $this; + } + + public function getStartLocation(): Location + { + return $this->startLocation; + } + + public function setStartLocation(Location $startLocation): self + { + $this->startLocation = $startLocation; + return $this; + } + + public function getEndLocation(): Location + { + return $this->endLocation; + } + + public function setEndLocation(Location $endLocation): self + { + $this->endLocation = $endLocation; + return $this; + } + + public function getStartDate(): DateTimeImmutable + { + return $this->startDate; + } + + public function setStartDate(DateTimeImmutable $startDate): self + { + $this->startDate = $startDate; + return $this; + } + + public function getEndDate(): DateTimeImmutable + { + return $this->endDate; + } + + public function setEndDate(DateTimeImmutable $endDate): self + { + $this->endDate = $endDate; + return $this; + } + + public function getCreatedAt(): DateTimeImmutable + { + return $this->createdAt; + } +} \ No newline at end of file diff --git a/httpdocs/src/Entity/Vessel.php b/httpdocs/src/Entity/Vessel.php new file mode 100644 index 0000000..b11fbd0 --- /dev/null +++ b/httpdocs/src/Entity/Vessel.php @@ -0,0 +1,78 @@ +company = $company; + $this->name = $name; + $this->createdAt = new DateTimeImmutable(); + $this->trips = new ArrayCollection(); + } + + public function getId(): ?int + { + return $this->id; + } + + public function getCompany(): ShippingCompany + { + return $this->company; + } + + public function setCompany(ShippingCompany $company): self + { + $this->company = $company; + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->name = $name; + return $this; + } + + public function getCreatedAt(): DateTimeImmutable + { + return $this->createdAt; + } + + public function getTrips(): Collection + { + return $this->trips; + } +} \ No newline at end of file diff --git a/httpdocs/src/Entity/Zone.php b/httpdocs/src/Entity/Zone.php new file mode 100644 index 0000000..7949049 --- /dev/null +++ b/httpdocs/src/Entity/Zone.php @@ -0,0 +1,62 @@ +name = $name; + $this->createdAt = new DateTimeImmutable(); + $this->locations = new ArrayCollection(); + } + + public function getId(): ?int + { + return $this->id; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->name = $name; + return $this; + } + + public function getCreatedAt(): DateTimeImmutable + { + return $this->createdAt; + } + + public function getLocations(): Collection + { + return $this->locations; + } +} \ No newline at end of file diff --git a/httpdocs/src/Mapper/LocationApiToEntityMapper.php b/httpdocs/src/Mapper/LocationApiToEntityMapper.php new file mode 100644 index 0000000..1e33181 --- /dev/null +++ b/httpdocs/src/Mapper/LocationApiToEntityMapper.php @@ -0,0 +1,59 @@ +id) { + $entity = $this->repository->find($dto->id); + if (!$entity) { + throw new \Exception('Location not found'); + } + return $entity; + } + + // For new locations, we need the zone + if (!$dto->zone?->id) { + throw new \Exception('Zone is required for new locations'); + } + + $zone = $this->zoneRepository->find($dto->zone->id); + if (!$zone) { + throw new \Exception('Zone not found'); + } + + return new Location($zone, $dto->name); + } + + public function populate(object $from, object $to, array $context): object + { + $dto = $from; + $entity = $to; + assert($dto instanceof LocationApi); + assert($entity instanceof Location); + + $entity->setName($dto->name); + + return $entity; + } +} \ No newline at end of file diff --git a/httpdocs/src/Mapper/LocationEntityToApiMapper.php b/httpdocs/src/Mapper/LocationEntityToApiMapper.php new file mode 100644 index 0000000..71f080a --- /dev/null +++ b/httpdocs/src/Mapper/LocationEntityToApiMapper.php @@ -0,0 +1,49 @@ +id = $entity->getId(); + + return $dto; + } + + public function populate(object $from, object $to, array $context): object + { + $entity = $from; + $dto = $to; + assert($entity instanceof Location); + assert($dto instanceof LocationApi); + + $dto->name = $entity->getName(); + $dto->createdAt = $entity->getCreatedAt(); + + $dto->zone = $this->microMapper->map($entity->getZone(), ZoneApi::class, [ + MicroMapperInterface::MAX_DEPTH => 1, + ]); + + $dto->zoneName = $dto->zone->name; + + return $dto; + } +} \ No newline at end of file diff --git a/httpdocs/src/Mapper/ShippingCompanyApiToEntityMapper.php b/httpdocs/src/Mapper/ShippingCompanyApiToEntityMapper.php new file mode 100644 index 0000000..a08f6f6 --- /dev/null +++ b/httpdocs/src/Mapper/ShippingCompanyApiToEntityMapper.php @@ -0,0 +1,43 @@ +id ? $this->repository->find($dto->id) : new ShippingCompany($dto->name); + if ($dto->id && !$entity) { + throw new \Exception('ShippingCompany not found'); + } + + return $entity; + } + + public function populate(object $from, object $to, array $context): object + { + $dto = $from; + $entity = $to; + assert($dto instanceof ShippingCompanyApi); + assert($entity instanceof ShippingCompany); + + $entity->setName($dto->name); + + return $entity; + } +} \ No newline at end of file diff --git a/httpdocs/src/Mapper/ShippingCompanyEntityToApiMapper.php b/httpdocs/src/Mapper/ShippingCompanyEntityToApiMapper.php new file mode 100644 index 0000000..57c5fa9 --- /dev/null +++ b/httpdocs/src/Mapper/ShippingCompanyEntityToApiMapper.php @@ -0,0 +1,42 @@ +id = $entity->getId(); + + return $dto; + } + + public function populate(object $from, object $to, array $context): object + { + $entity = $from; + $dto = $to; + assert($entity instanceof ShippingCompany); + assert($dto instanceof ShippingCompanyApi); + + $dto->name = $entity->getName(); + $dto->createdAt = $entity->getCreatedAt(); + + return $dto; + } +} \ No newline at end of file diff --git a/httpdocs/src/Mapper/TripApiToEntityMapper.php b/httpdocs/src/Mapper/TripApiToEntityMapper.php new file mode 100644 index 0000000..f85a7db --- /dev/null +++ b/httpdocs/src/Mapper/TripApiToEntityMapper.php @@ -0,0 +1,84 @@ +id) { + $entity = $this->repository->find($dto->id); + if (!$entity) { + throw new \Exception('Trip not found'); + } + return $entity; + } + + // For new trips, we need the vessel and locations + if (!$dto->vessel?->id) { + throw new \Exception('Vessel is required for new trips'); + } + if (!$dto->startLocation?->id || !$dto->endLocation?->id) { + throw new \Exception('Start and end locations are required for new trips'); + } + + $vessel = $this->vesselRepository->find($dto->vessel->id); + if (!$vessel) { + throw new \Exception('Vessel not found'); + } + + $startLocation = $this->locationRepository->find($dto->startLocation->id); + if (!$startLocation) { + throw new \Exception('Start location not found'); + } + + $endLocation = $this->locationRepository->find($dto->endLocation->id); + if (!$endLocation) { + throw new \Exception('End location not found'); + } + + return new Trip( + $vessel, + $dto->pilotReference, + $startLocation, + $endLocation, + $dto->startDate, + $dto->endDate + ); + } + + public function populate(object $from, object $to, array $context): object + { + $dto = $from; + $entity = $to; + assert($dto instanceof TripApi); + assert($entity instanceof Trip); + + $entity->setPilotReference($dto->pilotReference); + $entity->setCaptainName($dto->captainName); + $entity->setStartDate($dto->startDate); + $entity->setEndDate($dto->endDate); + + return $entity; + } +} \ No newline at end of file diff --git a/httpdocs/src/Mapper/TripEntityToApiMapper.php b/httpdocs/src/Mapper/TripEntityToApiMapper.php new file mode 100644 index 0000000..ab16054 --- /dev/null +++ b/httpdocs/src/Mapper/TripEntityToApiMapper.php @@ -0,0 +1,60 @@ +id = $entity->getId(); + + return $dto; + } + + public function populate(object $from, object $to, array $context): object + { + $entity = $from; + $dto = $to; + assert($entity instanceof Trip); + assert($dto instanceof TripApi); + + $dto->pilotReference = $entity->getPilotReference(); + $dto->captainName = $entity->getCaptainName(); + $dto->startDate = $entity->getStartDate(); + $dto->endDate = $entity->getEndDate(); + $dto->createdAt = $entity->getCreatedAt(); + + // Map related entities + $dto->vessel = $this->microMapper->map($entity->getVessel(), VesselApi::class, [ + MicroMapperInterface::MAX_DEPTH => 1, + ]); + + $dto->startLocation = $this->microMapper->map($entity->getStartLocation(), LocationApi::class, [ + MicroMapperInterface::MAX_DEPTH => 1, + ]); + + $dto->endLocation = $this->microMapper->map($entity->getEndLocation(), LocationApi::class, [ + MicroMapperInterface::MAX_DEPTH => 1, + ]); + + return $dto; + } +} \ No newline at end of file diff --git a/httpdocs/src/Mapper/TripLocationApiToEntityMapper.php b/httpdocs/src/Mapper/TripLocationApiToEntityMapper.php new file mode 100644 index 0000000..a5fbef2 --- /dev/null +++ b/httpdocs/src/Mapper/TripLocationApiToEntityMapper.php @@ -0,0 +1,66 @@ +id) { + $entity = $this->repository->find($dto->id); + if (!$entity) { + throw new \Exception('TripLocation not found'); + } + return $entity; + } + + // For new trip locations, we need trip and location + if (!$dto->trip?->id || !$dto->location?->id) { + throw new \Exception('Trip and Location are required for new trip locations'); + } + + $trip = $this->tripRepository->find($dto->trip->id); + if (!$trip) { + throw new \Exception('Trip not found'); + } + + $location = $this->locationRepository->find($dto->location->id); + if (!$location) { + throw new \Exception('Location not found'); + } + + return new TripLocation($trip, $location, $dto->date); + } + + public function populate(object $from, object $to, array $context): object + { + $dto = $from; + $entity = $to; + assert($dto instanceof TripLocationApi); + assert($entity instanceof TripLocation); + + $entity->setDate($dto->date); + + return $entity; + } +} \ No newline at end of file diff --git a/httpdocs/src/Mapper/TripLocationEntityToApiMapper.php b/httpdocs/src/Mapper/TripLocationEntityToApiMapper.php new file mode 100644 index 0000000..45df511 --- /dev/null +++ b/httpdocs/src/Mapper/TripLocationEntityToApiMapper.php @@ -0,0 +1,52 @@ +id = $entity->getId(); + + return $dto; + } + + public function populate(object $from, object $to, array $context): object + { + $entity = $from; + $dto = $to; + assert($entity instanceof TripLocation); + assert($dto instanceof TripLocationApi); + + $dto->date = $entity->getDate(); + $dto->createdAt = $entity->getCreatedAt(); + + $dto->trip = $this->microMapper->map($entity->getTrip(), TripApi::class, [ + MicroMapperInterface::MAX_DEPTH => 1, + ]); + + $dto->location = $this->microMapper->map($entity->getLocation(), LocationApi::class, [ + MicroMapperInterface::MAX_DEPTH => 1, + ]); + + return $dto; + } +} \ No newline at end of file diff --git a/httpdocs/src/Mapper/UserTripApiToEntityMapper.php b/httpdocs/src/Mapper/UserTripApiToEntityMapper.php new file mode 100644 index 0000000..9a8d270 --- /dev/null +++ b/httpdocs/src/Mapper/UserTripApiToEntityMapper.php @@ -0,0 +1,74 @@ +id) { + $entity = $this->repository->find($dto->id); + if (!$entity) { + throw new \Exception('UserTrip not found'); + } + return $entity; + } + + // For new user trips, we need trip and user + if (!$dto->trip?->id || !$dto->user?->id) { + throw new \Exception('Trip and User are required for new user trips'); + } + + $trip = $this->tripRepository->find($dto->trip->id); + if (!$trip) { + throw new \Exception('Trip not found'); + } + + $user = $this->userRepository->find($dto->user->id); + if (!$user) { + throw new \Exception('User not found'); + } + + return new UserTrip( + $trip, + $user, + $dto->captainName, + $dto->startDate, + $dto->endDate + ); + } + + public function populate(object $from, object $to, array $context): object + { + $dto = $from; + $entity = $to; + assert($dto instanceof UserTripApi); + assert($entity instanceof UserTrip); + + $entity->setCaptainName($dto->captainName); + $entity->setStartDate($dto->startDate); + $entity->setEndDate($dto->endDate); + + return $entity; + } +} \ No newline at end of file diff --git a/httpdocs/src/Mapper/UserTripEntityToApiMapper.php b/httpdocs/src/Mapper/UserTripEntityToApiMapper.php new file mode 100644 index 0000000..ff6924a --- /dev/null +++ b/httpdocs/src/Mapper/UserTripEntityToApiMapper.php @@ -0,0 +1,54 @@ +id = $entity->getId(); + + return $dto; + } + + public function populate(object $from, object $to, array $context): object + { + $entity = $from; + $dto = $to; + assert($entity instanceof UserTrip); + assert($dto instanceof UserTripApi); + + $dto->captainName = $entity->getCaptainName(); + $dto->startDate = $entity->getStartDate(); + $dto->endDate = $entity->getEndDate(); + $dto->createdAt = $entity->getCreatedAt(); + + $dto->trip = $this->microMapper->map($entity->getTrip(), TripApi::class, [ + MicroMapperInterface::MAX_DEPTH => 1, + ]); + + $dto->user = $this->microMapper->map($entity->getUser(), UserApi::class, [ + MicroMapperInterface::MAX_DEPTH => 1, + ]); + + return $dto; + } +} \ No newline at end of file diff --git a/httpdocs/src/Mapper/UserTripLocationApiToEntityMapper.php b/httpdocs/src/Mapper/UserTripLocationApiToEntityMapper.php new file mode 100644 index 0000000..ed26739 --- /dev/null +++ b/httpdocs/src/Mapper/UserTripLocationApiToEntityMapper.php @@ -0,0 +1,70 @@ +id) { + $entity = $this->repository->find($dto->id); + if (!$entity) { + throw new \Exception('UserTripLocation not found'); + } + return $entity; + } + + // For new user trip locations, we need userTrip and location + if (!$dto->userTrip?->id || !$dto->location?->id) { + throw new \Exception('UserTrip and Location are required for new user trip locations'); + } + + $userTrip = $this->userTripRepository->find($dto->userTrip->id); + if (!$userTrip) { + throw new \Exception('UserTrip not found'); + } + + $location = $this->locationRepository->find($dto->location->id); + if (!$location) { + throw new \Exception('Location not found'); + } + + return new UserTripLocation( + $userTrip, + $location, + $dto->plannedDate + ); + } + + public function populate(object $from, object $to, array $context): object + { + $dto = $from; + $entity = $to; + assert($dto instanceof UserTripLocationApi); + assert($entity instanceof UserTripLocation); + + $entity->setPlannedDate($dto->plannedDate); + + return $entity; + } +} diff --git a/httpdocs/src/Mapper/UserTripLocationEntityToApiMapper.php b/httpdocs/src/Mapper/UserTripLocationEntityToApiMapper.php new file mode 100644 index 0000000..fa73309 --- /dev/null +++ b/httpdocs/src/Mapper/UserTripLocationEntityToApiMapper.php @@ -0,0 +1,52 @@ +id = $entity->getId(); + + return $dto; + } + + public function populate(object $from, object $to, array $context): object + { + $entity = $from; + $dto = $to; + assert($entity instanceof UserTripLocation); + assert($dto instanceof UserTripLocationApi); + + $dto->plannedDate = $entity->getPlannedDate(); + $dto->createdAt = $entity->getCreatedAt(); + + $dto->userTrip = $this->microMapper->map($entity->getUserTrip(), UserTripApi::class, [ + MicroMapperInterface::MAX_DEPTH => 1, + ]); + + $dto->location = $this->microMapper->map($entity->getLocation(), LocationApi::class, [ + MicroMapperInterface::MAX_DEPTH => 1, + ]); + + return $dto; + } +} \ No newline at end of file diff --git a/httpdocs/src/Mapper/UserTripWorkLogApiToEntityMapper.php b/httpdocs/src/Mapper/UserTripWorkLogApiToEntityMapper.php new file mode 100644 index 0000000..2238cea --- /dev/null +++ b/httpdocs/src/Mapper/UserTripWorkLogApiToEntityMapper.php @@ -0,0 +1,78 @@ +id) { + $entity = $this->repository->find($dto->id); + if (!$entity) { + throw new \Exception('UserTripWorkLog not found'); + } + return $entity; + } + + // For new work logs, we need userTrip and both locations + if (!$dto->userTrip?->id || !$dto->startLocation?->id || !$dto->endLocation?->id) { + throw new \Exception('UserTrip, start location and end location are required for new work logs'); + } + + $userTrip = $this->userTripRepository->find($dto->userTrip->id); + if (!$userTrip) { + throw new \Exception('UserTrip not found'); + } + + $startLocation = $this->locationRepository->find($dto->startLocation->id); + if (!$startLocation) { + throw new \Exception('Start location not found'); + } + + $endLocation = $this->locationRepository->find($dto->endLocation->id); + if (!$endLocation) { + throw new \Exception('End location not found'); + } + + return new UserTripWorkLog( + $userTrip, + $startLocation, + $endLocation, + $dto->startDate, + $dto->endDate + ); + } + + public function populate(object $from, object $to, array $context): object + { + $dto = $from; + $entity = $to; + assert($dto instanceof UserTripWorkLogApi); + assert($entity instanceof UserTripWorkLog); + + $entity->setStartDate($dto->startDate); + $entity->setEndDate($dto->endDate); + + return $entity; + } +} \ No newline at end of file diff --git a/httpdocs/src/Mapper/UserTripWorkLogEntityToApiMapper.php b/httpdocs/src/Mapper/UserTripWorkLogEntityToApiMapper.php new file mode 100644 index 0000000..93dd37b --- /dev/null +++ b/httpdocs/src/Mapper/UserTripWorkLogEntityToApiMapper.php @@ -0,0 +1,57 @@ +id = $entity->getId(); + + return $dto; + } + + public function populate(object $from, object $to, array $context): object + { + $entity = $from; + $dto = $to; + assert($entity instanceof UserTripWorkLog); + assert($dto instanceof UserTripWorkLogApi); + + $dto->startDate = $entity->getStartDate(); + $dto->endDate = $entity->getEndDate(); + $dto->createdAt = $entity->getCreatedAt(); + + $dto->userTrip = $this->microMapper->map($entity->getUserTrip(), UserTripApi::class, [ + MicroMapperInterface::MAX_DEPTH => 1, + ]); + + $dto->startLocation = $this->microMapper->map($entity->getStartLocation(), LocationApi::class, [ + MicroMapperInterface::MAX_DEPTH => 1, + ]); + + $dto->endLocation = $this->microMapper->map($entity->getEndLocation(), LocationApi::class, [ + MicroMapperInterface::MAX_DEPTH => 1, + ]); + + return $dto; + } +} \ No newline at end of file diff --git a/httpdocs/src/Mapper/VesselApiToEntityMapper.php b/httpdocs/src/Mapper/VesselApiToEntityMapper.php new file mode 100644 index 0000000..772b50b --- /dev/null +++ b/httpdocs/src/Mapper/VesselApiToEntityMapper.php @@ -0,0 +1,59 @@ +id) { + $entity = $this->repository->find($dto->id); + if (!$entity) { + throw new \Exception('Vessel not found'); + } + return $entity; + } + + // For new vessels, we need the shipping company + if (!$dto->company?->id) { + throw new \Exception('ShippingCompany is required for new vessels'); + } + + $company = $this->shippingCompanyRepository->find($dto->company->id); + if (!$company) { + throw new \Exception('ShippingCompany not found'); + } + + return new Vessel($company, $dto->name); + } + + public function populate(object $from, object $to, array $context): object + { + $dto = $from; + $entity = $to; + assert($dto instanceof VesselApi); + assert($entity instanceof Vessel); + + $entity->setName($dto->name); + + return $entity; + } +} diff --git a/httpdocs/src/Mapper/VesselEntityToApiMapper.php b/httpdocs/src/Mapper/VesselEntityToApiMapper.php new file mode 100644 index 0000000..66f490f --- /dev/null +++ b/httpdocs/src/Mapper/VesselEntityToApiMapper.php @@ -0,0 +1,47 @@ +id = $entity->getId(); + + return $dto; + } + + public function populate(object $from, object $to, array $context): object + { + $entity = $from; + $dto = $to; + assert($entity instanceof Vessel); + assert($dto instanceof VesselApi); + + $dto->name = $entity->getName(); + $dto->createdAt = $entity->getCreatedAt(); + + $dto->company = $this->microMapper->map($entity->getCompany(), ShippingCompanyApi::class, [ + MicroMapperInterface::MAX_DEPTH => 1, + ]); + + return $dto; + } +} diff --git a/httpdocs/src/Mapper/ZoneApiToEntityMapper.php b/httpdocs/src/Mapper/ZoneApiToEntityMapper.php new file mode 100644 index 0000000..201e363 --- /dev/null +++ b/httpdocs/src/Mapper/ZoneApiToEntityMapper.php @@ -0,0 +1,46 @@ +id) { + $entity = $this->repository->find($dto->id); + if (!$entity) { + throw new \Exception('Zone not found'); + } + return $entity; + } + + return new Zone($dto->name); + } + + public function populate(object $from, object $to, array $context): object + { + $dto = $from; + $entity = $to; + assert($dto instanceof ZoneApi); + assert($entity instanceof Zone); + + $entity->setName($dto->name); + + return $entity; + } +} \ No newline at end of file diff --git a/httpdocs/src/Mapper/ZoneEntityToApiMapper.php b/httpdocs/src/Mapper/ZoneEntityToApiMapper.php new file mode 100644 index 0000000..0095927 --- /dev/null +++ b/httpdocs/src/Mapper/ZoneEntityToApiMapper.php @@ -0,0 +1,36 @@ +id = $entity->getId(); + + return $dto; + } + + public function populate(object $from, object $to, array $context): object + { + $entity = $from; + $dto = $to; + assert($entity instanceof Zone); + assert($dto instanceof ZoneApi); + + $dto->name = $entity->getName(); + $dto->createdAt = $entity->getCreatedAt(); + + return $dto; + } +} \ No newline at end of file diff --git a/httpdocs/src/Repository/LocationRepository.php b/httpdocs/src/Repository/LocationRepository.php new file mode 100644 index 0000000..912c2d0 --- /dev/null +++ b/httpdocs/src/Repository/LocationRepository.php @@ -0,0 +1,58 @@ +getEntityManager()->persist($location); + + if ($flush) { + $this->getEntityManager()->flush(); + } + } + + public function remove(Location $location, bool $flush = false): void + { + $this->getEntityManager()->remove($location); + + if ($flush) { + $this->getEntityManager()->flush(); + } + } + + /** + * @return Location[] + */ + public function findByZone(Zone $zone): array + { + return $this->createQueryBuilder('l') + ->andWhere('l.zone = :zone') + ->setParameter('zone', $zone) + ->orderBy('l.name', 'ASC') + ->getQuery() + ->getResult(); + } + + public function findOneByNameAndZone(string $name, Zone $zone): ?Location + { + return $this->createQueryBuilder('l') + ->andWhere('l.name = :name') + ->andWhere('l.zone = :zone') + ->setParameter('name', $name) + ->setParameter('zone', $zone) + ->getQuery() + ->getOneOrNullResult(); + } +} \ No newline at end of file diff --git a/httpdocs/src/Repository/ShippingCompanyRepository.php b/httpdocs/src/Repository/ShippingCompanyRepository.php new file mode 100644 index 0000000..c31ac64 --- /dev/null +++ b/httpdocs/src/Repository/ShippingCompanyRepository.php @@ -0,0 +1,53 @@ +getEntityManager()->persist($company); + + if ($flush) { + $this->getEntityManager()->flush(); + } + } + + public function remove(ShippingCompany $company, bool $flush = false): void + { + $this->getEntityManager()->remove($company); + + if ($flush) { + $this->getEntityManager()->flush(); + } + } + + /** + * @return ShippingCompany[] + */ + public function findAllOrderedByName(): array + { + return $this->createQueryBuilder('sc') + ->orderBy('sc.name', 'ASC') + ->getQuery() + ->getResult(); + } + + public function findOneByName(string $name): ?ShippingCompany + { + return $this->createQueryBuilder('sc') + ->andWhere('sc.name = :name') + ->setParameter('name', $name) + ->getQuery() + ->getOneOrNullResult(); + } +} \ No newline at end of file diff --git a/httpdocs/src/Repository/TripLocationRepository.php b/httpdocs/src/Repository/TripLocationRepository.php new file mode 100644 index 0000000..d0daafd --- /dev/null +++ b/httpdocs/src/Repository/TripLocationRepository.php @@ -0,0 +1,77 @@ +getEntityManager()->persist($tripLocation); + + if ($flush) { + $this->getEntityManager()->flush(); + } + } + + public function remove(TripLocation $tripLocation, bool $flush = false): void + { + $this->getEntityManager()->remove($tripLocation); + + if ($flush) { + $this->getEntityManager()->flush(); + } + } + + /** + * @return TripLocation[] + */ + public function findByTrip(Trip $trip): array + { + return $this->createQueryBuilder('tl') + ->andWhere('tl.trip = :trip') + ->setParameter('trip', $trip) + ->orderBy('tl.date', 'ASC') + ->getQuery() + ->getResult(); + } + + /** + * @return TripLocation[] + */ + public function findByLocation(Location $location): array + { + return $this->createQueryBuilder('tl') + ->andWhere('tl.location = :location') + ->setParameter('location', $location) + ->orderBy('tl.date', 'ASC') + ->getQuery() + ->getResult(); + } + + /** + * @return TripLocation[] + */ + public function findByDateRange(DateTimeImmutable $start, DateTimeImmutable $end): array + { + return $this->createQueryBuilder('tl') + ->andWhere('tl.date >= :start') + ->andWhere('tl.date <= :end') + ->setParameter('start', $start) + ->setParameter('end', $end) + ->orderBy('tl.date', 'ASC') + ->getQuery() + ->getResult(); + } +} \ No newline at end of file diff --git a/httpdocs/src/Repository/TripRepository.php b/httpdocs/src/Repository/TripRepository.php new file mode 100644 index 0000000..219ace4 --- /dev/null +++ b/httpdocs/src/Repository/TripRepository.php @@ -0,0 +1,73 @@ +getEntityManager()->persist($trip); + + if ($flush) { + $this->getEntityManager()->flush(); + } + } + + public function remove(Trip $trip, bool $flush = false): void + { + $this->getEntityManager()->remove($trip); + + if ($flush) { + $this->getEntityManager()->flush(); + } + } + + /** + * @return Trip[] + */ + public function findByVessel(Vessel $vessel): array + { + return $this->createQueryBuilder('t') + ->andWhere('t.vessel = :vessel') + ->setParameter('vessel', $vessel) + ->orderBy('t.startDate', 'DESC') + ->getQuery() + ->getResult(); + } + + /** + * @return Trip[] + */ + public function findByDateRange(DateTimeImmutable $start, DateTimeImmutable $end): array + { + return $this->createQueryBuilder('t') + ->andWhere('t.startDate >= :start') + ->andWhere('t.endDate <= :end') + ->setParameter('start', $start) + ->setParameter('end', $end) + ->orderBy('t.startDate', 'ASC') + ->getQuery() + ->getResult(); + } + + public function findByPilotReference(string $pilotReference): ?Trip + { + return $this->createQueryBuilder('t') + ->andWhere('t.pilotReference = :pilotReference') + ->setParameter('pilotReference', $pilotReference) + ->getQuery() + ->getOneOrNullResult(); + } +} \ No newline at end of file diff --git a/httpdocs/src/Repository/UserTripLocationRepository.php b/httpdocs/src/Repository/UserTripLocationRepository.php new file mode 100644 index 0000000..e8c23d7 --- /dev/null +++ b/httpdocs/src/Repository/UserTripLocationRepository.php @@ -0,0 +1,77 @@ +getEntityManager()->persist($userTripLocation); + + if ($flush) { + $this->getEntityManager()->flush(); + } + } + + public function remove(UserTripLocation $userTripLocation, bool $flush = false): void + { + $this->getEntityManager()->remove($userTripLocation); + + if ($flush) { + $this->getEntityManager()->flush(); + } + } + + /** + * @return UserTripLocation[] + */ + public function findByUserTrip(UserTrip $userTrip): array + { + return $this->createQueryBuilder('utl') + ->andWhere('utl.userTrip = :userTrip') + ->setParameter('userTrip', $userTrip) + ->orderBy('utl.plannedDate', 'ASC') + ->getQuery() + ->getResult(); + } + + /** + * @return UserTripLocation[] + */ + public function findByLocation(Location $location): array + { + return $this->createQueryBuilder('utl') + ->andWhere('utl.location = :location') + ->setParameter('location', $location) + ->orderBy('utl.plannedDate', 'ASC') + ->getQuery() + ->getResult(); + } + + /** + * @return UserTripLocation[] + */ + public function findByDateRange(DateTimeImmutable $start, DateTimeImmutable $end): array + { + return $this->createQueryBuilder('utl') + ->andWhere('utl.plannedDate >= :start') + ->andWhere('utl.plannedDate <= :end') + ->setParameter('start', $start) + ->setParameter('end', $end) + ->orderBy('utl.plannedDate', 'ASC') + ->getQuery() + ->getResult(); + } +} \ No newline at end of file diff --git a/httpdocs/src/Repository/UserTripRepository.php b/httpdocs/src/Repository/UserTripRepository.php new file mode 100644 index 0000000..331ab80 --- /dev/null +++ b/httpdocs/src/Repository/UserTripRepository.php @@ -0,0 +1,77 @@ +getEntityManager()->persist($userTrip); + + if ($flush) { + $this->getEntityManager()->flush(); + } + } + + public function remove(UserTrip $userTrip, bool $flush = false): void + { + $this->getEntityManager()->remove($userTrip); + + if ($flush) { + $this->getEntityManager()->flush(); + } + } + + /** + * @return UserTrip[] + */ + public function findByTrip(Trip $trip): array + { + return $this->createQueryBuilder('ut') + ->andWhere('ut.trip = :trip') + ->setParameter('trip', $trip) + ->orderBy('ut.startDate', 'ASC') + ->getQuery() + ->getResult(); + } + + /** + * @return UserTrip[] + */ + public function findByUser(User $user): array + { + return $this->createQueryBuilder('ut') + ->andWhere('ut.user = :user') + ->setParameter('user', $user) + ->orderBy('ut.startDate', 'DESC') + ->getQuery() + ->getResult(); + } + + /** + * @return UserTrip[] + */ + public function findByDateRange(DateTimeImmutable $start, DateTimeImmutable $end): array + { + return $this->createQueryBuilder('ut') + ->andWhere('ut.startDate >= :start') + ->andWhere('ut.endDate <= :end') + ->setParameter('start', $start) + ->setParameter('end', $end) + ->orderBy('ut.startDate', 'ASC') + ->getQuery() + ->getResult(); + } +} \ No newline at end of file diff --git a/httpdocs/src/Repository/UserTripWorkLogRepository.php b/httpdocs/src/Repository/UserTripWorkLogRepository.php new file mode 100644 index 0000000..57a9a36 --- /dev/null +++ b/httpdocs/src/Repository/UserTripWorkLogRepository.php @@ -0,0 +1,90 @@ +getEntityManager()->persist($workLog); + + if ($flush) { + $this->getEntityManager()->flush(); + } + } + + public function remove(UserTripWorkLog $workLog, bool $flush = false): void + { + $this->getEntityManager()->remove($workLog); + + if ($flush) { + $this->getEntityManager()->flush(); + } + } + + /** + * @return UserTripWorkLog[] + */ + public function findByUserTrip(UserTrip $userTrip): array + { + return $this->createQueryBuilder('wl') + ->andWhere('wl.userTrip = :userTrip') + ->setParameter('userTrip', $userTrip) + ->orderBy('wl.startDate', 'ASC') + ->getQuery() + ->getResult(); + } + + /** + * @return UserTripWorkLog[] + */ + public function findByStartLocation(Location $location): array + { + return $this->createQueryBuilder('wl') + ->andWhere('wl.startLocation = :location') + ->setParameter('location', $location) + ->orderBy('wl.startDate', 'ASC') + ->getQuery() + ->getResult(); + } + + /** + * @return UserTripWorkLog[] + */ + public function findByEndLocation(Location $location): array + { + return $this->createQueryBuilder('wl') + ->andWhere('wl.endLocation = :location') + ->setParameter('location', $location) + ->orderBy('wl.startDate', 'ASC') + ->getQuery() + ->getResult(); + } + + /** + * @return UserTripWorkLog[] + */ + public function findByDateRange(DateTimeImmutable $start, DateTimeImmutable $end): array + { + return $this->createQueryBuilder('wl') + ->andWhere('wl.startDate >= :start') + ->andWhere('wl.endDate <= :end') + ->setParameter('start', $start) + ->setParameter('end', $end) + ->orderBy('wl.startDate', 'ASC') + ->getQuery() + ->getResult(); + } +} \ No newline at end of file diff --git a/httpdocs/src/Repository/VesselRepository.php b/httpdocs/src/Repository/VesselRepository.php new file mode 100644 index 0000000..6ca436a --- /dev/null +++ b/httpdocs/src/Repository/VesselRepository.php @@ -0,0 +1,58 @@ +getEntityManager()->persist($vessel); + + if ($flush) { + $this->getEntityManager()->flush(); + } + } + + public function remove(Vessel $vessel, bool $flush = false): void + { + $this->getEntityManager()->remove($vessel); + + if ($flush) { + $this->getEntityManager()->flush(); + } + } + + /** + * @return Vessel[] + */ + public function findByCompany(ShippingCompany $company): array + { + return $this->createQueryBuilder('v') + ->andWhere('v.company = :company') + ->setParameter('company', $company) + ->orderBy('v.name', 'ASC') + ->getQuery() + ->getResult(); + } + + public function findOneByNameAndCompany(string $name, ShippingCompany $company): ?Vessel + { + return $this->createQueryBuilder('v') + ->andWhere('v.name = :name') + ->andWhere('v.company = :company') + ->setParameter('name', $name) + ->setParameter('company', $company) + ->getQuery() + ->getOneOrNullResult(); + } +} \ No newline at end of file diff --git a/httpdocs/src/Repository/ZoneRepository.php b/httpdocs/src/Repository/ZoneRepository.php new file mode 100644 index 0000000..3817e4f --- /dev/null +++ b/httpdocs/src/Repository/ZoneRepository.php @@ -0,0 +1,53 @@ +getEntityManager()->persist($zone); + + if ($flush) { + $this->getEntityManager()->flush(); + } + } + + public function remove(Zone $zone, bool $flush = false): void + { + $this->getEntityManager()->remove($zone); + + if ($flush) { + $this->getEntityManager()->flush(); + } + } + + public function findByName(string $name): ?Zone + { + return $this->createQueryBuilder('z') + ->andWhere('z.name = :name') + ->setParameter('name', $name) + ->getQuery() + ->getOneOrNullResult(); + } + + /** + * @return Zone[] + */ + public function findAllOrderedByName(): array + { + return $this->createQueryBuilder('z') + ->orderBy('z.name', 'ASC') + ->getQuery() + ->getResult(); + } +} \ No newline at end of file