I removed all my shared props and it did not resolve the error. Please help as I have no way to understand how to resolve this error and I am at the last mile of install. All inputs have been mapped and fulfilled and I am just stuck.
/* eslint-disable */
/**
* AUTO-GENERATED FILE
* Generated by generate-ontology-from-sql.ts
*/
import {
defineSharedPropertyType,
defineInterface,
defineObject,
defineLink,
defineCreateObjectAction,
defineModifyObjectAction,
defineDeleteObjectAction,
defineOntology,
} from "@osdk/maker";
await defineOntology(
"com.vectorone.xxxx.",
async () => {
// Define your ontology entities here
// Shared Property Types (deduped across interface-attached tables)
const hashIdProperty = defineSharedPropertyType({
apiName: "hash_id",
displayName: "Hash Id",
type: "string",
});
const startDateProperty = defineSharedPropertyType({
apiName: "start_date",
displayName: "Start Date",
type: "date",
});
const endDateProperty = defineSharedPropertyType({
apiName: "end_date",
displayName: "End Date",
type: "date",
});
const descriptionProperty = defineSharedPropertyType({
apiName: "description",
displayName: "Description",
type: {
type: "string",
isLongText: true,
supportsEfficientLeadingWildcard: true,
supportsExactMatching: false,
},
});
const amountProperty = defineSharedPropertyType({
apiName: "amount",
displayName: "Amount",
type: "double",
});
const rawRowProperty = defineSharedPropertyType({
apiName: "raw_row",
displayName: "Raw Row",
type: {
type: "string",
isLongText: true,
supportsEfficientLeadingWildcard: true,
supportsExactMatching: false,
},
});
const workpaperHashProperty = defineSharedPropertyType({
apiName: "workpaper_hash",
displayName: "Workpaper Hash",
type: "string",
});
const fileIdProperty = defineSharedPropertyType({
apiName: "file_id",
displayName: "File Id",
type: "string",
});
const customerIdProperty = defineSharedPropertyType({
apiName: "customer_id",
displayName: "Customer Id",
type: "string",
});
const systemOfRecordIdProperty = defineSharedPropertyType({
apiName: "system_of_record_id",
displayName: "System Of Record Id",
type: "string",
});
const batchIdProperty = defineSharedPropertyType({
apiName: "batch_id",
displayName: "Batch Id",
type: "string",
});
const ingestedDateProperty = defineSharedPropertyType({
apiName: "ingested_date",
displayName: "Ingested Date",
type: "date",
});
const idProperty = defineSharedPropertyType({
apiName: "id",
displayName: "Id",
type: "string",
});
const fsliIdProperty = defineSharedPropertyType({
apiName: "fsli_id",
displayName: "Fsli Id",
type: "string",
});
const mainAccountIdProperty = defineSharedPropertyType({
apiName: "main_account_id",
displayName: "Main Account Id",
type: "string",
});
const subAccountIdProperty = defineSharedPropertyType({
apiName: "sub_account_id",
displayName: "Sub Account Id",
type: "string",
});
const fsliNameProperty = defineSharedPropertyType({
apiName: "fsli_name",
displayName: "Fsli Name",
type: "string",
});
const mainAccountNameProperty = defineSharedPropertyType({
apiName: "main_account_name",
displayName: "Main Account Name",
type: "string",
});
const subAccountNameProperty = defineSharedPropertyType({
apiName: "sub_account_name",
displayName: "Sub Account Name",
type: "string",
});
const typeProperty = defineSharedPropertyType({
apiName: "type",
displayName: "Type",
type: "string",
});
const chartOfAccountIdProperty = defineSharedPropertyType({
apiName: "chart_of_account_id",
displayName: "Chart Of Account Id",
type: "string",
});
// Interfaces (from interfaces.json)
const iWorkpaperInterface = defineInterface({
apiName: "IWorkpaper",
displayName: "Workpaper",
properties: {
hash_id: { type: "string" },
start_date: { type: "date" },
end_date: { type: "date" },
description: {
type: {
type: "string",
isLongText: true,
supportsEfficientLeadingWildcard: true,
supportsExactMatching: false,
},
},
amount: { type: "double" },
raw_row: {
type: {
type: "string",
isLongText: true,
supportsEfficientLeadingWildcard: true,
supportsExactMatching: false,
},
},
workpaper_hash: { type: "string" },
file_id: { type: "string" },
customer_id: { type: "string" },
system_of_record_id: { type: "string" },
batch_id: { type: "string" },
ingested_date: { type: "date" },
},
});
const iChartOfAccountsInterface = defineInterface({
apiName: "IChartOfAccounts",
displayName: "Chart Of Accounts",
properties: {
id: { type: "string" },
fsli_id: { type: "string" },
main_account_id: { type: "string" },
sub_account_id: { type: "string" },
fsli_name: { type: "string" },
main_account_name: { type: "string" },
sub_account_name: { type: "string" },
system_of_record_id: { type: "string" },
customer_id: { type: "string" },
},
});
const iJournalEntryInterface = defineInterface({
apiName: "IJournalEntry",
displayName: "Journal Entry",
properties: {
id: { type: "string" },
start_date: { type: "date" },
end_date: { type: "date" },
description: {
type: {
type: "string",
isLongText: true,
supportsEfficientLeadingWildcard: true,
supportsExactMatching: false,
},
},
amount: { type: "double" },
batch_id: { type: "string" },
ingested_date: { type: "date" },
type: { type: "string" },
chart_of_account_id: { type: "string" },
customer_id: { type: "string" },
system_of_record_id: { type: "string" },
},
});
// Objects
const customersObject = defineObject({
apiName: "customers",
displayName: "Customers",
pluralDisplayName: "Customers",
titlePropertyApiName: "name",
primaryKeyPropertyApiName: "id",
properties: {
id: { displayName: "Id", type: "string" },
name: { displayName: "Name", type: "string" },
},
});
defineCreateObjectAction({ objectType: customersObject });
defineModifyObjectAction({ objectType: customersObject });
defineDeleteObjectAction({ objectType: customersObject });
const systemsOfRecordObject = defineObject({
apiName: "systems-of-record",
displayName: "Systems Of Record",
pluralDisplayName: "Systems Of Records",
titlePropertyApiName: "name",
primaryKeyPropertyApiName: "id",
properties: {
id: { displayName: "Id", type: "string" },
name: { displayName: "Name", type: "string" },
},
});
defineCreateObjectAction({ objectType: systemsOfRecordObject });
defineModifyObjectAction({ objectType: systemsOfRecordObject });
defineDeleteObjectAction({ objectType: systemsOfRecordObject });
const supportingEvidenceObject = defineObject({
apiName: "supporting-evidence",
displayName: "Supporting Evidence",
pluralDisplayName: "Supporting Evidences",
titlePropertyApiName: "id",
primaryKeyPropertyApiName: "id",
properties: {
id: { displayName: "Id", type: "string" },
filename: { displayName: "Filename", type: "string" },
type: { displayName: "Type", type: "string" },
customer_id: { displayName: "Customer Id", type: "string" },
system_of_record_id: {
displayName: "System Of Record Id",
type: "string",
},
},
});
defineCreateObjectAction({ objectType: supportingEvidenceObject });
defineModifyObjectAction({ objectType: supportingEvidenceObject });
defineDeleteObjectAction({ objectType: supportingEvidenceObject });
const workpapersObject = defineObject({
apiName: "workpapers",
displayName: "Workpapers",
pluralDisplayName: "Workpapers",
titlePropertyApiName: "id",
primaryKeyPropertyApiName: "id",
properties: {
id: { displayName: "Id", type: "string" },
filename: { displayName: "Filename", type: "string" },
dataset_rid: { displayName: "Dataset Rid", type: "string" },
file_id: { displayName: "File Id", type: "string" },
customer_id: { displayName: "Customer Id", type: "string" },
system_of_record_id: {
displayName: "System Of Record Id",
type: "string",
},
workpaper_hash: { displayName: "Workpaper Hash", type: "string" },
},
});
defineCreateObjectAction({ objectType: workpapersObject });
defineModifyObjectAction({ objectType: workpapersObject });
defineDeleteObjectAction({ objectType: workpapersObject });
const workpapersExtractedObject = defineObject({
apiName: "workpapers-extracted",
displayName: "Workpapers Extracted",
pluralDisplayName: "Workpapers Extracteds",
titlePropertyApiName: "hash_id",
primaryKeyPropertyApiName: "hash_id",
properties: {
hash_id: { displayName: "Hash Id", type: "string" },
start_date: { displayName: "Start Date", type: "date" },
end_date: { displayName: "End Date", type: "date" },
description: {
displayName: "Description",
type: {
type: "string",
isLongText: true,
supportsEfficientLeadingWildcard: true,
supportsExactMatching: false,
},
},
amount: { displayName: "Amount", type: "double" },
raw_row: {
displayName: "Raw Row",
type: {
type: "string",
isLongText: true,
supportsEfficientLeadingWildcard: true,
supportsExactMatching: false,
},
},
workpaper_hash: { displayName: "Workpaper Hash", type: "string" },
file_id: { displayName: "File Id", type: "string" },
customer_id: { displayName: "Customer Id", type: "string" },
system_of_record_id: {
displayName: "System Of Record Id",
type: "string",
},
batch_id: { displayName: "Batch Id", type: "string" },
ingested_date: { displayName: "Ingested Date", type: "date" },
},
implementsInterfaces: [
{
implements: iWorkpaperInterface,
propertyMapping: [
{ interfaceProperty: "hash_id", mapsTo: "hash_id" },
{ interfaceProperty: "start_date", mapsTo: "start_date" },
{ interfaceProperty: "end_date", mapsTo: "end_date" },
{ interfaceProperty: "description", mapsTo: "description" },
{ interfaceProperty: "amount", mapsTo: "amount" },
{ interfaceProperty: "raw_row", mapsTo: "raw_row" },
{ interfaceProperty: "workpaper_hash", mapsTo: "workpaper_hash" },
{ interfaceProperty: "file_id", mapsTo: "file_id" },
{ interfaceProperty: "customer_id", mapsTo: "customer_id" },
{
interfaceProperty: "system_of_record_id",
mapsTo: "system_of_record_id",
},
{ interfaceProperty: "batch_id", mapsTo: "batch_id" },
{ interfaceProperty: "ingested_date", mapsTo: "ingested_date" },
],
},
],
});
defineCreateObjectAction({ objectType: workpapersExtractedObject });
defineModifyObjectAction({ objectType: workpapersExtractedObject });
defineDeleteObjectAction({ objectType: workpapersExtractedObject });
const chartOfAccountsObject = defineObject({
apiName: "chart-of-accounts",
displayName: "Chart Of Accounts",
pluralDisplayName: "Chart Of Accounts",
titlePropertyApiName: "id",
primaryKeyPropertyApiName: "id",
properties: {
id: { displayName: "Id", type: "string" },
fsli_id: { displayName: "Fsli Id", type: "string" },
main_account_id: { displayName: "Main Account Id", type: "string" },
sub_account_id: { displayName: "Sub Account Id", type: "string" },
fsli_name: { displayName: "Fsli Name", type: "string" },
main_account_name: { displayName: "Main Account Name", type: "string" },
sub_account_name: { displayName: "Sub Account Name", type: "string" },
system_of_record_id: {
displayName: "System Of Record Id",
type: "string",
},
customer_id: { displayName: "Customer Id", type: "string" },
},
implementsInterfaces: [
{
implements: iChartOfAccountsInterface,
propertyMapping: [
{ interfaceProperty: "id", mapsTo: "id" },
{ interfaceProperty: "fsli_id", mapsTo: "fsli_id" },
{ interfaceProperty: "main_account_id", mapsTo: "main_account_id" },
{ interfaceProperty: "sub_account_id", mapsTo: "sub_account_id" },
{ interfaceProperty: "fsli_name", mapsTo: "fsli_name" },
{
interfaceProperty: "main_account_name",
mapsTo: "main_account_name",
},
{
interfaceProperty: "sub_account_name",
mapsTo: "sub_account_name",
},
{
interfaceProperty: "system_of_record_id",
mapsTo: "system_of_record_id",
},
{ interfaceProperty: "customer_id", mapsTo: "customer_id" },
],
},
],
});
defineCreateObjectAction({ objectType: chartOfAccountsObject });
defineModifyObjectAction({ objectType: chartOfAccountsObject });
defineDeleteObjectAction({ objectType: chartOfAccountsObject });
const journalEntriesObject = defineObject({
apiName: "journal-entries",
displayName: "Journal Entries",
pluralDisplayName: "Journal Entries",
titlePropertyApiName: "id",
primaryKeyPropertyApiName: "id",
properties: {
id: { displayName: "Id", type: "string" },
start_date: { displayName: "Start Date", type: "date" },
end_date: { displayName: "End Date", type: "date" },
description: {
displayName: "Description",
type: {
type: "string",
isLongText: true,
supportsEfficientLeadingWildcard: true,
supportsExactMatching: false,
},
},
amount: { displayName: "Amount", type: "double" },
batch_id: { displayName: "Batch Id", type: "string" },
ingested_date: { displayName: "Ingested Date", type: "date" },
type: { displayName: "Type", type: "string" },
chart_of_account_id: {
displayName: "Chart Of Account Id",
type: "string",
},
customer_id: { displayName: "Customer Id", type: "string" },
system_of_record_id: {
displayName: "System Of Record Id",
type: "string",
},
},
implementsInterfaces: [
{
implements: iJournalEntryInterface,
propertyMapping: [
{ interfaceProperty: "id", mapsTo: "id" },
{ interfaceProperty: "start_date", mapsTo: "start_date" },
{ interfaceProperty: "end_date", mapsTo: "end_date" },
{ interfaceProperty: "description", mapsTo: "description" },
{ interfaceProperty: "amount", mapsTo: "amount" },
{ interfaceProperty: "batch_id", mapsTo: "batch_id" },
{ interfaceProperty: "ingested_date", mapsTo: "ingested_date" },
{ interfaceProperty: "type", mapsTo: "type" },
{
interfaceProperty: "chart_of_account_id",
mapsTo: "chart_of_account_id",
},
{ interfaceProperty: "customer_id", mapsTo: "customer_id" },
{
interfaceProperty: "system_of_record_id",
mapsTo: "system_of_record_id",
},
],
},
],
});
defineCreateObjectAction({ objectType: journalEntriesObject });
defineModifyObjectAction({ objectType: journalEntriesObject });
defineDeleteObjectAction({ objectType: journalEntriesObject });
// Links
defineLink({
apiName: "customers-to-supporting-evidence-by-customer-id",
one: {
object: customersObject,
metadata: {
apiName: "customers",
displayName: "Customers",
pluralDisplayName: "Customerss",
visibility: "NORMAL",
},
},
toMany: {
object: supportingEvidenceObject,
metadata: {
apiName: "supporting_evidence",
displayName: "Supporting Evidence",
pluralDisplayName: "Supporting Evidences",
visibility: "NORMAL",
},
},
manyForeignKeyProperty: "customer_id",
});
defineLink({
apiName:
"systems-of-record-to-supporting-evidence-by-system-of-record-id",
one: {
object: systemsOfRecordObject,
metadata: {
apiName: "systems_of_record",
displayName: "Systems Of Record",
pluralDisplayName: "Systems Of Records",
visibility: "NORMAL",
},
},
toMany: {
object: supportingEvidenceObject,
metadata: {
apiName: "supporting_evidence",
displayName: "Supporting Evidence",
pluralDisplayName: "Supporting Evidences",
visibility: "NORMAL",
},
},
manyForeignKeyProperty: "system_of_record_id",
});
defineLink({
apiName: "customers-to-workpapers-by-customer-id",
one: {
object: customersObject,
metadata: {
apiName: "customers",
displayName: "Customers",
pluralDisplayName: "Customerss",
visibility: "NORMAL",
},
},
toMany: {
object: workpapersObject,
metadata: {
apiName: "workpapers",
displayName: "Workpapers",
pluralDisplayName: "Workpaperss",
visibility: "NORMAL",
},
},
manyForeignKeyProperty: "customer_id",
});
defineLink({
apiName: "systems-of-record-to-workpapers-by-system-of-record-id",
one: {
object: systemsOfRecordObject,
metadata: {
apiName: "systems_of_record",
displayName: "Systems Of Record",
pluralDisplayName: "Systems Of Records",
visibility: "NORMAL",
},
},
toMany: {
object: workpapersObject,
metadata: {
apiName: "workpapers",
displayName: "Workpapers",
pluralDisplayName: "Workpaperss",
visibility: "NORMAL",
},
},
manyForeignKeyProperty: "system_of_record_id",
});
defineLink({
apiName: "workpapers-to-workpapers-extracted-by-workpaper-hash",
one: {
object: workpapersObject,
metadata: {
apiName: "workpapers",
displayName: "Workpapers",
pluralDisplayName: "Workpaperss",
visibility: "NORMAL",
},
},
toMany: {
object: workpapersExtractedObject,
metadata: {
apiName: "workpapers_extracted",
displayName: "Workpapers Extracted",
pluralDisplayName: "Workpapers Extracteds",
visibility: "NORMAL",
},
},
manyForeignKeyProperty: "workpaper_hash",
});
defineLink({
apiName: "systems-of-record-to-chart-of-accounts-by-system-of-record-id",
one: {
object: systemsOfRecordObject,
metadata: {
apiName: "systems_of_record",
displayName: "Systems Of Record",
pluralDisplayName: "Systems Of Records",
visibility: "NORMAL",
},
},
toMany: {
object: chartOfAccountsObject,
metadata: {
apiName: "chart_of_accounts",
displayName: "Chart Of Accounts",
pluralDisplayName: "Chart Of Accountss",
visibility: "NORMAL",
},
},
manyForeignKeyProperty: "system_of_record_id",
});
defineLink({
apiName: "customers-to-chart-of-accounts-by-customer-id",
one: {
object: customersObject,
metadata: {
apiName: "customers",
displayName: "Customers",
pluralDisplayName: "Customerss",
visibility: "NORMAL",
},
},
toMany: {
object: chartOfAccountsObject,
metadata: {
apiName: "chart_of_accounts",
displayName: "Chart Of Accounts",
pluralDisplayName: "Chart Of Accountss",
visibility: "NORMAL",
},
},
manyForeignKeyProperty: "customer_id",
});
defineLink({
apiName: "chart-of-accounts-to-journal-entries-by-chart-of-account-id",
one: {
object: chartOfAccountsObject,
metadata: {
apiName: "chart_of_accounts",
displayName: "Chart Of Accounts",
pluralDisplayName: "Chart Of Accountss",
visibility: "NORMAL",
},
},
toMany: {
object: journalEntriesObject,
metadata: {
apiName: "journal_entries",
displayName: "Journal Entries",
pluralDisplayName: "Journal Entriess",
visibility: "NORMAL",
},
},
manyForeignKeyProperty: "chart_of_account_id",
});
defineLink({
apiName: "customers-to-journal-entries-by-customer-id",
one: {
object: customersObject,
metadata: {
apiName: "customers",
displayName: "Customers",
pluralDisplayName: "Customerss",
visibility: "NORMAL",
},
},
toMany: {
object: journalEntriesObject,
metadata: {
apiName: "journal_entries",
displayName: "Journal Entries",
pluralDisplayName: "Journal Entriess",
visibility: "NORMAL",
},
},
manyForeignKeyProperty: "customer_id",
});
defineLink({
apiName: "systems-of-record-to-journal-entries-by-system-of-record-id",
one: {
object: systemsOfRecordObject,
metadata: {
apiName: "systems_of_record",
displayName: "Systems Of Record",
pluralDisplayName: "Systems Of Records",
visibility: "NORMAL",
},
},
toMany: {
object: journalEntriesObject,
metadata: {
apiName: "journal_entries",
displayName: "Journal Entries",
pluralDisplayName: "Journal Entriess",
visibility: "NORMAL",
},
},
manyForeignKeyProperty: "system_of_record_id",
});
defineLink({
apiName:
"workpapers-extracted-to-journal-entries-via-workpaper-to-entry-map",
many: {
object: workpapersExtractedObject,
metadata: {
apiName: "workpapers_extracted",
displayName: "Workpapers Extracted",
pluralDisplayName: "Workpapers Extracteds",
visibility: "NORMAL",
},
},
toMany: {
object: journalEntriesObject,
metadata: {
apiName: "journal_entries",
displayName: "Journal Entries",
pluralDisplayName: "Journal Entriess",
visibility: "NORMAL",
},
},
});
},
undefined
);