datocms-plugin-sdk 0.6.17 → 0.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/esm/SiteApiSchema.d.ts +841 -791
- package/dist/esm/types.d.ts +10 -3
- package/dist/types/SiteApiSchema.d.ts +841 -791
- package/dist/types/types.d.ts +10 -3
- package/package.json +2 -2
- package/src/SiteApiSchema.ts +874 -791
- package/src/types.ts +10 -2
- package/types.json +8129 -7893
package/src/types.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { BlockNodeTypeWithCustomStyle } from 'datocms-structured-text-utils';
|
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
4
|
Account,
|
|
5
|
+
Organization,
|
|
5
6
|
Field,
|
|
6
7
|
Fieldset,
|
|
7
8
|
Item,
|
|
@@ -545,7 +546,7 @@ export type CommonProperties = {
|
|
|
545
546
|
* The current DatoCMS user. It can either be the owner or one of the
|
|
546
547
|
* collaborators (regular or SSO).
|
|
547
548
|
*/
|
|
548
|
-
currentUser: User | SsoUser | Account;
|
|
549
|
+
currentUser: User | SsoUser | Account | Organization;
|
|
549
550
|
/** The role for the current DatoCMS user */
|
|
550
551
|
currentRole: Role;
|
|
551
552
|
/**
|
|
@@ -609,8 +610,15 @@ export type RenderAdditionalProperties = {
|
|
|
609
610
|
* not present, use the `loadSsoUsers` function to load them.
|
|
610
611
|
*/
|
|
611
612
|
ssoUsers: Partial<Record<string, SsoUser>>;
|
|
612
|
-
/**
|
|
613
|
+
/**
|
|
614
|
+
* The account that is the project owner
|
|
615
|
+
*
|
|
616
|
+
* @deprecated Please use `.owner` instead, as the project owner can also be
|
|
617
|
+
* an organization
|
|
618
|
+
*/
|
|
613
619
|
account: Account;
|
|
620
|
+
/** The account that is the project owner */
|
|
621
|
+
owner: Account | Organization;
|
|
614
622
|
/** The padding in px that must be applied to the body */
|
|
615
623
|
bodyPadding: [number, number, number, number];
|
|
616
624
|
};
|