Skip to content

Commit 92f38b1

Browse files
authored
Merge pull request #41 from datocms/add-smart-tags-detections-to-schema
Add smart tags detections to schema
2 parents fa3ca97 + ab50ce5 commit 92f38b1

6 files changed

Lines changed: 60 additions & 12 deletions

File tree

packages/cma-client-node/package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/cma-client/package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/cma-client/src/generated/ApiTypes.ts

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -872,19 +872,19 @@ export type ItemInstancesHrefSchema<
872872
*/
873873
filter?: {
874874
/**
875-
* Record (or block record) IDs to fetch, comma separated. If you use this filter, you _must not_ use `filter[type]` or `filter[fields]`
875+
* Record (or block record) IDs to fetch, comma separated. If you use this filter, you _must not_ use `filter[type]`. You can combine it with meta fields (like `_published_at`, `_status`), but _must not_ use model-specific fields
876876
*/
877877
ids?: string;
878878
/**
879-
* Model ID or `api_key` to filter. If you use this filter, you _must not_ use `filter[ids]`. Comma separated values are accepted, but you _must not_ use `filter[fields]` in this case
879+
* Model/Block model ID or `api_key` to filter. If you use this filter, you _must not_ use `filter[ids]`. When passing a single element, you can use both meta fields and model-specific fields (note: model-specific fields only work with models, not block models). When passing multiple comma-separated values, you can use meta fields but _must not_ use model-specific fields
880880
*/
881881
type?: string;
882882
/**
883-
* Textual query to match. You _must not_ use `filter[ids]`. If `locale` is defined, search within that locale. Otherwise environment's main locale will be used.
883+
* Textual query to match. Can be combined with other filters. When used, only records (not blocks) are returned. If `locale` is defined, search within that locale. Otherwise environment's main locale will be used.
884884
*/
885885
query?: string;
886886
/**
887-
* Same as [GraphQL API records filters](/docs/content-delivery-api/filtering-records): you must use square brackets to indicate nesting levels. E.g. if you wanna [filter by parent record](/docs/content-delivery-api/filtering-records#parent) in a tree of records, you must use `filter[fields][parent][eq]=<ID_VALUE>`. Use snake_case for fields names. If `locale` is defined, search within that locale. Otherwise environment's main locale will be used.
887+
* Filter by record fields. Meta fields (like `_published_at`, `_status`) can be used in most cases. Model-specific fields (like `title`, `name`) require `filter[type]` to specify a single model, and only work with models (not block models). Same syntax as [GraphQL API records filters](/docs/content-delivery-api/filtering-records): use square brackets to indicate nesting levels. E.g. `filter[fields][parent][eq]=<ID_VALUE>`. Use snake_case for field names. If `locale` is defined, search within that locale. Otherwise environment's main locale will be used.
888888
*/
889889
fields?: ToItemHrefSchemaField<D>;
890890
/**
@@ -953,7 +953,7 @@ export type ItemSelfHrefSchema = {
953953
*/
954954
nested?: boolean;
955955
/**
956-
* Whether you want the currently published versions (`published`, default) of your records, or the latest available (`current`)
956+
* Whether you want the currently published versions (`published`) of your records, or the latest available (`current`, default)
957957
*/
958958
version?: string;
959959
[k: string]: unknown;
@@ -3856,6 +3856,10 @@ export type SitePlan = {
38563856
* The number of available encoding seconds to Mux.com
38573857
*/
38583858
mux_encoding_seconds: null | number;
3859+
/**
3860+
* The number of images you can analyze for smart tags detections
3861+
*/
3862+
smart_tags_detections: null | number;
38593863
/**
38603864
* The number of different API tokens you can generate, each which different permissions
38613865
*/
@@ -4092,6 +4096,10 @@ export type SitePlanAttributes = {
40924096
* The number of available encoding seconds to Mux.com
40934097
*/
40944098
mux_encoding_seconds: null | number;
4099+
/**
4100+
* The number of images you can analyze for smart tags detections
4101+
*/
4102+
smart_tags_detections: null | number;
40954103
/**
40964104
* The number of different API tokens you can generate, each which different permissions
40974105
*/
@@ -10643,6 +10651,10 @@ export type DailyUsage = {
1064310651
* Video encoding seconds
1064410652
*/
1064510653
mux_encoded_seconds: number;
10654+
/**
10655+
* Number of images analyzed for smart tags
10656+
*/
10657+
smart_tags_detections: number;
1064610658
};
1064710659
/**
1064810660
* JSON API data
@@ -10697,6 +10709,10 @@ export type DailyUsageAttributes = {
1069710709
* Video encoding seconds
1069810710
*/
1069910711
mux_encoded_seconds: number;
10712+
/**
10713+
* Number of images analyzed for smart tags
10714+
*/
10715+
smart_tags_detections: number;
1070010716
};
1070110717
/**
1070210718
* You can use counters to analyze your project's data consumption over a period of time. Counters are especially useful if your project is exceeding its API calls/traffic quota limits, to better understand where and how requests are originating. Counters are updated every minute, so you can debug in real-time the results of your changes.

packages/cma-client/src/generated/RawApiTypes.ts

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -679,19 +679,19 @@ export type ItemInstancesHrefSchema<
679679
*/
680680
filter?: {
681681
/**
682-
* Record (or block record) IDs to fetch, comma separated. If you use this filter, you _must not_ use `filter[type]` or `filter[fields]`
682+
* Record (or block record) IDs to fetch, comma separated. If you use this filter, you _must not_ use `filter[type]`. You can combine it with meta fields (like `_published_at`, `_status`), but _must not_ use model-specific fields
683683
*/
684684
ids?: string;
685685
/**
686-
* Model ID or `api_key` to filter. If you use this filter, you _must not_ use `filter[ids]`. Comma separated values are accepted, but you _must not_ use `filter[fields]` in this case
686+
* Model/Block model ID or `api_key` to filter. If you use this filter, you _must not_ use `filter[ids]`. When passing a single element, you can use both meta fields and model-specific fields (note: model-specific fields only work with models, not block models). When passing multiple comma-separated values, you can use meta fields but _must not_ use model-specific fields
687687
*/
688688
type?: string;
689689
/**
690-
* Textual query to match. You _must not_ use `filter[ids]`. If `locale` is defined, search within that locale. Otherwise environment's main locale will be used.
690+
* Textual query to match. Can be combined with other filters. When used, only records (not blocks) are returned. If `locale` is defined, search within that locale. Otherwise environment's main locale will be used.
691691
*/
692692
query?: string;
693693
/**
694-
* Same as [GraphQL API records filters](/docs/content-delivery-api/filtering-records): you must use square brackets to indicate nesting levels. E.g. if you wanna [filter by parent record](/docs/content-delivery-api/filtering-records#parent) in a tree of records, you must use `filter[fields][parent][eq]=<ID_VALUE>`. Use snake_case for fields names. If `locale` is defined, search within that locale. Otherwise environment's main locale will be used.
694+
* Filter by record fields. Meta fields (like `_published_at`, `_status`) can be used in most cases. Model-specific fields (like `title`, `name`) require `filter[type]` to specify a single model, and only work with models (not block models). Same syntax as [GraphQL API records filters](/docs/content-delivery-api/filtering-records): use square brackets to indicate nesting levels. E.g. `filter[fields][parent][eq]=<ID_VALUE>`. Use snake_case for field names. If `locale` is defined, search within that locale. Otherwise environment's main locale will be used.
695695
*/
696696
fields?: ToItemHrefSchemaField<D>;
697697
/**
@@ -752,7 +752,7 @@ export type ItemSelfHrefSchema = {
752752
*/
753753
nested?: boolean;
754754
/**
755-
* Whether you want the currently published versions (`published`, default) of your records, or the latest available (`current`)
755+
* Whether you want the currently published versions (`published`) of your records, or the latest available (`current`, default)
756756
*/
757757
version?: string;
758758
[k: string]: unknown;
@@ -3350,6 +3350,10 @@ export type SitePlanAttributes = {
33503350
* The number of available encoding seconds to Mux.com
33513351
*/
33523352
mux_encoding_seconds: null | number;
3353+
/**
3354+
* The number of images you can analyze for smart tags detections
3355+
*/
3356+
smart_tags_detections: null | number;
33533357
/**
33543358
* The number of different API tokens you can generate, each which different permissions
33553359
*/
@@ -11005,6 +11009,10 @@ export type DailyUsageAttributes = {
1100511009
* Video encoding seconds
1100611010
*/
1100711011
mux_encoded_seconds: number;
11012+
/**
11013+
* Number of images analyzed for smart tags
11014+
*/
11015+
smart_tags_detections: number;
1100811016
};
1100911017
/**
1101011018
* JSON API data

packages/dashboard-client/src/generated/ApiTypes.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2135,6 +2135,10 @@ export type SitePlan = {
21352135
* The number of available encoding seconds to Mux.com
21362136
*/
21372137
mux_encoding_seconds: null | number;
2138+
/**
2139+
* The number of images you can analyze for smart tags detections
2140+
*/
2141+
smart_tags_detections: null | number;
21382142
/**
21392143
* The number of different API tokens you can generate, each which different permissions
21402144
*/
@@ -2361,6 +2365,10 @@ export type SitePlanAttributes = {
23612365
* The number of available encoding seconds to Mux.com
23622366
*/
23632367
mux_encoding_seconds: null | number;
2368+
/**
2369+
* The number of images you can analyze for smart tags detections
2370+
*/
2371+
smart_tags_detections: null | number;
23642372
/**
23652373
* The number of different API tokens you can generate, each which different permissions
23662374
*/
@@ -3106,6 +3114,10 @@ export type DailyUsage = {
31063114
* Video encoding seconds
31073115
*/
31083116
mux_encoded_seconds: number;
3117+
/**
3118+
* Number of images analyzed for smart tags
3119+
*/
3120+
smart_tags_detections: number;
31093121
site: SiteData;
31103122
};
31113123
/**
@@ -3161,6 +3173,10 @@ export type DailyUsageAttributes = {
31613173
* Video encoding seconds
31623174
*/
31633175
mux_encoded_seconds: number;
3176+
/**
3177+
* Number of images analyzed for smart tags
3178+
*/
3179+
smart_tags_detections: number;
31643180
};
31653181
/**
31663182
* JSON API links

packages/dashboard-client/src/generated/RawApiTypes.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2510,6 +2510,10 @@ export type SitePlanAttributes = {
25102510
* The number of available encoding seconds to Mux.com
25112511
*/
25122512
mux_encoding_seconds: null | number;
2513+
/**
2514+
* The number of images you can analyze for smart tags detections
2515+
*/
2516+
smart_tags_detections: null | number;
25132517
/**
25142518
* The number of different API tokens you can generate, each which different permissions
25152519
*/
@@ -3014,6 +3018,10 @@ export type DailyUsageAttributes = {
30143018
* Video encoding seconds
30153019
*/
30163020
mux_encoded_seconds: number;
3021+
/**
3022+
* Number of images analyzed for smart tags
3023+
*/
3024+
smart_tags_detections: number;
30173025
};
30183026
/**
30193027
* JSON API links

0 commit comments

Comments
 (0)