@inneropen/marvin-sdk 2.0.0-next.18 → 2.0.0-next.19
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/{chunk-GJNOYXUQ.js → chunk-MZBIRXYX.js} +32 -0
- package/dist/index.cjs +32 -0
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1 -1
- package/dist/{marvin-g7dayc83.d.ts → marvin-DBsotzK6.d.ts} +20 -1
- package/dist/{marvin-Bx5k6tsF.d.cts → marvin-KDm7Meom.d.cts} +20 -1
- package/dist/publish.cjs +25 -0
- package/dist/publish.d.cts +2 -2
- package/dist/publish.d.ts +2 -2
- package/dist/publish.js +1 -1
- package/dist/types/index.d.cts +37 -1
- package/dist/types/index.d.ts +37 -1
- package/package.json +1 -1
|
@@ -642,6 +642,29 @@ var init_resources = __esm({
|
|
|
642
642
|
}
|
|
643
643
|
});
|
|
644
644
|
|
|
645
|
+
// src/entry-types/entry-types.ts
|
|
646
|
+
var EntryTypesModule;
|
|
647
|
+
var init_entry_types = __esm({
|
|
648
|
+
"src/entry-types/entry-types.ts"() {
|
|
649
|
+
"use strict";
|
|
650
|
+
EntryTypesModule = class {
|
|
651
|
+
constructor(http, workspaceSlug) {
|
|
652
|
+
this.http = http;
|
|
653
|
+
this.workspaceSlug = workspaceSlug;
|
|
654
|
+
}
|
|
655
|
+
http;
|
|
656
|
+
workspaceSlug;
|
|
657
|
+
/**
|
|
658
|
+
* List all entry types with rendering and capabilities info
|
|
659
|
+
*/
|
|
660
|
+
async list() {
|
|
661
|
+
const endpoint = `/api/publish/${this.workspaceSlug}/entry-types`;
|
|
662
|
+
return this.http.fetch(endpoint);
|
|
663
|
+
}
|
|
664
|
+
};
|
|
665
|
+
}
|
|
666
|
+
});
|
|
667
|
+
|
|
645
668
|
// src/workspaces/workspace.ts
|
|
646
669
|
var Workspace;
|
|
647
670
|
var init_workspace = __esm({
|
|
@@ -651,6 +674,7 @@ var init_workspace = __esm({
|
|
|
651
674
|
init_collections();
|
|
652
675
|
init_assets();
|
|
653
676
|
init_resources();
|
|
677
|
+
init_entry_types();
|
|
654
678
|
Workspace = class {
|
|
655
679
|
constructor(http, slug) {
|
|
656
680
|
this.http = http;
|
|
@@ -659,6 +683,7 @@ var init_workspace = __esm({
|
|
|
659
683
|
this.collections = new CollectionsModule(http, slug);
|
|
660
684
|
this.assets = new AssetsModule(http, slug);
|
|
661
685
|
this.resources = new ResourcesModule(http, slug);
|
|
686
|
+
this.entryTypes = new EntryTypesModule(http, slug);
|
|
662
687
|
}
|
|
663
688
|
http;
|
|
664
689
|
_site = null;
|
|
@@ -667,6 +692,7 @@ var init_workspace = __esm({
|
|
|
667
692
|
collections;
|
|
668
693
|
assets;
|
|
669
694
|
resources;
|
|
695
|
+
entryTypes;
|
|
670
696
|
/**
|
|
671
697
|
* Get workspace slug
|
|
672
698
|
*/
|
|
@@ -820,6 +846,12 @@ var init_marvin = __esm({
|
|
|
820
846
|
get resources() {
|
|
821
847
|
return this.workspace.resources;
|
|
822
848
|
}
|
|
849
|
+
/**
|
|
850
|
+
* Get entry types module
|
|
851
|
+
*/
|
|
852
|
+
get entryTypes() {
|
|
853
|
+
return this.workspace.entryTypes;
|
|
854
|
+
}
|
|
823
855
|
// ======================
|
|
824
856
|
// Convenience Methods
|
|
825
857
|
// ======================
|
package/dist/index.cjs
CHANGED
|
@@ -1370,6 +1370,29 @@ var init_resources = __esm({
|
|
|
1370
1370
|
}
|
|
1371
1371
|
});
|
|
1372
1372
|
|
|
1373
|
+
// src/entry-types/entry-types.ts
|
|
1374
|
+
var EntryTypesModule;
|
|
1375
|
+
var init_entry_types = __esm({
|
|
1376
|
+
"src/entry-types/entry-types.ts"() {
|
|
1377
|
+
"use strict";
|
|
1378
|
+
EntryTypesModule = class {
|
|
1379
|
+
constructor(http, workspaceSlug) {
|
|
1380
|
+
this.http = http;
|
|
1381
|
+
this.workspaceSlug = workspaceSlug;
|
|
1382
|
+
}
|
|
1383
|
+
http;
|
|
1384
|
+
workspaceSlug;
|
|
1385
|
+
/**
|
|
1386
|
+
* List all entry types with rendering and capabilities info
|
|
1387
|
+
*/
|
|
1388
|
+
async list() {
|
|
1389
|
+
const endpoint = `/api/publish/${this.workspaceSlug}/entry-types`;
|
|
1390
|
+
return this.http.fetch(endpoint);
|
|
1391
|
+
}
|
|
1392
|
+
};
|
|
1393
|
+
}
|
|
1394
|
+
});
|
|
1395
|
+
|
|
1373
1396
|
// src/workspaces/workspace.ts
|
|
1374
1397
|
var Workspace;
|
|
1375
1398
|
var init_workspace = __esm({
|
|
@@ -1379,6 +1402,7 @@ var init_workspace = __esm({
|
|
|
1379
1402
|
init_collections();
|
|
1380
1403
|
init_assets();
|
|
1381
1404
|
init_resources();
|
|
1405
|
+
init_entry_types();
|
|
1382
1406
|
Workspace = class {
|
|
1383
1407
|
constructor(http, slug) {
|
|
1384
1408
|
this.http = http;
|
|
@@ -1387,6 +1411,7 @@ var init_workspace = __esm({
|
|
|
1387
1411
|
this.collections = new CollectionsModule(http, slug);
|
|
1388
1412
|
this.assets = new AssetsModule(http, slug);
|
|
1389
1413
|
this.resources = new ResourcesModule(http, slug);
|
|
1414
|
+
this.entryTypes = new EntryTypesModule(http, slug);
|
|
1390
1415
|
}
|
|
1391
1416
|
http;
|
|
1392
1417
|
_site = null;
|
|
@@ -1395,6 +1420,7 @@ var init_workspace = __esm({
|
|
|
1395
1420
|
collections;
|
|
1396
1421
|
assets;
|
|
1397
1422
|
resources;
|
|
1423
|
+
entryTypes;
|
|
1398
1424
|
/**
|
|
1399
1425
|
* Get workspace slug
|
|
1400
1426
|
*/
|
|
@@ -1522,6 +1548,12 @@ var init_marvin = __esm({
|
|
|
1522
1548
|
get resources() {
|
|
1523
1549
|
return this.workspace.resources;
|
|
1524
1550
|
}
|
|
1551
|
+
/**
|
|
1552
|
+
* Get entry types module
|
|
1553
|
+
*/
|
|
1554
|
+
get entryTypes() {
|
|
1555
|
+
return this.workspace.entryTypes;
|
|
1556
|
+
}
|
|
1525
1557
|
// ======================
|
|
1526
1558
|
// Convenience Methods
|
|
1527
1559
|
// ======================
|
package/dist/index.d.cts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { M as MarvinConfig, a as MarvinClient } from './marvin-
|
|
2
|
-
export { C as Collection, E as Entry, b as MarvinApiError, c as MarvinAuthError, d as MarvinCache, e as MarvinConfigError, f as MarvinError, g as MarvinNetworkError, h as MarvinNotFoundError, i as MarvinServerError, j as MarvinValidationError, P as PaginatedResponse, k as PaginationMeta, l as PaginationParams, R as Resource, W as Workspace, m as createConfigFromEnv, n as createPaginatedResponse, o as extractData, p as isPaginatedResponse, q as offsetToPage, r as pageToOffset } from './marvin-
|
|
1
|
+
import { M as MarvinConfig, a as MarvinClient } from './marvin-KDm7Meom.cjs';
|
|
2
|
+
export { C as Collection, E as Entry, b as MarvinApiError, c as MarvinAuthError, d as MarvinCache, e as MarvinConfigError, f as MarvinError, g as MarvinNetworkError, h as MarvinNotFoundError, i as MarvinServerError, j as MarvinValidationError, P as PaginatedResponse, k as PaginationMeta, l as PaginationParams, R as Resource, W as Workspace, m as createConfigFromEnv, n as createPaginatedResponse, o as extractData, p as isPaginatedResponse, q as offsetToPage, r as pageToOffset } from './marvin-KDm7Meom.cjs';
|
|
3
3
|
import { H as HttpClient } from './HttpClient-CdF3IHM1.cjs';
|
|
4
4
|
export { A as AuthStrategy, B as BearerTokenAuth, a as HttpClientConfig, N as NoAuth, S as SessionAuth } from './HttpClient-CdF3IHM1.cjs';
|
|
5
5
|
import { AuthToken as AuthToken$1 } from './types/index.cjs';
|
|
6
|
-
export { GetAssetsOptions, GetEntriesOptions, GetResourcesOptions, MarvinAsset, MarvinCollection, MarvinEntry, MarvinEntryType, MarvinPublishResponse, MarvinResource, MarvinSite } from './types/index.cjs';
|
|
6
|
+
export { GetAssetsOptions, GetEntriesOptions, GetResourcesOptions, MarvinAsset, MarvinCollection, MarvinEntry, MarvinEntryType, MarvinPublishResponse, MarvinResource, MarvinSite, PublishedEntryType } from './types/index.cjs';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Authentication & User Registration
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { M as MarvinConfig, a as MarvinClient } from './marvin-
|
|
2
|
-
export { C as Collection, E as Entry, b as MarvinApiError, c as MarvinAuthError, d as MarvinCache, e as MarvinConfigError, f as MarvinError, g as MarvinNetworkError, h as MarvinNotFoundError, i as MarvinServerError, j as MarvinValidationError, P as PaginatedResponse, k as PaginationMeta, l as PaginationParams, R as Resource, W as Workspace, m as createConfigFromEnv, n as createPaginatedResponse, o as extractData, p as isPaginatedResponse, q as offsetToPage, r as pageToOffset } from './marvin-
|
|
1
|
+
import { M as MarvinConfig, a as MarvinClient } from './marvin-DBsotzK6.js';
|
|
2
|
+
export { C as Collection, E as Entry, b as MarvinApiError, c as MarvinAuthError, d as MarvinCache, e as MarvinConfigError, f as MarvinError, g as MarvinNetworkError, h as MarvinNotFoundError, i as MarvinServerError, j as MarvinValidationError, P as PaginatedResponse, k as PaginationMeta, l as PaginationParams, R as Resource, W as Workspace, m as createConfigFromEnv, n as createPaginatedResponse, o as extractData, p as isPaginatedResponse, q as offsetToPage, r as pageToOffset } from './marvin-DBsotzK6.js';
|
|
3
3
|
import { H as HttpClient } from './HttpClient-CdF3IHM1.js';
|
|
4
4
|
export { A as AuthStrategy, B as BearerTokenAuth, a as HttpClientConfig, N as NoAuth, S as SessionAuth } from './HttpClient-CdF3IHM1.js';
|
|
5
5
|
import { AuthToken as AuthToken$1 } from './types/index.js';
|
|
6
|
-
export { GetAssetsOptions, GetEntriesOptions, GetResourcesOptions, MarvinAsset, MarvinCollection, MarvinEntry, MarvinEntryType, MarvinPublishResponse, MarvinResource, MarvinSite } from './types/index.js';
|
|
6
|
+
export { GetAssetsOptions, GetEntriesOptions, GetResourcesOptions, MarvinAsset, MarvinCollection, MarvinEntry, MarvinEntryType, MarvinPublishResponse, MarvinResource, MarvinSite, PublishedEntryType } from './types/index.js';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Authentication & User Registration
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MarvinResource, MarvinEntry, MarvinAsset, MarvinCollection, MarvinEntryType, MarvinSite, GetResourcesOptions as GetResourcesOptions$1 } from './types/index.js';
|
|
1
|
+
import { PublishedEntryType, MarvinResource, MarvinEntry, MarvinAsset, MarvinCollection, MarvinEntryType, MarvinSite, GetResourcesOptions as GetResourcesOptions$1 } from './types/index.js';
|
|
2
2
|
import { H as HttpClient } from './HttpClient-CdF3IHM1.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -199,6 +199,20 @@ declare class MarvinHttpClient extends HttpClient {
|
|
|
199
199
|
fetch<T>(endpoint: string): Promise<T>;
|
|
200
200
|
}
|
|
201
201
|
|
|
202
|
+
/**
|
|
203
|
+
* Entry Types Module - List entry types with rendering info
|
|
204
|
+
*/
|
|
205
|
+
|
|
206
|
+
declare class EntryTypesModule {
|
|
207
|
+
private http;
|
|
208
|
+
private workspaceSlug;
|
|
209
|
+
constructor(http: MarvinHttpClient, workspaceSlug: string);
|
|
210
|
+
/**
|
|
211
|
+
* List all entry types with rendering and capabilities info
|
|
212
|
+
*/
|
|
213
|
+
list(): Promise<PublishedEntryType[]>;
|
|
214
|
+
}
|
|
215
|
+
|
|
202
216
|
/**
|
|
203
217
|
* Resource - Rich object representing a single resource
|
|
204
218
|
*/
|
|
@@ -489,6 +503,7 @@ declare class Workspace {
|
|
|
489
503
|
collections: CollectionsModule;
|
|
490
504
|
assets: AssetsModule;
|
|
491
505
|
resources: ResourcesModule;
|
|
506
|
+
entryTypes: EntryTypesModule;
|
|
492
507
|
constructor(http: MarvinHttpClient, slug: string);
|
|
493
508
|
/**
|
|
494
509
|
* Get workspace slug
|
|
@@ -558,6 +573,10 @@ declare class MarvinClient {
|
|
|
558
573
|
* Get resources module
|
|
559
574
|
*/
|
|
560
575
|
get resources(): ResourcesModule;
|
|
576
|
+
/**
|
|
577
|
+
* Get entry types module
|
|
578
|
+
*/
|
|
579
|
+
get entryTypes(): EntryTypesModule;
|
|
561
580
|
/**
|
|
562
581
|
* Get a single entry by slug
|
|
563
582
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MarvinResource, MarvinEntry, MarvinAsset, MarvinCollection, MarvinEntryType, MarvinSite, GetResourcesOptions as GetResourcesOptions$1 } from './types/index.cjs';
|
|
1
|
+
import { PublishedEntryType, MarvinResource, MarvinEntry, MarvinAsset, MarvinCollection, MarvinEntryType, MarvinSite, GetResourcesOptions as GetResourcesOptions$1 } from './types/index.cjs';
|
|
2
2
|
import { H as HttpClient } from './HttpClient-CdF3IHM1.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -199,6 +199,20 @@ declare class MarvinHttpClient extends HttpClient {
|
|
|
199
199
|
fetch<T>(endpoint: string): Promise<T>;
|
|
200
200
|
}
|
|
201
201
|
|
|
202
|
+
/**
|
|
203
|
+
* Entry Types Module - List entry types with rendering info
|
|
204
|
+
*/
|
|
205
|
+
|
|
206
|
+
declare class EntryTypesModule {
|
|
207
|
+
private http;
|
|
208
|
+
private workspaceSlug;
|
|
209
|
+
constructor(http: MarvinHttpClient, workspaceSlug: string);
|
|
210
|
+
/**
|
|
211
|
+
* List all entry types with rendering and capabilities info
|
|
212
|
+
*/
|
|
213
|
+
list(): Promise<PublishedEntryType[]>;
|
|
214
|
+
}
|
|
215
|
+
|
|
202
216
|
/**
|
|
203
217
|
* Resource - Rich object representing a single resource
|
|
204
218
|
*/
|
|
@@ -489,6 +503,7 @@ declare class Workspace {
|
|
|
489
503
|
collections: CollectionsModule;
|
|
490
504
|
assets: AssetsModule;
|
|
491
505
|
resources: ResourcesModule;
|
|
506
|
+
entryTypes: EntryTypesModule;
|
|
492
507
|
constructor(http: MarvinHttpClient, slug: string);
|
|
493
508
|
/**
|
|
494
509
|
* Get workspace slug
|
|
@@ -558,6 +573,10 @@ declare class MarvinClient {
|
|
|
558
573
|
* Get resources module
|
|
559
574
|
*/
|
|
560
575
|
get resources(): ResourcesModule;
|
|
576
|
+
/**
|
|
577
|
+
* Get entry types module
|
|
578
|
+
*/
|
|
579
|
+
get entryTypes(): EntryTypesModule;
|
|
561
580
|
/**
|
|
562
581
|
* Get a single entry by slug
|
|
563
582
|
*/
|
package/dist/publish.cjs
CHANGED
|
@@ -1182,6 +1182,23 @@ var ResourcesModule = class {
|
|
|
1182
1182
|
}
|
|
1183
1183
|
};
|
|
1184
1184
|
|
|
1185
|
+
// src/entry-types/entry-types.ts
|
|
1186
|
+
var EntryTypesModule = class {
|
|
1187
|
+
constructor(http, workspaceSlug) {
|
|
1188
|
+
this.http = http;
|
|
1189
|
+
this.workspaceSlug = workspaceSlug;
|
|
1190
|
+
}
|
|
1191
|
+
http;
|
|
1192
|
+
workspaceSlug;
|
|
1193
|
+
/**
|
|
1194
|
+
* List all entry types with rendering and capabilities info
|
|
1195
|
+
*/
|
|
1196
|
+
async list() {
|
|
1197
|
+
const endpoint = `/api/publish/${this.workspaceSlug}/entry-types`;
|
|
1198
|
+
return this.http.fetch(endpoint);
|
|
1199
|
+
}
|
|
1200
|
+
};
|
|
1201
|
+
|
|
1185
1202
|
// src/workspaces/workspace.ts
|
|
1186
1203
|
var Workspace = class {
|
|
1187
1204
|
constructor(http, slug) {
|
|
@@ -1191,6 +1208,7 @@ var Workspace = class {
|
|
|
1191
1208
|
this.collections = new CollectionsModule(http, slug);
|
|
1192
1209
|
this.assets = new AssetsModule(http, slug);
|
|
1193
1210
|
this.resources = new ResourcesModule(http, slug);
|
|
1211
|
+
this.entryTypes = new EntryTypesModule(http, slug);
|
|
1194
1212
|
}
|
|
1195
1213
|
http;
|
|
1196
1214
|
_site = null;
|
|
@@ -1199,6 +1217,7 @@ var Workspace = class {
|
|
|
1199
1217
|
collections;
|
|
1200
1218
|
assets;
|
|
1201
1219
|
resources;
|
|
1220
|
+
entryTypes;
|
|
1202
1221
|
/**
|
|
1203
1222
|
* Get workspace slug
|
|
1204
1223
|
*/
|
|
@@ -1312,6 +1331,12 @@ var MarvinClient = class {
|
|
|
1312
1331
|
get resources() {
|
|
1313
1332
|
return this.workspace.resources;
|
|
1314
1333
|
}
|
|
1334
|
+
/**
|
|
1335
|
+
* Get entry types module
|
|
1336
|
+
*/
|
|
1337
|
+
get entryTypes() {
|
|
1338
|
+
return this.workspace.entryTypes;
|
|
1339
|
+
}
|
|
1315
1340
|
// ======================
|
|
1316
1341
|
// Convenience Methods
|
|
1317
1342
|
// ======================
|
package/dist/publish.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { M as MarvinConfig, a as MarvinClient } from './marvin-
|
|
2
|
-
export { C as Collection, E as Entry, b as MarvinApiError, c as MarvinAuthError, d as MarvinCache, e as MarvinConfigError, f as MarvinError, g as MarvinNetworkError, h as MarvinNotFoundError, i as MarvinServerError, j as MarvinValidationError, P as PaginatedResponse, k as PaginationMeta, l as PaginationParams, R as Resource, W as Workspace, m as createConfigFromEnv, n as createPaginatedResponse, o as extractData, p as isPaginatedResponse, q as offsetToPage, r as pageToOffset } from './marvin-
|
|
1
|
+
import { M as MarvinConfig, a as MarvinClient } from './marvin-KDm7Meom.cjs';
|
|
2
|
+
export { C as Collection, E as Entry, b as MarvinApiError, c as MarvinAuthError, d as MarvinCache, e as MarvinConfigError, f as MarvinError, g as MarvinNetworkError, h as MarvinNotFoundError, i as MarvinServerError, j as MarvinValidationError, P as PaginatedResponse, k as PaginationMeta, l as PaginationParams, R as Resource, W as Workspace, m as createConfigFromEnv, n as createPaginatedResponse, o as extractData, p as isPaginatedResponse, q as offsetToPage, r as pageToOffset } from './marvin-KDm7Meom.cjs';
|
|
3
3
|
export { GetAssetsOptions, GetEntriesOptions, GetResourcesOptions, MarvinAsset, MarvinCollection, MarvinEntry, MarvinEntryType, MarvinPublishResponse, MarvinResource, MarvinSite } from './types/index.cjs';
|
|
4
4
|
export { A as AuthStrategy, B as BearerTokenAuth, H as HttpClient, a as HttpClientConfig } from './HttpClient-CdF3IHM1.cjs';
|
|
5
5
|
|
package/dist/publish.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { M as MarvinConfig, a as MarvinClient } from './marvin-
|
|
2
|
-
export { C as Collection, E as Entry, b as MarvinApiError, c as MarvinAuthError, d as MarvinCache, e as MarvinConfigError, f as MarvinError, g as MarvinNetworkError, h as MarvinNotFoundError, i as MarvinServerError, j as MarvinValidationError, P as PaginatedResponse, k as PaginationMeta, l as PaginationParams, R as Resource, W as Workspace, m as createConfigFromEnv, n as createPaginatedResponse, o as extractData, p as isPaginatedResponse, q as offsetToPage, r as pageToOffset } from './marvin-
|
|
1
|
+
import { M as MarvinConfig, a as MarvinClient } from './marvin-DBsotzK6.js';
|
|
2
|
+
export { C as Collection, E as Entry, b as MarvinApiError, c as MarvinAuthError, d as MarvinCache, e as MarvinConfigError, f as MarvinError, g as MarvinNetworkError, h as MarvinNotFoundError, i as MarvinServerError, j as MarvinValidationError, P as PaginatedResponse, k as PaginationMeta, l as PaginationParams, R as Resource, W as Workspace, m as createConfigFromEnv, n as createPaginatedResponse, o as extractData, p as isPaginatedResponse, q as offsetToPage, r as pageToOffset } from './marvin-DBsotzK6.js';
|
|
3
3
|
export { GetAssetsOptions, GetEntriesOptions, GetResourcesOptions, MarvinAsset, MarvinCollection, MarvinEntry, MarvinEntryType, MarvinPublishResponse, MarvinResource, MarvinSite } from './types/index.js';
|
|
4
4
|
export { A as AuthStrategy, B as BearerTokenAuth, H as HttpClient, a as HttpClientConfig } from './HttpClient-CdF3IHM1.js';
|
|
5
5
|
|
package/dist/publish.js
CHANGED
package/dist/types/index.d.cts
CHANGED
|
@@ -32,6 +32,17 @@ interface MarvinEntryType {
|
|
|
32
32
|
* @since 2.0.0
|
|
33
33
|
*/
|
|
34
34
|
schemaJson?: Record<string, unknown>;
|
|
35
|
+
rendering?: {
|
|
36
|
+
renderer?: string;
|
|
37
|
+
package?: string;
|
|
38
|
+
version?: string;
|
|
39
|
+
config?: Record<string, unknown>;
|
|
40
|
+
};
|
|
41
|
+
capabilities?: {
|
|
42
|
+
publishable?: boolean;
|
|
43
|
+
submittable?: boolean;
|
|
44
|
+
routable?: boolean;
|
|
45
|
+
};
|
|
35
46
|
}
|
|
36
47
|
interface MarvinAsset {
|
|
37
48
|
id: string;
|
|
@@ -128,6 +139,16 @@ interface MarvinEntry {
|
|
|
128
139
|
publishedAt?: string;
|
|
129
140
|
createdAt: string;
|
|
130
141
|
updatedAt: string;
|
|
142
|
+
entryTypeInfo?: {
|
|
143
|
+
slug: string;
|
|
144
|
+
renderer?: string;
|
|
145
|
+
package?: string;
|
|
146
|
+
version?: string;
|
|
147
|
+
config?: Record<string, unknown>;
|
|
148
|
+
publishable?: boolean;
|
|
149
|
+
submittable?: boolean;
|
|
150
|
+
routable?: boolean;
|
|
151
|
+
};
|
|
131
152
|
entryTypeId: string;
|
|
132
153
|
entryType?: MarvinEntryType;
|
|
133
154
|
collections?: MarvinCollection[];
|
|
@@ -159,6 +180,21 @@ interface GetAssetsOptions {
|
|
|
159
180
|
limit?: number;
|
|
160
181
|
offset?: number;
|
|
161
182
|
}
|
|
183
|
+
interface PublishedEntryType {
|
|
184
|
+
slug: string;
|
|
185
|
+
name: string;
|
|
186
|
+
rendering?: {
|
|
187
|
+
renderer?: string;
|
|
188
|
+
package?: string;
|
|
189
|
+
version?: string;
|
|
190
|
+
config?: Record<string, unknown>;
|
|
191
|
+
};
|
|
192
|
+
capabilities?: {
|
|
193
|
+
publishable?: boolean;
|
|
194
|
+
submittable?: boolean;
|
|
195
|
+
routable?: boolean;
|
|
196
|
+
};
|
|
197
|
+
}
|
|
162
198
|
interface GetResourcesOptions {
|
|
163
199
|
resourceType?: string;
|
|
164
200
|
limit?: number;
|
|
@@ -173,4 +209,4 @@ interface AuthToken {
|
|
|
173
209
|
tokenType: string;
|
|
174
210
|
}
|
|
175
211
|
|
|
176
|
-
export type { AssetUploadRequest, AuthToken, GetAssetsOptions, GetEntriesOptions, GetResourcesOptions, MarvinAsset, MarvinClientConfig, MarvinCollection, MarvinEntry, MarvinEntryType, MarvinPublishResponse, MarvinResource, MarvinSite, PublishedAsset };
|
|
212
|
+
export type { AssetUploadRequest, AuthToken, GetAssetsOptions, GetEntriesOptions, GetResourcesOptions, MarvinAsset, MarvinClientConfig, MarvinCollection, MarvinEntry, MarvinEntryType, MarvinPublishResponse, MarvinResource, MarvinSite, PublishedAsset, PublishedEntryType };
|
package/dist/types/index.d.ts
CHANGED
|
@@ -32,6 +32,17 @@ interface MarvinEntryType {
|
|
|
32
32
|
* @since 2.0.0
|
|
33
33
|
*/
|
|
34
34
|
schemaJson?: Record<string, unknown>;
|
|
35
|
+
rendering?: {
|
|
36
|
+
renderer?: string;
|
|
37
|
+
package?: string;
|
|
38
|
+
version?: string;
|
|
39
|
+
config?: Record<string, unknown>;
|
|
40
|
+
};
|
|
41
|
+
capabilities?: {
|
|
42
|
+
publishable?: boolean;
|
|
43
|
+
submittable?: boolean;
|
|
44
|
+
routable?: boolean;
|
|
45
|
+
};
|
|
35
46
|
}
|
|
36
47
|
interface MarvinAsset {
|
|
37
48
|
id: string;
|
|
@@ -128,6 +139,16 @@ interface MarvinEntry {
|
|
|
128
139
|
publishedAt?: string;
|
|
129
140
|
createdAt: string;
|
|
130
141
|
updatedAt: string;
|
|
142
|
+
entryTypeInfo?: {
|
|
143
|
+
slug: string;
|
|
144
|
+
renderer?: string;
|
|
145
|
+
package?: string;
|
|
146
|
+
version?: string;
|
|
147
|
+
config?: Record<string, unknown>;
|
|
148
|
+
publishable?: boolean;
|
|
149
|
+
submittable?: boolean;
|
|
150
|
+
routable?: boolean;
|
|
151
|
+
};
|
|
131
152
|
entryTypeId: string;
|
|
132
153
|
entryType?: MarvinEntryType;
|
|
133
154
|
collections?: MarvinCollection[];
|
|
@@ -159,6 +180,21 @@ interface GetAssetsOptions {
|
|
|
159
180
|
limit?: number;
|
|
160
181
|
offset?: number;
|
|
161
182
|
}
|
|
183
|
+
interface PublishedEntryType {
|
|
184
|
+
slug: string;
|
|
185
|
+
name: string;
|
|
186
|
+
rendering?: {
|
|
187
|
+
renderer?: string;
|
|
188
|
+
package?: string;
|
|
189
|
+
version?: string;
|
|
190
|
+
config?: Record<string, unknown>;
|
|
191
|
+
};
|
|
192
|
+
capabilities?: {
|
|
193
|
+
publishable?: boolean;
|
|
194
|
+
submittable?: boolean;
|
|
195
|
+
routable?: boolean;
|
|
196
|
+
};
|
|
197
|
+
}
|
|
162
198
|
interface GetResourcesOptions {
|
|
163
199
|
resourceType?: string;
|
|
164
200
|
limit?: number;
|
|
@@ -173,4 +209,4 @@ interface AuthToken {
|
|
|
173
209
|
tokenType: string;
|
|
174
210
|
}
|
|
175
211
|
|
|
176
|
-
export type { AssetUploadRequest, AuthToken, GetAssetsOptions, GetEntriesOptions, GetResourcesOptions, MarvinAsset, MarvinClientConfig, MarvinCollection, MarvinEntry, MarvinEntryType, MarvinPublishResponse, MarvinResource, MarvinSite, PublishedAsset };
|
|
212
|
+
export type { AssetUploadRequest, AuthToken, GetAssetsOptions, GetEntriesOptions, GetResourcesOptions, MarvinAsset, MarvinClientConfig, MarvinCollection, MarvinEntry, MarvinEntryType, MarvinPublishResponse, MarvinResource, MarvinSite, PublishedAsset, PublishedEntryType };
|