@becollective/utils 2.0.10 → 2.0.11

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.
@@ -1,4 +1,73 @@
1
- declare const _default: {
1
+ export declare const typesMap: {
2
+ roleFixed: string;
3
+ roleFlexible: string;
4
+ ongoing: string;
5
+ };
6
+ export declare const typesMapV2: {
7
+ shift: string;
8
+ flexible: string;
9
+ };
10
+ export declare const types: string[];
11
+ export declare const typesV2: string[];
12
+ export declare const statuses: string[];
13
+ export declare const volunteer: {
14
+ shiftStatus: {
15
+ approved: string;
16
+ cancelled: string;
17
+ left: string;
18
+ };
19
+ ruleStatus: {
20
+ approved: string;
21
+ cancelled: string;
22
+ };
23
+ volunteerStatus: {
24
+ approved: string;
25
+ pending: string;
26
+ invited: string;
27
+ declined: string;
28
+ left: string;
29
+ };
30
+ };
31
+ export declare const checklist: {
32
+ key: string;
33
+ value: string;
34
+ }[];
35
+ export declare const defaultOptions: {
36
+ details: {
37
+ currentJobTitle: string;
38
+ dateOfBirth: string;
39
+ emergencyContactDetails: string;
40
+ gender: string;
41
+ homeAddress: string;
42
+ phoneNumber: string;
43
+ };
44
+ requirements: {
45
+ driversLicense: string;
46
+ firstAidCertificate: string;
47
+ orientation: string;
48
+ policeCheck: string;
49
+ training: string;
50
+ workingWithChildrenCheck: string;
51
+ };
52
+ suitability: {
53
+ families: string;
54
+ deafHardOfHearing: string;
55
+ intellectuallyDisabled: string;
56
+ largeGroups: string;
57
+ skilledVolunteers: string;
58
+ travellingShortTermVolunteers: string;
59
+ blindLowVision: string;
60
+ volunteersWithLimitedEnglish: string;
61
+ wheelchairUsers: string;
62
+ workingExperience: string;
63
+ employeeVolunteers: string;
64
+ socialPrescribing: string;
65
+ publicTransportUsers: string;
66
+ LGBTQIAPlusCommunity: string;
67
+ LongTermVolunteers: string;
68
+ };
69
+ };
70
+ export declare const opportunities: {
2
71
  types: string[];
3
72
  typesMap: {
4
73
  roleFixed: string;
@@ -69,4 +138,4 @@ declare const _default: {
69
138
  };
70
139
  };
71
140
  };
72
- export default _default;
141
+ export default opportunities;
@@ -1,11 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const typesMap = {
3
+ exports.opportunities = exports.defaultOptions = exports.checklist = exports.volunteer = exports.statuses = exports.typesV2 = exports.types = exports.typesMapV2 = exports.typesMap = void 0;
4
+ exports.typesMap = {
4
5
  roleFixed: 'role-fixed',
5
6
  roleFlexible: 'role-flexible',
6
7
  ongoing: 'ongoing',
7
8
  };
8
- const typesMapV2 = {
9
+ exports.typesMapV2 = {
9
10
  shift: 'shift',
10
11
  flexible: 'flexible',
11
12
  };
@@ -25,58 +26,65 @@ const volunteerStatus = {
25
26
  declined: 'declined',
26
27
  left: 'left',
27
28
  };
28
- exports.default = {
29
- types: Object.values(typesMap),
30
- typesMap,
31
- typesV2: Object.values(typesMapV2),
32
- typesMapV2,
33
- statuses: ['draft', 'pending', 'published', 'cancelled'],
34
- volunteer: {
35
- shiftStatus: shiftStatus,
36
- ruleStatus: ruleStatus,
37
- volunteerStatus: volunteerStatus,
29
+ exports.types = Object.values(exports.typesMap);
30
+ exports.typesV2 = Object.values(exports.typesMapV2);
31
+ exports.statuses = ['draft', 'pending', 'published', 'cancelled'];
32
+ exports.volunteer = {
33
+ shiftStatus: shiftStatus,
34
+ ruleStatus: ruleStatus,
35
+ volunteerStatus: volunteerStatus,
36
+ };
37
+ exports.checklist = [
38
+ { key: 'interview', value: 'Interview' },
39
+ { key: 'police-check', value: 'Police Check' },
40
+ { key: 'reference-check', value: 'Reference Check' },
41
+ { key: 'screening', value: 'Screening' },
42
+ { key: 'training', value: 'Training' },
43
+ { key: 'trial', value: 'Check' },
44
+ ];
45
+ exports.defaultOptions = {
46
+ details: {
47
+ currentJobTitle: 'Current Job Title',
48
+ dateOfBirth: 'Date of Birth',
49
+ emergencyContactDetails: 'Emergency Contact Details',
50
+ gender: 'Gender',
51
+ homeAddress: 'Home Address',
52
+ phoneNumber: 'Phone Number',
53
+ },
54
+ requirements: {
55
+ driversLicense: 'Drivers License',
56
+ firstAidCertificate: 'First Aid Certificate',
57
+ orientation: 'Orientation',
58
+ policeCheck: 'Police Check',
59
+ training: 'Training',
60
+ workingWithChildrenCheck: 'Working with Children Check',
38
61
  },
39
- checklist: [
40
- { key: 'interview', value: 'Interview' },
41
- { key: 'police-check', value: 'Police Check' },
42
- { key: 'reference-check', value: 'Reference Check' },
43
- { key: 'screening', value: 'Screening' },
44
- { key: 'training', value: 'Training' },
45
- { key: 'trial', value: 'Check' },
46
- ],
47
- defaultOptions: {
48
- details: {
49
- currentJobTitle: 'Current Job Title',
50
- dateOfBirth: 'Date of Birth',
51
- emergencyContactDetails: 'Emergency Contact Details',
52
- gender: 'Gender',
53
- homeAddress: 'Home Address',
54
- phoneNumber: 'Phone Number',
55
- },
56
- requirements: {
57
- driversLicense: 'Drivers License',
58
- firstAidCertificate: 'First Aid Certificate',
59
- orientation: 'Orientation',
60
- policeCheck: 'Police Check',
61
- training: 'Training',
62
- workingWithChildrenCheck: 'Working with Children Check',
63
- },
64
- suitability: {
65
- families: 'Families',
66
- deafHardOfHearing: 'Deaf/hard of hearing',
67
- intellectuallyDisabled: 'Intellectual/learning disabilities',
68
- largeGroups: 'Large groups (10+)',
69
- skilledVolunteers: 'Skilled volunteers',
70
- travellingShortTermVolunteers: 'Travelling/short term volunteers',
71
- blindLowVision: 'Blind/low vision',
72
- volunteersWithLimitedEnglish: 'Volunteers with limited English',
73
- wheelchairUsers: 'Wheelchair users',
74
- workingExperience: 'Work experience',
75
- employeeVolunteers: 'Employee volunteers',
76
- socialPrescribing: 'Social prescribing',
77
- publicTransportUsers: 'Public transport users',
78
- LGBTQIAPlusCommunity: 'LGBTQIA+ community',
79
- LongTermVolunteers: 'Long term volunteers',
80
- },
62
+ suitability: {
63
+ families: 'Families',
64
+ deafHardOfHearing: 'Deaf/hard of hearing',
65
+ intellectuallyDisabled: 'Intellectual/learning disabilities',
66
+ largeGroups: 'Large groups (10+)',
67
+ skilledVolunteers: 'Skilled volunteers',
68
+ travellingShortTermVolunteers: 'Travelling/short term volunteers',
69
+ blindLowVision: 'Blind/low vision',
70
+ volunteersWithLimitedEnglish: 'Volunteers with limited English',
71
+ wheelchairUsers: 'Wheelchair users',
72
+ workingExperience: 'Work experience',
73
+ employeeVolunteers: 'Employee volunteers',
74
+ socialPrescribing: 'Social prescribing',
75
+ publicTransportUsers: 'Public transport users',
76
+ LGBTQIAPlusCommunity: 'LGBTQIA+ community',
77
+ LongTermVolunteers: 'Long term volunteers',
81
78
  },
82
79
  };
80
+ exports.opportunities = {
81
+ types: exports.types,
82
+ typesMap: exports.typesMap,
83
+ typesV2: exports.typesV2,
84
+ typesMapV2: exports.typesMapV2,
85
+ statuses: exports.statuses,
86
+ volunteer: exports.volunteer,
87
+ checklist: exports.checklist,
88
+ defaultOptions: exports.defaultOptions,
89
+ };
90
+ exports.default = exports.opportunities;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@becollective/utils",
3
- "version": "2.0.10",
3
+ "version": "2.0.11",
4
4
  "description": "Common utilities",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -1,9 +1,9 @@
1
- const typesMap = {
1
+ export const typesMap = {
2
2
  roleFixed: 'role-fixed',
3
3
  roleFlexible: 'role-flexible',
4
4
  ongoing: 'ongoing',
5
5
  };
6
- const typesMapV2 = {
6
+ export const typesMapV2 = {
7
7
  shift: 'shift',
8
8
  flexible: 'flexible',
9
9
  };
@@ -27,58 +27,69 @@ const volunteerStatus = {
27
27
  left: 'left',
28
28
  };
29
29
 
30
- export default {
31
- types: Object.values(typesMap),
32
- typesMap,
33
- typesV2: Object.values(typesMapV2),
34
- typesMapV2,
35
- statuses: ['draft', 'pending', 'published', 'cancelled'],
36
- volunteer: {
37
- shiftStatus: shiftStatus,
38
- ruleStatus: ruleStatus,
39
- volunteerStatus: volunteerStatus,
30
+ export const types = Object.values(typesMap);
31
+ export const typesV2 = Object.values(typesMapV2);
32
+ export const statuses = ['draft', 'pending', 'published', 'cancelled'];
33
+ export const volunteer = {
34
+ shiftStatus: shiftStatus,
35
+ ruleStatus: ruleStatus,
36
+ volunteerStatus: volunteerStatus,
37
+ };
38
+
39
+ export const checklist = [
40
+ { key: 'interview', value: 'Interview' },
41
+ { key: 'police-check', value: 'Police Check' },
42
+ { key: 'reference-check', value: 'Reference Check' },
43
+ { key: 'screening', value: 'Screening' },
44
+ { key: 'training', value: 'Training' },
45
+ { key: 'trial', value: 'Check' },
46
+ ];
47
+
48
+ export const defaultOptions = {
49
+ details: {
50
+ currentJobTitle: 'Current Job Title',
51
+ dateOfBirth: 'Date of Birth',
52
+ emergencyContactDetails: 'Emergency Contact Details',
53
+ gender: 'Gender',
54
+ homeAddress: 'Home Address',
55
+ phoneNumber: 'Phone Number',
56
+ },
57
+ requirements: {
58
+ driversLicense: 'Drivers License',
59
+ firstAidCertificate: 'First Aid Certificate',
60
+ orientation: 'Orientation',
61
+ policeCheck: 'Police Check',
62
+ training: 'Training',
63
+ workingWithChildrenCheck: 'Working with Children Check',
40
64
  },
41
- checklist: [
42
- { key: 'interview', value: 'Interview' },
43
- { key: 'police-check', value: 'Police Check' },
44
- { key: 'reference-check', value: 'Reference Check' },
45
- { key: 'screening', value: 'Screening' },
46
- { key: 'training', value: 'Training' },
47
- { key: 'trial', value: 'Check' },
48
- ],
49
- defaultOptions: {
50
- details: {
51
- currentJobTitle: 'Current Job Title',
52
- dateOfBirth: 'Date of Birth',
53
- emergencyContactDetails: 'Emergency Contact Details',
54
- gender: 'Gender',
55
- homeAddress: 'Home Address',
56
- phoneNumber: 'Phone Number',
57
- },
58
- requirements: {
59
- driversLicense: 'Drivers License',
60
- firstAidCertificate: 'First Aid Certificate',
61
- orientation: 'Orientation',
62
- policeCheck: 'Police Check',
63
- training: 'Training',
64
- workingWithChildrenCheck: 'Working with Children Check',
65
- },
66
- suitability: {
67
- families: 'Families',
68
- deafHardOfHearing: 'Deaf/hard of hearing',
69
- intellectuallyDisabled: 'Intellectual/learning disabilities',
70
- largeGroups: 'Large groups (10+)',
71
- skilledVolunteers: 'Skilled volunteers',
72
- travellingShortTermVolunteers: 'Travelling/short term volunteers',
73
- blindLowVision: 'Blind/low vision',
74
- volunteersWithLimitedEnglish: 'Volunteers with limited English',
75
- wheelchairUsers: 'Wheelchair users',
76
- workingExperience: 'Work experience',
77
- employeeVolunteers: 'Employee volunteers',
78
- socialPrescribing: 'Social prescribing',
79
- publicTransportUsers: 'Public transport users',
80
- LGBTQIAPlusCommunity: 'LGBTQIA+ community',
81
- LongTermVolunteers: 'Long term volunteers',
82
- },
65
+ suitability: {
66
+ families: 'Families',
67
+ deafHardOfHearing: 'Deaf/hard of hearing',
68
+ intellectuallyDisabled: 'Intellectual/learning disabilities',
69
+ largeGroups: 'Large groups (10+)',
70
+ skilledVolunteers: 'Skilled volunteers',
71
+ travellingShortTermVolunteers: 'Travelling/short term volunteers',
72
+ blindLowVision: 'Blind/low vision',
73
+ volunteersWithLimitedEnglish: 'Volunteers with limited English',
74
+ wheelchairUsers: 'Wheelchair users',
75
+ workingExperience: 'Work experience',
76
+ employeeVolunteers: 'Employee volunteers',
77
+ socialPrescribing: 'Social prescribing',
78
+ publicTransportUsers: 'Public transport users',
79
+ LGBTQIAPlusCommunity: 'LGBTQIA+ community',
80
+ LongTermVolunteers: 'Long term volunteers',
83
81
  },
84
82
  };
83
+
84
+ export const opportunities = {
85
+ types,
86
+ typesMap,
87
+ typesV2,
88
+ typesMapV2,
89
+ statuses,
90
+ volunteer,
91
+ checklist,
92
+ defaultOptions,
93
+ };
94
+
95
+ export default opportunities;