Updated lock

This commit is contained in:
David Bomba 2025-01-28 06:15:54 +11:00
parent d441665e98
commit 47f8a2fcc3
3 changed files with 58 additions and 89 deletions

View File

@ -64,7 +64,6 @@
"hyvor/php-json-exporter": "^0.0.3", "hyvor/php-json-exporter": "^0.0.3",
"imdhemy/laravel-purchases": "^1.7", "imdhemy/laravel-purchases": "^1.7",
"intervention/image": "^2.5", "intervention/image": "^2.5",
"invoiceninja/admin-api": "dev-main",
"invoiceninja/einvoice": "dev-main", "invoiceninja/einvoice": "dev-main",
"invoiceninja/inspector": "^3.0", "invoiceninja/inspector": "^3.0",
"invoiceninja/ubl_invoice": "^2", "invoiceninja/ubl_invoice": "^2",
@ -223,10 +222,6 @@
{ {
"type": "vcs", "type": "vcs",
"url": "https://github.com/turbo124/snappdf" "url": "https://github.com/turbo124/snappdf"
},
{
"type": "path",
"url": "../admin-api"
} }
], ],
"minimum-stability": "dev", "minimum-stability": "dev",

93
composer.lock generated
View File

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically" "This file is @generated automatically"
], ],
"content-hash": "85d7d0f33ab492d51d6a34782e4ee826", "content-hash": "a8c8a77c6cc5e0b0c046923603c2110a",
"packages": [ "packages": [
{ {
"name": "adrienrn/php-mimetyper", "name": "adrienrn/php-mimetyper",
@ -4511,65 +4511,6 @@
], ],
"time": "2022-05-21T17:30:32+00:00" "time": "2022-05-21T17:30:32+00:00"
}, },
{
"name": "invoiceninja/admin-api",
"version": "dev-main",
"dist": {
"type": "path",
"url": "../admin-api",
"reference": "d81eee08da4003cfa893a23cd02694d885a37af7"
},
"require": {
"afosto/yaac": "^1.5",
"asm/php-ansible": "dev-main",
"ext-curl": "*",
"ext-dom": "*",
"ext-json": "*",
"ext-libxml": "*",
"ext-simplexml": "*",
"illuminate/database": "^11",
"illuminate/support": "^11",
"imdhemy/laravel-purchases": "^1.7",
"php": "^8.2|^8.3|^8.4"
},
"require-dev": {
"larastan/larastan": "^3.0",
"orchestra/testbench": "^9.0",
"phpstan/phpstan": "^2.0",
"phpunit/phpunit": "^11.0"
},
"type": "library",
"extra": {
"laravel": {
"providers": [
"InvoiceNinja\\AdminApi\\Providers\\AdminApiServiceProvider"
]
}
},
"autoload": {
"psr-4": {
"InvoiceNinja\\AdminApi\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"InvoiceNinja\\AdminApi\\Tests\\": "tests/"
}
},
"license": [
"Elastic"
],
"authors": [
{
"name": "David Bomba",
"email": "turbo124@gmail.com"
}
],
"description": "API endpoints for the admin interface",
"transport-options": {
"relative": true
}
},
{ {
"name": "invoiceninja/einvoice", "name": "invoiceninja/einvoice",
"version": "dev-main", "version": "dev-main",
@ -7041,31 +6982,32 @@
}, },
{ {
"name": "maennchen/zipstream-php", "name": "maennchen/zipstream-php",
"version": "3.1.1", "version": "3.1.2",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/maennchen/ZipStream-PHP.git", "url": "https://github.com/maennchen/ZipStream-PHP.git",
"reference": "6187e9cc4493da94b9b63eb2315821552015fca9" "reference": "aeadcf5c412332eb426c0f9b4485f6accba2a99f"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/maennchen/ZipStream-PHP/zipball/6187e9cc4493da94b9b63eb2315821552015fca9", "url": "https://api.github.com/repos/maennchen/ZipStream-PHP/zipball/aeadcf5c412332eb426c0f9b4485f6accba2a99f",
"reference": "6187e9cc4493da94b9b63eb2315821552015fca9", "reference": "aeadcf5c412332eb426c0f9b4485f6accba2a99f",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"ext-mbstring": "*", "ext-mbstring": "*",
"ext-zlib": "*", "ext-zlib": "*",
"php-64bit": "^8.1" "php-64bit": "^8.2"
}, },
"require-dev": { "require-dev": {
"brianium/paratest": "^7.7",
"ext-zip": "*", "ext-zip": "*",
"friendsofphp/php-cs-fixer": "^3.16", "friendsofphp/php-cs-fixer": "^3.16",
"guzzlehttp/guzzle": "^7.5", "guzzlehttp/guzzle": "^7.5",
"mikey179/vfsstream": "^1.6", "mikey179/vfsstream": "^1.6",
"php-coveralls/php-coveralls": "^2.5", "php-coveralls/php-coveralls": "^2.5",
"phpunit/phpunit": "^10.0", "phpunit/phpunit": "^11.0",
"vimeo/psalm": "^5.0" "vimeo/psalm": "^6.0"
}, },
"suggest": { "suggest": {
"guzzlehttp/psr7": "^2.4", "guzzlehttp/psr7": "^2.4",
@ -7106,7 +7048,7 @@
], ],
"support": { "support": {
"issues": "https://github.com/maennchen/ZipStream-PHP/issues", "issues": "https://github.com/maennchen/ZipStream-PHP/issues",
"source": "https://github.com/maennchen/ZipStream-PHP/tree/3.1.1" "source": "https://github.com/maennchen/ZipStream-PHP/tree/3.1.2"
}, },
"funding": [ "funding": [
{ {
@ -7114,7 +7056,7 @@
"type": "github" "type": "github"
} }
], ],
"time": "2024-10-10T12:33:01+00:00" "time": "2025-01-27T12:07:53+00:00"
}, },
{ {
"name": "mailgun/mailgun-php", "name": "mailgun/mailgun-php",
@ -17965,16 +17907,16 @@
}, },
{ {
"name": "friendsofphp/php-cs-fixer", "name": "friendsofphp/php-cs-fixer",
"version": "v3.68.1", "version": "v3.68.3",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer.git", "url": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer.git",
"reference": "b9db2b2ea3cdba7201067acee46f984ef2397cff" "reference": "85fd31cced824749a732e697acdd1a3d657312f0"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/PHP-CS-Fixer/PHP-CS-Fixer/zipball/b9db2b2ea3cdba7201067acee46f984ef2397cff", "url": "https://api.github.com/repos/PHP-CS-Fixer/PHP-CS-Fixer/zipball/85fd31cced824749a732e697acdd1a3d657312f0",
"reference": "b9db2b2ea3cdba7201067acee46f984ef2397cff", "reference": "85fd31cced824749a732e697acdd1a3d657312f0",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -18056,7 +17998,7 @@
], ],
"support": { "support": {
"issues": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/issues", "issues": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/issues",
"source": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/tree/v3.68.1" "source": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/tree/v3.68.3"
}, },
"funding": [ "funding": [
{ {
@ -18064,7 +18006,7 @@
"type": "github" "type": "github"
} }
], ],
"time": "2025-01-17T09:20:36+00:00" "time": "2025-01-27T16:37:32+00:00"
}, },
{ {
"name": "hamcrest/hamcrest-php", "name": "hamcrest/hamcrest-php",
@ -21270,7 +21212,6 @@
"asm/php-ansible": 20, "asm/php-ansible": 20,
"beganovich/snappdf": 20, "beganovich/snappdf": 20,
"horstoeko/orderx": 20, "horstoeko/orderx": 20,
"invoiceninja/admin-api": 20,
"invoiceninja/einvoice": 20, "invoiceninja/einvoice": 20,
"socialiteproviders/apple": 20 "socialiteproviders/apple": 20
}, },

