Przejdź do treści

Profile kanoniczne

Profile są generowane automatycznie z kodu C# — modele w Kamsoft.ApiErp.Models.Standard przez Kamsoft.ApiErp.Models.Standard.SchemaGenerator — i publikowane razem z pakietem Kamsoft.ApiErp.Models.Standard.

Podejście code-first: model C# jest jedynym źródłem prawdy. Każda zmiana modelu → regeneracja profilu → aktualizacja IG.

Pliki JSON Schema poniżej są pobierane z pakietu NuGet Kamsoft.ApiErp.Models.Standard podczas builda IG (./scripts/build.sh) do katalogu docs/profiles/schemas/. Katalog ten jest generowany — nie commituj go ręcznie. Wersja pakietu jest przypięta w tools/fetch-profiles/fetch-profiles.csproj.

Profile w formacie JSON Schema

Zasób Więcej o modelu JSON Schema
AccountingVariant Wariant księgowy AccountingVariant.schema.json
AllocationItem Pozycja dokumentu AllocationItem.schema.json
AssetComponent Składowa majątku AssetComponent.schema.json
Attachment (bazowy) Attachment Attachment.schema.json
Attachment – medycyna pracy Attachment AttachmentOccupationalMedicine.schema.json
Attribute Attribute Attribute.schema.json
BankAccount Rachunek bankowy BankAccount.schema.json
Capability Zdolność Capability.schema.json
CostAssignment Przypisanie kosztów CostAssignment.schema.json
CostAssignmentPosition Przypisanie kosztów CostAssignmentPosition.schema.json
CostCarrier Nośnik kosztów CostCarrier.schema.json
CostCenter Centrum kosztów CostCenter.schema.json
DeliveryScheduleLine Zamówienie zakupu DeliveryScheduleLine.schema.json
DocumentReference DokumentReference DocumentReferece.schema.json
DocumentPosition Pozycja dokumentu DocumentPosition.schema.json
EmployeeProfessionalGroup Przypisanie do grupy zawodowej EmployeeProfessionalGroup.schema.json
Employment Zatrudnienie Employment.schema.json
EmploymentPosition Zatrudnienie EmploymentPosition.schema.json
FixedAsset Środek trwały FixedAsset.schema.json
FixedAssetAllocation Alokacja ŚT FixedAssetAllocation.schema.json
FixedAssetDocument Dokument ŚT FixedAssetDocument.schema.json
FixedAssetDocumentPosition Dokument ŚT FixedAssetDocumentPosition.schema.json
FormulaComponent Składnik formuły FormulaComponent.schema.json
GrantAssignment Przyznanie uprawnienia GrantAssignment.schema.json
InventoryDocument Dokument magazynowy InventoryDocument.schema.json
InventoryDocumentPosition Pozycja dokumentu magazynowego InventoryDocumentPosition.schema.json
Invoice Faktura Invoice.schema.json
InvoiceCostLink Faktura InvoiceCostLink.schema.json
InvoicePosition Faktura InvoicePosition.schema.json
InvoiceTaxLine Faktura InvoiceTaxLine.schema.json
JournalEntry Wpis w dzienniku JournalEntry.schema.json
JournalEntryPosition Wpis w dzienniku JournalEntryPosition.schema.json
Location Lokalizacja Location.schema.json
OrganizationAssignment Przypisanie do jednostki OrganizationAssignment.schema.json
OrganizationUnit Jednostka organizacyjna OrganizationUnit.schema.json
Party Strona Party.schema.json
PartyRelationship Relacja stron PartyRelationship.schema.json
PartyRole Rola strony PartyRole.schema.json
Payment Płatność Payment.schema.json
Position Stanowisko Position.schema.json
PostingInstruction Instrukcja dekretacji PostingInstruction.schema.json
PostingInstructionLine Instrukcja dekretacji PostingInstructionLine.schema.json
Product Produkt Product.schema.json
ProductDefinition Definicja produktu ProductDefinition.schema.json
ProfessionalGroup Grupa zawodowa ProfessionalGroup.schema.json
PurchaseOrder Zamówienie zakupu PurchaseOrder.schema.json
PurchaseOrderPosition Zamówienie zakupu PurchaseOrderPosition.schema.json
PurchaseRequisition Zapotrzebowanie PurchaseRequisition.schema.json
PurchaseRequisitionPosition Zapotrzebowanie PurchaseRequisitionPosition.schema.json
Qualification Kwalifikacja Qualification.schema.json
Register Rejestr księgowy Register.schema.json
ValueItem Pozycja dokumentu ValueItem.schema.json
ValueSet ValueSet ValueSet.schema.json

Jak czytać JSON Schema profilu

  • Plik JSON Schema (*.schema.json) zawiera $id (URL identyfikujący profil), title, version oraz properties z opisem każdego pola.
  • Pole required pojawia się tylko gdy profil nakłada dodatkowe ograniczenia — np. AttachmentOccupationalMedicine wymaga identifier i data.
  • Zasoby z więcej niż jednym profilem (jak Attachment) mają osobny wiersz dla każdego wariantu — każdy wariant może mieć inne pola wymagane.
  • Profile są używane przez Kamsoft.WSP.Converters do runtime walidacji wyników konwersji.