Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .aspect/bazelrc/convenience.bazelrc
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
# Attempt to build & test every target whose prerequisites were successfully built.
# Docs: https://bazel.build/docs/user-manual#keep-going
build --keep_going
common --keep_going

# Output test errors to stderr so users don't have to `cat` or open test failure log files when test
# fail. This makes the log noisier in exchange for reducing the time-to-feedback on test failures for
# users.
# Docs: https://bazel.build/docs/user-manual#test-output
test --test_output=errors
common --test_output=errors

# Show the output files created by builds that requested more than one target. This helps users
# locate the build outputs in more cases
# Docs: https://bazel.build/docs/user-manual#show-result
build --show_result=20
common --show_result=20

# Bazel picks up host-OS-specific config lines from bazelrc files. For example, if the host OS is
# Linux and you run bazel build, Bazel picks up lines starting with build:linux. Supported OS
Expand Down
16 changes: 8 additions & 8 deletions .aspect/bazelrc/correctness.bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
# It should be flipped to `--remote_upload_local_results` on CI
# by using `--bazelrc=.aspect/bazelrc/ci.bazelrc`.
# Docs: https://bazel.build/reference/command-line-reference#flag--remote_upload_local_results
build --noremote_upload_local_results
common --noremote_upload_local_results

# Don't allow network access for build actions in the sandbox.
# Ensures that you don't accidentally make non-hermetic actions/tests which depend on remote
# services.
# Developers should tag targets with `tags=["requires-network"]` to opt-out of the enforcement.
# Docs: https://bazel.build/reference/command-line-reference#flag--sandbox_default_allow_network
build --sandbox_default_allow_network=false
common --sandbox_default_allow_network=false

# Warn if a test's timeout is significantly longer than the test's actual execution time.
# Bazel's default for test_timeout is medium (5 min), but most tests should instead be short (1 min).
Expand All @@ -19,7 +19,7 @@ build --sandbox_default_allow_network=false
# For instance, a test that normally executes in a minute or two should not have a timeout of
# ETERNAL or LONG as these are much, much too generous.
# Docs: https://bazel.build/docs/user-manual#test-verbose-timeout-warnings
test --test_verbose_timeout_warnings
common --test_verbose_timeout_warnings

# Allow the Bazel server to check directory sources for changes. Ensures that the Bazel server
# notices when a directory changes, if you have a directory listed in the srcs of some target.
Expand All @@ -33,22 +33,22 @@ startup --host_jvm_args=-DBAZEL_TRACK_SOURCE_DIRECTORIES=1
# Allow exclusive tests to run in the sandbox. Fixes a bug where Bazel doesn't enable sandboxing for
# tests with `tags=["exclusive"]`.
# Docs: https://bazel.build/reference/command-line-reference#flag--incompatible_exclusive_test_sandboxed
test --incompatible_exclusive_test_sandboxed
common --incompatible_exclusive_test_sandboxed

# Use a static value for `PATH` and does not inherit `LD_LIBRARY_PATH`. Doesn't let environment
# variables like `PATH` sneak into the build, which can cause massive cache misses when they change.
# Use `--action_env=ENV_VARIABLE` if you want to inherit specific environment variables from the
# client, but note that doing so can prevent cross-user caching if a shared cache is used.
# Docs: https://bazel.build/reference/command-line-reference#flag--incompatible_strict_action_env
build --incompatible_strict_action_env
common --incompatible_strict_action_env

# Do not automatically create `__init__.py` files in the runfiles of Python targets. Fixes the wrong
# default that comes from Google's internal monorepo by using `__init__.py` to delimit a Python
# package. Precisely, when a `py_binary` or `py_test` target has `legacy_create_init` set to `auto (the
# default), it is treated as false if and only if this flag is set. See
# https://github.com/bazelbuild/bazel/issues/10076.
# Docs: https://bazel.build/reference/command-line-reference#flag--incompatible_default_to_explicit_init_py
build --incompatible_default_to_explicit_init_py
common --incompatible_default_to_explicit_init_py

