@inneropen/marvin-sdk 3.1.0 → 3.2.0-next.10
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-WJC4X7TB.js → chunk-SVH7AMMY.js} +6 -6
- package/dist/{chunk-L4LJWRA7.js → chunk-YHBF2SB3.js} +65 -30
- package/dist/{index-BLIrbIHf.d.cts → index-BVm5dIcw.d.cts} +289 -84
- package/dist/{index-BLIrbIHf.d.ts → index-BVm5dIcw.d.ts} +289 -84
- package/dist/index.cjs +70 -35
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +2 -2
- package/dist/{marvin-C_TihjE2.d.ts → marvin-BZ4meaB-.d.ts} +32 -77
- package/dist/{marvin-BhI__9Cj.d.cts → marvin-RZZj02LS.d.cts} +32 -77
- package/dist/platform.cjs +17 -6
- package/dist/platform.d.cts +8 -1
- package/dist/platform.d.ts +8 -1
- package/dist/platform.js +12 -1
- package/dist/publish.cjs +70 -35
- package/dist/publish.d.cts +3 -3
- package/dist/publish.d.ts +3 -3
- package/dist/publish.js +2 -2
- package/dist/types/index.d.cts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/platform.cjs
CHANGED
|
@@ -273,7 +273,7 @@ var HttpClient = class {
|
|
|
273
273
|
const timeoutId = setTimeout(() => controller.abort(), this.timeout);
|
|
274
274
|
const startTime = Date.now();
|
|
275
275
|
if (this.debug) {
|
|
276
|
-
this.logger.log(`[Marvin] ${method} ${url}`);
|
|
276
|
+
this.logger.log(`[Marvin SDK] ${method} ${url}`);
|
|
277
277
|
}
|
|
278
278
|
try {
|
|
279
279
|
const response = await fetch(url, {
|
|
@@ -287,7 +287,7 @@ var HttpClient = class {
|
|
|
287
287
|
const duration = Date.now() - startTime;
|
|
288
288
|
if (this.debug) {
|
|
289
289
|
this.logger.log(
|
|
290
|
-
`[Marvin] ${response.status} ${response.statusText} (${duration}ms)`
|
|
290
|
+
`[Marvin SDK] ${response.status} ${response.statusText} (${duration}ms)`
|
|
291
291
|
);
|
|
292
292
|
}
|
|
293
293
|
if (response.status === 401 && this.auth.handleUnauthorized) {
|
|
@@ -297,7 +297,7 @@ var HttpClient = class {
|
|
|
297
297
|
const errorText = await response.text().catch(() => "");
|
|
298
298
|
if (this.debug) {
|
|
299
299
|
this.logger.error(
|
|
300
|
-
`[Marvin] Error response: ${response.status} ${response.statusText}`,
|
|
300
|
+
`[Marvin SDK] Error response: ${response.status} ${response.statusText}`,
|
|
301
301
|
errorText ? `Body: ${errorText}` : ""
|
|
302
302
|
);
|
|
303
303
|
}
|
|
@@ -307,7 +307,7 @@ var HttpClient = class {
|
|
|
307
307
|
const delay = this.calculateRetryDelay(retryAttempt);
|
|
308
308
|
if (this.debug) {
|
|
309
309
|
this.logger.warn(
|
|
310
|
-
`[Marvin] Retry ${retryAttempt + 1}/${this.retryConfig.maxRetries} after ${delay}ms (status: ${response.status})`
|
|
310
|
+
`[Marvin SDK] Retry ${retryAttempt + 1}/${this.retryConfig.maxRetries} after ${delay}ms (status: ${response.status})`
|
|
311
311
|
);
|
|
312
312
|
}
|
|
313
313
|
await this.sleep(delay);
|
|
@@ -346,7 +346,7 @@ var HttpClient = class {
|
|
|
346
346
|
const data = await response.json();
|
|
347
347
|
if (this.debug) {
|
|
348
348
|
const sanitized = this.sanitizeForLogging(data);
|
|
349
|
-
this.logger.log("[Marvin] Response:", JSON.stringify(sanitized, null, 2));
|
|
349
|
+
this.logger.log("[Marvin SDK] Response:", JSON.stringify(sanitized, null, 2));
|
|
350
350
|
}
|
|
351
351
|
return data;
|
|
352
352
|
} catch (error) {
|
|
@@ -360,7 +360,7 @@ var HttpClient = class {
|
|
|
360
360
|
const delay = this.calculateRetryDelay(retryAttempt);
|
|
361
361
|
if (this.debug) {
|
|
362
362
|
this.logger.warn(
|
|
363
|
-
`[Marvin] Retry ${retryAttempt + 1}/${this.retryConfig.maxRetries} after ${delay}ms (network error)`
|
|
363
|
+
`[Marvin SDK] Retry ${retryAttempt + 1}/${this.retryConfig.maxRetries} after ${delay}ms (network error)`
|
|
364
364
|
);
|
|
365
365
|
}
|
|
366
366
|
await this.sleep(delay);
|
|
@@ -574,6 +574,17 @@ var CollectionsModule = class {
|
|
|
574
574
|
const validId = this.http.validatePathParam(id, "collection ID");
|
|
575
575
|
return this.http.patch(`/api/platform/collections/${validId}/entries/order`, { entries });
|
|
576
576
|
}
|
|
577
|
+
/**
|
|
578
|
+
* Update junction fields (role, metadata) for an entry in a collection
|
|
579
|
+
*/
|
|
580
|
+
async updateEntryJunction(collectionId, entryId, data) {
|
|
581
|
+
const validCollectionId = this.http.validatePathParam(collectionId, "collection ID");
|
|
582
|
+
const validEntryId = this.http.validatePathParam(entryId, "entry ID");
|
|
583
|
+
return this.http.patch(
|
|
584
|
+
`/api/platform/collections/${validCollectionId}/entries/${validEntryId}`,
|
|
585
|
+
data
|
|
586
|
+
);
|
|
587
|
+
}
|
|
577
588
|
};
|
|
578
589
|
|
|
579
590
|
// src/platform/resources.ts
|
package/dist/platform.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { H as HttpClient } from './HttpClient-CdF3IHM1.cjs';
|
|
2
|
-
import {
|
|
2
|
+
import { r as components, A as AuthToken } from './index-BVm5dIcw.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Platform API Types
|
|
@@ -156,6 +156,13 @@ declare class CollectionsModule {
|
|
|
156
156
|
entryId: string;
|
|
157
157
|
sortOrder: number;
|
|
158
158
|
}>): Promise<void>;
|
|
159
|
+
/**
|
|
160
|
+
* Update junction fields (role, metadata) for an entry in a collection
|
|
161
|
+
*/
|
|
162
|
+
updateEntryJunction(collectionId: string, entryId: string, data: {
|
|
163
|
+
role?: string | null;
|
|
164
|
+
metadataJson?: Record<string, unknown> | null;
|
|
165
|
+
}): Promise<void>;
|
|
159
166
|
}
|
|
160
167
|
|
|
161
168
|
/**
|
package/dist/platform.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { H as HttpClient } from './HttpClient-CdF3IHM1.js';
|
|
2
|
-
import {
|
|
2
|
+
import { r as components, A as AuthToken } from './index-BVm5dIcw.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Platform API Types
|
|
@@ -156,6 +156,13 @@ declare class CollectionsModule {
|
|
|
156
156
|
entryId: string;
|
|
157
157
|
sortOrder: number;
|
|
158
158
|
}>): Promise<void>;
|
|
159
|
+
/**
|
|
160
|
+
* Update junction fields (role, metadata) for an entry in a collection
|
|
161
|
+
*/
|
|
162
|
+
updateEntryJunction(collectionId: string, entryId: string, data: {
|
|
163
|
+
role?: string | null;
|
|
164
|
+
metadataJson?: Record<string, unknown> | null;
|
|
165
|
+
}): Promise<void>;
|
|
159
166
|
}
|
|
160
167
|
|
|
161
168
|
/**
|
package/dist/platform.js
CHANGED
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
MarvinValidationError,
|
|
4
4
|
SessionAuth,
|
|
5
5
|
init_core
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-SVH7AMMY.js";
|
|
7
7
|
|
|
8
8
|
// src/platform/client.ts
|
|
9
9
|
init_core();
|
|
@@ -128,6 +128,17 @@ var CollectionsModule = class {
|
|
|
128
128
|
const validId = this.http.validatePathParam(id, "collection ID");
|
|
129
129
|
return this.http.patch(`/api/platform/collections/${validId}/entries/order`, { entries });
|
|
130
130
|
}
|
|
131
|
+
/**
|
|
132
|
+
* Update junction fields (role, metadata) for an entry in a collection
|
|
133
|
+
*/
|
|
134
|
+
async updateEntryJunction(collectionId, entryId, data) {
|
|
135
|
+
const validCollectionId = this.http.validatePathParam(collectionId, "collection ID");
|
|
136
|
+
const validEntryId = this.http.validatePathParam(entryId, "entry ID");
|
|
137
|
+
return this.http.patch(
|
|
138
|
+
`/api/platform/collections/${validCollectionId}/entries/${validEntryId}`,
|
|
139
|
+
data
|
|
140
|
+
);
|
|
141
|
+
}
|
|
131
142
|
};
|
|
132
143
|
|
|
133
144
|
// src/platform/resources.ts
|
package/dist/publish.cjs
CHANGED
|
@@ -410,7 +410,7 @@ var HttpClient = class {
|
|
|
410
410
|
const timeoutId = setTimeout(() => controller.abort(), this.timeout);
|
|
411
411
|
const startTime = Date.now();
|
|
412
412
|
if (this.debug) {
|
|
413
|
-
this.logger.log(`[Marvin] ${method} ${url}`);
|
|
413
|
+
this.logger.log(`[Marvin SDK] ${method} ${url}`);
|
|
414
414
|
}
|
|
415
415
|
try {
|
|
416
416
|
const response = await fetch(url, {
|
|
@@ -424,7 +424,7 @@ var HttpClient = class {
|
|
|
424
424
|
const duration = Date.now() - startTime;
|
|
425
425
|
if (this.debug) {
|
|
426
426
|
this.logger.log(
|
|
427
|
-
`[Marvin] ${response.status} ${response.statusText} (${duration}ms)`
|
|
427
|
+
`[Marvin SDK] ${response.status} ${response.statusText} (${duration}ms)`
|
|
428
428
|
);
|
|
429
429
|
}
|
|
430
430
|
if (response.status === 401 && this.auth.handleUnauthorized) {
|
|
@@ -434,7 +434,7 @@ var HttpClient = class {
|
|
|
434
434
|
const errorText = await response.text().catch(() => "");
|
|
435
435
|
if (this.debug) {
|
|
436
436
|
this.logger.error(
|
|
437
|
-
`[Marvin] Error response: ${response.status} ${response.statusText}`,
|
|
437
|
+
`[Marvin SDK] Error response: ${response.status} ${response.statusText}`,
|
|
438
438
|
errorText ? `Body: ${errorText}` : ""
|
|
439
439
|
);
|
|
440
440
|
}
|
|
@@ -444,7 +444,7 @@ var HttpClient = class {
|
|
|
444
444
|
const delay = this.calculateRetryDelay(retryAttempt);
|
|
445
445
|
if (this.debug) {
|
|
446
446
|
this.logger.warn(
|
|
447
|
-
`[Marvin] Retry ${retryAttempt + 1}/${this.retryConfig.maxRetries} after ${delay}ms (status: ${response.status})`
|
|
447
|
+
`[Marvin SDK] Retry ${retryAttempt + 1}/${this.retryConfig.maxRetries} after ${delay}ms (status: ${response.status})`
|
|
448
448
|
);
|
|
449
449
|
}
|
|
450
450
|
await this.sleep(delay);
|
|
@@ -483,7 +483,7 @@ var HttpClient = class {
|
|
|
483
483
|
const data = await response.json();
|
|
484
484
|
if (this.debug) {
|
|
485
485
|
const sanitized = this.sanitizeForLogging(data);
|
|
486
|
-
this.logger.log("[Marvin] Response:", JSON.stringify(sanitized, null, 2));
|
|
486
|
+
this.logger.log("[Marvin SDK] Response:", JSON.stringify(sanitized, null, 2));
|
|
487
487
|
}
|
|
488
488
|
return data;
|
|
489
489
|
} catch (error) {
|
|
@@ -497,7 +497,7 @@ var HttpClient = class {
|
|
|
497
497
|
const delay = this.calculateRetryDelay(retryAttempt);
|
|
498
498
|
if (this.debug) {
|
|
499
499
|
this.logger.warn(
|
|
500
|
-
`[Marvin] Retry ${retryAttempt + 1}/${this.retryConfig.maxRetries} after ${delay}ms (network error)`
|
|
500
|
+
`[Marvin SDK] Retry ${retryAttempt + 1}/${this.retryConfig.maxRetries} after ${delay}ms (network error)`
|
|
501
501
|
);
|
|
502
502
|
}
|
|
503
503
|
await this.sleep(delay);
|
|
@@ -756,25 +756,22 @@ var Entry = class {
|
|
|
756
756
|
return this.raw.order;
|
|
757
757
|
}
|
|
758
758
|
get assets() {
|
|
759
|
-
return this.raw.assets
|
|
759
|
+
return (this.raw.assets ?? []).map(({ asset, role, position, metadataJson }) => ({
|
|
760
|
+
...asset,
|
|
761
|
+
entryMetadata: { role: role ?? null, position, metadataJson: metadataJson ?? null }
|
|
762
|
+
}));
|
|
760
763
|
}
|
|
761
764
|
get collections() {
|
|
762
|
-
return this.raw.collections
|
|
765
|
+
return (this.raw.collections ?? []).map(({ collection, role, position, metadataJson }) => ({
|
|
766
|
+
collection,
|
|
767
|
+
entryMetadata: { role: role ?? null, position, metadataJson: metadataJson ?? null }
|
|
768
|
+
}));
|
|
763
769
|
}
|
|
764
770
|
get resources() {
|
|
765
|
-
return this.raw.resources
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
}
|
|
770
|
-
assetsByRole(role) {
|
|
771
|
-
return this.raw.assets.filter((a) => a.role === role);
|
|
772
|
-
}
|
|
773
|
-
resource(role) {
|
|
774
|
-
return this.raw.resources.find((r) => r.role === role);
|
|
775
|
-
}
|
|
776
|
-
resourcesByRole(role) {
|
|
777
|
-
return this.raw.resources.filter((r) => r.role === role);
|
|
771
|
+
return (this.raw.resources ?? []).map(({ resource, role, position, metadataJson }) => ({
|
|
772
|
+
...resource,
|
|
773
|
+
entryMetadata: { role: role ?? null, position, metadataJson: metadataJson ?? null }
|
|
774
|
+
}));
|
|
778
775
|
}
|
|
779
776
|
field(key) {
|
|
780
777
|
return this.raw.data[key];
|
|
@@ -788,6 +785,16 @@ var Entry = class {
|
|
|
788
785
|
};
|
|
789
786
|
|
|
790
787
|
// src/entries/entries.ts
|
|
788
|
+
function toListEntry(raw) {
|
|
789
|
+
const { collections, ...rest } = raw;
|
|
790
|
+
return {
|
|
791
|
+
...rest,
|
|
792
|
+
collections: (collections ?? []).map(({ collection, role, position, metadataJson }) => ({
|
|
793
|
+
collection,
|
|
794
|
+
entryMetadata: { role: role ?? null, position, metadataJson: metadataJson ?? null }
|
|
795
|
+
}))
|
|
796
|
+
};
|
|
797
|
+
}
|
|
791
798
|
var EntriesModule = class {
|
|
792
799
|
constructor(http, workspaceSlug) {
|
|
793
800
|
this.http = http;
|
|
@@ -807,7 +814,7 @@ var EntriesModule = class {
|
|
|
807
814
|
});
|
|
808
815
|
const endpoint = `/api/publish/${this.workspaceSlug}/entries${queryString}`;
|
|
809
816
|
const response = await this.http.fetch(endpoint);
|
|
810
|
-
return response.data || [];
|
|
817
|
+
return (response.data || []).map(toListEntry);
|
|
811
818
|
}
|
|
812
819
|
/**
|
|
813
820
|
* Get a single entry by slug
|
|
@@ -872,8 +879,33 @@ var Collection = class {
|
|
|
872
879
|
get entryCount() {
|
|
873
880
|
return this.data.entryCount;
|
|
874
881
|
}
|
|
882
|
+
/**
|
|
883
|
+
* Entries with junction context for this collection surfaced directly.
|
|
884
|
+
* - role, position, junctionMetadata: from this collection's junction record
|
|
885
|
+
* - collections: slugs of other collections the entry belongs to
|
|
886
|
+
*/
|
|
875
887
|
get entries() {
|
|
876
|
-
return this.data.entries
|
|
888
|
+
return this.data.entries.map((entry) => {
|
|
889
|
+
const { collections, ...rest } = entry;
|
|
890
|
+
const junction = collections.find((ec) => ec.collection.slug === this.data.slug);
|
|
891
|
+
const entryMetadata = {
|
|
892
|
+
role: junction?.role ?? null,
|
|
893
|
+
position: junction?.position ?? 0,
|
|
894
|
+
metadataJson: junction?.metadataJson ?? null
|
|
895
|
+
};
|
|
896
|
+
const collection = {
|
|
897
|
+
slug: this.data.slug,
|
|
898
|
+
name: this.data.name,
|
|
899
|
+
description: this.data.description,
|
|
900
|
+
metadataJson: this.data.metadataJson,
|
|
901
|
+
entryMetadata
|
|
902
|
+
};
|
|
903
|
+
return {
|
|
904
|
+
...rest,
|
|
905
|
+
collection,
|
|
906
|
+
collectionSlugs: collections.map((ec) => ec.collection.slug)
|
|
907
|
+
};
|
|
908
|
+
});
|
|
877
909
|
}
|
|
878
910
|
toJSON() {
|
|
879
911
|
return this.data;
|
|
@@ -897,8 +929,8 @@ var CollectionsModule = class {
|
|
|
897
929
|
return response.data || [];
|
|
898
930
|
}
|
|
899
931
|
/**
|
|
900
|
-
* Get a single collection by slug
|
|
901
|
-
* Returns
|
|
932
|
+
* Get a single collection by slug.
|
|
933
|
+
* Returns an empty array if the collection is not found (404).
|
|
902
934
|
*/
|
|
903
935
|
async get(slug) {
|
|
904
936
|
try {
|
|
@@ -907,32 +939,34 @@ var CollectionsModule = class {
|
|
|
907
939
|
return new Collection(data);
|
|
908
940
|
} catch (error) {
|
|
909
941
|
if (error instanceof MarvinNotFoundError) {
|
|
910
|
-
return
|
|
942
|
+
return [];
|
|
911
943
|
}
|
|
912
944
|
throw error;
|
|
913
945
|
}
|
|
914
946
|
}
|
|
915
947
|
/**
|
|
916
|
-
* Get entries in a collection
|
|
917
|
-
*
|
|
948
|
+
* Get entries in a collection with junction context surfaced directly.
|
|
949
|
+
* Each entry has role/position/junctionMetadata from this collection's junction,
|
|
950
|
+
* and collections reduced to slugs of other memberships.
|
|
951
|
+
* Returns empty array if collection is not found.
|
|
918
952
|
*/
|
|
919
953
|
async entries(slug) {
|
|
920
954
|
const collection = await this.get(slug);
|
|
921
|
-
if (
|
|
922
|
-
return
|
|
955
|
+
if (Array.isArray(collection)) {
|
|
956
|
+
return collection;
|
|
923
957
|
}
|
|
924
958
|
return collection.entries;
|
|
925
959
|
}
|
|
926
960
|
/**
|
|
927
|
-
* Try multiple collection slugs in fallback order
|
|
928
|
-
* Returns the first collection that exists and has entries
|
|
961
|
+
* Try multiple collection slugs in fallback order.
|
|
962
|
+
* Returns entries from the first collection that exists and has entries.
|
|
929
963
|
*/
|
|
930
964
|
async fallback(slugs, options = {}) {
|
|
931
965
|
const { requireEntries = true } = options;
|
|
932
966
|
for (const slug of slugs) {
|
|
933
967
|
try {
|
|
934
968
|
const collection = await this.get(slug);
|
|
935
|
-
if (
|
|
969
|
+
if (Array.isArray(collection)) {
|
|
936
970
|
continue;
|
|
937
971
|
}
|
|
938
972
|
const entries = collection.entries;
|
|
@@ -1078,7 +1112,8 @@ var RenderersModule = class {
|
|
|
1078
1112
|
workspaceSlug;
|
|
1079
1113
|
async list() {
|
|
1080
1114
|
const endpoint = `/api/publish/${this.workspaceSlug}/entry-types`;
|
|
1081
|
-
|
|
1115
|
+
const all = await this.http.fetch(endpoint);
|
|
1116
|
+
return all.filter((et) => et.isRendered);
|
|
1082
1117
|
}
|
|
1083
1118
|
};
|
|
1084
1119
|
|
|
@@ -1294,7 +1329,7 @@ var MarvinClient = class {
|
|
|
1294
1329
|
*/
|
|
1295
1330
|
async getCollection(slug) {
|
|
1296
1331
|
const collection = await this.workspace.collections.get(slug);
|
|
1297
|
-
if (
|
|
1332
|
+
if (Array.isArray(collection)) {
|
|
1298
1333
|
return null;
|
|
1299
1334
|
}
|
|
1300
1335
|
return collection.toJSON();
|
package/dist/publish.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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-
|
|
3
|
-
export { G as GetAssetsOptions,
|
|
1
|
+
import { M as MarvinConfig, a as MarvinClient } from './marvin-RZZj02LS.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-RZZj02LS.cjs';
|
|
3
|
+
export { G as GetAssetsOptions, e as GetEntriesOptions, f as GetResourcesOptions, M as MarvinAsset, g as MarvinCollection, h as MarvinEntry, i as MarvinEntryListItem, j as MarvinEntryType, k as MarvinPublishResponse, l as MarvinResource, m as MarvinSite, P as PublishedAssetRead, n as PublishedCollectionSummary, o as PublishedEntryAsset, p as PublishedEntryResource, S as SiteConfiguration, W as WorkspaceInfo } from './index-BVm5dIcw.cjs';
|
|
4
4
|
export { A as AuthStrategy, B as BearerTokenAuth, H as HttpClient, a as HttpClientConfig } from './HttpClient-CdF3IHM1.cjs';
|
|
5
5
|
|
|
6
6
|
/**
|
package/dist/publish.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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-
|
|
3
|
-
export { G as GetAssetsOptions,
|
|
1
|
+
import { M as MarvinConfig, a as MarvinClient } from './marvin-BZ4meaB-.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-BZ4meaB-.js';
|
|
3
|
+
export { G as GetAssetsOptions, e as GetEntriesOptions, f as GetResourcesOptions, M as MarvinAsset, g as MarvinCollection, h as MarvinEntry, i as MarvinEntryListItem, j as MarvinEntryType, k as MarvinPublishResponse, l as MarvinResource, m as MarvinSite, P as PublishedAssetRead, n as PublishedCollectionSummary, o as PublishedEntryAsset, p as PublishedEntryResource, S as SiteConfiguration, W as WorkspaceInfo } from './index-BVm5dIcw.js';
|
|
4
4
|
export { A as AuthStrategy, B as BearerTokenAuth, H as HttpClient, a as HttpClientConfig } from './HttpClient-CdF3IHM1.js';
|
|
5
5
|
|
|
6
6
|
/**
|
package/dist/publish.js
CHANGED
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
init_marvin,
|
|
13
13
|
init_resource,
|
|
14
14
|
init_workspace
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-YHBF2SB3.js";
|
|
16
16
|
import {
|
|
17
17
|
BearerTokenAuth,
|
|
18
18
|
HttpClient,
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
isPaginatedResponse,
|
|
33
33
|
offsetToPage,
|
|
34
34
|
pageToOffset
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-SVH7AMMY.js";
|
|
36
36
|
|
|
37
37
|
// src/publish.ts
|
|
38
38
|
init_marvin();
|
package/dist/types/index.d.cts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { s as AssetAttachment, t as AssetUploadRequest, A as AuthToken, u as CollectionAttachment, C as CollectionContext, a as CollectionEntry, b as CollectionEntryMetadata, E as EntryAsset, c as EntryCollectionContext, v as EntryCollectionRead, d as EntryResource, G as GetAssetsOptions, e as GetEntriesOptions, f as GetResourcesOptions, L as ListEntry, M as MarvinAsset, w as MarvinClientConfig, g as MarvinCollection, h as MarvinEntry, i as MarvinEntryListItem, j as MarvinEntryType, k as MarvinPublishResponse, l as MarvinResource, m as MarvinSite, P as PublishedAssetRead, n as PublishedCollectionSummary, o as PublishedEntryAsset, x as PublishedEntryCollection, p as PublishedEntryResource, q as PublishedEntryType, y as PublishedResourceSummary, R as ResourceAttachment, S as SiteConfiguration, W as WorkspaceInfo } from '../index-BVm5dIcw.cjs';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { s as AssetAttachment, t as AssetUploadRequest, A as AuthToken, u as CollectionAttachment, C as CollectionContext, a as CollectionEntry, b as CollectionEntryMetadata, E as EntryAsset, c as EntryCollectionContext, v as EntryCollectionRead, d as EntryResource, G as GetAssetsOptions, e as GetEntriesOptions, f as GetResourcesOptions, L as ListEntry, M as MarvinAsset, w as MarvinClientConfig, g as MarvinCollection, h as MarvinEntry, i as MarvinEntryListItem, j as MarvinEntryType, k as MarvinPublishResponse, l as MarvinResource, m as MarvinSite, P as PublishedAssetRead, n as PublishedCollectionSummary, o as PublishedEntryAsset, x as PublishedEntryCollection, p as PublishedEntryResource, q as PublishedEntryType, y as PublishedResourceSummary, R as ResourceAttachment, S as SiteConfiguration, W as WorkspaceInfo } from '../index-BVm5dIcw.js';
|