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

Version 0.1.12 #2436

Draft
wants to merge 11 commits into
base: 1.x
Choose a base branch
from
2 changes: 1 addition & 1 deletion .github/workflows/ec2-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
environment: ${{ github.ref_name }}
steps:
- name: executing remote ssh commands using password
uses: appleboy/ssh-action@v1.1.0
uses: appleboy/ssh-action@v1.2.0
with:
host: ${{ secrets.AWS_EC2_HOST }}
username: ${{ secrets.AWS_EC2_USERNAME }}
Expand Down
52 changes: 52 additions & 0 deletions app/Console/Commands/Setup/SoukSetupCommand.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<?php

declare(strict_types=1);

namespace App\Console\Commands\Setup;

use Illuminate\Console\Command;
use Kanvas\Apps\Models\Apps;
use Kanvas\Companies\Models\Companies;
use Kanvas\Souk\Support\Setup;
use Kanvas\Users\Models\Users;

class SoukSetupCommand extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'kanvas-souk:setup {app_id} {user_id} {company_id}';

/**
* The console command description.
*
* @var string|null
*/
protected $description = 'Initializes the commerce system';

/**
* Execute the console command.
*
* @return mixed
*/
public function handle()
{
$company = Companies::getById((int) $this->argument('company_id'));
$user = Users::getById((int) $this->argument('user_id'));
$app = Apps::getById((int) $this->argument('app_id'));

(new Setup(
$app,
$user,
$company
))->run();

$this->newLine();
$this->info('Social Souk for Company ' . $company->name . ' and App ' . $app->name . ' completed successfully');
$this->newLine();

return;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use Illuminate\Console\Command;
use Kanvas\Apps\Activities\AppUsersNotificationByRoleActivity;
use Kanvas\Connectors\Apollo\Workflows\Activities\ScreeningPeopleActivity;
use Kanvas\Connectors\ESim\WorkflowActivities\UpdateOrderWithESimMetaDataActivity;
use Kanvas\Connectors\Ghost\Jobs\CreatePeopleFromGhostReceiverJob;
use Kanvas\Connectors\Google\Activities\GenerateUserForYouFeedActivity;
use Kanvas\Connectors\Google\Activities\SyncMessageToDocumentActivity;
Expand Down Expand Up @@ -83,6 +84,7 @@ public function handle(): void
ProcessNetSuiteCompanyCustomerWebhookJob::class,
CreatePeopleFromGhostReceiverJob::class,
CashierStripeWebhookJob::class,
UpdateOrderWithESimMetaDataActivity::class
];

$createdActions = [];
Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
"mll-lab/laravel-graphiql": "^3.1.0",
"nevadskiy/laravel-tree": "^0.5.0",
"nuwave/lighthouse": "^6.0",
"openai-php/client": "^0.10.3",
"phpclassic/php-shopify": "^1.2",
"powersync/authorizenet-sdk-php": "^2.0",
"pusher/pusher-php-server": "^7.2",
Expand Down
197 changes: 172 additions & 25 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading