@datocms/cma-client 6.4.0 → 6.7.0
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/cjs/generated/Client.js +1 -1
- package/dist/cjs/generated/resources/Field.js +16 -12
- package/dist/cjs/generated/resources/Field.js.map +1 -1
- package/dist/cjs/generated/resources/Fieldset.js +8 -6
- package/dist/cjs/generated/resources/Fieldset.js.map +1 -1
- package/dist/cjs/generated/resources/Item.js +4 -4
- package/dist/cjs/generated/resources/ItemType.js +12 -9
- package/dist/cjs/generated/resources/ItemType.js.map +1 -1
- package/dist/esm/generated/ApiTypes.d.ts +181 -0
- package/dist/esm/generated/Client.js +1 -1
- package/dist/esm/generated/RawApiTypes.d.ts +181 -0
- package/dist/esm/generated/resources/Field.d.ts +8 -8
- package/dist/esm/generated/resources/Field.js +16 -12
- package/dist/esm/generated/resources/Field.js.map +1 -1
- package/dist/esm/generated/resources/Fieldset.d.ts +4 -4
- package/dist/esm/generated/resources/Fieldset.js +8 -6
- package/dist/esm/generated/resources/Fieldset.js.map +1 -1
- package/dist/esm/generated/resources/Item.d.ts +4 -4
- package/dist/esm/generated/resources/Item.js +4 -4
- package/dist/esm/generated/resources/ItemType.d.ts +6 -6
- package/dist/esm/generated/resources/ItemType.js +12 -9
- package/dist/esm/generated/resources/ItemType.js.map +1 -1
- package/dist/types/generated/ApiTypes.d.ts +181 -0
- package/dist/types/generated/RawApiTypes.d.ts +181 -0
- package/dist/types/generated/resources/Field.d.ts +8 -8
- package/dist/types/generated/resources/Fieldset.d.ts +4 -4
- package/dist/types/generated/resources/Item.d.ts +4 -4
- package/dist/types/generated/resources/ItemType.d.ts +6 -6
- package/package.json +1 -1
- package/resources.json +11 -2
- package/src/generated/ApiTypes.ts +181 -0
- package/src/generated/Client.ts +1 -1
- package/src/generated/RawApiTypes.ts +181 -0
- package/src/generated/resources/Field.ts +38 -13
- package/src/generated/resources/Fieldset.ts +17 -5
- package/src/generated/resources/Item.ts +4 -4
- package/src/generated/resources/ItemType.ts +27 -11
|
@@ -226,6 +226,13 @@ export type AccountType = 'account';
|
|
|
226
226
|
* via the `definition` "id".
|
|
227
227
|
*/
|
|
228
228
|
export type AccountIdentity = string;
|
|
229
|
+
/**
|
|
230
|
+
* Attributes and relationships to return for each `account` that this endpoint returns.
|
|
231
|
+
*
|
|
232
|
+
* This interface was referenced by `Account`'s JSON-Schema
|
|
233
|
+
* via the `definition` "sparse_fieldset".
|
|
234
|
+
*/
|
|
235
|
+
export type AccountSparseFieldset = string;
|
|
229
236
|
/**
|
|
230
237
|
* This interface was referenced by `Organization`'s JSON-Schema
|
|
231
238
|
* via the `definition` "type".
|
|
@@ -241,6 +248,13 @@ export type OrganizationType = 'organization';
|
|
|
241
248
|
* via the `definition` "id".
|
|
242
249
|
*/
|
|
243
250
|
export type OrganizationIdentity = string;
|
|
251
|
+
/**
|
|
252
|
+
* Attributes and relationships to return for each `organization` that this endpoint returns.
|
|
253
|
+
*
|
|
254
|
+
* This interface was referenced by `Organization`'s JSON-Schema
|
|
255
|
+
* via the `definition` "sparse_fieldset".
|
|
256
|
+
*/
|
|
257
|
+
export type OrganizationSparseFieldset = string;
|
|
244
258
|
/**
|
|
245
259
|
* This interface was referenced by `User`'s JSON-Schema
|
|
246
260
|
* via the `me.hrefSchema` link.
|
|
@@ -457,6 +471,13 @@ export type FieldsetIdentity = string;
|
|
|
457
471
|
* via the `definition` "type".
|
|
458
472
|
*/
|
|
459
473
|
export type WorkflowType = 'workflow';
|
|
474
|
+
/**
|
|
475
|
+
* Attributes and relationships to return for each `item_type` that this endpoint returns.
|
|
476
|
+
*
|
|
477
|
+
* This interface was referenced by `ItemType`'s JSON-Schema
|
|
478
|
+
* via the `definition` "sparse_fieldset".
|
|
479
|
+
*/
|
|
480
|
+
export type ItemTypeSparseFieldset = string;
|
|
460
481
|
/**
|
|
461
482
|
* This interface was referenced by `ItemType`'s JSON-Schema
|
|
462
483
|
* via the `create.hrefSchema` link.
|
|
@@ -476,6 +497,42 @@ export type ItemTypeCreateHrefSchema = {
|
|
|
476
497
|
schema_menu_item_id?: string;
|
|
477
498
|
[k: string]: unknown;
|
|
478
499
|
};
|
|
500
|
+
/**
|
|
501
|
+
* This interface was referenced by `ItemType`'s JSON-Schema
|
|
502
|
+
* via the `instances.hrefSchema` link.
|
|
503
|
+
*/
|
|
504
|
+
export type ItemTypeInstancesHrefSchema = {
|
|
505
|
+
/**
|
|
506
|
+
* Sparse fieldsets: for each entity type, the attributes and the relationships to return, separated by commas. Each entity declares its attributes and its relationships in its own schema.
|
|
507
|
+
*/
|
|
508
|
+
fields?: {
|
|
509
|
+
item_type?: ItemTypeSparseFieldset;
|
|
510
|
+
[k: string]: unknown;
|
|
511
|
+
};
|
|
512
|
+
[k: string]: unknown;
|
|
513
|
+
};
|
|
514
|
+
/**
|
|
515
|
+
* This interface was referenced by `ItemType`'s JSON-Schema
|
|
516
|
+
* via the `self.hrefSchema` link.
|
|
517
|
+
*/
|
|
518
|
+
export type ItemTypeSelfHrefSchema = {
|
|
519
|
+
/**
|
|
520
|
+
* Sparse fieldsets: for each entity type, the attributes and the relationships to return, separated by commas. Each entity declares its attributes and its relationships in its own schema.
|
|
521
|
+
*/
|
|
522
|
+
fields?: {
|
|
523
|
+
item_type?: ItemTypeSparseFieldset;
|
|
524
|
+
field?: FieldSparseFieldset;
|
|
525
|
+
[k: string]: unknown;
|
|
526
|
+
};
|
|
527
|
+
[k: string]: unknown;
|
|
528
|
+
};
|
|
529
|
+
/**
|
|
530
|
+
* Attributes and relationships to return for each `field` that this endpoint returns.
|
|
531
|
+
*
|
|
532
|
+
* This interface was referenced by `Field`'s JSON-Schema
|
|
533
|
+
* via the `definition` "sparse_fieldset".
|
|
534
|
+
*/
|
|
535
|
+
export type FieldSparseFieldset = string;
|
|
479
536
|
/**
|
|
480
537
|
* This interface was referenced by `ItemType`'s JSON-Schema
|
|
481
538
|
* via the `destroy.hrefSchema` link.
|
|
@@ -487,6 +544,111 @@ export type ItemTypeDestroyHrefSchema = {
|
|
|
487
544
|
skip_menu_items_deletion?: boolean;
|
|
488
545
|
[k: string]: unknown;
|
|
489
546
|
};
|
|
547
|
+
/**
|
|
548
|
+
* This interface was referenced by `ItemType`'s JSON-Schema
|
|
549
|
+
* via the `referencing.hrefSchema` link.
|
|
550
|
+
*/
|
|
551
|
+
export type ItemTypeReferencingHrefSchema = {
|
|
552
|
+
/**
|
|
553
|
+
* Sparse fieldsets: for each entity type, the attributes and the relationships to return, separated by commas. Each entity declares its attributes and its relationships in its own schema.
|
|
554
|
+
*/
|
|
555
|
+
fields?: {
|
|
556
|
+
item_type?: ItemTypeSparseFieldset;
|
|
557
|
+
[k: string]: unknown;
|
|
558
|
+
};
|
|
559
|
+
[k: string]: unknown;
|
|
560
|
+
};
|
|
561
|
+
/**
|
|
562
|
+
* This interface was referenced by `Field`'s JSON-Schema
|
|
563
|
+
* via the `instances.hrefSchema` link.
|
|
564
|
+
*/
|
|
565
|
+
export type FieldInstancesHrefSchema = {
|
|
566
|
+
/**
|
|
567
|
+
* Sparse fieldsets: for each entity type, the attributes and the relationships to return, separated by commas. Each entity declares its attributes and its relationships in its own schema.
|
|
568
|
+
*/
|
|
569
|
+
fields?: {
|
|
570
|
+
field?: FieldSparseFieldset;
|
|
571
|
+
[k: string]: unknown;
|
|
572
|
+
};
|
|
573
|
+
[k: string]: unknown;
|
|
574
|
+
};
|
|
575
|
+
/**
|
|
576
|
+
* This interface was referenced by `Field`'s JSON-Schema
|
|
577
|
+
* via the `referencing.hrefSchema` link.
|
|
578
|
+
*/
|
|
579
|
+
export type FieldReferencingHrefSchema = {
|
|
580
|
+
/**
|
|
581
|
+
* Sparse fieldsets: for each entity type, the attributes and the relationships to return, separated by commas. Each entity declares its attributes and its relationships in its own schema.
|
|
582
|
+
*/
|
|
583
|
+
fields?: {
|
|
584
|
+
field?: FieldSparseFieldset;
|
|
585
|
+
[k: string]: unknown;
|
|
586
|
+
};
|
|
587
|
+
[k: string]: unknown;
|
|
588
|
+
};
|
|
589
|
+
/**
|
|
590
|
+
* This interface was referenced by `Field`'s JSON-Schema
|
|
591
|
+
* via the `related.hrefSchema` link.
|
|
592
|
+
*/
|
|
593
|
+
export type FieldRelatedHrefSchema = {
|
|
594
|
+
/**
|
|
595
|
+
* Sparse fieldsets: for each entity type, the attributes and the relationships to return, separated by commas. Each entity declares its attributes and its relationships in its own schema.
|
|
596
|
+
*/
|
|
597
|
+
fields?: {
|
|
598
|
+
field?: FieldSparseFieldset;
|
|
599
|
+
[k: string]: unknown;
|
|
600
|
+
};
|
|
601
|
+
[k: string]: unknown;
|
|
602
|
+
};
|
|
603
|
+
/**
|
|
604
|
+
* This interface was referenced by `Field`'s JSON-Schema
|
|
605
|
+
* via the `self.hrefSchema` link.
|
|
606
|
+
*/
|
|
607
|
+
export type FieldSelfHrefSchema = {
|
|
608
|
+
/**
|
|
609
|
+
* Sparse fieldsets: for each entity type, the attributes and the relationships to return, separated by commas. Each entity declares its attributes and its relationships in its own schema.
|
|
610
|
+
*/
|
|
611
|
+
fields?: {
|
|
612
|
+
field?: FieldSparseFieldset;
|
|
613
|
+
[k: string]: unknown;
|
|
614
|
+
};
|
|
615
|
+
[k: string]: unknown;
|
|
616
|
+
};
|
|
617
|
+
/**
|
|
618
|
+
* Attributes and relationships to return for each `fieldset` that this endpoint returns.
|
|
619
|
+
*
|
|
620
|
+
* This interface was referenced by `Fieldset`'s JSON-Schema
|
|
621
|
+
* via the `definition` "sparse_fieldset".
|
|
622
|
+
*/
|
|
623
|
+
export type FieldsetSparseFieldset = string;
|
|
624
|
+
/**
|
|
625
|
+
* This interface was referenced by `Fieldset`'s JSON-Schema
|
|
626
|
+
* via the `instances.hrefSchema` link.
|
|
627
|
+
*/
|
|
628
|
+
export type FieldsetInstancesHrefSchema = {
|
|
629
|
+
/**
|
|
630
|
+
* Sparse fieldsets: for each entity type, the attributes and the relationships to return, separated by commas. Each entity declares its attributes and its relationships in its own schema.
|
|
631
|
+
*/
|
|
632
|
+
fields?: {
|
|
633
|
+
fieldset?: FieldsetSparseFieldset;
|
|
634
|
+
[k: string]: unknown;
|
|
635
|
+
};
|
|
636
|
+
[k: string]: unknown;
|
|
637
|
+
};
|
|
638
|
+
/**
|
|
639
|
+
* This interface was referenced by `Fieldset`'s JSON-Schema
|
|
640
|
+
* via the `self.hrefSchema` link.
|
|
641
|
+
*/
|
|
642
|
+
export type FieldsetSelfHrefSchema = {
|
|
643
|
+
/**
|
|
644
|
+
* Sparse fieldsets: for each entity type, the attributes and the relationships to return, separated by commas. Each entity declares its attributes and its relationships in its own schema.
|
|
645
|
+
*/
|
|
646
|
+
fields?: {
|
|
647
|
+
fieldset?: FieldsetSparseFieldset;
|
|
648
|
+
[k: string]: unknown;
|
|
649
|
+
};
|
|
650
|
+
[k: string]: unknown;
|
|
651
|
+
};
|
|
490
652
|
/**
|
|
491
653
|
* This interface was referenced by `Session`'s JSON-Schema
|
|
492
654
|
* via the `definition` "type".
|
|
@@ -1548,6 +1710,13 @@ export type SiteType = 'site';
|
|
|
1548
1710
|
* via the `definition` "id".
|
|
1549
1711
|
*/
|
|
1550
1712
|
export type SiteIdentity = string;
|
|
1713
|
+
/**
|
|
1714
|
+
* Attributes and relationships to return for each `site` that this endpoint returns.
|
|
1715
|
+
*
|
|
1716
|
+
* This interface was referenced by `Site`'s JSON-Schema
|
|
1717
|
+
* via the `definition` "sparse_fieldset".
|
|
1718
|
+
*/
|
|
1719
|
+
export type SiteSparseFieldset = string;
|
|
1551
1720
|
/**
|
|
1552
1721
|
* This interface was referenced by `Site`'s JSON-Schema
|
|
1553
1722
|
* via the `self.hrefSchema` link.
|
|
@@ -1557,6 +1726,18 @@ export type SiteSelfHrefSchema = {
|
|
|
1557
1726
|
* Comma-separated list of [relationship paths](https://jsonapi.org/format/#fetching-includes). A relationship path is a dot-separated list of relationship names. Allowed relationship paths: `item_types`, `item_types.fields`, `item_types.fieldsets`, `item_types.singleton_item`, `account`.
|
|
1558
1727
|
*/
|
|
1559
1728
|
include?: string;
|
|
1729
|
+
/**
|
|
1730
|
+
* Sparse fieldsets: for each entity type, the attributes and the relationships to return, separated by commas. Each entity declares its attributes and its relationships in its own schema.
|
|
1731
|
+
*/
|
|
1732
|
+
fields?: {
|
|
1733
|
+
site?: SiteSparseFieldset;
|
|
1734
|
+
item_type?: ItemTypeSparseFieldset;
|
|
1735
|
+
field?: FieldSparseFieldset;
|
|
1736
|
+
fieldset?: FieldsetSparseFieldset;
|
|
1737
|
+
account?: AccountSparseFieldset;
|
|
1738
|
+
organization?: OrganizationSparseFieldset;
|
|
1739
|
+
[k: string]: unknown;
|
|
1740
|
+
};
|
|
1560
1741
|
[k: string]: unknown;
|
|
1561
1742
|
};
|
|
1562
1743
|
/**
|
|
@@ -1647,7 +1647,7 @@ export default class Field extends BaseResource {
|
|
|
1647
1647
|
* @throws {ApiError}
|
|
1648
1648
|
* @throws {TimeoutError}
|
|
1649
1649
|
*/
|
|
1650
|
-
list(itemTypeId: string | ApiTypes.ItemTypeData): Promise<ApiTypes.FieldInstancesTargetSchema>;
|
|
1650
|
+
list(itemTypeId: string | ApiTypes.ItemTypeData, queryParams?: ApiTypes.FieldInstancesHrefSchema): Promise<ApiTypes.FieldInstancesTargetSchema>;
|
|
1651
1651
|
/**
|
|
1652
1652
|
* List all fields of a model/block
|
|
1653
1653
|
*
|
|
@@ -1656,7 +1656,7 @@ export default class Field extends BaseResource {
|
|
|
1656
1656
|
* @throws {ApiError}
|
|
1657
1657
|
* @throws {TimeoutError}
|
|
1658
1658
|
*/
|
|
1659
|
-
rawList(itemTypeId: string): Promise<RawApiTypes.FieldInstancesTargetSchema>;
|
|
1659
|
+
rawList(itemTypeId: string, queryParams?: RawApiTypes.FieldInstancesHrefSchema): Promise<RawApiTypes.FieldInstancesTargetSchema>;
|
|
1660
1660
|
/**
|
|
1661
1661
|
* List fields referencing a model/block
|
|
1662
1662
|
*
|
|
@@ -1665,7 +1665,7 @@ export default class Field extends BaseResource {
|
|
|
1665
1665
|
* @throws {ApiError}
|
|
1666
1666
|
* @throws {TimeoutError}
|
|
1667
1667
|
*/
|
|
1668
|
-
referencing(itemTypeId: string | ApiTypes.ItemTypeData): Promise<ApiTypes.FieldReferencingTargetSchema>;
|
|
1668
|
+
referencing(itemTypeId: string | ApiTypes.ItemTypeData, queryParams?: ApiTypes.FieldReferencingHrefSchema): Promise<ApiTypes.FieldReferencingTargetSchema>;
|
|
1669
1669
|
/**
|
|
1670
1670
|
* List fields referencing a model/block
|
|
1671
1671
|
*
|
|
@@ -1674,7 +1674,7 @@ export default class Field extends BaseResource {
|
|
|
1674
1674
|
* @throws {ApiError}
|
|
1675
1675
|
* @throws {TimeoutError}
|
|
1676
1676
|
*/
|
|
1677
|
-
rawReferencing(itemTypeId: string): Promise<RawApiTypes.FieldReferencingTargetSchema>;
|
|
1677
|
+
rawReferencing(itemTypeId: string, queryParams?: RawApiTypes.FieldReferencingHrefSchema): Promise<RawApiTypes.FieldReferencingTargetSchema>;
|
|
1678
1678
|
/**
|
|
1679
1679
|
* List related fields
|
|
1680
1680
|
*
|
|
@@ -1685,7 +1685,7 @@ export default class Field extends BaseResource {
|
|
|
1685
1685
|
*
|
|
1686
1686
|
* @deprecated This API call is to be considered private and might change without notice
|
|
1687
1687
|
*/
|
|
1688
|
-
related(itemTypeId: string | ApiTypes.ItemTypeData): Promise<ApiTypes.FieldRelatedTargetSchema>;
|
|
1688
|
+
related(itemTypeId: string | ApiTypes.ItemTypeData, queryParams?: ApiTypes.FieldRelatedHrefSchema): Promise<ApiTypes.FieldRelatedTargetSchema>;
|
|
1689
1689
|
/**
|
|
1690
1690
|
* List related fields
|
|
1691
1691
|
*
|
|
@@ -1696,7 +1696,7 @@ export default class Field extends BaseResource {
|
|
|
1696
1696
|
*
|
|
1697
1697
|
* @deprecated This API call is to be considered private and might change without notice
|
|
1698
1698
|
*/
|
|
1699
|
-
rawRelated(itemTypeId: string): Promise<RawApiTypes.FieldRelatedTargetSchema>;
|
|
1699
|
+
rawRelated(itemTypeId: string, queryParams?: RawApiTypes.FieldRelatedHrefSchema): Promise<RawApiTypes.FieldRelatedTargetSchema>;
|
|
1700
1700
|
/**
|
|
1701
1701
|
* Retrieve a field
|
|
1702
1702
|
*
|
|
@@ -1705,7 +1705,7 @@ export default class Field extends BaseResource {
|
|
|
1705
1705
|
* @throws {ApiError}
|
|
1706
1706
|
* @throws {TimeoutError}
|
|
1707
1707
|
*/
|
|
1708
|
-
find(fieldId: string | ApiTypes.FieldData): Promise<(Omit<ApiTypes.FieldStableShell, "field_type" | "default_value" | "validators" | "appearance" | "localized"> & {
|
|
1708
|
+
find(fieldId: string | ApiTypes.FieldData, queryParams?: ApiTypes.FieldSelfHrefSchema): Promise<(Omit<ApiTypes.FieldStableShell, "field_type" | "default_value" | "validators" | "appearance" | "localized"> & {
|
|
1709
1709
|
field_type: "boolean";
|
|
1710
1710
|
localized: false;
|
|
1711
1711
|
default_value: import("../../index.js").BooleanFieldValue;
|
|
@@ -2514,7 +2514,7 @@ export default class Field extends BaseResource {
|
|
|
2514
2514
|
* @throws {ApiError}
|
|
2515
2515
|
* @throws {TimeoutError}
|
|
2516
2516
|
*/
|
|
2517
|
-
rawFind(fieldId: string): Promise<RawApiTypes.FieldSelfTargetSchema>;
|
|
2517
|
+
rawFind(fieldId: string, queryParams?: RawApiTypes.FieldSelfHrefSchema): Promise<RawApiTypes.FieldSelfTargetSchema>;
|
|
2518
2518
|
/**
|
|
2519
2519
|
* Delete a field
|
|
2520
2520
|
*
|
|
@@ -96,8 +96,8 @@ export default class Field extends BaseResource {
|
|
|
96
96
|
* @throws {ApiError}
|
|
97
97
|
* @throws {TimeoutError}
|
|
98
98
|
*/
|
|
99
|
-
list(itemTypeId) {
|
|
100
|
-
return this.rawList(Utils.toId(itemTypeId)).then((body) => Utils.deserializeResponseBody(body));
|
|
99
|
+
list(itemTypeId, queryParams) {
|
|
100
|
+
return this.rawList(Utils.toId(itemTypeId), queryParams).then((body) => Utils.deserializeResponseBody(body));
|
|
101
101
|
}
|
|
102
102
|
/**
|
|
103
103
|
* List all fields of a model/block
|
|
@@ -107,10 +107,11 @@ export default class Field extends BaseResource {
|
|
|
107
107
|
* @throws {ApiError}
|
|
108
108
|
* @throws {TimeoutError}
|
|
109
109
|
*/
|
|
110
|
-
rawList(itemTypeId) {
|
|
110
|
+
rawList(itemTypeId, queryParams) {
|
|
111
111
|
return this.client.request({
|
|
112
112
|
method: 'GET',
|
|
113
113
|
url: `/item-types/${itemTypeId}/fields`,
|
|
114
|
+
queryParams,
|
|
114
115
|
});
|
|
115
116
|
}
|
|
116
117
|
/**
|
|
@@ -121,8 +122,8 @@ export default class Field extends BaseResource {
|
|
|
121
122
|
* @throws {ApiError}
|
|
122
123
|
* @throws {TimeoutError}
|
|
123
124
|
*/
|
|
124
|
-
referencing(itemTypeId) {
|
|
125
|
-
return this.rawReferencing(Utils.toId(itemTypeId)).then((body) => Utils.deserializeResponseBody(body));
|
|
125
|
+
referencing(itemTypeId, queryParams) {
|
|
126
|
+
return this.rawReferencing(Utils.toId(itemTypeId), queryParams).then((body) => Utils.deserializeResponseBody(body));
|
|
126
127
|
}
|
|
127
128
|
/**
|
|
128
129
|
* List fields referencing a model/block
|
|
@@ -132,10 +133,11 @@ export default class Field extends BaseResource {
|
|
|
132
133
|
* @throws {ApiError}
|
|
133
134
|
* @throws {TimeoutError}
|
|
134
135
|
*/
|
|
135
|
-
rawReferencing(itemTypeId) {
|
|
136
|
+
rawReferencing(itemTypeId, queryParams) {
|
|
136
137
|
return this.client.request({
|
|
137
138
|
method: 'GET',
|
|
138
139
|
url: `/item-types/${itemTypeId}/fields/referencing`,
|
|
140
|
+
queryParams,
|
|
139
141
|
});
|
|
140
142
|
}
|
|
141
143
|
/**
|
|
@@ -148,8 +150,8 @@ export default class Field extends BaseResource {
|
|
|
148
150
|
*
|
|
149
151
|
* @deprecated This API call is to be considered private and might change without notice
|
|
150
152
|
*/
|
|
151
|
-
related(itemTypeId) {
|
|
152
|
-
return this.rawRelated(Utils.toId(itemTypeId)).then((body) => Utils.deserializeResponseBody(body));
|
|
153
|
+
related(itemTypeId, queryParams) {
|
|
154
|
+
return this.rawRelated(Utils.toId(itemTypeId), queryParams).then((body) => Utils.deserializeResponseBody(body));
|
|
153
155
|
}
|
|
154
156
|
/**
|
|
155
157
|
* List related fields
|
|
@@ -161,10 +163,11 @@ export default class Field extends BaseResource {
|
|
|
161
163
|
*
|
|
162
164
|
* @deprecated This API call is to be considered private and might change without notice
|
|
163
165
|
*/
|
|
164
|
-
rawRelated(itemTypeId) {
|
|
166
|
+
rawRelated(itemTypeId, queryParams) {
|
|
165
167
|
return this.client.request({
|
|
166
168
|
method: 'GET',
|
|
167
169
|
url: `/item-types/${itemTypeId}/fields/related`,
|
|
170
|
+
queryParams,
|
|
168
171
|
});
|
|
169
172
|
}
|
|
170
173
|
/**
|
|
@@ -175,8 +178,8 @@ export default class Field extends BaseResource {
|
|
|
175
178
|
* @throws {ApiError}
|
|
176
179
|
* @throws {TimeoutError}
|
|
177
180
|
*/
|
|
178
|
-
find(fieldId) {
|
|
179
|
-
return this.rawFind(Utils.toId(fieldId)).then((body) => Utils.deserializeResponseBody(body));
|
|
181
|
+
find(fieldId, queryParams) {
|
|
182
|
+
return this.rawFind(Utils.toId(fieldId), queryParams).then((body) => Utils.deserializeResponseBody(body));
|
|
180
183
|
}
|
|
181
184
|
/**
|
|
182
185
|
* Retrieve a field
|
|
@@ -186,10 +189,11 @@ export default class Field extends BaseResource {
|
|
|
186
189
|
* @throws {ApiError}
|
|
187
190
|
* @throws {TimeoutError}
|
|
188
191
|
*/
|
|
189
|
-
rawFind(fieldId) {
|
|
192
|
+
rawFind(fieldId, queryParams) {
|
|
190
193
|
return this.client.request({
|
|
191
194
|
method: 'GET',
|
|
192
195
|
url: `/fields/${fieldId}`,
|
|
196
|
+
queryParams,
|
|
193
197
|
});
|
|
194
198
|
}
|
|
195
199
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Field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gBACP,SAAS;gBACT,WAAW;gBACX,YAAY;gBACZ,aAAa;gBACb,YAAY;gBACZ,UAAU;gBACV,YAAY;gBACZ,MAAM;gBACN,wBAAwB;gBACxB,sBAAsB;aACvB;YACD,aAAa,EAAE,CAAC,UAAU,CAAC;SAC5B,CAAC,CACH,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CACd,KAAK,CAAC,uBAAuB,CAAgC,IAAI,CAAC,CACnE,CAAC;IACJ,CAAC;IAED;;;;;;;OAOG;IACH,SAAS,CACP,OAAe,EACf,IAAmC;QAEnC,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAmC;YAC3D,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,WAAW,OAAO,EAAE;YACzB,IAAI;SACL,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,IAAI,
|
|
1
|
+
{"version":3,"file":"Field.js","sourceRoot":"","sources":["../../../../src/generated/resources/Field.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,4BAA4B,CAAC;AACpD,OAAO,YAAY,MAAM,uBAAuB,CAAC;AAIjD,MAAM,CAAC,OAAO,OAAO,KAAM,SAAQ,YAAY;IAG7C;;;;;;;OAOG;IACH,MAAM,CACJ,UAA0C,EAC1C,IAAgC;QAEhC,OAAO,IAAI,CAAC,SAAS,CACnB,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,EACtB,KAAK,CAAC,oBAAoB,CAAgC,IAAI,EAAE;YAC9D,IAAI,EAAE,OAAO;YACb,UAAU,EAAE;gBACV,OAAO;gBACP,YAAY;gBACZ,SAAS;gBACT,WAAW;gBACX,YAAY;gBACZ,aAAa;gBACb,YAAY;gBACZ,UAAU;gBACV,MAAM;gBACN,eAAe;gBACf,wBAAwB;gBACxB,sBAAsB;aACvB;YACD,aAAa,EAAE,CAAC,UAAU,CAAC;SAC5B,CAAC,CACH,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CACd,KAAK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EAAE,WAAW,OAAO,YAAY;SACpC,CAAC,CAAC;IACL,CAAC;;AAlUe,UAAI,GAAG,OAAgB,CAAC"}
|
|
@@ -47,7 +47,7 @@ export default class Fieldset extends BaseResource {
|
|
|
47
47
|
* @throws {ApiError}
|
|
48
48
|
* @throws {TimeoutError}
|
|
49
49
|
*/
|
|
50
|
-
list(itemTypeId: string | ApiTypes.ItemTypeData): Promise<ApiTypes.FieldsetInstancesTargetSchema>;
|
|
50
|
+
list(itemTypeId: string | ApiTypes.ItemTypeData, queryParams?: ApiTypes.FieldsetInstancesHrefSchema): Promise<ApiTypes.FieldsetInstancesTargetSchema>;
|
|
51
51
|
/**
|
|
52
52
|
* List all fieldsets of a model/block
|
|
53
53
|
*
|
|
@@ -56,7 +56,7 @@ export default class Fieldset extends BaseResource {
|
|
|
56
56
|
* @throws {ApiError}
|
|
57
57
|
* @throws {TimeoutError}
|
|
58
58
|
*/
|
|
59
|
-
rawList(itemTypeId: string): Promise<RawApiTypes.FieldsetInstancesTargetSchema>;
|
|
59
|
+
rawList(itemTypeId: string, queryParams?: RawApiTypes.FieldsetInstancesHrefSchema): Promise<RawApiTypes.FieldsetInstancesTargetSchema>;
|
|
60
60
|
/**
|
|
61
61
|
* Retrieve a fieldset
|
|
62
62
|
*
|
|
@@ -65,7 +65,7 @@ export default class Fieldset extends BaseResource {
|
|
|
65
65
|
* @throws {ApiError}
|
|
66
66
|
* @throws {TimeoutError}
|
|
67
67
|
*/
|
|
68
|
-
find(fieldsetId: string | ApiTypes.FieldsetData): Promise<ApiTypes.Fieldset>;
|
|
68
|
+
find(fieldsetId: string | ApiTypes.FieldsetData, queryParams?: ApiTypes.FieldsetSelfHrefSchema): Promise<ApiTypes.Fieldset>;
|
|
69
69
|
/**
|
|
70
70
|
* Retrieve a fieldset
|
|
71
71
|
*
|
|
@@ -74,7 +74,7 @@ export default class Fieldset extends BaseResource {
|
|
|
74
74
|
* @throws {ApiError}
|
|
75
75
|
* @throws {TimeoutError}
|
|
76
76
|
*/
|
|
77
|
-
rawFind(fieldsetId: string): Promise<RawApiTypes.FieldsetSelfTargetSchema>;
|
|
77
|
+
rawFind(fieldsetId: string, queryParams?: RawApiTypes.FieldsetSelfHrefSchema): Promise<RawApiTypes.FieldsetSelfTargetSchema>;
|
|
78
78
|
/**
|
|
79
79
|
* Delete a fieldset
|
|
80
80
|
*
|
|
@@ -82,8 +82,8 @@ export default class Fieldset extends BaseResource {
|
|
|
82
82
|
* @throws {ApiError}
|
|
83
83
|
* @throws {TimeoutError}
|
|
84
84
|
*/
|
|
85
|
-
list(itemTypeId) {
|
|
86
|
-
return this.rawList(Utils.toId(itemTypeId)).then((body) => Utils.deserializeResponseBody(body));
|
|
85
|
+
list(itemTypeId, queryParams) {
|
|
86
|
+
return this.rawList(Utils.toId(itemTypeId), queryParams).then((body) => Utils.deserializeResponseBody(body));
|
|
87
87
|
}
|
|
88
88
|
/**
|
|
89
89
|
* List all fieldsets of a model/block
|
|
@@ -93,10 +93,11 @@ export default class Fieldset extends BaseResource {
|
|
|
93
93
|
* @throws {ApiError}
|
|
94
94
|
* @throws {TimeoutError}
|
|
95
95
|
*/
|
|
96
|
-
rawList(itemTypeId) {
|
|
96
|
+
rawList(itemTypeId, queryParams) {
|
|
97
97
|
return this.client.request({
|
|
98
98
|
method: 'GET',
|
|
99
99
|
url: `/item-types/${itemTypeId}/fieldsets`,
|
|
100
|
+
queryParams,
|
|
100
101
|
});
|
|
101
102
|
}
|
|
102
103
|
/**
|
|
@@ -107,8 +108,8 @@ export default class Fieldset extends BaseResource {
|
|
|
107
108
|
* @throws {ApiError}
|
|
108
109
|
* @throws {TimeoutError}
|
|
109
110
|
*/
|
|
110
|
-
find(fieldsetId) {
|
|
111
|
-
return this.rawFind(Utils.toId(fieldsetId)).then((body) => Utils.deserializeResponseBody(body));
|
|
111
|
+
find(fieldsetId, queryParams) {
|
|
112
|
+
return this.rawFind(Utils.toId(fieldsetId), queryParams).then((body) => Utils.deserializeResponseBody(body));
|
|
112
113
|
}
|
|
113
114
|
/**
|
|
114
115
|
* Retrieve a fieldset
|
|
@@ -118,10 +119,11 @@ export default class Fieldset extends BaseResource {
|
|
|
118
119
|
* @throws {ApiError}
|
|
119
120
|
* @throws {TimeoutError}
|
|
120
121
|
*/
|
|
121
|
-
rawFind(fieldsetId) {
|
|
122
|
+
rawFind(fieldsetId, queryParams) {
|
|
122
123
|
return this.client.request({
|
|
123
124
|
method: 'GET',
|
|
124
125
|
url: `/fieldsets/${fieldsetId}`,
|
|
126
|
+
queryParams,
|
|
125
127
|
});
|
|
126
128
|
}
|
|
127
129
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Fieldset.js","sourceRoot":"","sources":["../../../../src/generated/resources/Fieldset.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,4BAA4B,CAAC;AACpD,OAAO,YAAY,MAAM,uBAAuB,CAAC;AAIjD,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,YAAY;IAGhD;;;;;;;OAOG;IACH,MAAM,CACJ,UAA0C,EAC1C,IAAmC;QAEnC,OAAO,IAAI,CAAC,SAAS,CACnB,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,EACtB,KAAK,CAAC,oBAAoB,CAAmC,IAAI,EAAE;YACjE,IAAI,EAAE,UAAU;YAChB,UAAU,EAAE;gBACV,OAAO;gBACP,MAAM;gBACN,UAAU;gBACV,aAAa;gBACb,iBAAiB;aAClB;YACD,aAAa,EAAE,EAAE;SAClB,CAAC,CACH,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CACd,KAAK,CAAC,uBAAuB,CAAsC,IAAI,CAAC,CACzE,CAAC;IACJ,CAAC;IAED;;;;;;;OAOG;IACH,SAAS,CACP,UAAkB,EAClB,IAAsC;QAEtC,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAyC;YACjE,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,eAAe,UAAU,YAAY;YAC1C,IAAI;SACL,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CACJ,UAA0C,EAC1C,IAAmC;QAEnC,OAAO,IAAI,CAAC,SAAS,CACnB,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,EACtB,KAAK,CAAC,oBAAoB,CAAmC,IAAI,EAAE;YACjE,EAAE,EAAE,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC;YAC1B,IAAI,EAAE,UAAU;YAChB,UAAU,EAAE;gBACV,OAAO;gBACP,MAAM;gBACN,UAAU;gBACV,aAAa;gBACb,iBAAiB;aAClB;YACD,aAAa,EAAE,EAAE;SAClB,CAAC,CACH,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CACd,KAAK,CAAC,uBAAuB,CAAsC,IAAI,CAAC,CACzE,CAAC;IACJ,CAAC;IAED;;;;;;;OAOG;IACH,SAAS,CACP,UAAkB,EAClB,IAAsC;QAEtC,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAyC;YACjE,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,cAAc,UAAU,EAAE;YAC/B,IAAI;SACL,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,IAAI,
|
|
1
|
+
{"version":3,"file":"Fieldset.js","sourceRoot":"","sources":["../../../../src/generated/resources/Fieldset.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,4BAA4B,CAAC;AACpD,OAAO,YAAY,MAAM,uBAAuB,CAAC;AAIjD,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,YAAY;IAGhD;;;;;;;OAOG;IACH,MAAM,CACJ,UAA0C,EAC1C,IAAmC;QAEnC,OAAO,IAAI,CAAC,SAAS,CACnB,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,EACtB,KAAK,CAAC,oBAAoB,CAAmC,IAAI,EAAE;YACjE,IAAI,EAAE,UAAU;YAChB,UAAU,EAAE;gBACV,OAAO;gBACP,MAAM;gBACN,U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
|
|
@@ -65,7 +65,7 @@ export default class Item extends BaseResource {
|
|
|
65
65
|
}, 'page'>, iteratorOptions?: Utils.IteratorOptions): AsyncGenerator<RawApiTypes.ItemInstancesTargetSchema<NoInfer<D>, false>['data'][0]>;
|
|
66
66
|
rawListPagedIterator<D extends ItemTypeDefinition = ItemTypeDefinition>(queryParams?: Utils.OmitFromKnownKeys<RawApiTypes.ItemInstancesHrefSchema<D>, 'page'>, iteratorOptions?: Utils.IteratorOptions): AsyncGenerator<RawApiTypes.ItemInstancesTargetSchema<NoInfer<D>, true>['data'][0]>;
|
|
67
67
|
/**
|
|
68
|
-
*
|
|
68
|
+
* Validate an existing record
|
|
69
69
|
*
|
|
70
70
|
* Read more: https://www.datocms.com/docs/content-management-api/resources/item/validate_existing
|
|
71
71
|
*
|
|
@@ -76,7 +76,7 @@ export default class Item extends BaseResource {
|
|
|
76
76
|
*/
|
|
77
77
|
validateExisting<D extends ItemTypeDefinition = ItemTypeDefinition>(itemId: string | ApiTypes.ItemData, body: ApiTypes.ItemValidateExistingSchema<NoInfer<D>>): Promise<void>;
|
|
78
78
|
/**
|
|
79
|
-
*
|
|
79
|
+
* Validate an existing record
|
|
80
80
|
*
|
|
81
81
|
* Read more: https://www.datocms.com/docs/content-management-api/resources/item/validate_existing
|
|
82
82
|
*
|
|
@@ -87,7 +87,7 @@ export default class Item extends BaseResource {
|
|
|
87
87
|
*/
|
|
88
88
|
rawValidateExisting<D extends ItemTypeDefinition = ItemTypeDefinition>(itemId: string, body: RawApiTypes.ItemValidateExistingSchema<NoInfer<D>>): Promise<void>;
|
|
89
89
|
/**
|
|
90
|
-
*
|
|
90
|
+
* Validate a new record
|
|
91
91
|
*
|
|
92
92
|
* Read more: https://www.datocms.com/docs/content-management-api/resources/item/validate_new
|
|
93
93
|
*
|
|
@@ -98,7 +98,7 @@ export default class Item extends BaseResource {
|
|
|
98
98
|
*/
|
|
99
99
|
validateNew<D extends ItemTypeDefinition = ItemTypeDefinition>(body: ApiTypes.ItemValidateNewSchema<NoInfer<D>>): Promise<void>;
|
|
100
100
|
/**
|
|
101
|
-
*
|
|
101
|
+
* Validate a new record
|
|
102
102
|
*
|
|
103
103
|
* Read more: https://www.datocms.com/docs/content-management-api/resources/item/validate_new
|
|
104
104
|
*
|
|
@@ -42,7 +42,7 @@ export default class Item extends BaseResource {
|
|
|
42
42
|
}, (page) => this.rawList({ ...queryParams, page }), iteratorOptions, true);
|
|
43
43
|
}
|
|
44
44
|
/**
|
|
45
|
-
*
|
|
45
|
+
* Validate an existing record
|
|
46
46
|
*
|
|
47
47
|
* Read more: https://www.datocms.com/docs/content-management-api/resources/item/validate_existing
|
|
48
48
|
*
|
|
@@ -60,7 +60,7 @@ export default class Item extends BaseResource {
|
|
|
60
60
|
}));
|
|
61
61
|
}
|
|
62
62
|
/**
|
|
63
|
-
*
|
|
63
|
+
* Validate an existing record
|
|
64
64
|
*
|
|
65
65
|
* Read more: https://www.datocms.com/docs/content-management-api/resources/item/validate_existing
|
|
66
66
|
*
|
|
@@ -77,7 +77,7 @@ export default class Item extends BaseResource {
|
|
|
77
77
|
});
|
|
78
78
|
}
|
|
79
79
|
/**
|
|
80
|
-
*
|
|
80
|
+
* Validate a new record
|
|
81
81
|
*
|
|
82
82
|
* Read more: https://www.datocms.com/docs/content-management-api/resources/item/validate_new
|
|
83
83
|
*
|
|
@@ -94,7 +94,7 @@ export default class Item extends BaseResource {
|
|
|
94
94
|
}));
|
|
95
95
|
}
|
|
96
96
|
/**
|
|
97
|
-
*
|
|
97
|
+
* Validate a new record
|
|
98
98
|
*
|
|
99
99
|
* Read more: https://www.datocms.com/docs/content-management-api/resources/item/validate_new
|
|
100
100
|
*
|
|
@@ -47,7 +47,7 @@ export default class ItemType extends BaseResource {
|
|
|
47
47
|
* @throws {ApiError}
|
|
48
48
|
* @throws {TimeoutError}
|
|
49
49
|
*/
|
|
50
|
-
list(): Promise<ApiTypes.ItemTypeInstancesTargetSchema>;
|
|
50
|
+
list(queryParams?: ApiTypes.ItemTypeInstancesHrefSchema): Promise<ApiTypes.ItemTypeInstancesTargetSchema>;
|
|
51
51
|
/**
|
|
52
52
|
* List all models/block models
|
|
53
53
|
*
|
|
@@ -56,7 +56,7 @@ export default class ItemType extends BaseResource {
|
|
|
56
56
|
* @throws {ApiError}
|
|
57
57
|
* @throws {TimeoutError}
|
|
58
58
|
*/
|
|
59
|
-
rawList(): Promise<RawApiTypes.ItemTypeInstancesTargetSchema>;
|
|
59
|
+
rawList(queryParams?: RawApiTypes.ItemTypeInstancesHrefSchema): Promise<RawApiTypes.ItemTypeInstancesTargetSchema>;
|
|
60
60
|
/**
|
|
61
61
|
* Retrieve a model/block model
|
|
62
62
|
*
|
|
@@ -65,7 +65,7 @@ export default class ItemType extends BaseResource {
|
|
|
65
65
|
* @throws {ApiError}
|
|
66
66
|
* @throws {TimeoutError}
|
|
67
67
|
*/
|
|
68
|
-
find(itemTypeId: string | ApiTypes.ItemTypeData): Promise<ApiTypes.ItemType>;
|
|
68
|
+
find(itemTypeId: string | ApiTypes.ItemTypeData, queryParams?: ApiTypes.ItemTypeSelfHrefSchema): Promise<ApiTypes.ItemType>;
|
|
69
69
|
/**
|
|
70
70
|
* Retrieve a model/block model
|
|
71
71
|
*
|
|
@@ -74,7 +74,7 @@ export default class ItemType extends BaseResource {
|
|
|
74
74
|
* @throws {ApiError}
|
|
75
75
|
* @throws {TimeoutError}
|
|
76
76
|
*/
|
|
77
|
-
rawFind(itemTypeId: string): Promise<RawApiTypes.ItemTypeSelfTargetSchema>;
|
|
77
|
+
rawFind(itemTypeId: string, queryParams?: RawApiTypes.ItemTypeSelfHrefSchema): Promise<RawApiTypes.ItemTypeSelfTargetSchema>;
|
|
78
78
|
/**
|
|
79
79
|
* Duplicate model/block model
|
|
80
80
|
*
|
|
@@ -119,7 +119,7 @@ export default class ItemType extends BaseResource {
|
|
|
119
119
|
* @throws {ApiError}
|
|
120
120
|
* @throws {TimeoutError}
|
|
121
121
|
*/
|
|
122
|
-
referencing(itemTypeId: string | ApiTypes.ItemTypeData): Promise<ApiTypes.ItemTypeReferencingTargetSchema>;
|
|
122
|
+
referencing(itemTypeId: string | ApiTypes.ItemTypeData, queryParams?: ApiTypes.ItemTypeReferencingHrefSchema): Promise<ApiTypes.ItemTypeReferencingTargetSchema>;
|
|
123
123
|
/**
|
|
124
124
|
* List models referencing another model/block
|
|
125
125
|
*
|
|
@@ -128,7 +128,7 @@ export default class ItemType extends BaseResource {
|
|
|
128
128
|
* @throws {ApiError}
|
|
129
129
|
* @throws {TimeoutError}
|
|
130
130
|
*/
|
|
131
|
-
rawReferencing(itemTypeId: string): Promise<RawApiTypes.ItemTypeReferencingTargetSchema>;
|
|
131
|
+
rawReferencing(itemTypeId: string, queryParams?: RawApiTypes.ItemTypeReferencingHrefSchema): Promise<RawApiTypes.ItemTypeReferencingTargetSchema>;
|
|
132
132
|
/**
|
|
133
133
|
* Reorders a set of fields and fieldsets within the model
|
|
134
134
|
*
|