You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -853,7 +855,9 @@ export type ItemInstancesTargetSchema<
853
855
* This interface was referenced by `Item`'s JSON-Schema
854
856
* via the `instances.hrefSchema` link.
855
857
*/
856
-
exporttypeItemInstancesHrefSchema={
858
+
exporttypeItemInstancesHrefSchema<
859
+
DextendsItemTypeDefinition=ItemTypeDefinition,
860
+
>={
857
861
/**
858
862
* For Modular Content, Structured Text and Single Block fields. If set, returns full payload for nested blocks instead of IDs
859
863
*/
@@ -877,9 +881,7 @@ export type ItemInstancesHrefSchema = {
877
881
/**
878
882
* 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.
879
883
*/
880
-
fields?: {
881
-
[k: string]: unknown;
882
-
};
884
+
fields?: ToItemHrefSchemaField<D>;
883
885
/**
884
886
* When set, only valid records are included in the results.
885
887
*/
@@ -906,7 +908,7 @@ export type ItemInstancesHrefSchema = {
906
908
/**
907
909
* Fields used to order results. You **must** specify also `filter[type]` with one element only to be able use this option. Format: `<field_name>_(ASC|DESC)`, where `<field_name>` can be either the API key of a model's field, or one of the following meta columns: `id`, `_updated_at`, `_created_at`, `_status`, `_published_at`, `_first_published_at`, `_publication_scheduled_at`, `_unpublishing_scheduled_at`, `_is_valid`, `position` (only for sortable models). You can pass multiple comma separated rules.
908
910
*/
909
-
order_by?: string;
911
+
order_by?: ToItemHrefSchemaOrderBy<D>;
910
912
/**
911
913
* Whether you want the currently published versions (`published`, default) of your records, or the latest available (`current`)
Copy file name to clipboardExpand all lines: packages/cma-client/src/generated/RawApiTypes.ts
+7-5Lines changed: 7 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,8 @@ import type {
9
9
ToItemAttributes,
10
10
ToItemAttributesInNestedResponse,
11
11
ToItemAttributesInRequest,
12
+
ToItemHrefSchemaField,
13
+
ToItemHrefSchemaOrderBy,
12
14
}from'../utilities/itemDefinition';
13
15
14
16
exporttypeField=FieldStableShell;
@@ -665,7 +667,9 @@ export type BuildEventInstancesHrefSchema = {
665
667
* This interface was referenced by `Item`'s JSON-Schema
666
668
* via the `instances.hrefSchema` link.
667
669
*/
668
-
exporttypeItemInstancesHrefSchema={
670
+
exporttypeItemInstancesHrefSchema<
671
+
DextendsItemTypeDefinition=ItemTypeDefinition,
672
+
>={
669
673
/**
670
674
* For Modular Content, Structured Text and Single Block fields. If set, returns full payload for nested blocks instead of IDs
671
675
*/
@@ -689,9 +693,7 @@ export type ItemInstancesHrefSchema = {
689
693
/**
690
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.
691
695
*/
692
-
fields?: {
693
-
[k: string]: unknown;
694
-
};
696
+
fields?: ToItemHrefSchemaField<D>;
695
697
/**
696
698
* When set, only valid records are included in the results.
697
699
*/
@@ -718,7 +720,7 @@ export type ItemInstancesHrefSchema = {
718
720
/**
719
721
* Fields used to order results. You **must** specify also `filter[type]` with one element only to be able use this option. Format: `<field_name>_(ASC|DESC)`, where `<field_name>` can be either the API key of a model's field, or one of the following meta columns: `id`, `_updated_at`, `_created_at`, `_status`, `_published_at`, `_first_published_at`, `_publication_scheduled_at`, `_unpublishing_scheduled_at`, `_is_valid`, `position` (only for sortable models). You can pass multiple comma separated rules.
720
722
*/
721
-
order_by?: string;
723
+
order_by?: ToItemHrefSchemaOrderBy<D>;
722
724
/**
723
725
* Whether you want the currently published versions (`published`, default) of your records, or the latest available (`current`)
0 commit comments