@ossy/consultancy 1.1.0
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/README.md +12 -0
- package/package.json +25 -0
- package/src/company-basic-info.resource.js +40 -0
- package/src/contract.resource.js +42 -0
- package/src/employee.resource.js +32 -0
- package/src/index.js +4 -0
- package/src/vacation.resource.js +19 -0
package/README.md
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# @ossy/consultancy
|
|
2
|
+
|
|
3
|
+
Consultancy feature package for the Ossy platform. Provides resource templates for managing employees, contracts, company information, and vacations.
|
|
4
|
+
|
|
5
|
+
## Resource Templates
|
|
6
|
+
|
|
7
|
+
| Resource | ID |
|
|
8
|
+
|----------|----|
|
|
9
|
+
| Employee | `@ossy/consultancy/employee` |
|
|
10
|
+
| Contract | `@ossy/consultancy/contract` |
|
|
11
|
+
| Company Basic Info | `@ossy/consultancy/companyBasicInfo` |
|
|
12
|
+
| Vacation | `@ossy/consultancy/vacation` |
|
package/package.json
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@ossy/consultancy",
|
|
3
|
+
"description": "Consultancy feature package — employee, contract, company, and vacation resource templates for Ossy consultants",
|
|
4
|
+
"version": "1.1.0",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./src/index.js",
|
|
7
|
+
"module": "./src/index.js",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": "./src/index.js"
|
|
10
|
+
},
|
|
11
|
+
"author": "Ossy <yourfriends@ossy.se> (https://ossy.se)",
|
|
12
|
+
"license": "MIT",
|
|
13
|
+
"ossy": {
|
|
14
|
+
"src": "./src"
|
|
15
|
+
},
|
|
16
|
+
"publishConfig": {
|
|
17
|
+
"access": "public",
|
|
18
|
+
"registry": "https://registry.npmjs.org"
|
|
19
|
+
},
|
|
20
|
+
"files": [
|
|
21
|
+
"/src",
|
|
22
|
+
"README.md"
|
|
23
|
+
],
|
|
24
|
+
"gitHead": "9b116b6a4fadd570c1e6c0c6d9a4867448f7410c"
|
|
25
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
name: 'Company Basic Info',
|
|
3
|
+
id: '@ossy/consultancy/companyBasicInfo',
|
|
4
|
+
categoryName: 'Consultancy',
|
|
5
|
+
icon: 'organisation',
|
|
6
|
+
fields: [
|
|
7
|
+
{
|
|
8
|
+
name: 'name',
|
|
9
|
+
type: 'text',
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
name: 'registrationDate',
|
|
13
|
+
type: 'text',
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
name: 'vatNumber',
|
|
17
|
+
type: 'text',
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
name: 'vatRegistredFrom',
|
|
21
|
+
type: 'text',
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
name: 'vatPaymentResponsibilityFrom',
|
|
25
|
+
type: 'text',
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
name: 'vatPaymentPeriod',
|
|
29
|
+
type: 'text',
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
name: 'financialYearStart',
|
|
33
|
+
type: 'text',
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
name: 'financialYearEnd',
|
|
37
|
+
type: 'text',
|
|
38
|
+
},
|
|
39
|
+
],
|
|
40
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
name: 'Contract',
|
|
3
|
+
id: '@ossy/consultancy/contract',
|
|
4
|
+
categoryName: 'Consultancy',
|
|
5
|
+
icon: 'file-document',
|
|
6
|
+
fields: [
|
|
7
|
+
{
|
|
8
|
+
name: 'employeeId',
|
|
9
|
+
type: 'text',
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
name: 'clientName',
|
|
13
|
+
type: 'text',
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
name: 'hourlyCompensation',
|
|
17
|
+
type: 'number',
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
name: 'startDate',
|
|
21
|
+
type: 'text',
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
name: 'endDate',
|
|
25
|
+
type: 'text',
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
name: 'noticePeriodInDays',
|
|
29
|
+
type: 'number',
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
name: 'paymentTermsDueDate',
|
|
33
|
+
type: 'select',
|
|
34
|
+
options: ['net30'],
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
name: 'paymentTermsInvoiceDate',
|
|
38
|
+
type: 'select',
|
|
39
|
+
options: ['dayAfterServicePeriodEnd', 'sameDayAsServicePeriodEnd'],
|
|
40
|
+
},
|
|
41
|
+
],
|
|
42
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
name: 'Employee',
|
|
3
|
+
id: '@ossy/consultancy/employee',
|
|
4
|
+
categoryName: 'Consultancy',
|
|
5
|
+
icon: 'user-add',
|
|
6
|
+
fields: [
|
|
7
|
+
{
|
|
8
|
+
name: 'name',
|
|
9
|
+
type: 'text',
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
name: 'monthlySalary',
|
|
13
|
+
type: 'number',
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
name: 'workHoursPerDay',
|
|
17
|
+
type: 'number',
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
name: 'holidayDays',
|
|
21
|
+
type: 'number',
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
name: 'startDate',
|
|
25
|
+
type: 'text',
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
name: 'endDate',
|
|
29
|
+
type: 'text',
|
|
30
|
+
},
|
|
31
|
+
],
|
|
32
|
+
}
|
package/src/index.js
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { default as employeeResource } from './employee.resource.js'
|
|
2
|
+
export { default as contractResource } from './contract.resource.js'
|
|
3
|
+
export { default as companyBasicInfoResource } from './company-basic-info.resource.js'
|
|
4
|
+
export { default as vacationResource } from './vacation.resource.js'
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
name: 'Vacation',
|
|
3
|
+
id: '@ossy/consultancy/vacation',
|
|
4
|
+
categoryName: 'Consultancy',
|
|
5
|
+
fields: [
|
|
6
|
+
{
|
|
7
|
+
name: 'employeeId',
|
|
8
|
+
type: 'text',
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
name: 'start',
|
|
12
|
+
type: 'text',
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
name: 'end',
|
|
16
|
+
type: 'text',
|
|
17
|
+
},
|
|
18
|
+
],
|
|
19
|
+
}
|