feat(site): add document support
This commit is contained in:
66
dist/sites/sites.controller.d.ts
vendored
66
dist/sites/sites.controller.d.ts
vendored
@@ -5,7 +5,11 @@ export declare class SitesController {
|
||||
constructor(sitesService: SitesService);
|
||||
create(createSiteDto: CreateSiteDto): Promise<{
|
||||
name: string;
|
||||
description: string | null;
|
||||
contactName: string;
|
||||
contactPhone: string;
|
||||
contactAddress: string;
|
||||
contactPostalCode: string;
|
||||
contactCity: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
@@ -14,10 +18,10 @@ export declare class SitesController {
|
||||
machines: ({
|
||||
typeMachine: {
|
||||
name: string;
|
||||
description: string | null;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
description: string | null;
|
||||
category: string | null;
|
||||
maintenanceFrequency: string | null;
|
||||
components: import("@prisma/client/runtime/library").JsonValue | null;
|
||||
@@ -41,10 +45,10 @@ export declare class SitesController {
|
||||
composants: ({
|
||||
typeComposant: {
|
||||
name: string;
|
||||
description: string | null;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
description: string | null;
|
||||
} | null;
|
||||
pieces: {
|
||||
name: string;
|
||||
@@ -97,9 +101,27 @@ export declare class SitesController {
|
||||
siteId: string;
|
||||
typeMachineId: string | null;
|
||||
})[];
|
||||
documents: {
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
siteId: string | null;
|
||||
machineId: string | null;
|
||||
composantId: string | null;
|
||||
filename: string;
|
||||
path: string;
|
||||
mimeType: string;
|
||||
size: number;
|
||||
pieceId: string | null;
|
||||
}[];
|
||||
} & {
|
||||
name: string;
|
||||
description: string | null;
|
||||
contactName: string;
|
||||
contactPhone: string;
|
||||
contactAddress: string;
|
||||
contactPostalCode: string;
|
||||
contactCity: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
@@ -108,10 +130,10 @@ export declare class SitesController {
|
||||
machines: ({
|
||||
typeMachine: {
|
||||
name: string;
|
||||
description: string | null;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
description: string | null;
|
||||
category: string | null;
|
||||
maintenanceFrequency: string | null;
|
||||
components: import("@prisma/client/runtime/library").JsonValue | null;
|
||||
@@ -135,10 +157,10 @@ export declare class SitesController {
|
||||
composants: ({
|
||||
typeComposant: {
|
||||
name: string;
|
||||
description: string | null;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
description: string | null;
|
||||
} | null;
|
||||
pieces: {
|
||||
name: string;
|
||||
@@ -191,23 +213,49 @@ export declare class SitesController {
|
||||
siteId: string;
|
||||
typeMachineId: string | null;
|
||||
})[];
|
||||
documents: {
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
siteId: string | null;
|
||||
machineId: string | null;
|
||||
composantId: string | null;
|
||||
filename: string;
|
||||
path: string;
|
||||
mimeType: string;
|
||||
size: number;
|
||||
pieceId: string | null;
|
||||
}[];
|
||||
} & {
|
||||
name: string;
|
||||
description: string | null;
|
||||
contactName: string;
|
||||
contactPhone: string;
|
||||
contactAddress: string;
|
||||
contactPostalCode: string;
|
||||
contactCity: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
}) | null>;
|
||||
update(id: string, updateSiteDto: UpdateSiteDto): Promise<{
|
||||
name: string;
|
||||
description: string | null;
|
||||
contactName: string;
|
||||
contactPhone: string;
|
||||
contactAddress: string;
|
||||
contactPostalCode: string;
|
||||
contactCity: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
}>;
|
||||
remove(id: string): Promise<{
|
||||
name: string;
|
||||
description: string | null;
|
||||
contactName: string;
|
||||
contactPhone: string;
|
||||
contactAddress: string;
|
||||
contactPostalCode: string;
|
||||
contactCity: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
|
||||
74
dist/sites/sites.service.d.ts
vendored
74
dist/sites/sites.service.d.ts
vendored
@@ -4,21 +4,21 @@ export declare class SitesService {
|
||||
private prisma;
|
||||
constructor(prisma: PrismaService);
|
||||
create(createSiteDto: CreateSiteDto): Promise<{
|
||||
id: string;
|
||||
name: string;
|
||||
contactName: string;
|
||||
contactPhone: string;
|
||||
contactAddress: string;
|
||||
contactPostalCode: string;
|
||||
contactCity: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
}>;
|
||||
findAll(): Promise<({
|
||||
machines: ({
|
||||
typeMachine: {
|
||||
id: string;
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
description: string | null;
|
||||
@@ -30,8 +30,8 @@ export declare class SitesService {
|
||||
specifications: import("@prisma/client/runtime/library").JsonValue | null;
|
||||
} | null;
|
||||
pieces: {
|
||||
id: string;
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
reference: string | null;
|
||||
@@ -44,15 +44,15 @@ export declare class SitesService {
|
||||
}[];
|
||||
composants: ({
|
||||
typeComposant: {
|
||||
id: string;
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
description: string | null;
|
||||
} | null;
|
||||
pieces: {
|
||||
id: string;
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
reference: string | null;
|
||||
@@ -64,8 +64,8 @@ export declare class SitesService {
|
||||
typePieceId: string | null;
|
||||
}[];
|
||||
sousComposants: {
|
||||
id: string;
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
reference: string | null;
|
||||
@@ -73,12 +73,12 @@ export declare class SitesService {
|
||||
prix: import("@prisma/client/runtime/library").Decimal | null;
|
||||
emplacement: string | null;
|
||||
machineId: string | null;
|
||||
typeComposantId: string | null;
|
||||
parentComposantId: string | null;
|
||||
typeComposantId: string | null;
|
||||
}[];
|
||||
} & {
|
||||
id: string;
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
reference: string | null;
|
||||
@@ -86,12 +86,12 @@ export declare class SitesService {
|
||||
prix: import("@prisma/client/runtime/library").Decimal | null;
|
||||
emplacement: string | null;
|
||||
machineId: string | null;
|
||||
typeComposantId: string | null;
|
||||
parentComposantId: string | null;
|
||||
typeComposantId: string | null;
|
||||
})[];
|
||||
} & {
|
||||
id: string;
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
reference: string | null;
|
||||
@@ -101,22 +101,36 @@ export declare class SitesService {
|
||||
siteId: string;
|
||||
typeMachineId: string | null;
|
||||
})[];
|
||||
documents: {
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
siteId: string | null;
|
||||
machineId: string | null;
|
||||
composantId: string | null;
|
||||
filename: string;
|
||||
path: string;
|
||||
mimeType: string;
|
||||
size: number;
|
||||
pieceId: string | null;
|
||||
}[];
|
||||
} & {
|
||||
id: string;
|
||||
name: string;
|
||||
contactName: string;
|
||||
contactPhone: string;
|
||||
contactAddress: string;
|
||||
contactPostalCode: string;
|
||||
contactCity: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
})[]>;
|
||||
findOne(id: string): Promise<({
|
||||
machines: ({
|
||||
typeMachine: {
|
||||
id: string;
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
description: string | null;
|
||||
@@ -128,8 +142,8 @@ export declare class SitesService {
|
||||
specifications: import("@prisma/client/runtime/library").JsonValue | null;
|
||||
} | null;
|
||||
pieces: {
|
||||
id: string;
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
reference: string | null;
|
||||
@@ -142,15 +156,15 @@ export declare class SitesService {
|
||||
}[];
|
||||
composants: ({
|
||||
typeComposant: {
|
||||
id: string;
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
description: string | null;
|
||||
} | null;
|
||||
pieces: {
|
||||
id: string;
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
reference: string | null;
|
||||
@@ -162,8 +176,8 @@ export declare class SitesService {
|
||||
typePieceId: string | null;
|
||||
}[];
|
||||
sousComposants: {
|
||||
id: string;
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
reference: string | null;
|
||||
@@ -171,12 +185,12 @@ export declare class SitesService {
|
||||
prix: import("@prisma/client/runtime/library").Decimal | null;
|
||||
emplacement: string | null;
|
||||
machineId: string | null;
|
||||
typeComposantId: string | null;
|
||||
parentComposantId: string | null;
|
||||
typeComposantId: string | null;
|
||||
}[];
|
||||
} & {
|
||||
id: string;
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
reference: string | null;
|
||||
@@ -184,12 +198,12 @@ export declare class SitesService {
|
||||
prix: import("@prisma/client/runtime/library").Decimal | null;
|
||||
emplacement: string | null;
|
||||
machineId: string | null;
|
||||
typeComposantId: string | null;
|
||||
parentComposantId: string | null;
|
||||
typeComposantId: string | null;
|
||||
})[];
|
||||
} & {
|
||||
id: string;
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
reference: string | null;
|
||||
@@ -199,36 +213,50 @@ export declare class SitesService {
|
||||
siteId: string;
|
||||
typeMachineId: string | null;
|
||||
})[];
|
||||
documents: {
|
||||
name: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
siteId: string | null;
|
||||
machineId: string | null;
|
||||
composantId: string | null;
|
||||
filename: string;
|
||||
path: string;
|
||||
mimeType: string;
|
||||
size: number;
|
||||
pieceId: string | null;
|
||||
}[];
|
||||
} & {
|
||||
id: string;
|
||||
name: string;
|
||||
contactName: string;
|
||||
contactPhone: string;
|
||||
contactAddress: string;
|
||||
contactPostalCode: string;
|
||||
contactCity: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
}) | null>;
|
||||
update(id: string, updateSiteDto: UpdateSiteDto): Promise<{
|
||||
id: string;
|
||||
name: string;
|
||||
contactName: string;
|
||||
contactPhone: string;
|
||||
contactAddress: string;
|
||||
contactPostalCode: string;
|
||||
contactCity: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
}>;
|
||||
remove(id: string): Promise<{
|
||||
id: string;
|
||||
name: string;
|
||||
contactName: string;
|
||||
contactPhone: string;
|
||||
contactAddress: string;
|
||||
contactPostalCode: string;
|
||||
contactCity: string;
|
||||
id: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
}>;
|
||||
|
||||
2
dist/sites/sites.service.js
vendored
2
dist/sites/sites.service.js
vendored
@@ -38,6 +38,7 @@ let SitesService = class SitesService {
|
||||
pieces: true,
|
||||
},
|
||||
},
|
||||
documents: true,
|
||||
},
|
||||
});
|
||||
}
|
||||
@@ -58,6 +59,7 @@ let SitesService = class SitesService {
|
||||
pieces: true,
|
||||
},
|
||||
},
|
||||
documents: true,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
2
dist/sites/sites.service.js.map
vendored
2
dist/sites/sites.service.js.map
vendored
@@ -1 +1 @@
|
||||
{"version":3,"file":"sites.service.js","sourceRoot":"","sources":["../../src/sites/sites.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,6DAAyD;AAIlD,IAAM,YAAY,GAAlB,MAAM,YAAY;IACH;IAApB,YAAoB,MAAqB;QAArB,WAAM,GAAN,MAAM,CAAe;IAAG,CAAC;IAE7C,KAAK,CAAC,MAAM,CAAC,aA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