@datocms/cma-client 6.3.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 +227 -46
- package/dist/esm/generated/Client.js +1 -1
- package/dist/esm/generated/RawApiTypes.d.ts +206 -25
- 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 +227 -46
- package/dist/types/generated/RawApiTypes.d.ts +206 -25
- 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 +2 -2
- package/resources.json +11 -2
- package/src/generated/ApiTypes.ts +227 -42
- package/src/generated/Client.ts +1 -1
- package/src/generated/RawApiTypes.ts +206 -23
- 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
|
/**
|
|
@@ -2688,9 +2869,9 @@ export type UserAttributes = {
|
|
|
2688
2869
|
*/
|
|
2689
2870
|
email: string;
|
|
2690
2871
|
/**
|
|
2691
|
-
* Whether 2-factor authentication is active for this account or not
|
|
2872
|
+
* Whether 2-factor authentication is active for this account or not. It returns `null` if the credentials you are using cannot manage the collaborators of the project.
|
|
2692
2873
|
*/
|
|
2693
|
-
is_2fa_active: boolean;
|
|
2874
|
+
is_2fa_active: boolean | null;
|
|
2694
2875
|
/**
|
|
2695
2876
|
* Full name
|
|
2696
2877
|
*/
|
|
@@ -2722,7 +2903,7 @@ export type UserRelationships = {
|
|
|
2722
2903
|
*/
|
|
2723
2904
|
export type UserMeta = {
|
|
2724
2905
|
/**
|
|
2725
|
-
* Date of last reading/interaction
|
|
2906
|
+
* Date of last reading/interaction. It returns `null` if the credentials you are using cannot manage the collaborators of the project.
|
|
2726
2907
|
*/
|
|
2727
2908
|
last_access: string | null;
|
|
2728
2909
|
};
|
|
@@ -2815,7 +2996,7 @@ export type SsoUserAttributes = {
|
|
|
2815
2996
|
*/
|
|
2816
2997
|
username: string;
|
|
2817
2998
|
/**
|
|
2818
|
-
* Identity provider ID
|
|
2999
|
+
* Identity provider ID. It returns `null` if the credentials you are using cannot manage the SSO users of the project.
|
|
2819
3000
|
*/
|
|
2820
3001
|
external_id: string | null;
|
|
2821
3002
|
/**
|
|
@@ -2869,7 +3050,7 @@ export type SsoGroupData = {
|
|
|
2869
3050
|
*/
|
|
2870
3051
|
export type SsoUserMeta = {
|
|
2871
3052
|
/**
|
|
2872
|
-
* Date of last reading/interaction
|
|
3053
|
+
* Date of last reading/interaction. It returns `null` if the credentials you are using cannot manage the SSO users of the project.
|
|
2873
3054
|
*/
|
|
2874
3055
|
last_access: string | null;
|
|
2875
3056
|
};
|
|
@@ -2964,13 +3145,13 @@ export type AccessTokenAttributes = {
|
|
|
2964
3145
|
*/
|
|
2965
3146
|
hardcoded_type: null | string;
|
|
2966
3147
|
/**
|
|
2967
|
-
* When this API token was last used to access the Content Management API
|
|
3148
|
+
* When this API token was last used to access the Content Management API. It returns `null` if the credentials you are using cannot manage the API tokens of the project.
|
|
2968
3149
|
*/
|
|
2969
|
-
last_cma_access: 'today' | 'yesterday' | 'this_week' | 'last_week' | 'this_month' | 'last_month' | 'never';
|
|
3150
|
+
last_cma_access: null | 'today' | 'yesterday' | 'this_week' | 'last_week' | 'this_month' | 'last_month' | 'never';
|
|
2970
3151
|
/**
|
|
2971
|
-
* When this API token was last used to access the Content Delivery API
|
|
3152
|
+
* When this API token was last used to access the Content Delivery API. It returns `null` if the credentials you are using cannot manage the API tokens of the project.
|
|
2972
3153
|
*/
|
|
2973
|
-
last_cda_access: 'today' | 'yesterday' | 'this_week' | 'last_week' | 'this_month' | 'last_month' | 'never';
|
|
3154
|
+
last_cda_access: null | 'today' | 'yesterday' | 'this_week' | 'last_week' | 'this_month' | 'last_month' | 'never';
|
|
2974
3155
|
};
|
|
2975
3156
|
/**
|
|
2976
3157
|
* JSON API links
|
|
@@ -6620,9 +6801,9 @@ export type PluginAttributes = {
|
|
|
6620
6801
|
*/
|
|
6621
6802
|
url: string;
|
|
6622
6803
|
/**
|
|
6623
|
-
* Global plugin configuration. Plugins can persist whatever information they want in this object to reuse it later. Refer to the CMA for details about technical limits.
|
|
6804
|
+
* Global plugin configuration. Plugins can persist whatever information they want in this object to reuse it later. Refer to the CMA for details about technical limits. It returns `null` if the credentials you are using cannot edit the schema of the project.
|
|
6624
6805
|
*/
|
|
6625
|
-
parameters: {
|
|
6806
|
+
parameters: null | {
|
|
6626
6807
|
[k: string]: unknown;
|
|
6627
6808
|
};
|
|
6628
6809
|
/**
|
|
@@ -9207,13 +9388,13 @@ export type WebhookAttributes = {
|
|
|
9207
9388
|
*/
|
|
9208
9389
|
http_basic_user: string | null;
|
|
9209
9390
|
/**
|
|
9210
|
-
* HTTP Basic Authorization password
|
|
9391
|
+
* HTTP Basic Authorization password. It is `null` when the webhook has no basic auth, or when the credentials you are using cannot manage the webhooks of the project.
|
|
9211
9392
|
*/
|
|
9212
9393
|
http_basic_password: string | null;
|
|
9213
9394
|
/**
|
|
9214
|
-
* Additional headers that will be sent
|
|
9395
|
+
* Additional headers that will be sent. It returns `null` if the credentials you are using cannot manage the webhooks of the project.
|
|
9215
9396
|
*/
|
|
9216
|
-
headers: {
|
|
9397
|
+
headers: null | {
|
|
9217
9398
|
[k: string]: string;
|
|
9218
9399
|
};
|
|
9219
9400
|
events: {
|
|
@@ -9292,7 +9473,7 @@ export type WebhookCreateSchema = {
|
|
|
9292
9473
|
*/
|
|
9293
9474
|
http_basic_user: string | null;
|
|
9294
9475
|
/**
|
|
9295
|
-
* HTTP Basic Authorization password
|
|
9476
|
+
* HTTP Basic Authorization password. It is `null` when the webhook has no basic auth, or when the credentials you are using cannot manage the webhooks of the project.
|
|
9296
9477
|
*/
|
|
9297
9478
|
http_basic_password: string | null;
|
|
9298
9479
|
/**
|
|
@@ -9364,7 +9545,7 @@ export type WebhookUpdateSchema = {
|
|
|
9364
9545
|
*/
|
|
9365
9546
|
http_basic_user?: string | null;
|
|
9366
9547
|
/**
|
|
9367
|
-
* HTTP Basic Authorization password
|
|
9548
|
+
* HTTP Basic Authorization password. It is `null` when the webhook has no basic auth, or when the credentials you are using cannot manage the webhooks of the project.
|
|
9368
9549
|
*/
|
|
9369
9550
|
http_basic_password?: string | null;
|
|
9370
9551
|
/**
|
|
@@ -9564,9 +9745,9 @@ export type BuildTriggerAttributes = {
|
|
|
9564
9745
|
*/
|
|
9565
9746
|
adapter: 'custom' | 'netlify' | 'vercel' | 'gitlab';
|
|
9566
9747
|
/**
|
|
9567
|
-
* Additional settings for the build trigger. The value depends on the `adapter`.
|
|
9748
|
+
* Additional settings for the build trigger. The value depends on the `adapter`. It returns `null` if the credentials you are using cannot manage the build triggers of the project.
|
|
9568
9749
|
*/
|
|
9569
|
-
adapter_settings: {
|
|
9750
|
+
adapter_settings: null | {
|
|
9570
9751
|
[k: string]: unknown;
|
|
9571
9752
|
};
|
|
9572
9753
|
/**
|
|
@@ -9578,13 +9759,13 @@ export type BuildTriggerAttributes = {
|
|
|
9578
9759
|
*/
|
|
9579
9760
|
build_status: string;
|
|
9580
9761
|
/**
|
|
9581
|
-
* Unique token for the webhook (it's the same token present in `webhook_url`)
|
|
9762
|
+
* Unique token for the webhook (it's the same token present in `webhook_url`). It returns `null` if the credentials you are using cannot manage the build triggers of the project.
|
|
9582
9763
|
*/
|
|
9583
|
-
webhook_token
|
|
9764
|
+
webhook_token: null | string;
|
|
9584
9765
|
/**
|
|
9585
|
-
* The URL of the webhook your service has to call when the build completes to report it's status (success or error)
|
|
9766
|
+
* The URL of the webhook your service has to call when the build completes to report it's status (success or error). It returns `null` if the credentials you are using cannot manage the build triggers of the project.
|
|
9586
9767
|
*/
|
|
9587
|
-
webhook_url: string;
|
|
9768
|
+
webhook_url: null | string;
|
|
9588
9769
|
/**
|
|
9589
9770
|
* Status of Site Search for the frontend
|
|
9590
9771
|
*/
|
|
@@ -11425,7 +11606,7 @@ export type SiteAttributes = {
|
|
|
11425
11606
|
*/
|
|
11426
11607
|
imgix_host: string | null;
|
|
11427
11608
|
/**
|
|
11428
|
-
* DatoCMS internal domain for the administrative area. Returns `null` if the credentials you are using cannot
|
|
11609
|
+
* DatoCMS internal domain for the administrative area. Returns `null` if the credentials you are using cannot read the configuration of the project.
|
|
11429
11610
|
*/
|
|
11430
11611
|
internal_domain: string | null;
|
|
11431
11612
|
/**
|
|
@@ -11449,11 +11630,11 @@ export type SiteAttributes = {
|
|
|
11449
11630
|
*/
|
|
11450
11631
|
last_data_change_at: null | string;
|
|
11451
11632
|
/**
|
|
11452
|
-
* Specifies whether all users of this site need to authenticate using two-factor authentication. Returns `null` if the credentials you are using cannot
|
|
11633
|
+
* Specifies whether all users of this site need to authenticate using two-factor authentication. Returns `null` if the credentials you are using cannot read the configuration of the project.
|
|
11453
11634
|
*/
|
|
11454
11635
|
require_2fa: boolean | null;
|
|
11455
11636
|
/**
|
|
11456
|
-
* Specifies whether you want IPs to be tracked in the Project usages section. Returns `null` if the credentials you are using cannot
|
|
11637
|
+
* Specifies whether you want IPs to be tracked in the Project usages section. Returns `null` if the credentials you are using cannot read the configuration of the project.
|
|
11457
11638
|
*/
|
|
11458
11639
|
ip_tracking_enabled: boolean | null;
|
|
11459
11640
|
/**
|
|
@@ -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.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,CAAC,uBAAuB,CAAgC,IAAI,CAAC,CACnE,CAAC;IACJ,CAAC;IAED;;;;;;;OAOG;IACH,SAAS,CACP,UAAkB,EAClB,IAAmC;QAEnC,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAmC;YAC3D,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,eAAe,UAAU,SAAS;YACvC,IAAI;SACL,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CACJ,OAAoC,EACpC,IAAgC;QAEhC,OAAO,IAAI,CAAC,SAAS,CACnB,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,EACnB,KAAK,CAAC,oBAAoB,CAAgC,IAAI,EAAE;YAC9D,EAAE,EAAE,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC;YACvB,IAAI,EAAE,OAAO;YACb,UAAU,EAAE;gBACV,eAAe;gBACf,OAAO;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;gBAC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,CAC1D,KAAK,CAAC,uBAAuB,CAAmC,IAAI,CAAC,CACtE,CAAC;IACJ,CAAC;IAED;;;;;;;OAOG;IACH,YAAY,CAAC,OAAe;QAC1B,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAsC;YAC9D,MAAM,EAAE,MAAM;YACd,GAAG,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,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