Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add location interface and update entity props #2377

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/common/interfaces/credit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,5 @@ export interface Credit {
activities?: Activity[];
payments?: Payment[];
reminder_schedule?: string;
location_id: string;
}
1 change: 1 addition & 0 deletions src/common/interfaces/invoice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ export interface Invoice {
e_invoice?: EInvoiceType;
is_locked?: boolean;
backup?: Backup;
location_id: string;
}

export interface Backup {
Expand Down
32 changes: 32 additions & 0 deletions src/common/interfaces/location.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/**
* Invoice Ninja (https://invoiceninja.com).
*
* @link https://github.com/invoiceninja/invoiceninja source repository
*
* @copyright Copyright (c) 2022. Invoice Ninja LLC (https://invoiceninja.com)
*
* @license https://www.elastic.co/licensing/elastic-license
*/

interface Location {

Check failure on line 11 in src/common/interfaces/location.ts

View workflow job for this annotation

GitHub Actions / build (18.x)

'location.ts' cannot be compiled under '--isolatedModules' because it is considered a global script file. Add an import, export, or an empty 'export {}' statement to make it a module.
id: string;
user_id: string;
vendor_id: string;
client_id: string;
name: string;
address1: string;
address2: string;
phone: string;
city: string;
state: string;
postal_code: string;
country_id: string;
custom_value1: string;
custom_value2: string;
custom_value3: string;
custom_value4: string;
is_deleted: boolean;
updated_at: number;
archived_at: number;
created_at: number;
}
1 change: 1 addition & 0 deletions src/common/interfaces/purchase-order.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ export interface PurchaseOrder {
e_invoice?: EInvoiceType;
activities?: Activity[];
reminder_schedule?: string;
location_id: string;
}

export interface Invitation {
Expand Down
1 change: 1 addition & 0 deletions src/common/interfaces/quote.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,5 @@ export interface Quote {
activities?: Activity[];
payments?: Payment[];
reminder_schedule?: string;
location_id: string;
}
1 change: 1 addition & 0 deletions src/common/interfaces/recurring-invoice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,5 @@ export interface RecurringInvoice {
documents: any[];
client?: Client;
activities?: Activity[];
location_id: string;
}
Loading