@inneropen/marvin-sdk 1.3.0 → 1.3.1
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/platform.cjs +12 -0
- package/dist/platform.d.cts +8 -0
- package/dist/platform.d.ts +8 -0
- package/dist/platform.js +12 -0
- package/package.json +1 -1
package/dist/platform.cjs
CHANGED
|
@@ -306,6 +306,12 @@ var CollectionsModule = class {
|
|
|
306
306
|
async delete(id) {
|
|
307
307
|
return this.http.delete(`/api/platform/collections/${id}`);
|
|
308
308
|
}
|
|
309
|
+
/**
|
|
310
|
+
* Get entries in a collection
|
|
311
|
+
*/
|
|
312
|
+
async getEntries(id) {
|
|
313
|
+
return this.http.get(`/api/platform/collections/${id}/entries`);
|
|
314
|
+
}
|
|
309
315
|
};
|
|
310
316
|
|
|
311
317
|
// src/platform/resources.ts
|
|
@@ -344,6 +350,12 @@ var ResourcesModule = class {
|
|
|
344
350
|
async delete(id) {
|
|
345
351
|
return this.http.delete(`/api/platform/resources/${id}`);
|
|
346
352
|
}
|
|
353
|
+
/**
|
|
354
|
+
* Get entries that reference this resource
|
|
355
|
+
*/
|
|
356
|
+
async getEntries(id) {
|
|
357
|
+
return this.http.get(`/api/platform/resources/${id}/entries`);
|
|
358
|
+
}
|
|
347
359
|
};
|
|
348
360
|
|
|
349
361
|
// src/platform/assets.ts
|
package/dist/platform.d.cts
CHANGED
|
@@ -2516,6 +2516,10 @@ declare class CollectionsModule {
|
|
|
2516
2516
|
* Delete a collection
|
|
2517
2517
|
*/
|
|
2518
2518
|
delete(id: string): Promise<void>;
|
|
2519
|
+
/**
|
|
2520
|
+
* Get entries in a collection
|
|
2521
|
+
*/
|
|
2522
|
+
getEntries(id: string): Promise<PlatformEntry[]>;
|
|
2519
2523
|
}
|
|
2520
2524
|
|
|
2521
2525
|
/**
|
|
@@ -2547,6 +2551,10 @@ declare class ResourcesModule {
|
|
|
2547
2551
|
* Delete a resource
|
|
2548
2552
|
*/
|
|
2549
2553
|
delete(id: string): Promise<void>;
|
|
2554
|
+
/**
|
|
2555
|
+
* Get entries that reference this resource
|
|
2556
|
+
*/
|
|
2557
|
+
getEntries(id: string): Promise<PlatformEntry[]>;
|
|
2550
2558
|
}
|
|
2551
2559
|
|
|
2552
2560
|
/**
|
package/dist/platform.d.ts
CHANGED
|
@@ -2516,6 +2516,10 @@ declare class CollectionsModule {
|
|
|
2516
2516
|
* Delete a collection
|
|
2517
2517
|
*/
|
|
2518
2518
|
delete(id: string): Promise<void>;
|
|
2519
|
+
/**
|
|
2520
|
+
* Get entries in a collection
|
|
2521
|
+
*/
|
|
2522
|
+
getEntries(id: string): Promise<PlatformEntry[]>;
|
|
2519
2523
|
}
|
|
2520
2524
|
|
|
2521
2525
|
/**
|
|
@@ -2547,6 +2551,10 @@ declare class ResourcesModule {
|
|
|
2547
2551
|
* Delete a resource
|
|
2548
2552
|
*/
|
|
2549
2553
|
delete(id: string): Promise<void>;
|
|
2554
|
+
/**
|
|
2555
|
+
* Get entries that reference this resource
|
|
2556
|
+
*/
|
|
2557
|
+
getEntries(id: string): Promise<PlatformEntry[]>;
|
|
2550
2558
|
}
|
|
2551
2559
|
|
|
2552
2560
|
/**
|
package/dist/platform.js
CHANGED
|
@@ -102,6 +102,12 @@ var CollectionsModule = class {
|
|
|
102
102
|
async delete(id) {
|
|
103
103
|
return this.http.delete(`/api/platform/collections/${id}`);
|
|
104
104
|
}
|
|
105
|
+
/**
|
|
106
|
+
* Get entries in a collection
|
|
107
|
+
*/
|
|
108
|
+
async getEntries(id) {
|
|
109
|
+
return this.http.get(`/api/platform/collections/${id}/entries`);
|
|
110
|
+
}
|
|
105
111
|
};
|
|
106
112
|
|
|
107
113
|
// src/platform/resources.ts
|
|
@@ -140,6 +146,12 @@ var ResourcesModule = class {
|
|
|
140
146
|
async delete(id) {
|
|
141
147
|
return this.http.delete(`/api/platform/resources/${id}`);
|
|
142
148
|
}
|
|
149
|
+
/**
|
|
150
|
+
* Get entries that reference this resource
|
|
151
|
+
*/
|
|
152
|
+
async getEntries(id) {
|
|
153
|
+
return this.http.get(`/api/platform/resources/${id}/entries`);
|
|
154
|
+
}
|
|
143
155
|
};
|
|
144
156
|
|
|
145
157
|
// src/platform/assets.ts
|