# Set default value of `allow_empty` to `False` in `glob()`. This prevents a common mistake when
# attempting to use `glob()` to match files in a subdirectory that is opaque to the current package
Expand All @@ -60,5 +60,5 @@ common --incompatible_disallow_empty_glob
# downloaded on test result cache hits when --remote_download_minimal is enabled, making it impossible
# to generate a full coverage report.
# Docs: https://bazel.build/reference/command-line-reference#flag--experimental_fetch_all_coverage_outputs
# detching remote cache results
test --experimental_fetch_all_coverage_outputs
# ditching remote cache results
common --experimental_fetch_all_coverage_outputs
8 changes: 4 additions & 4 deletions .aspect/bazelrc/debug.bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@

# Stream stdout/stderr output from each test in real-time.
# Docs: https://bazel.build/docs/user-manual#test-output
test:debug --test_output=streamed
common:debug --test_output=streamed

# Run one test at a time.
# Docs: https://bazel.build/reference/command-line-reference#flag--test_strategy
test:debug --test_strategy=exclusive
common:debug --test_strategy=exclusive

# Prevent long running tests from timing out.
# Docs: https://bazel.build/docs/user-manual#test-timeout
test:debug --test_timeout=9999
common:debug --test_timeout=9999

# Always run tests even if they have cached results.
# Docs: https://bazel.build/docs/user-manual#cache-test-results
test:debug --nocache_test_results
common:debug --nocache_test_results
2 changes: 1 addition & 1 deletion .aspect/bazelrc/javascript.bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
# details.
# Docs: https://nodejs.org/en/docs/guides/debugging-getting-started/#command-line-options
run:debug -- --node_options=--inspect-brk
test:debug --test_env=NODE_OPTIONS=--inspect-brk
common:debug --test_env=NODE_OPTIONS=--inspect-brk
6 changes: 3 additions & 3 deletions .aspect/bazelrc/performance.bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# build.
# No longer experimental in Bazel 6: https://github.com/bazelbuild/bazel/commit/c1a95501a5611878e5cc43a3cc531f2b9e47835b
# Docs: https://bazel.build/reference/command-line-reference#flag--reuse_sandbox_directories
build --experimental_reuse_sandbox_directories
common --experimental_reuse_sandbox_directories

# Avoid creating a runfiles tree for binaries or tests until it is needed.
# Docs: https://bazel.build/reference/command-line-reference#flag--build_runfile_links
Expand All @@ -12,8 +12,8 @@ build --experimental_reuse_sandbox_directories
# This may break local workflows that `build` a binary target, then run the resulting program
# outside of `bazel run`. In those cases, the script will need to call
# `bazel build --build_runfile_links //my/binary:target` and then execute the resulting program.
build --nobuild_runfile_links
common --nobuild_runfile_links

# Needed prior to Bazel 8; see
# https://github.com/bazelbuild/bazel/issues/20577
coverage --build_runfile_links
common --build_runfile_links
7 changes: 6 additions & 1 deletion BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,12 @@ validator_bin.openapi_examples_validator_test(
"--no-additional-properties",
"$(rootpath //:{}.json)".format(BUNDLE_NAME),
],
data = ["//:{}.json".format(BUNDLE_NAME)],
# openapi-examples-validator@7 requires js-yaml at runtime but does not
# declare it as a dependency; provide it so it resolves at the root.
data = [
"//:{}.json".format(BUNDLE_NAME),
"//:node_modules/js-yaml",
],
)

