Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
rxcod9 committed Dec 19, 2022
1 parent 292d58e commit aeb884b
Show file tree
Hide file tree
Showing 835 changed files with 39,755 additions and 456 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/update-changelog.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# .github/workflows/update-changelog.yaml
name: "Update Changelog"

on:
Expand All @@ -12,17 +13,17 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2
with:
ref: main
ref: ${{ github.event.release.target_commitish }}

- name: Update Changelog
uses: stefanzweifel/changelog-updater-action@v1
with:
latest-version: ${{ github.event.release.name }}
latest-version: ${{ github.event.release.tag_name }}
release-notes: ${{ github.event.release.body }}

- name: Commit updated CHANGELOG
uses: stefanzweifel/git-auto-commit-action@v4
with:
branch: main
branch: ${{ github.event.release.target_commitish }}
commit_message: Update CHANGELOG
file_pattern: CHANGELOG.md
file_pattern: CHANGELOG.md
57 changes: 57 additions & 0 deletions database/factories/AccountFactory.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
<?php

namespace Joy\VoyagerCrm\Database\Factories;

use Illuminate\Database\Eloquent\Factories\Factory;
use Joy\VoyagerCrm\Models\Account;

class AccountFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protected $model = Account::class;

/**
* Define the model's default state.
*
* @return array
*/
public function definition()
{
return [
'name' => $this->faker->name(),
'description' => $this->faker->text(500),
'account_type' => $this->faker->randomElement([
'TYPE1',
'TYPE2',
]),
'industry' => $this->faker->word(10),
'annual_revenue' => $this->faker->word(10),
'phone_fax' => $this->faker->phoneNumber(),
'billing_address_street' => $this->faker->streetName(),
'billing_address_city' => $this->faker->city(),
'billing_address_state' => $this->faker->state(),
'billing_address_country' => $this->faker->country(),
'billing_address_postalcode' => $this->faker->postcode(),
'rating' => $this->faker->text(50),
'phone_office' => $this->faker->phoneNumber(),
'phone_alternate' => $this->faker->phoneNumber(),
'website' => $this->faker->url(),
'ownership' => $this->faker->text(50),
'employees' => $this->faker->text(10),
'ticker_symbol' => $this->faker->text(10),
'shipping_address_street' => $this->faker->streetName(),
'shipping_address_city' => $this->faker->city(),
'shipping_address_state' => $this->faker->state(),
'shipping_address_country' => $this->faker->country(),
'shipping_address_postalcode' => $this->faker->postcode(),
'sic_code' => $this->faker->text(10),
'created_at' => $this->faker->dateTime(),
'updated_at' => $this->faker->dateTime(),
// 'deleted_at' => $this->faker->dateTime(),
];
}
}
50 changes: 50 additions & 0 deletions database/factories/AosPdfTemplateFactory.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
<?php

namespace Joy\VoyagerCrm\Database\Factories;

use Illuminate\Database\Eloquent\Factories\Factory;
use Joy\VoyagerCrm\Models\AosPdfTemplate;

class AosPdfTemplateFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protected $model = AosPdfTemplate::class;

/**
* Define the model's default state.
*
* @return array
*/
public function definition()
{
return [
'name' => $this->faker->name(),
'description' => $this->faker->text(500),
'active' => $this->faker->boolean(),
'type' => $this->faker->randomElement([
'TYPE1',
'TYPE2',
]),
'pdfheader' => $this->faker->paragraphs(10, true),
'pdffooter' => $this->faker->paragraphs(10, true),
'margin_left' => $this->faker->numberBetween(10, 20),
'margin_right' => $this->faker->numberBetween(10, 20),
'margin_top' => $this->faker->numberBetween(10, 20),
'margin_bottom' => $this->faker->numberBetween(10, 20),
'margin_header' => $this->faker->numberBetween(10, 20),
'margin_footer' => $this->faker->numberBetween(10, 20),
'page_size' => $this->faker->numberBetween(100, 200) . ' KB',
'orientation' => $this->faker->randomElement([
'LANDSCAPE',
'PORTRAIT',
]),
'created_at' => $this->faker->dateTime(),
'updated_at' => $this->faker->dateTime(),
// 'deleted_at' => $this->faker->dateTime(),
];
}
}
34 changes: 34 additions & 0 deletions database/factories/AosProductCategoryFactory.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?php

namespace Joy\VoyagerCrm\Database\Factories;

use Illuminate\Database\Eloquent\Factories\Factory;
use Joy\VoyagerCrm\Models\AosProductCategory;

class AosProductCategoryFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protected $model = AosProductCategory::class;

/**
* Define the model's default state.
*
* @return array
*/
public function definition()
{
return [
'name' => $this->faker->name(),
'description' => $this->faker->text(500),
'is_parent' => $this->faker->boolean(),
'parent_category_id' => null,
'created_at' => $this->faker->dateTime(),
'updated_at' => $this->faker->dateTime(),
// 'deleted_at' => $this->faker->dateTime(),
];
}
}
36 changes: 36 additions & 0 deletions database/factories/AosSampleFactory.php.stub
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?php

namespace Joy\VoyagerCrm\Database\Factories;

