@supernova-studio/model 0.47.19 → 0.47.22
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 +214 -61
- package/dist/index.d.ts +214 -61
- package/dist/index.js +26 -10
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +26 -10
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/export/export-destinations.ts +16 -0
- package/src/integrations/integration.ts +8 -6
- package/src/utils/errors.ts +6 -1
package/dist/index.js
CHANGED
|
@@ -3227,7 +3227,10 @@ var ExporterDestinationGithub = _zod.z.object({
|
|
|
3227
3227
|
url: _zod.z.string(),
|
|
3228
3228
|
// Location
|
|
3229
3229
|
branch: _zod.z.string(),
|
|
3230
|
-
relativePath: nullishToOptional(_zod.z.string())
|
|
3230
|
+
relativePath: nullishToOptional(_zod.z.string()),
|
|
3231
|
+
// Legacy deprecated fields. Use `credentialId` instead
|
|
3232
|
+
connectionId: _zod.z.string().optional(),
|
|
3233
|
+
userId: _zod.z.number().optional()
|
|
3231
3234
|
});
|
|
3232
3235
|
var ExporterDestinationAzure = _zod.z.object({
|
|
3233
3236
|
credentialId: _zod.z.string().optional(),
|
|
@@ -3239,7 +3242,10 @@ var ExporterDestinationAzure = _zod.z.object({
|
|
|
3239
3242
|
branch: _zod.z.string(),
|
|
3240
3243
|
relativePath: nullishToOptional(_zod.z.string()),
|
|
3241
3244
|
// Maybe not needed
|
|
3242
|
-
url: nullishToOptional(_zod.z.string())
|
|
3245
|
+
url: nullishToOptional(_zod.z.string()),
|
|
3246
|
+
// Legacy deprecated fields. Use `credentialId` instead
|
|
3247
|
+
connectionId: _zod.z.string().optional(),
|
|
3248
|
+
userId: _zod.z.number().optional()
|
|
3243
3249
|
});
|
|
3244
3250
|
var ExporterDestinationGitlab = _zod.z.object({
|
|
3245
3251
|
credentialId: _zod.z.string().optional(),
|
|
@@ -3249,7 +3255,10 @@ var ExporterDestinationGitlab = _zod.z.object({
|
|
|
3249
3255
|
branch: _zod.z.string(),
|
|
3250
3256
|
relativePath: nullishToOptional(_zod.z.string()),
|
|
3251
3257
|
// Maybe not needed
|
|
3252
|
-
url: nullishToOptional(_zod.z.string())
|
|
3258
|
+
url: nullishToOptional(_zod.z.string()),
|
|
3259
|
+
// Legacy deprecated fields. Use `credentialId` instead
|
|
3260
|
+
connectionId: _zod.z.string().optional(),
|
|
3261
|
+
userId: _zod.z.number().optional()
|
|
3253
3262
|
});
|
|
3254
3263
|
var ExporterDestinationBitbucket = _zod.z.object({
|
|
3255
3264
|
credentialId: _zod.z.string().optional(),
|
|
@@ -3259,7 +3268,10 @@ var ExporterDestinationBitbucket = _zod.z.object({
|
|
|
3259
3268
|
repoSlug: _zod.z.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
3260
3269
|
// Location
|
|
3261
3270
|
branch: _zod.z.string(),
|
|
3262
|
-
relativePath: nullishToOptional(_zod.z.string())
|
|
3271
|
+
relativePath: nullishToOptional(_zod.z.string()),
|
|
3272
|
+
// Legacy deprecated fields. Use `credentialId` instead
|
|
3273
|
+
connectionId: _zod.z.string().optional(),
|
|
3274
|
+
userId: _zod.z.number().optional()
|
|
3263
3275
|
});
|
|
3264
3276
|
var ExportDestinationsMap = _zod.z.object({
|
|
3265
3277
|
webhookUrl: _zod.z.string().optional(),
|
|
@@ -3558,12 +3570,12 @@ var IntegrationDesignSystem = _zod.z.object({
|
|
|
3558
3570
|
});
|
|
3559
3571
|
var IntegrationCredentialsType = _zod.z.enum(["OAuth2", "PAT", "GithubApp"]);
|
|
3560
3572
|
var IntegrationCredentialsProfile = _zod.z.object({
|
|
3561
|
-
id: _zod.z.string(),
|
|
3562
|
-
email: _zod.z.string()
|
|
3563
|
-
handle: _zod.z.string()
|
|
3564
|
-
type: _zod.z.string()
|
|
3565
|
-
avatarUrl: _zod.z.string()
|
|
3566
|
-
organization: _zod.z.string()
|
|
3573
|
+
id: nullishToOptional(_zod.z.string()),
|
|
3574
|
+
email: nullishToOptional(_zod.z.string()),
|
|
3575
|
+
handle: nullishToOptional(_zod.z.string()),
|
|
3576
|
+
type: nullishToOptional(_zod.z.string()),
|
|
3577
|
+
avatarUrl: nullishToOptional(_zod.z.string()),
|
|
3578
|
+
organization: nullishToOptional(_zod.z.string())
|
|
3567
3579
|
});
|
|
3568
3580
|
var IntegrationCredentials = _zod.z.object({
|
|
3569
3581
|
id: _zod.z.string(),
|
|
@@ -3577,6 +3589,7 @@ var IntegrationCredentials = _zod.z.object({
|
|
|
3577
3589
|
expiresAt: _zod.z.coerce.date().optional(),
|
|
3578
3590
|
refreshedAt: _zod.z.coerce.date().optional(),
|
|
3579
3591
|
username: _zod.z.string().optional(),
|
|
3592
|
+
appInstallationId: _zod.z.string().optional(),
|
|
3580
3593
|
profile: IntegrationCredentialsProfile.optional(),
|
|
3581
3594
|
customUrl: _zod.z.string().optional(),
|
|
3582
3595
|
user: UserMinified.optional()
|
|
@@ -3836,6 +3849,9 @@ var SupernovaException = class _SupernovaException extends Error {
|
|
|
3836
3849
|
static missingCredentials(message) {
|
|
3837
3850
|
return new _SupernovaException("MissingCredentials", message);
|
|
3838
3851
|
}
|
|
3852
|
+
static thirdPartyError(message) {
|
|
3853
|
+
return new _SupernovaException("ThirdPartyError", message);
|
|
3854
|
+
}
|
|
3839
3855
|
//
|
|
3840
3856
|
// To refactor
|
|
3841
3857
|
//
|