feat: Application types generation from project GQL schema's (#8995)

This commit is contained in:
Adrien de Peretti
2024-09-06 15:15:32 +05:30
committed by GitHub
parent ac30a989f4
commit 2c5e72d141
92 changed files with 5129 additions and 443 deletions
@@ -15,14 +15,31 @@ moduleIntegrationTestRunner<IStockLocationService>({
service: StockLocationModuleService,
}).linkable
expect(Object.keys(linkable)).toEqual(["stockLocation"])
expect(Object.keys(linkable)).toEqual([
"stockLocationAddress",
"stockLocation",
])
Object.keys(linkable).forEach((key) => {
delete linkable[key].toJSON
})
expect(linkable).toEqual({
stockLocationAddress: {
id: {
linkable: "stock_location_address_id",
primaryKey: "id",
serviceName: "stockLocationService",
field: "stockLocationAddress",
},
},
stockLocation: {
id: {
field: "stockLocation",
linkable: "stock_location_id",
primaryKey: "id",
serviceName: "stockLocationService",
},
location_id: {
linkable: "location_id",
primaryKey: "location_id",