postman_bin.openapi2postmanv2(
Expand Down
22 changes: 14 additions & 8 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,23 @@ workspace(
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive", "http_file")

# Fetch Aspect's rules_js so we can install our npm dependencies
# v2.9.2 (still rules_js 2.x) ships a Node toolchain list that includes
# Node 22.x, required to register a Node >=22.12 toolchain below.
http_archive(
name = "aspect_rules_js",
sha256 = "7ee67690ed4d6b5c8cbf6d47bb68b639192a29397a9fe3d513981fecc25a5653",
strip_prefix = "rules_js-2.3.2",
url = "https://github.com/aspect-build/rules_js/releases/download/v2.3.2/rules_js-v2.3.2.tar.gz",
sha256 = "1774702556e1d0b83b7f5eb58ec95676afe6481c62596b53f5b96575bacccf73",
strip_prefix = "rules_js-2.9.2",
url = "https://github.com/aspect-build/rules_js/releases/download/v2.9.2/rules_js-v2.9.2.tar.gz",
)

# Fetch Aspect's rules_ts for TypeScript support
# v3.8.10 is the first release whose mirrored version list includes
# typescript 6.0.3 (see ts/private/versions.bzl), keeping the hermetic fetch.
http_archive(
name = "aspect_rules_ts",
sha256 = "d584e4bc80674d046938563678117d17df962fe105395f6b1efe2e8a248b8100",
strip_prefix = "rules_ts-3.5.1",
url = "https://github.com/aspect-build/rules_ts/releases/download/v3.5.1/rules_ts-v3.5.1.tar.gz",
sha256 = "06a432998e3f0b4c1057926b3946b51057413c6ffcb19bbc5e2674191a061063",
strip_prefix = "rules_ts-3.8.10",
url = "https://github.com/aspect-build/rules_ts/releases/download/v3.8.10/rules_ts-v3.8.10.tar.gz",
)

# Register js dependencies
Expand All @@ -38,9 +42,11 @@ rules_ts_dependencies(
)

# Set up toolchains
load("@aspect_rules_js//js:toolchains.bzl", "DEFAULT_NODE_VERSION", "rules_js_register_toolchains")
load("@aspect_rules_js//js:toolchains.bzl", "rules_js_register_toolchains")

rules_js_register_toolchains(node_version = DEFAULT_NODE_VERSION)
# Node 22.x (>=22.12) supersedes the EOL Node 18 default and enables require()
# of the now ESM-only remark/unified toolchain used by the doc generator.
rules_js_register_toolchains(node_version = "22.14.0")

# Set up npm
load("@aspect_rules_js//npm:repositories.bzl", "npm_translate_lock")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

<h2 id="optional-parameters">Optional parameters</h2>

- <h3 class="parameter-name" id="ip_address">ip_address</h3>
- <h3 class="parameter-name" id="ip_address">ip_address</h3>

The ip_address you want to geolocate. For **server call with private_key** only. Without this parameter, the API will geolocate the IP Address attached to the raw TCP request.
The ip\_address you want to geolocate. For **server call with private\_key** only. Without this parameter, the API will geolocate the IP Address attached to the raw TCP request.


<p style="text-align: right; font-size: smaller;">Generated from the <a data-label="openapi-github" href="https://github.com/woosmap/openapi-specification" title="Woosmap OpenAPI Specification" class="external">OpenAPI specification</a>.
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -4,72 +4,71 @@

<h2 id="optional-parameters">Optional parameters</h2>

- <h3 class="parameter-name" id="ip_address">ip_address</h3>
- <h3 class="parameter-name" id="ip_address">ip_address</h3>

The ip_address you want to geolocate. For **server call with private_key** only. Without this parameter, the API will geolocate the IP Address attached to the raw TCP request.
The ip\_address you want to geolocate. For **server call with private\_key** only. Without this parameter, the API will geolocate the IP Address attached to the raw TCP request.

- <h3 class="parameter-name" id="limit">limit</h3>
- <h3 class="parameter-name" id="limit">limit</h3>

To limit number of assets retrieved from an IP location.
To limit number of assets retrieved from an IP location.

- <h3 class="parameter-name" id="query">query</h3>
- <h3 class="parameter-name" id="query">query</h3>

Search query combining one or more search clauses. Each search clause is made up of three parts structured as `field` `:` `operator` `value`. , e.g. `name:="My cool store"`
Search query combining one or more search clauses. Each search clause is made up of three parts structured as `field` `:` `operator` `value`. , e.g. `name:="My cool store"`

### Vocabulary
### Vocabulary

- **Field**: attribute of the Store that is searched, e.g. the attribute `name` of the store.

- **Operator**: test that is performed on the data to provide a match, e.g. `=`.
- **Field**: attribute of the Store that is searched, e.g. the attribute `name` of the store.

- **Operator**: test that is performed on the data to provide a match, e.g. `=`.
Each field has a default operator. If none operator follow the `:`, the default one is used.

- **Value**: the content of the attribute that is tested, e.g. the name of the store `"My cool store"`.
- **Value**: the content of the attribute that is tested, e.g. the name of the store `"My cool store"`.

Combine clauses with the conjunctions `AND` or `OR`, and negate the query with `NOT`.
Combine clauses with the conjunctions `AND` or `OR`, and negate the query with `NOT`.

### Fields
### Fields

- `type`: An element is contained within `type` collection. e.g. `type:"myType"`
- `type`: An element is contained within `type` collection. e.g. `type:"myType"`

- `tag`: An element is contained within `tag` collection. e.g. `tag:"myTag"`
- `tag`: An element is contained within `tag` collection. e.g. `tag:"myTag"`

- `city`: text matching: the value match the `city` field. e.g. `city:="Paris"`
- `city`: text matching: the value match the `city` field. e.g. `city:="Paris"`

- `country`: text matching: the value match the `countryCode` field. e.g. `country:="FR"`
- `country`: text matching: the value match the `countryCode` field. e.g. `country:="FR"`

- `name`: text matching: the value match the `name` field. e.g. `name:="myName"`
- `name`: text matching: the value match the `name` field. e.g. `name:="myName"`

- `idstore`: text matching: the value match the `idstore` field. e.g. `idstore:="myIdStore"`
- `idstore`: text matching: the value match the `idstore` field. e.g. `idstore:="myIdStore"`

- `user`: concerns all fields inside `user_properties`. text matching or numerical comparison. e.g. `user.myAttribute:="myValue"`
- `user`: concerns all fields inside `user_properties`. text matching or numerical comparison. e.g. `user.myAttribute:="myValue"`

- `localized`: used for [localizedNames](https://developers.woosmap.com/products/data-api/data-structure/#localizednames) to search in native language. text matching in collection: the value match one of the the `localizedNames`. e.g. `localized:="centro"`
- `localized`: used for [localizedNames](https://developers.woosmap.com/products/data-api/data-structure/#localizednames) to search in native language. text matching in collection: the value match one of the the `localizedNames`. e.g. `localized:="centro"`

> **userProperties** field has no restriction regarding the data you can put in it (Arrays, Object, Boolean, String, Numeric...) but you can only query for **text matching or numerical comparison**.
> **userProperties** field has no restriction regarding the data you can put in it (Arrays, Object, Boolean, String, Numeric...) but you can only query for **text matching or numerical comparison**.

### Operators
### Operators

- `:` : Default and mandatory operator. For `type` and `tag` fields, define that an element is contained within a collection.
- `:` : Default and mandatory operator. For `type` and `tag` fields, define that an element is contained within a collection.

- `=` : The content of a string or a number is equal to the other.
- `=` : The content of a string or a number is equal to the other.

- `>` : A number is greater than another.
- `>` : A number is greater than another.

- `<` : A number is smaller than another.
- `<` : A number is smaller than another.

- `>=` : A number is greater than or equal to another.
- `>=` : A number is greater than or equal to another.

- `<=` : A number is smaller than or equal to another.
- `<=` : A number is smaller than or equal to another.

- `AND` : Return assets that match both clauses.
- `AND` : Return assets that match both clauses.

- `OR` : Return assets that match either clauses.
- `OR` : Return assets that match either clauses.

- `NOT` : Negates a search clause.
- `NOT` : Negates a search clause.

For compound clauses, you can use parentheses to group clauses together. For example: `(type:"type1" OR type:"type2") AND tag:"hockey"`
You can use `NOT` operator to negates a search clause. For example: `not type:"type1"`
For compound clauses, you can use parentheses to group clauses together. For example: `(type:"type1" OR type:"type2") AND tag:"hockey"`
You can use `NOT` operator to negates a search clause. For example: `not type:"type1"`


<p style="text-align: right; font-size: smaller;">Generated from the <a data-label="openapi-github" href="https://github.com/woosmap/openapi-specification" title="Woosmap OpenAPI Specification" class="external">OpenAPI specification</a>.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
<!--- [START woosmap_http_parameters_geolocationtimezone] -->
<h2 id="required-parameters">Required parameters</h2>

- <h3 class="parameter-name" id="location">location</h3>
- <h3 class="parameter-name" id="location">location</h3>

The location {lat},{lng}
The location {lat},{lng}

<h2 id="optional-parameters">Optional parameters</h2>

- <h3 class="parameter-name" id="timestamp">timestamp</h3>
- <h3 class="parameter-name" id="timestamp">timestamp</h3>

The UTC timestamp
The UTC timestamp


<p style="text-align: right; font-size: smaller;">Generated from the <a data-label="openapi-github" href="https://github.com/woosmap/openapi-specification" title="Woosmap OpenAPI Specification" class="external">OpenAPI specification</a>.
Expand Down
Loading