use Illuminate\Database\Eloquent\Factories\Factory;
use Joy\VoyagerCrm\Models\AosSample;

class AosSampleFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protected $model = AosSample::class;

/**
* Define the model's default state.
*
* @return array
*/
public function definition()
{
return [
'name' => $this->faker->name(),
'description' => $this->faker->text(500),
'status' => $this->faker->randomElement([
'ACTIVE',
'INACTIVE',
]),
'created_at' => $this->faker->dateTime(),
'updated_at' => $this->faker->dateTime(),
// 'deleted_at' => $this->faker->dateTime(),
];
}
}
32 changes: 32 additions & 0 deletions database/factories/AowWorkflowFactory.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?php

namespace Joy\VoyagerCrm\Database\Factories;

use Illuminate\Database\Eloquent\Factories\Factory;
use Joy\VoyagerCrm\Models\AowWorkflow;

class AowWorkflowFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protected $model = AowWorkflow::class;

/**
* Define the model's default state.
*
* @return array
*/
public function definition()
{
return [
'name' => $this->faker->name(),
'description' => $this->faker->text(500),
'created_at' => $this->faker->dateTime(),
'updated_at' => $this->faker->dateTime(),
// 'deleted_at' => $this->faker->dateTime(),
];
}
}
55 changes: 55 additions & 0 deletions database/factories/BugFactory.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
<?php

namespace Joy\VoyagerCrm\Database\Factories;

use Illuminate\Database\Eloquent\Factories\Factory;
use Joy\VoyagerCrm\Models\Bug;

class BugFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protected $model = Bug::class;

/**
* Define the model's default state.
*
* @return array
*/
public function definition()
{
return [
'name' => $this->faker->name(),
'description' => $this->faker->text(500),
'bug_number' => $this->faker->unique()->numberBetween(1, 1000),
'type' => $this->faker->randomElement([
'TYPE1',
'TYPE2',
]),
'status' => $this->faker->randomElement([
'ACTIVE',
'INACTIVE',
]),
'priority' => $this->faker->randomElement([
'LOW',
'MEDIUM',
'HIGH',
]),
'resolution' => $this->faker->randomElement([
'YES',
'NO',
]),
'work_log' => $this->faker->text(100),
'found_in_release' => $this->faker->text(10),
'fixed_in_release' => $this->faker->text(10),
'source' => $this->faker->text(10),
'product_category' => $this->faker->text(10),
'created_at' => $this->faker->dateTime(),
'updated_at' => $this->faker->dateTime(),
// 'deleted_at' => $this->faker->dateTime(),
];
}
}
58 changes: 58 additions & 0 deletions database/factories/CallFactory.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
<?php

namespace Joy\VoyagerCrm\Database\Factories;

use Illuminate\Database\Eloquent\Factories\Factory;
use Joy\VoyagerCrm\Models\Call;

class CallFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protected $model = Call::class;

/**
* Define the model's default state.
*
* @return array
*/
public function definition()
{
return [
'name' => $this->faker->name(),
'description' => $this->faker->text(500),
'duration_hours' => $this->faker->numberBetween(1, 24),
'duration_minutes' => $this->faker->numberBetween(1, 60),
'date_start' => $this->faker->dateTimeBetween('-3months', '-2months'),
'date_end' => $this->faker->dateTimeBetween('-2months', '-1month'),
'parent_type' => null,
'parent_id' => null,
'status' => $this->faker->randomElement([
'ACTIVE',
'INACTIVE',
'PLANNED',
]),
'direction' => $this->faker->randomElement([
'INCOMING',
'OUTGOING',
]),
'reminder_time' => $this->faker->randomNumber(),
'email_reminder_time' => $this->faker->randomNumber(),
'email_reminder_sent' => $this->faker->boolean(),
'outlook_id' => null,
'repeat_type' => null,
'repeat_interval' => null,
'repeat_dow' => null,
'repeat_until' => null,
'repeat_count' => null,
'repeat_parent_id' => null,
'recurring_source' => null,
'created_at' => $this->faker->dateTime(),
'updated_at' => $this->faker->dateTime(),
// 'deleted_at' => $this->faker->dateTime(),
];
}
}
40 changes: 40 additions & 0 deletions database/factories/CurrencyFactory.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<?php

namespace Joy\VoyagerCrm\Database\Factories;

use Illuminate\Database\Eloquent\Factories\Factory;
use Joy\VoyagerCrm\Models\Currency;

class CurrencyFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protected $model = Currency::class;

/**
* Define the model's default state.
*
* @return array
*/
public function definition()
{
$currencyCode = $this->faker->unique()->currencyCode();

return [
'name' => $this->faker->name(),
'symbol' => $currencyCode,
'iso4217' => $currencyCode,
'conversion_rate' => $this->faker->randomFloat(4, 20, 200),
'status' => $this->faker->randomElement([
'ACTIVE',
'INACTIVE',
]),
'created_at' => $this->faker->dateTime(),
'updated_at' => $this->faker->dateTime(),
// 'deleted_at' => $this->faker->dateTime(),
];
}
}
Loading

0 comments on commit aeb884b

Please sign in to comment.