diff --git a/apps/console/src/components/documents/__generated__/LinkedDocumentsCardFragment.graphql.ts b/apps/console/src/components/documents/__generated__/LinkedDocumentsCardFragment.graphql.ts index 7e4118a9e..c7e5fd6d4 100644 --- a/apps/console/src/components/documents/__generated__/LinkedDocumentsCardFragment.graphql.ts +++ b/apps/console/src/components/documents/__generated__/LinkedDocumentsCardFragment.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<<743c5a0c4d380bd05c0d8ccd7a664e58>> + * @generated SignedSource<<0f8cdaa2d7380a1128e7c42004b7d506>> * @lightSyntaxTransform * @nogrep */ @@ -10,7 +10,7 @@ import { ReaderFragment } from 'relay-runtime'; export type DocumentStatus = "DRAFT" | "PUBLISHED"; -export type DocumentType = "ISMS" | "OTHER" | "POLICY"; +export type DocumentType = "ISMS" | "OTHER" | "POLICY" | "PROCEDURE"; import { FragmentRefs } from "relay-runtime"; export type LinkedDocumentsCardFragment$data = { readonly createdAt: any; diff --git a/apps/console/src/components/documents/__generated__/LinkedDocumentsDialogFragment.graphql.ts b/apps/console/src/components/documents/__generated__/LinkedDocumentsDialogFragment.graphql.ts index 409b3fb79..1a451f958 100644 --- a/apps/console/src/components/documents/__generated__/LinkedDocumentsDialogFragment.graphql.ts +++ b/apps/console/src/components/documents/__generated__/LinkedDocumentsDialogFragment.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<<7b0ec493ab146db602cae612158407cb>> + * @generated SignedSource<<096eea04ea39ac931b8627aee0ebb26c>> * @lightSyntaxTransform * @nogrep */ @@ -9,7 +9,7 @@ // @ts-nocheck import { ReaderFragment } from 'relay-runtime'; -export type DocumentType = "ISMS" | "OTHER" | "POLICY"; +export type DocumentType = "ISMS" | "OTHER" | "POLICY" | "PROCEDURE"; import { FragmentRefs } from "relay-runtime"; export type LinkedDocumentsDialogFragment$data = { readonly documents: { diff --git a/apps/console/src/components/trustCenter/__generated__/TrustCenterDocumentsCardFragment.graphql.ts b/apps/console/src/components/trustCenter/__generated__/TrustCenterDocumentsCardFragment.graphql.ts index f5a7ae31d..bc7f4a128 100644 --- a/apps/console/src/components/trustCenter/__generated__/TrustCenterDocumentsCardFragment.graphql.ts +++ b/apps/console/src/components/trustCenter/__generated__/TrustCenterDocumentsCardFragment.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<<869852416d522b3851e516a543454edb>> + * @generated SignedSource<<40e45041dd8b72c58f1059d9cad3c15c>> * @lightSyntaxTransform * @nogrep */ @@ -10,7 +10,7 @@ import { ReaderFragment } from 'relay-runtime'; export type DocumentStatus = "DRAFT" | "PUBLISHED"; -export type DocumentType = "ISMS" | "OTHER" | "POLICY"; +export type DocumentType = "ISMS" | "OTHER" | "POLICY" | "PROCEDURE"; export type TrustCenterVisibility = "NONE" | "PRIVATE" | "PUBLIC"; import { FragmentRefs } from "relay-runtime"; export type TrustCenterDocumentsCardFragment$data = { diff --git a/apps/console/src/hooks/forms/useDocumentForm.tsx b/apps/console/src/hooks/forms/useDocumentForm.tsx index 5dcf4287d..fd51a831e 100644 --- a/apps/console/src/hooks/forms/useDocumentForm.tsx +++ b/apps/console/src/hooks/forms/useDocumentForm.tsx @@ -5,7 +5,7 @@ export const documentSchema = z.object({ title: z.string(), content: z.string(), ownerId: z.string(), - documentType: z.enum(["OTHER", "ISMS", "POLICY"]), + documentType: z.enum(["OTHER", "ISMS", "POLICY", "PROCEDURE"]), }); export const useDocumentForm = () => { diff --git a/apps/console/src/hooks/graph/__generated__/TrustCenterAccessGraphCreateMutation.graphql.ts b/apps/console/src/hooks/graph/__generated__/TrustCenterAccessGraphCreateMutation.graphql.ts index 4256cd003..15188116c 100644 --- a/apps/console/src/hooks/graph/__generated__/TrustCenterAccessGraphCreateMutation.graphql.ts +++ b/apps/console/src/hooks/graph/__generated__/TrustCenterAccessGraphCreateMutation.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<<2ff966b9632595cece04e7a5ef3f7dd7>> + * @generated SignedSource<<5c208d2afc4eb2968b59215d3e79231b>> * @lightSyntaxTransform * @nogrep */ @@ -9,7 +9,7 @@ // @ts-nocheck import { ConcreteRequest } from 'relay-runtime'; -export type DocumentType = "ISMS" | "OTHER" | "POLICY"; +export type DocumentType = "ISMS" | "OTHER" | "POLICY" | "PROCEDURE"; export type CreateTrustCenterAccessInput = { active: boolean; email: string; diff --git a/apps/console/src/hooks/graph/__generated__/TrustCenterAccessGraphUpdateMutation.graphql.ts b/apps/console/src/hooks/graph/__generated__/TrustCenterAccessGraphUpdateMutation.graphql.ts index 1cc6bad17..0c61ab971 100644 --- a/apps/console/src/hooks/graph/__generated__/TrustCenterAccessGraphUpdateMutation.graphql.ts +++ b/apps/console/src/hooks/graph/__generated__/TrustCenterAccessGraphUpdateMutation.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<<4aef541df2f5673dd3694ca275f3164d>> + * @generated SignedSource<<395567ba680d0a9e1bad1cdef52bc2e1>> * @lightSyntaxTransform * @nogrep */ @@ -9,7 +9,7 @@ // @ts-nocheck import { ConcreteRequest } from 'relay-runtime'; -export type DocumentType = "ISMS" | "OTHER" | "POLICY"; +export type DocumentType = "ISMS" | "OTHER" | "POLICY" | "PROCEDURE"; export type UpdateTrustCenterAccessInput = { active?: boolean | null | undefined; documentIds?: ReadonlyArray | null | undefined; diff --git a/apps/console/src/hooks/graph/__generated__/TrustCenterAccessGraph_accesses.graphql.ts b/apps/console/src/hooks/graph/__generated__/TrustCenterAccessGraph_accesses.graphql.ts index 63128d54d..737421bcf 100644 --- a/apps/console/src/hooks/graph/__generated__/TrustCenterAccessGraph_accesses.graphql.ts +++ b/apps/console/src/hooks/graph/__generated__/TrustCenterAccessGraph_accesses.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<<3717625e10534aaff2d7967a1824405b>> + * @generated SignedSource<> * @lightSyntaxTransform * @nogrep */ @@ -9,7 +9,7 @@ // @ts-nocheck import { ReaderFragment } from 'relay-runtime'; -export type DocumentType = "ISMS" | "OTHER" | "POLICY"; +export type DocumentType = "ISMS" | "OTHER" | "POLICY" | "PROCEDURE"; import { FragmentRefs } from "relay-runtime"; export type TrustCenterAccessGraph_accesses$data = { readonly accesses: { diff --git a/apps/console/src/hooks/graph/__generated__/TrustCenterDocumentGraphUpdateMutation.graphql.ts b/apps/console/src/hooks/graph/__generated__/TrustCenterDocumentGraphUpdateMutation.graphql.ts index aea0baaf5..2cd199bcc 100644 --- a/apps/console/src/hooks/graph/__generated__/TrustCenterDocumentGraphUpdateMutation.graphql.ts +++ b/apps/console/src/hooks/graph/__generated__/TrustCenterDocumentGraphUpdateMutation.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<<64b79a80214710d6c3e4676cd63136e4>> + * @generated SignedSource<<18b931f119e8ef68f016dfcdf76366cc>> * @lightSyntaxTransform * @nogrep */ @@ -10,7 +10,7 @@ import { ConcreteRequest } from 'relay-runtime'; import { FragmentRefs } from "relay-runtime"; -export type DocumentType = "ISMS" | "OTHER" | "POLICY"; +export type DocumentType = "ISMS" | "OTHER" | "POLICY" | "PROCEDURE"; export type TrustCenterVisibility = "NONE" | "PRIVATE" | "PUBLIC"; export type UpdateDocumentInput = { content?: string | null | undefined; diff --git a/apps/console/src/pages/organizations/documents/__generated__/DocumentDetailPageDocumentFragment.graphql.ts b/apps/console/src/pages/organizations/documents/__generated__/DocumentDetailPageDocumentFragment.graphql.ts index 0ba61f9ac..5716496f1 100644 --- a/apps/console/src/pages/organizations/documents/__generated__/DocumentDetailPageDocumentFragment.graphql.ts +++ b/apps/console/src/pages/organizations/documents/__generated__/DocumentDetailPageDocumentFragment.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<<9bec5530e7a90ab3fb9f21c5c2d92286>> + * @generated SignedSource<<993de5bc8086378a2993bf0d0cf13658>> * @lightSyntaxTransform * @nogrep */ @@ -10,7 +10,7 @@ import { ReaderFragment } from 'relay-runtime'; export type DocumentStatus = "DRAFT" | "PUBLISHED"; -export type DocumentType = "ISMS" | "OTHER" | "POLICY"; +export type DocumentType = "ISMS" | "OTHER" | "POLICY" | "PROCEDURE"; export type DocumentVersionSignatureState = "REQUESTED" | "SIGNED"; import { FragmentRefs } from "relay-runtime"; export type DocumentDetailPageDocumentFragment$data = { diff --git a/apps/console/src/pages/organizations/documents/__generated__/DocumentDetailPageRowFragment.graphql.ts b/apps/console/src/pages/organizations/documents/__generated__/DocumentDetailPageRowFragment.graphql.ts index b5140d279..104d0abee 100644 --- a/apps/console/src/pages/organizations/documents/__generated__/DocumentDetailPageRowFragment.graphql.ts +++ b/apps/console/src/pages/organizations/documents/__generated__/DocumentDetailPageRowFragment.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<<4cf9e23d757753509bb695aab205ee46>> + * @generated SignedSource<<07388b39e4109439464531d46a890841>> * @lightSyntaxTransform * @nogrep */ @@ -10,7 +10,7 @@ import { ReaderFragment } from 'relay-runtime'; export type DocumentStatus = "DRAFT" | "PUBLISHED"; -export type DocumentType = "ISMS" | "OTHER" | "POLICY"; +export type DocumentType = "ISMS" | "OTHER" | "POLICY" | "PROCEDURE"; export type DocumentVersionSignatureState = "REQUESTED" | "SIGNED"; import { FragmentRefs } from "relay-runtime"; export type DocumentDetailPageRowFragment$data = { diff --git a/apps/console/src/pages/organizations/documents/__generated__/DocumentDetailPageUpdateMutation.graphql.ts b/apps/console/src/pages/organizations/documents/__generated__/DocumentDetailPageUpdateMutation.graphql.ts index 14601b24d..3eadcd45a 100644 --- a/apps/console/src/pages/organizations/documents/__generated__/DocumentDetailPageUpdateMutation.graphql.ts +++ b/apps/console/src/pages/organizations/documents/__generated__/DocumentDetailPageUpdateMutation.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<> + * @generated SignedSource<<575a6c27726fb3e5457989b0d5a4edc2>> * @lightSyntaxTransform * @nogrep */ @@ -9,7 +9,7 @@ // @ts-nocheck import { ConcreteRequest } from 'relay-runtime'; -export type DocumentType = "ISMS" | "OTHER" | "POLICY"; +export type DocumentType = "ISMS" | "OTHER" | "POLICY" | "PROCEDURE"; export type TrustCenterVisibility = "NONE" | "PRIVATE" | "PUBLIC"; export type UpdateDocumentInput = { content?: string | null | undefined; diff --git a/apps/console/src/pages/organizations/documents/__generated__/DocumentsPageRowFragment.graphql.ts b/apps/console/src/pages/organizations/documents/__generated__/DocumentsPageRowFragment.graphql.ts index 4274f0877..c2d4025ad 100644 --- a/apps/console/src/pages/organizations/documents/__generated__/DocumentsPageRowFragment.graphql.ts +++ b/apps/console/src/pages/organizations/documents/__generated__/DocumentsPageRowFragment.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<<428295a295761694c38d77aa3476d01f>> + * @generated SignedSource<<87090235b9f77e1e018ec30e6ff9bacb>> * @lightSyntaxTransform * @nogrep */ @@ -10,7 +10,7 @@ import { ReaderFragment } from 'relay-runtime'; export type DocumentStatus = "DRAFT" | "PUBLISHED"; -export type DocumentType = "ISMS" | "OTHER" | "POLICY"; +export type DocumentType = "ISMS" | "OTHER" | "POLICY" | "PROCEDURE"; export type DocumentVersionSignatureState = "REQUESTED" | "SIGNED"; import { FragmentRefs } from "relay-runtime"; export type DocumentsPageRowFragment$data = { diff --git a/apps/console/src/pages/organizations/documents/dialogs/__generated__/CreateDocumentDialogMutation.graphql.ts b/apps/console/src/pages/organizations/documents/dialogs/__generated__/CreateDocumentDialogMutation.graphql.ts index b6c97b03d..fb1994326 100644 --- a/apps/console/src/pages/organizations/documents/dialogs/__generated__/CreateDocumentDialogMutation.graphql.ts +++ b/apps/console/src/pages/organizations/documents/dialogs/__generated__/CreateDocumentDialogMutation.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<<7f9d3e67d06cbf2aaf21c61be65bc7ee>> + * @generated SignedSource<> * @lightSyntaxTransform * @nogrep */ @@ -10,7 +10,7 @@ import { ConcreteRequest } from 'relay-runtime'; import { FragmentRefs } from "relay-runtime"; -export type DocumentType = "ISMS" | "OTHER" | "POLICY"; +export type DocumentType = "ISMS" | "OTHER" | "POLICY" | "PROCEDURE"; export type TrustCenterVisibility = "NONE" | "PRIVATE" | "PUBLIC"; export type CreateDocumentInput = { content: string; diff --git a/apps/trust/src/pages/__generated__/OverviewPageFragment.graphql.ts b/apps/trust/src/pages/__generated__/OverviewPageFragment.graphql.ts index 5942e6734..cf40888f8 100644 --- a/apps/trust/src/pages/__generated__/OverviewPageFragment.graphql.ts +++ b/apps/trust/src/pages/__generated__/OverviewPageFragment.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<<83bb224d046b751075c6a8667e91e88b>> + * @generated SignedSource<<308785cba630e97aaf861905cf22c423>> * @lightSyntaxTransform * @nogrep */ @@ -10,7 +10,7 @@ import { ReaderFragment } from 'relay-runtime'; export type CountryCode = "AD" | "AE" | "AF" | "AG" | "AI" | "AL" | "AM" | "AO" | "AQ" | "AR" | "AS" | "AT" | "AU" | "AW" | "AX" | "AZ" | "BA" | "BB" | "BD" | "BE" | "BF" | "BG" | "BH" | "BI" | "BJ" | "BL" | "BM" | "BN" | "BO" | "BQ" | "BR" | "BS" | "BT" | "BV" | "BW" | "BY" | "BZ" | "CA" | "CC" | "CD" | "CF" | "CG" | "CH" | "CI" | "CK" | "CL" | "CM" | "CN" | "CO" | "CR" | "CU" | "CV" | "CW" | "CX" | "CY" | "CZ" | "DE" | "DJ" | "DK" | "DM" | "DO" | "DZ" | "EC" | "EE" | "EG" | "EH" | "ER" | "ES" | "ET" | "FI" | "FJ" | "FK" | "FM" | "FO" | "FR" | "GA" | "GB" | "GD" | "GE" | "GF" | "GG" | "GH" | "GI" | "GL" | "GM" | "GN" | "GP" | "GQ" | "GR" | "GT" | "GU" | "GW" | "GY" | "HK" | "HM" | "HN" | "HR" | "HT" | "HU" | "ID" | "IE" | "IL" | "IM" | "IN" | "IO" | "IQ" | "IR" | "IS" | "IT" | "JE" | "JM" | "JO" | "JP" | "KE" | "KG" | "KH" | "KI" | "KM" | "KN" | "KP" | "KR" | "KW" | "KY" | "KZ" | "LA" | "LB" | "LC" | "LI" | "LK" | "LR" | "LS" | "LT" | "LU" | "LV" | "LY" | "MA" | "MC" | "MD" | "ME" | "MF" | "MG" | "MH" | "MK" | "ML" | "MM" | "MN" | "MO" | "MP" | "MQ" | "MR" | "MS" | "MT" | "MU" | "MV" | "MW" | "MX" | "MY" | "MZ" | "NA" | "NC" | "NE" | "NF" | "NG" | "NI" | "NL" | "NO" | "NP" | "NR" | "NU" | "NZ" | "OM" | "PA" | "PE" | "PF" | "PG" | "PH" | "PK" | "PL" | "PM" | "PN" | "PR" | "PS" | "PT" | "PW" | "PY" | "QA" | "RE" | "RO" | "RS" | "RU" | "RW" | "SA" | "SB" | "SC" | "SD" | "SE" | "SG" | "SH" | "SI" | "SJ" | "SK" | "SL" | "SM" | "SN" | "SO" | "SR" | "SS" | "ST" | "SV" | "SX" | "SY" | "SZ" | "TC" | "TD" | "TF" | "TG" | "TH" | "TJ" | "TK" | "TL" | "TM" | "TN" | "TO" | "TR" | "TT" | "TV" | "TW" | "TZ" | "UA" | "UG" | "UM" | "US" | "UY" | "UZ" | "VA" | "VC" | "VE" | "VG" | "VI" | "VN" | "VU" | "WF" | "WS" | "YE" | "YT" | "ZA" | "ZM" | "ZW"; -export type DocumentType = "ISMS" | "OTHER" | "POLICY"; +export type DocumentType = "ISMS" | "OTHER" | "POLICY" | "PROCEDURE"; import { FragmentRefs } from "relay-runtime"; export type OverviewPageFragment$data = { readonly documents: { diff --git a/apps/trust/src/queries/__generated__/TrustGraphCurrentDocumentsQuery.graphql.ts b/apps/trust/src/queries/__generated__/TrustGraphCurrentDocumentsQuery.graphql.ts index 6f2e3050d..001b30d9c 100644 --- a/apps/trust/src/queries/__generated__/TrustGraphCurrentDocumentsQuery.graphql.ts +++ b/apps/trust/src/queries/__generated__/TrustGraphCurrentDocumentsQuery.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<> + * @generated SignedSource<<091d468e321f2cd6cdead063c35c6a45>> * @lightSyntaxTransform * @nogrep */ @@ -10,7 +10,7 @@ import { ConcreteRequest } from 'relay-runtime'; import { FragmentRefs } from "relay-runtime"; -export type DocumentType = "ISMS" | "OTHER" | "POLICY"; +export type DocumentType = "ISMS" | "OTHER" | "POLICY" | "PROCEDURE"; export type TrustGraphCurrentDocumentsQuery$variables = Record; export type TrustGraphCurrentDocumentsQuery$data = { readonly currentTrustCenter: { diff --git a/apps/trust/src/queries/__generated__/TrustGraphDocumentsQuery.graphql.ts b/apps/trust/src/queries/__generated__/TrustGraphDocumentsQuery.graphql.ts index 4436164ae..ce1888c9e 100644 --- a/apps/trust/src/queries/__generated__/TrustGraphDocumentsQuery.graphql.ts +++ b/apps/trust/src/queries/__generated__/TrustGraphDocumentsQuery.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<> + * @generated SignedSource<<922757406dbc7a2c20b502ef6dd4c0d8>> * @lightSyntaxTransform * @nogrep */ @@ -10,7 +10,7 @@ import { ConcreteRequest } from 'relay-runtime'; import { FragmentRefs } from "relay-runtime"; -export type DocumentType = "ISMS" | "OTHER" | "POLICY"; +export type DocumentType = "ISMS" | "OTHER" | "POLICY" | "PROCEDURE"; export type TrustGraphDocumentsQuery$variables = { slug: string; }; diff --git a/packages/helpers/src/documents.ts b/packages/helpers/src/documents.ts index ef2da4924..5a983d6d5 100644 --- a/packages/helpers/src/documents.ts +++ b/packages/helpers/src/documents.ts @@ -1,6 +1,6 @@ type Translator = (s: string) => string; -export const documentTypes = ["OTHER", "ISMS", "POLICY"] as const; +export const documentTypes = ["OTHER", "ISMS", "POLICY", "PROCEDURE"] as const; export function getDocumentTypeLabel(__: Translator, type: string) { switch (type) { @@ -10,5 +10,7 @@ export function getDocumentTypeLabel(__: Translator, type: string) { return __("ISMS"); case "POLICY": return __("Policy"); + case "PROCEDURE": + return __("Procedure"); } } diff --git a/pkg/coredata/document_type.go b/pkg/coredata/document_type.go index a0836f1e1..cfe74a147 100644 --- a/pkg/coredata/document_type.go +++ b/pkg/coredata/document_type.go @@ -24,9 +24,10 @@ type ( ) const ( - DocumentTypeOther DocumentType = "OTHER" - DocumentTypeISMS DocumentType = "ISMS" - DocumentTypePolicy DocumentType = "POLICY" + DocumentTypeOther DocumentType = "OTHER" + DocumentTypeISMS DocumentType = "ISMS" + DocumentTypePolicy DocumentType = "POLICY" + DocumentTypeProcedure DocumentType = "PROCEDURE" ) func (dt DocumentType) MarshalText() ([]byte, error) { @@ -43,6 +44,8 @@ func (dt *DocumentType) UnmarshalText(data []byte) error { *dt = DocumentTypeISMS case DocumentTypePolicy.String(): *dt = DocumentTypePolicy + case DocumentTypeProcedure.String(): + *dt = DocumentTypeProcedure default: return fmt.Errorf("invalid DocumentType value: %q", val) } diff --git a/pkg/coredata/migrations/20251013T202745Z.sql b/pkg/coredata/migrations/20251013T202745Z.sql new file mode 100644 index 000000000..42e58d13e --- /dev/null +++ b/pkg/coredata/migrations/20251013T202745Z.sql @@ -0,0 +1 @@ +ALTER TYPE document_type ADD VALUE 'PROCEDURE'; diff --git a/pkg/server/api/console/v1/schema.graphql b/pkg/server/api/console/v1/schema.graphql index 79c20eb69..3a1b9bf49 100644 --- a/pkg/server/api/console/v1/schema.graphql +++ b/pkg/server/api/console/v1/schema.graphql @@ -942,6 +942,8 @@ enum DocumentType ISMS @goEnum(value: "github.com/getprobo/probo/pkg/coredata.DocumentTypeISMS") POLICY @goEnum(value: "github.com/getprobo/probo/pkg/coredata.DocumentTypePolicy") + PROCEDURE + @goEnum(value: "github.com/getprobo/probo/pkg/coredata.DocumentTypeProcedure") } enum AssetType diff --git a/pkg/server/api/console/v1/schema/schema.go b/pkg/server/api/console/v1/schema/schema.go index 7c361fa7d..77488f3aa 100644 --- a/pkg/server/api/console/v1/schema/schema.go +++ b/pkg/server/api/console/v1/schema/schema.go @@ -9642,6 +9642,8 @@ enum DocumentType ISMS @goEnum(value: "github.com/getprobo/probo/pkg/coredata.DocumentTypeISMS") POLICY @goEnum(value: "github.com/getprobo/probo/pkg/coredata.DocumentTypePolicy") + PROCEDURE + @goEnum(value: "github.com/getprobo/probo/pkg/coredata.DocumentTypeProcedure") } enum AssetType @@ -92138,14 +92140,16 @@ func (ec *executionContext) marshalNDocumentType2githubᚗcomᚋgetproboᚋprobo var ( unmarshalNDocumentType2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐDocumentType = map[string]coredata.DocumentType{ - "OTHER": coredata.DocumentTypeOther, - "ISMS": coredata.DocumentTypeISMS, - "POLICY": coredata.DocumentTypePolicy, + "OTHER": coredata.DocumentTypeOther, + "ISMS": coredata.DocumentTypeISMS, + "POLICY": coredata.DocumentTypePolicy, + "PROCEDURE": coredata.DocumentTypeProcedure, } marshalNDocumentType2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐDocumentType = map[coredata.DocumentType]string{ - coredata.DocumentTypeOther: "OTHER", - coredata.DocumentTypeISMS: "ISMS", - coredata.DocumentTypePolicy: "POLICY", + coredata.DocumentTypeOther: "OTHER", + coredata.DocumentTypeISMS: "ISMS", + coredata.DocumentTypePolicy: "POLICY", + coredata.DocumentTypeProcedure: "PROCEDURE", } ) @@ -97396,14 +97400,16 @@ func (ec *executionContext) marshalODocumentType2ᚖgithubᚗcomᚋgetproboᚋpr var ( unmarshalODocumentType2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐDocumentType = map[string]coredata.DocumentType{ - "OTHER": coredata.DocumentTypeOther, - "ISMS": coredata.DocumentTypeISMS, - "POLICY": coredata.DocumentTypePolicy, + "OTHER": coredata.DocumentTypeOther, + "ISMS": coredata.DocumentTypeISMS, + "POLICY": coredata.DocumentTypePolicy, + "PROCEDURE": coredata.DocumentTypeProcedure, } marshalODocumentType2ᚖgithubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐDocumentType = map[coredata.DocumentType]string{ - coredata.DocumentTypeOther: "OTHER", - coredata.DocumentTypeISMS: "ISMS", - coredata.DocumentTypePolicy: "POLICY", + coredata.DocumentTypeOther: "OTHER", + coredata.DocumentTypeISMS: "ISMS", + coredata.DocumentTypePolicy: "POLICY", + coredata.DocumentTypeProcedure: "PROCEDURE", } ) diff --git a/pkg/server/api/trust/v1/schema.graphql b/pkg/server/api/trust/v1/schema.graphql index 0f234f2c6..2c554c566 100644 --- a/pkg/server/api/trust/v1/schema.graphql +++ b/pkg/server/api/trust/v1/schema.graphql @@ -51,6 +51,8 @@ enum DocumentType ISMS @goEnum(value: "github.com/getprobo/probo/pkg/coredata.DocumentTypeISMS") POLICY @goEnum(value: "github.com/getprobo/probo/pkg/coredata.DocumentTypePolicy") + PROCEDURE + @goEnum(value: "github.com/getprobo/probo/pkg/coredata.DocumentTypeProcedure") } type Document implements Node { diff --git a/pkg/server/api/trust/v1/schema/schema.go b/pkg/server/api/trust/v1/schema/schema.go index 353b8c103..ba9f97875 100644 --- a/pkg/server/api/trust/v1/schema/schema.go +++ b/pkg/server/api/trust/v1/schema/schema.go @@ -1073,6 +1073,8 @@ enum DocumentType ISMS @goEnum(value: "github.com/getprobo/probo/pkg/coredata.DocumentTypeISMS") POLICY @goEnum(value: "github.com/getprobo/probo/pkg/coredata.DocumentTypePolicy") + PROCEDURE + @goEnum(value: "github.com/getprobo/probo/pkg/coredata.DocumentTypeProcedure") } type Document implements Node { @@ -12243,14 +12245,16 @@ func (ec *executionContext) marshalNDocumentType2githubᚗcomᚋgetproboᚋprobo var ( unmarshalNDocumentType2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐDocumentType = map[string]coredata.DocumentType{ - "OTHER": coredata.DocumentTypeOther, - "ISMS": coredata.DocumentTypeISMS, - "POLICY": coredata.DocumentTypePolicy, + "OTHER": coredata.DocumentTypeOther, + "ISMS": coredata.DocumentTypeISMS, + "POLICY": coredata.DocumentTypePolicy, + "PROCEDURE": coredata.DocumentTypeProcedure, } marshalNDocumentType2githubᚗcomᚋgetproboᚋproboᚋpkgᚋcoredataᚐDocumentType = map[coredata.DocumentType]string{ - coredata.DocumentTypeOther: "OTHER", - coredata.DocumentTypeISMS: "ISMS", - coredata.DocumentTypePolicy: "POLICY", + coredata.DocumentTypeOther: "OTHER", + coredata.DocumentTypeISMS: "ISMS", + coredata.DocumentTypePolicy: "POLICY", + coredata.DocumentTypeProcedure: "PROCEDURE", } )