@uniformdev/assets 20.72.2 → 20.72.3-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +52 -0
- package/dist/index.d.ts +52 -0
- package/package.json +4 -4
package/dist/index.d.mts
CHANGED
|
@@ -1001,6 +1001,58 @@ interface paths {
|
|
|
1001
1001
|
path?: never;
|
|
1002
1002
|
cookie?: never;
|
|
1003
1003
|
};
|
|
1004
|
+
/**
|
|
1005
|
+
* @description In addition to the named parameters below, this endpoint accepts the
|
|
1006
|
+
* following query parameter convention which is pattern-validated and
|
|
1007
|
+
* therefore not declared as named parameters:
|
|
1008
|
+
*
|
|
1009
|
+
* * `filters.<field>[<op>]` — content filtering (documented below).
|
|
1010
|
+
*
|
|
1011
|
+
* #### Content filtering (`filters.*`)
|
|
1012
|
+
*
|
|
1013
|
+
* Filtering narrows list results to assets matching field values. The
|
|
1014
|
+
* allowed field names are project-specific — they come from the project's
|
|
1015
|
+
* asset definitions — which is why `filters.*` parameters are
|
|
1016
|
+
* pattern-validated rather than declared as named parameters.
|
|
1017
|
+
*
|
|
1018
|
+
* Syntax: `filters.<field>[<operator>]=<value>`. `<field>` is one of:
|
|
1019
|
+
*
|
|
1020
|
+
* * A system field such as `name`, `type`, `created`, `modified`,
|
|
1021
|
+
* `entityId`, `creator`, `creatorSubject`, `author`, `authorSubject`,
|
|
1022
|
+
* `categoryId`, `labels`, `labelGroups`, or `uiStatus`.
|
|
1023
|
+
* * An asset field, addressed as `fields.<fieldId>`. Unlike entries and
|
|
1024
|
+
* compositions, asset field filters do not require a single-type
|
|
1025
|
+
* filter — but if the same field ID has differing types across asset
|
|
1026
|
+
* types, HTTP 400 is returned and a single asset type must be
|
|
1027
|
+
* filtered.
|
|
1028
|
+
*
|
|
1029
|
+
* | Operator | Effect |
|
|
1030
|
+
* |---|---|
|
|
1031
|
+
* | `[eq]` / `[neq]` | Exact equality / inequality. |
|
|
1032
|
+
* | `[match]` | Contains (text search) match; text-like fields only. |
|
|
1033
|
+
* | `[starts]` | Prefix match. Value limited to letters, numbers, `_`, `.`, `-`, and spaces. |
|
|
1034
|
+
* | `[lt]` / `[lte]` / `[gt]` / `[gte]` | Comparisons for number, date, and datetime fields (including `created` / `modified`). |
|
|
1035
|
+
* | `[in]` / `[nin]` | Comma-separated list; matches any (OR) / none of the values. |
|
|
1036
|
+
* | `[all]` | Comma-separated list; list-valued fields (e.g. `labels`, multi-selects) must contain every value (AND). |
|
|
1037
|
+
* | `[def]` | `true` or `false`; whether the field has a value at all. |
|
|
1038
|
+
*
|
|
1039
|
+
* Behavior:
|
|
1040
|
+
*
|
|
1041
|
+
* * Values are single strings, or comma-separated lists for `[in]`,
|
|
1042
|
+
* `[nin]`, and `[all]`. Dates accept `YYYY-MM-DD` or a full datetime
|
|
1043
|
+
* string. An empty value is rejected — use `[def]` to test presence.
|
|
1044
|
+
* * Not every operator is valid for every field; the allowed set depends
|
|
1045
|
+
* on the field's type. An unsupported combination returns HTTP 400
|
|
1046
|
+
* with the supported operators listed.
|
|
1047
|
+
* * Malformed keys, unknown operators, and unknown field names return
|
|
1048
|
+
* HTTP 400.
|
|
1049
|
+
*
|
|
1050
|
+
* Examples:
|
|
1051
|
+
*
|
|
1052
|
+
* * `filters.type[eq]=productImage` — only assets of type `productImage`.
|
|
1053
|
+
* * `filters.modified[gte]=2026-01-01` — modified this year.
|
|
1054
|
+
* * `filters.fields.altText[def]=false` — assets missing alt text.
|
|
1055
|
+
*/
|
|
1004
1056
|
get: {
|
|
1005
1057
|
parameters: {
|
|
1006
1058
|
query: {
|
package/dist/index.d.ts
CHANGED
|
@@ -1001,6 +1001,58 @@ interface paths {
|
|
|
1001
1001
|
path?: never;
|
|
1002
1002
|
cookie?: never;
|
|
1003
1003
|
};
|
|
1004
|
+
/**
|
|
1005
|
+
* @description In addition to the named parameters below, this endpoint accepts the
|
|
1006
|
+
* following query parameter convention which is pattern-validated and
|
|
1007
|
+
* therefore not declared as named parameters:
|
|
1008
|
+
*
|
|
1009
|
+
* * `filters.<field>[<op>]` — content filtering (documented below).
|
|
1010
|
+
*
|
|
1011
|
+
* #### Content filtering (`filters.*`)
|
|
1012
|
+
*
|
|
1013
|
+
* Filtering narrows list results to assets matching field values. The
|
|
1014
|
+
* allowed field names are project-specific — they come from the project's
|
|
1015
|
+
* asset definitions — which is why `filters.*` parameters are
|
|
1016
|
+
* pattern-validated rather than declared as named parameters.
|
|
1017
|
+
*
|
|
1018
|
+
* Syntax: `filters.<field>[<operator>]=<value>`. `<field>` is one of:
|
|
1019
|
+
*
|
|
1020
|
+
* * A system field such as `name`, `type`, `created`, `modified`,
|
|
1021
|
+
* `entityId`, `creator`, `creatorSubject`, `author`, `authorSubject`,
|
|
1022
|
+
* `categoryId`, `labels`, `labelGroups`, or `uiStatus`.
|
|
1023
|
+
* * An asset field, addressed as `fields.<fieldId>`. Unlike entries and
|
|
1024
|
+
* compositions, asset field filters do not require a single-type
|
|
1025
|
+
* filter — but if the same field ID has differing types across asset
|
|
1026
|
+
* types, HTTP 400 is returned and a single asset type must be
|
|
1027
|
+
* filtered.
|
|
1028
|
+
*
|
|
1029
|
+
* | Operator | Effect |
|
|
1030
|
+
* |---|---|
|
|
1031
|
+
* | `[eq]` / `[neq]` | Exact equality / inequality. |
|
|
1032
|
+
* | `[match]` | Contains (text search) match; text-like fields only. |
|
|
1033
|
+
* | `[starts]` | Prefix match. Value limited to letters, numbers, `_`, `.`, `-`, and spaces. |
|
|
1034
|
+
* | `[lt]` / `[lte]` / `[gt]` / `[gte]` | Comparisons for number, date, and datetime fields (including `created` / `modified`). |
|
|
1035
|
+
* | `[in]` / `[nin]` | Comma-separated list; matches any (OR) / none of the values. |
|
|
1036
|
+
* | `[all]` | Comma-separated list; list-valued fields (e.g. `labels`, multi-selects) must contain every value (AND). |
|
|
1037
|
+
* | `[def]` | `true` or `false`; whether the field has a value at all. |
|
|
1038
|
+
*
|
|
1039
|
+
* Behavior:
|
|
1040
|
+
*
|
|
1041
|
+
* * Values are single strings, or comma-separated lists for `[in]`,
|
|
1042
|
+
* `[nin]`, and `[all]`. Dates accept `YYYY-MM-DD` or a full datetime
|
|
1043
|
+
* string. An empty value is rejected — use `[def]` to test presence.
|
|
1044
|
+
* * Not every operator is valid for every field; the allowed set depends
|
|
1045
|
+
* on the field's type. An unsupported combination returns HTTP 400
|
|
1046
|
+
* with the supported operators listed.
|
|
1047
|
+
* * Malformed keys, unknown operators, and unknown field names return
|
|
1048
|
+
* HTTP 400.
|
|
1049
|
+
*
|
|
1050
|
+
* Examples:
|
|
1051
|
+
*
|
|
1052
|
+
* * `filters.type[eq]=productImage` — only assets of type `productImage`.
|
|
1053
|
+
* * `filters.modified[gte]=2026-01-01` — modified this year.
|
|
1054
|
+
* * `filters.fields.altText[def]=false` — assets missing alt text.
|
|
1055
|
+
*/
|
|
1004
1056
|
get: {
|
|
1005
1057
|
parameters: {
|
|
1006
1058
|
query: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/assets",
|
|
3
|
-
"version": "20.72.
|
|
3
|
+
"version": "20.72.3-alpha.3+3e396259ba",
|
|
4
4
|
"description": "Uniform Assets",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -36,11 +36,11 @@
|
|
|
36
36
|
"access": "public"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@uniformdev/context": "20.72.
|
|
40
|
-
"@uniformdev/files": "20.72.
|
|
39
|
+
"@uniformdev/context": "20.72.3-alpha.3+3e396259ba",
|
|
40
|
+
"@uniformdev/files": "20.72.3-alpha.3+3e396259ba"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"ts-xor": "^1.3.0"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "3e396259bafc25b69071cda4102cea340b866922"
|
|
46
46
|
}
|