Added license management module
This commit is contained in:
Vendored
+28
-1
@@ -289,6 +289,34 @@ export function newBillingData() {
|
||||
}
|
||||
}
|
||||
|
||||
export interface License {
|
||||
id: number;
|
||||
name: string;
|
||||
email: string;
|
||||
product: string;
|
||||
version: string;
|
||||
isPerpetual: boolean;
|
||||
expirationDate: string | null;
|
||||
signature: string;
|
||||
createdAt: string;
|
||||
updatedAt: string;
|
||||
}
|
||||
|
||||
export function newLicense(): License {
|
||||
return {
|
||||
id: 0,
|
||||
name: '',
|
||||
email: '',
|
||||
product: '',
|
||||
version: '',
|
||||
isPerpetual: false,
|
||||
expirationDate: null,
|
||||
signature: '',
|
||||
createdAt: new Date().toISOString(),
|
||||
updatedAt: new Date().toISOString()
|
||||
};
|
||||
}
|
||||
|
||||
export interface LineItem {
|
||||
id: number,
|
||||
invoiceId: number,
|
||||
@@ -411,7 +439,6 @@ export function newProduct(): Product {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Pipeline item used by CRM pipeline
|
||||
export interface PipelineItem {
|
||||
id: number;
|
||||
|
||||
Reference in New Issue
Block a user