@supernova-studio/model 0.47.9 → 0.47.11
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/index.d.mts +22047 -23694
- package/dist/index.d.ts +22047 -23694
- package/dist/index.js +6 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1768 -1771
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/export/export-destinations.ts +3 -4
- package/src/export/export-jobs.ts +0 -1
- package/src/export/export-runner/export-context.ts +1 -0
- package/src/export/export-runner/exporter-payload.ts +1 -0
- package/src/helpers/db.ts +40 -54
- package/src/utils/errors.ts +2 -1
package/dist/index.js
CHANGED
|
@@ -58,9 +58,6 @@ var PostStripeCheckoutOutputSchema = _zod.z.object({
|
|
|
58
58
|
|
|
59
59
|
|
|
60
60
|
// src/helpers/db.ts
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
61
|
function zodCreateInputOmit() {
|
|
65
62
|
return {
|
|
66
63
|
id: true,
|
|
@@ -3200,7 +3197,8 @@ var ExportJobContext = _zod.z.object({
|
|
|
3200
3197
|
var ExporterFunctionPayload = _zod.z.object({
|
|
3201
3198
|
exportJobId: _zod.z.string(),
|
|
3202
3199
|
exportContextId: _zod.z.string(),
|
|
3203
|
-
designSystemId: _zod.z.string()
|
|
3200
|
+
designSystemId: _zod.z.string(),
|
|
3201
|
+
workspaceId: _zod.z.string()
|
|
3204
3202
|
});
|
|
3205
3203
|
|
|
3206
3204
|
// src/export/export-destinations.ts
|
|
@@ -3212,11 +3210,11 @@ var ExporterDestinationDocs = _zod.z.object({
|
|
|
3212
3210
|
});
|
|
3213
3211
|
var ExporterDestinationS3 = _zod.z.object({});
|
|
3214
3212
|
var ExporterDestinationGithub = _zod.z.object({
|
|
3215
|
-
|
|
3213
|
+
url: _zod.z.string(),
|
|
3216
3214
|
branch: _zod.z.string(),
|
|
3215
|
+
userId: _zod.z.string(),
|
|
3216
|
+
connectionId: _zod.z.string(),
|
|
3217
3217
|
relativePath: _zod.z.string()
|
|
3218
|
-
// // +
|
|
3219
|
-
// userId: z.coerce.string(),
|
|
3220
3218
|
});
|
|
3221
3219
|
var ExporterDestinationAzure = _zod.z.object({
|
|
3222
3220
|
connectionId: _zod.z.string(),
|
|
@@ -3312,7 +3310,6 @@ var ExportJob = _zod.z.object({
|
|
|
3312
3310
|
var ExportJobFindByFilter = ExportJob.pick({
|
|
3313
3311
|
exporterId: true,
|
|
3314
3312
|
designSystemVersionId: true,
|
|
3315
|
-
destinations: true,
|
|
3316
3313
|
createdByUserId: true,
|
|
3317
3314
|
status: true,
|
|
3318
3315
|
scheduleId: true,
|
|
@@ -3780,7 +3777,7 @@ var SupernovaException = class _SupernovaException extends Error {
|
|
|
3780
3777
|
return new _SupernovaException("MissingExporterPermission", message);
|
|
3781
3778
|
}
|
|
3782
3779
|
static missingIntegration(message) {
|
|
3783
|
-
return new _SupernovaException("
|
|
3780
|
+
return new _SupernovaException("MissingIntegration", message);
|
|
3784
3781
|
}
|
|
3785
3782
|
static noAccess(message) {
|
|
3786
3783
|
return new _SupernovaException("NoAccess", message);
|