View File

@ -10,16 +10,49 @@ return new class extends Migration {
*/ */
public function up(): void public function up(): void
{ {
// Schema::table('companies', function (Blueprint $table) {
// $table->boolean("expense_mailbox_active")->default(false);
// $table->string("expense_mailbox")->nullable();
// $table->boolean("inbound_mailbox_allow_company_users")->default(false);
// $table->boolean("inbound_mailbox_allow_vendors")->default(false);
// $table->boolean("inbound_mailbox_allow_clients")->default(false);
// $table->boolean("inbound_mailbox_allow_unknown")->default(false);
// $table->text("inbound_mailbox_whitelist")->nullable();
// $table->text("inbound_mailbox_blacklist")->nullable();
// });
Schema::table('companies', function (Blueprint $table) { Schema::table('companies', function (Blueprint $table) {
$table->boolean("expense_mailbox_active")->default(false); if (!Schema::hasColumn('companies', 'expense_mailbox_active')) {
$table->string("expense_mailbox")->nullable(); $table->boolean("expense_mailbox_active")->default(false);
$table->boolean("inbound_mailbox_allow_company_users")->default(false); }
$table->boolean("inbound_mailbox_allow_vendors")->default(false); if (!Schema::hasColumn('companies', 'expense_mailbox')) {
$table->boolean("inbound_mailbox_allow_clients")->default(false); $table->string("expense_mailbox")->nullable();
$table->boolean("inbound_mailbox_allow_unknown")->default(false); }
$table->text("inbound_mailbox_whitelist")->nullable(); if (!Schema::hasColumn('companies', 'inbound_mailbox_allow_company_users')) {
$table->text("inbound_mailbox_blacklist")->nullable(); $table->boolean("inbound_mailbox_allow_company_users")->default(false);
}
if (!Schema::hasColumn('companies', 'inbound_mailbox_allow_vendors')) {
$table->boolean("inbound_mailbox_allow_vendors")->default(false);
}
if (!Schema::hasColumn('companies', 'inbound_mailbox_allow_clients')) {
$table->boolean("inbound_mailbox_allow_clients")->default(false);
}
if (!Schema::hasColumn('companies', 'inbound_mailbox_allow_unknown')) {
$table->boolean("inbound_mailbox_allow_unknown")->default(false);
}
if (!Schema::hasColumn('companies', 'inbound_mailbox_whitelist')) {
$table->text("inbound_mailbox_whitelist")->nullable();
}
if (!Schema::hasColumn('companies', 'inbound_mailbox_blacklist')) {
$table->text("inbound_mailbox_blacklist")->nullable();
}
}); });
} }
/** /**