MCPcopy Create free account
hub / github.com/PartPilotLab/PartPilot / PartState

Interface PartState

lib/helper/part_state.ts:1–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1export interface PartState {
2 id: number;
3
4 title?: string; //title
5
6 quantity: number; //quantity
7
8 productId?: number; //productId
9 productCode: string; //productCode
10 productModel?: string; //productModel
11 productDescription?: string; //productIntroEn
12
13 parentCatalogName?: string; //parentCatalogName
14 catalogName?: string; //catalogName
15 brandName?: string; //brandNameEn
16
17 encapStandard?: string; //--> called Package
18
19
20 productImages?: string[]; //productImages
21 pdfLink?: string; //pdfUrl
22
23 productLink?: string; //catalogName + _ + title (brackets to -) + _ + productCode
24 // package: string;
25 // manufacturer: string; //brandNameEn
26
27 prices?: { ladder: string; price: number }[];
28
29
30 voltage?: number; //param_10953_n --> paramNameEn: "Voltage Rated"
31 resistance?: number; //param_10835_n --> paramNameEn: "Resistance"
32 power?: number; //param_10837_n --> paramNameEn: "Power(Watts)"
33 current?: number; //param_11284_n --> paramNameEn: "Rated Current"
34 tolerance?: string; //param_10836_s --> paramNameEn: "Tolerance"
35 frequency?: number; //param_11373_n --> paramNameEn: "Frequency"
36 // type?: string;
37 capacitance?: number; //param_10951_n --> paramNameEn: "Capacitance"
38 inductance?: number; //--> paramNameEn: "Inductance"
39 // tempretureCoefficient?: number;
40 // minBuyQuantity?: number;
41
42 createdAt: Date;
43 updatedAt: Date;
44 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected