@supernova-studio/model 0.59.6 → 0.59.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@supernova-studio/model",
3
- "version": "0.59.6",
3
+ "version": "0.59.7",
4
4
  "description": "Supernova Data Models",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,7 +1,7 @@
1
1
  import { z } from "zod";
2
- import { nullishToOptional } from "../helpers";
2
+ import { DbUpdate, nullishToOptional } from "../helpers";
3
3
  import { UserMinified } from "../users/user-minified";
4
- import { tryParseUrl } from "../utils";
4
+ import { OmitStrict, tryParseUrl } from "../utils";
5
5
 
6
6
  export const IntegrationDesignSystem = z.object({
7
7
  designSystemId: z.string(),
@@ -53,6 +53,11 @@ export const IntegrationCredentials = z.object({
53
53
 
54
54
  export type IntegrationCredentials = z.infer<typeof IntegrationCredentials>;
55
55
 
56
+ export type UpdateIntegrationCredential = OmitStrict<
57
+ DbUpdate<IntegrationCredentials>,
58
+ "id" | "integrationId" | "appInstallationId" | "type"
59
+ >;
60
+
56
61
  export const ExtendedIntegrationType = z.enum([
57
62
  "Figma",
58
63
  "Github",