@rizom/brain 0.2.0-alpha.65 → 0.2.0-alpha.67
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/brain.js +1001 -991
- package/dist/deploy.js +4 -171
- package/dist/deploy.js.map +3 -197
- package/dist/entities.d.ts +5 -0
- package/dist/entities.js +92 -142
- package/dist/entities.js.map +12 -19
- package/dist/index.js +2 -2
- package/dist/index.js.map +2 -2
- package/dist/interfaces.js +90 -140
- package/dist/interfaces.js.map +7 -14
- package/dist/plugins.d.ts +7 -0
- package/dist/plugins.js +72 -122
- package/dist/plugins.js.map +31 -32
- package/dist/services.js +92 -142
- package/dist/services.js.map +12 -19
- package/dist/site.js +161 -161
- package/dist/site.js.map +69 -72
- package/dist/templates.js +90 -140
- package/dist/templates.js.map +14 -21
- package/package.json +3 -2
package/dist/plugins.d.ts
CHANGED
|
@@ -131,6 +131,10 @@ interface SearchResult<T extends BaseEntity = BaseEntity> {
|
|
|
131
131
|
/**
|
|
132
132
|
* Normalized system_create input shape used by plugin create interceptors.
|
|
133
133
|
*/
|
|
134
|
+
interface CreateCoverImageInput {
|
|
135
|
+
generate?: boolean | undefined;
|
|
136
|
+
prompt?: string | undefined;
|
|
137
|
+
}
|
|
134
138
|
interface CreateInput {
|
|
135
139
|
entityType: string;
|
|
136
140
|
prompt?: string;
|
|
@@ -139,6 +143,7 @@ interface CreateInput {
|
|
|
139
143
|
url?: string;
|
|
140
144
|
targetEntityType?: string;
|
|
141
145
|
targetEntityId?: string;
|
|
146
|
+
coverImage?: boolean | CreateCoverImageInput;
|
|
142
147
|
}
|
|
143
148
|
/**
|
|
144
149
|
* Minimal caller context forwarded to plugin create interceptors.
|
|
@@ -1177,7 +1182,9 @@ interface BasePluginContext {
|
|
|
1177
1182
|
readonly dataDir: string;
|
|
1178
1183
|
readonly domain: string | undefined;
|
|
1179
1184
|
readonly siteUrl: string | undefined;
|
|
1185
|
+
readonly localSiteUrl: string | undefined;
|
|
1180
1186
|
readonly previewUrl: string | undefined;
|
|
1187
|
+
readonly preferLocalUrls: boolean;
|
|
1181
1188
|
readonly appInfo: () => Promise<AppInfo>;
|
|
1182
1189
|
readonly entityService: IEntityService;
|
|
1183
1190
|
readonly identity: IIdentityNamespace;
|