@codihaus/odp-app-hr 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app/data/hr-schema.ts +49 -45
- package/package.json +1 -1
package/app/data/hr-schema.ts
CHANGED
|
@@ -2560,49 +2560,53 @@ export const hrSchema: ModuleSchema = {
|
|
|
2560
2560
|
},
|
|
2561
2561
|
],
|
|
2562
2562
|
|
|
2563
|
-
// Seed data runs after collections are created
|
|
2564
|
-
seed: [
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
|
|
2563
|
+
// Seed data runs after collections are created.
|
|
2564
|
+
// Shape must match ModuleSchema.seed: { required?: SeedDef[], sample?: SeedDef[] }
|
|
2565
|
+
// and each SeedDef is { collection, items } (NOT a bare array / `data`).
|
|
2566
|
+
seed: {
|
|
2567
|
+
required: [
|
|
2568
|
+
{
|
|
2569
|
+
collection: "hr_employment_types",
|
|
2570
|
+
items: [
|
|
2571
|
+
{ key: "full_time", label: "Full-time" },
|
|
2572
|
+
{ key: "part_time", label: "Part-time" },
|
|
2573
|
+
{ key: "contractor", label: "Contractor" },
|
|
2574
|
+
{ key: "intern", label: "Intern" },
|
|
2575
|
+
],
|
|
2576
|
+
},
|
|
2577
|
+
{
|
|
2578
|
+
collection: "hr_leave_types",
|
|
2579
|
+
items: [
|
|
2580
|
+
{ key: "annual", label: "Annual Leave", default_days: 12, paid: true },
|
|
2581
|
+
{ key: "sick", label: "Sick Leave", default_days: 5, paid: true },
|
|
2582
|
+
{ key: "unpaid", label: "Unpaid Leave", default_days: 0, paid: false },
|
|
2583
|
+
{ key: "maternity", label: "Maternity Leave", default_days: 180, paid: true },
|
|
2584
|
+
{ key: "paternity", label: "Paternity Leave", default_days: 5, paid: true },
|
|
2585
|
+
],
|
|
2586
|
+
},
|
|
2587
|
+
{
|
|
2588
|
+
collection: "hr_settings",
|
|
2589
|
+
items: [
|
|
2590
|
+
{
|
|
2591
|
+
company_name: "My Company",
|
|
2592
|
+
currency: "VND",
|
|
2593
|
+
fiscal_year_start: 1,
|
|
2594
|
+
probation_months_default: 2,
|
|
2595
|
+
leave_year_start: 1,
|
|
2596
|
+
},
|
|
2597
|
+
],
|
|
2598
|
+
},
|
|
2599
|
+
{
|
|
2600
|
+
collection: "hr_document_triggers",
|
|
2601
|
+
items: [
|
|
2602
|
+
{ event: "talent_created", label: "Talent Created", auto: false },
|
|
2603
|
+
{ event: "offer_sent", label: "Offer Sent", auto: false },
|
|
2604
|
+
{ event: "offer_accepted", label: "Offer Accepted", auto: false },
|
|
2605
|
+
{ event: "hired", label: "Employee Hired", auto: false },
|
|
2606
|
+
{ event: "probation_confirmed", label: "Probation Confirmed", auto: false },
|
|
2607
|
+
{ event: "resigned", label: "Employee Resigned", auto: false },
|
|
2608
|
+
],
|
|
2609
|
+
},
|
|
2610
|
+
],
|
|
2611
|
+
},
|
|
2608
2612
|
}
|