@becollective/utils 2.0.12 → 2.0.14

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.
Files changed (60) hide show
  1. package/.semaphore/utils.yml +13 -22
  2. package/jestconfig.json +12 -1
  3. package/lib/constants/allowedHtmlTags.d.ts +6 -2
  4. package/lib/constants/allowedHtmlTags.js +9 -5
  5. package/lib/constants/countries.d.ts +2 -2
  6. package/lib/constants/countries.js +3 -1
  7. package/lib/constants/customFields.d.ts +2 -2
  8. package/lib/constants/customFields.js +3 -1
  9. package/lib/constants/distancesUnits.d.ts +2 -2
  10. package/lib/constants/distancesUnits.js +13 -9
  11. package/lib/constants/groups.d.ts +12 -2
  12. package/lib/constants/groups.js +86 -81
  13. package/lib/constants/insuranceStatuses.d.ts +14 -2
  14. package/lib/constants/insuranceStatuses.js +9 -4
  15. package/lib/constants/insuranceTypes.d.ts +34 -2
  16. package/lib/constants/insuranceTypes.js +43 -33
  17. package/lib/constants/languages.d.ts +2 -2
  18. package/lib/constants/languages.js +3 -1
  19. package/lib/constants/qualificationTypes.d.ts +2 -2
  20. package/lib/constants/qualificationTypes.js +3 -2
  21. package/lib/constants/rules.d.ts +12 -2
  22. package/lib/constants/rules.js +7 -5
  23. package/lib/constants/surveys.d.ts +15 -2
  24. package/lib/constants/surveys.js +18 -14
  25. package/lib/date-time.js +1 -1
  26. package/lib/forms.d.ts +3 -0
  27. package/lib/forms.js +3 -0
  28. package/package.json +10 -1
  29. package/src/constants/allowedHtmlTags.ts +10 -5
  30. package/src/constants/countries.ts +3 -1
  31. package/src/constants/customFields.ts +3 -1
  32. package/src/constants/distancesUnits.ts +15 -9
  33. package/src/constants/groups.ts +89 -81
  34. package/src/constants/insuranceStatuses.ts +10 -4
  35. package/src/constants/insuranceTypes.ts +51 -33
  36. package/src/constants/languages.ts +3 -1
  37. package/src/constants/qualificationTypes.ts +2 -1
  38. package/src/constants/rules.ts +5 -3
  39. package/src/constants/surveys.ts +20 -14
  40. package/src/date-time.ts +1 -1
  41. package/src/forms.ts +3 -0
  42. package/tests/forms.test.ts +121 -1
  43. package/lib/rrule/parsing.test.d.ts +0 -1
  44. package/lib/rrule/parsing.test.js +0 -11
  45. package/lib/src/FeatureFlag.d.ts +0 -12
  46. package/lib/src/FeatureFlag.js +0 -51
  47. package/lib/src/date-time.d.ts +0 -28
  48. package/lib/src/date-time.js +0 -79
  49. package/lib/src/forms.d.ts +0 -1
  50. package/lib/src/forms.js +0 -728
  51. package/lib/src/locality.d.ts +0 -5
  52. package/lib/src/locality.js +0 -15
  53. package/lib/src/money.d.ts +0 -7
  54. package/lib/src/money.js +0 -32
  55. package/lib/src/opportunity.d.ts +0 -1
  56. package/lib/src/opportunity.js +0 -11
  57. package/lib/src/opportunityUser.d.ts +0 -8
  58. package/lib/src/opportunityUser.js +0 -29
  59. package/lib/src/password.d.ts +0 -8
  60. package/lib/src/password.js +0 -43
@@ -4,11 +4,17 @@ agent:
4
4
  machine:
5
5
  type: e1-standard-2
6
6
  os_image: ubuntu2404
7
+ global_job_config:
8
+ epilogue:
9
+ always:
10
+ commands:
11
+ - '[[ -f packages/utils/test-results/report.xml ]] && test-results publish packages/utils/test-results/report.xml || true'
7
12
  blocks:
8
13
  - name: Test
14
+ skip:
15
+ when: "change_in('/packages/utils', {default_branch: 'master', on_tags: false}) = false"
9
16
  task:
10
17
  secrets:
11
- - name: NPM
12
18
  - name: BUILD_DEPRECATED
13
19
  prologue:
14
20
  commands:
@@ -20,25 +26,10 @@ blocks:
20
26
  commands:
21
27
  - cd ./packages/utils
22
28
  - npm ci
23
- - npm run test
24
- - name: Publish
25
- skip:
26
- when: "branch != 'master'"
27
- task:
28
- secrets:
29
- - name: NPM
30
- - name: BUILD_DEPRECATED
31
- env_vars:
32
- - name: PACKAGE_DIR
33
- value: ./packages/utils
34
- prologue:
29
+ - npm run citest
30
+ after_pipeline:
31
+ task:
32
+ jobs:
33
+ - name: Merge reports
35
34
  commands:
36
- - checkout
37
- - export AWS_ACCESS_KEY_ID=$AWS_BUILD_DEPRECATED_ACCESS_KEY
38
- - export AWS_SECRET_ACCESS_KEY=$AWS_BUILD_DEPRECATED_SECRET_ACCESS_KEY
39
- jobs:
40
- - name: Publish
41
- commands:
42
- - echo "deploying @becollective/utils"
43
- - sh ./.semaphore/deployer.sh
44
-
35
+ - test-results gen-pipeline-report || echo "Report merge skipped (no artifacts or pull failed)"
package/jestconfig.json CHANGED
@@ -5,5 +5,16 @@
5
5
  "testRegex": "(/tests/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$",
6
6
  "moduleFileExtensions": ["ts", "tsx", "js", "jsx", "json", "node"],
7
7
  "collectCoverage": true,
8
- "setupFiles": ["./setup.ts"]
8
+ "setupFiles": ["./setup.ts"],
9
+ "reporters": [
10
+ "default",
11
+ [
12
+ "jest-junit",
13
+ {
14
+ "outputDirectory": "test-results",
15
+ "outputName": "report.xml",
16
+ "includeConsoleOutput": true
17
+ }
18
+ ]
19
+ ]
9
20
  }
@@ -1,7 +1,11 @@
1
- declare const _default: {
1
+ export declare const allowedTags: string[];
2
+ export declare const allowedAttributes: {
3
+ a: string[];
4
+ };
5
+ export declare const allowedHtmlTags: {
2
6
  allowedTags: string[];
3
7
  allowedAttributes: {
4
8
  a: string[];
5
9
  };
6
10
  };
7
- export default _default;
11
+ export default allowedHtmlTags;
@@ -1,8 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = {
4
- allowedTags: ['b', 'i', 'em', 'strong', 'a', 'p', 'u', 'del', 'div', 'ins', 'li', 'ul', 'ol', 'br'],
5
- allowedAttributes: {
6
- a: ['href', 'target', 'rel'],
7
- },
3
+ exports.allowedHtmlTags = exports.allowedAttributes = exports.allowedTags = void 0;
4
+ exports.allowedTags = ['b', 'i', 'em', 'strong', 'a', 'p', 'u', 'del', 'div', 'ins', 'li', 'ul', 'ol', 'br'];
5
+ exports.allowedAttributes = {
6
+ a: ['href', 'target', 'rel'],
8
7
  };
8
+ exports.allowedHtmlTags = {
9
+ allowedTags: exports.allowedTags,
10
+ allowedAttributes: exports.allowedAttributes,
11
+ };
12
+ exports.default = exports.allowedHtmlTags;
@@ -1,4 +1,4 @@
1
- declare const _default: {
1
+ export declare const countries: {
2
2
  BD: string;
3
3
  BE: string;
4
4
  BF: string;
@@ -250,4 +250,4 @@ declare const _default: {
250
250
  QA: string;
251
251
  MZ: string;
252
252
  };
253
- export default _default;
253
+ export default countries;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = {
3
+ exports.countries = void 0;
4
+ exports.countries = {
4
5
  BD: 'Bangladesh',
5
6
  BE: 'Belgium',
6
7
  BF: 'Burkina Faso',
@@ -252,3 +253,4 @@ exports.default = {
252
253
  QA: 'Qatar',
253
254
  MZ: 'Mozambique',
254
255
  };
256
+ exports.default = exports.countries;
@@ -1,4 +1,4 @@
1
- declare const _default: {
1
+ export declare const customFields: {
2
2
  maxMongoStringLength: number;
3
3
  maxFileSizeBytes: number;
4
4
  emailReferenceHeadingString: string;
@@ -8,4 +8,4 @@ declare const _default: {
8
8
  maxNumberOfRows: number;
9
9
  templateFileName: string;
10
10
  };
11
- export default _default;
11
+ export default customFields;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = {
3
+ exports.customFields = void 0;
4
+ exports.customFields = {
4
5
  maxMongoStringLength: 4096, // https://github.com/mongodb/mongo/blob/master/src/mongo/shell/linenoise.cpp#L145
5
6
  maxFileSizeBytes: 16000000, // 16 MB https://docs.mongodb.com/manual/reference/limits/
6
7
  emailReferenceHeadingString: 'Email (ref.)',
@@ -10,3 +11,4 @@ exports.default = {
10
11
  maxNumberOfRows: 501, // 500 rows + headings row
11
12
  templateFileName: 'Custom_Fields_Template.csv', // should end in .csv
12
13
  };
14
+ exports.default = exports.customFields;
@@ -1,4 +1,4 @@
1
- declare const _default: {
1
+ export declare const distancesUnits: {
2
2
  km: {
3
3
  long: string;
4
4
  short: string;
@@ -8,4 +8,4 @@ declare const _default: {
8
8
  short: string;
9
9
  };
10
10
  };
11
- export default _default;
11
+ export default distancesUnits;
@@ -1,13 +1,17 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.distancesUnits = void 0;
3
4
  // These align to https://www.elastic.co/guide/en/elasticsearch/reference/7.3/common-options.html#distance-units
4
- exports.default = {
5
- km: {
6
- long: 'kilometers',
7
- short: 'km',
8
- },
9
- mi: {
10
- long: 'miles',
11
- short: 'mi',
12
- },
5
+ const km = {
6
+ long: 'kilometers',
7
+ short: 'km',
13
8
  };
9
+ const mi = {
10
+ long: 'miles',
11
+ short: 'mi',
12
+ };
13
+ exports.distancesUnits = {
14
+ km,
15
+ mi,
16
+ };
17
+ exports.default = exports.distancesUnits;
@@ -1,4 +1,14 @@
1
- declare const _default: {
1
+ export declare const maxNumberOfGroupMembers = 10000;
2
+ export declare const defaultOptions: {
3
+ details: string[];
4
+ requirements: string[];
5
+ industries: string[];
6
+ };
7
+ export declare const groupTypes: {
8
+ name: string;
9
+ value: string;
10
+ }[];
11
+ export declare const groups: {
2
12
  maxNumberOfGroupMembers: number;
3
13
  defaultOptions: {
4
14
  details: string[];
@@ -10,4 +20,4 @@ declare const _default: {
10
20
  value: string;
11
21
  }[];
12
22
  };
13
- export default _default;
23
+ export default groups;
@@ -1,85 +1,90 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = {
4
- maxNumberOfGroupMembers: 10000,
5
- defaultOptions: {
6
- details: [
7
- 'Phone Number',
8
- 'Gender',
9
- 'Date of Birth',
10
- 'Home Address',
11
- 'Current Job Title',
12
- 'Emergency Contact Details',
13
- ],
14
- requirements: [
15
- 'Working with Children Check',
16
- 'Drivers License',
17
- 'Police Check',
18
- 'First Aid Certificate',
19
- 'Orientation',
20
- 'Training',
21
- ],
22
- industries: [
23
- 'Accommodations',
24
- 'Accounting',
25
- 'Advertising',
26
- 'Aerospace',
27
- 'Agriculture & Agribusiness',
28
- 'Air Transportation',
29
- 'Apparel & Accessories',
30
- 'Auto',
31
- 'Banking',
32
- 'Beauty & Cosmetics',
33
- 'Biotechnology',
34
- 'Chemical',
35
- 'Communications',
36
- 'Computer',
37
- 'Construction',
38
- 'Consulting',
39
- 'Consumer Products',
40
- 'Education',
41
- 'Electronics',
42
- 'Employment',
43
- 'Energy',
44
- 'Entertainment & Recreation',
45
- 'Fashion',
46
- 'Financial Services',
47
- 'Food & Beverage',
48
- 'Health',
49
- 'Information',
50
- 'Information Technology',
51
- 'Insurance',
52
- 'Journalism & News',
53
- 'Legal Services',
54
- 'Manufacturing',
55
- 'Media & Broadcasting',
56
- 'Medical Devices & Supplies',
57
- 'Motion Pictures & Video',
58
- 'Music',
59
- 'Pharmaceutical',
60
- 'Public Administration',
61
- 'Public Relations',
62
- 'Publishing',
63
- 'Real Estate',
64
- 'Retail',
65
- 'Service',
66
- 'Sports',
67
- 'Technology',
68
- 'Telecommunications',
69
- 'Tourism',
70
- 'Transportation',
71
- 'Travel',
72
- 'Utilities',
73
- 'Video Game',
74
- 'Web Services',
75
- ],
76
- },
77
- groupTypes: [
78
- { name: 'Business', value: 'business' },
79
- { name: 'Charity/Not-for-profit', value: 'charity-not-for-profit' },
80
- { name: 'Club/Community group', value: 'club-community-group' },
81
- { name: 'Education provider', value: 'education-provider' },
82
- { name: 'Government/Public sector', value: 'government-public-sector' },
83
- { name: 'Volunteer services & centre', value: 'volunteer-service-centre' },
3
+ exports.groups = exports.groupTypes = exports.defaultOptions = exports.maxNumberOfGroupMembers = void 0;
4
+ exports.maxNumberOfGroupMembers = 10000;
5
+ exports.defaultOptions = {
6
+ details: [
7
+ 'Phone Number',
8
+ 'Gender',
9
+ 'Date of Birth',
10
+ 'Home Address',
11
+ 'Current Job Title',
12
+ 'Emergency Contact Details',
84
13
  ],
14
+ requirements: [
15
+ 'Working with Children Check',
16
+ 'Drivers License',
17
+ 'Police Check',
18
+ 'First Aid Certificate',
19
+ 'Orientation',
20
+ 'Training',
21
+ ],
22
+ industries: [
23
+ 'Accommodations',
24
+ 'Accounting',
25
+ 'Advertising',
26
+ 'Aerospace',
27
+ 'Agriculture & Agribusiness',
28
+ 'Air Transportation',
29
+ 'Apparel & Accessories',
30
+ 'Auto',
31
+ 'Banking',
32
+ 'Beauty & Cosmetics',
33
+ 'Biotechnology',
34
+ 'Chemical',
35
+ 'Communications',
36
+ 'Computer',
37
+ 'Construction',
38
+ 'Consulting',
39
+ 'Consumer Products',
40
+ 'Education',
41
+ 'Electronics',
42
+ 'Employment',
43
+ 'Energy',
44
+ 'Entertainment & Recreation',
45
+ 'Fashion',
46
+ 'Financial Services',
47
+ 'Food & Beverage',
48
+ 'Health',
49
+ 'Information',
50
+ 'Information Technology',
51
+ 'Insurance',
52
+ 'Journalism & News',
53
+ 'Legal Services',
54
+ 'Manufacturing',
55
+ 'Media & Broadcasting',
56
+ 'Medical Devices & Supplies',
57
+ 'Motion Pictures & Video',
58
+ 'Music',
59
+ 'Pharmaceutical',
60
+ 'Public Administration',
61
+ 'Public Relations',
62
+ 'Publishing',
63
+ 'Real Estate',
64
+ 'Retail',
65
+ 'Service',
66
+ 'Sports',
67
+ 'Technology',
68
+ 'Telecommunications',
69
+ 'Tourism',
70
+ 'Transportation',
71
+ 'Travel',
72
+ 'Utilities',
73
+ 'Video Game',
74
+ 'Web Services',
75
+ ],
76
+ };
77
+ exports.groupTypes = [
78
+ { name: 'Business', value: 'business' },
79
+ { name: 'Charity/Not-for-profit', value: 'charity-not-for-profit' },
80
+ { name: 'Club/Community group', value: 'club-community-group' },
81
+ { name: 'Education provider', value: 'education-provider' },
82
+ { name: 'Government/Public sector', value: 'government-public-sector' },
83
+ { name: 'Volunteer services & centre', value: 'volunteer-service-centre' },
84
+ ];
85
+ exports.groups = {
86
+ maxNumberOfGroupMembers: exports.maxNumberOfGroupMembers,
87
+ defaultOptions: exports.defaultOptions,
88
+ groupTypes: exports.groupTypes,
85
89
  };
90
+ exports.default = exports.groups;
@@ -1,4 +1,16 @@
1
- declare const _default: {
1
+ export declare const INSURED: {
2
+ value: string;
3
+ label: string;
4
+ };
5
+ export declare const UNINSURED: {
6
+ value: string;
7
+ label: string;
8
+ };
9
+ export declare const AUSPICED: {
10
+ value: string;
11
+ label: string;
12
+ };
13
+ export declare const insuranceStatuses: {
2
14
  INSURED: {
3
15
  value: string;
4
16
  label: string;
@@ -12,4 +24,4 @@ declare const _default: {
12
24
  label: string;
13
25
  };
14
26
  };
15
- export default _default;
27
+ export default insuranceStatuses;
@@ -1,7 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = {
4
- INSURED: { value: 'insured', label: 'We have insurance' },
5
- UNINSURED: { value: 'uninsured', label: "We don't have insurance" },
6
- AUSPICED: { value: 'auspiced', label: 'We are auspiced by another organisation' },
3
+ exports.insuranceStatuses = exports.AUSPICED = exports.UNINSURED = exports.INSURED = void 0;
4
+ exports.INSURED = { value: 'insured', label: 'We have insurance' };
5
+ exports.UNINSURED = { value: 'uninsured', label: "We don't have insurance" };
6
+ exports.AUSPICED = { value: 'auspiced', label: 'We are auspiced by another organisation' };
7
+ exports.insuranceStatuses = {
8
+ INSURED: exports.INSURED,
9
+ UNINSURED: exports.UNINSURED,
10
+ AUSPICED: exports.AUSPICED,
7
11
  };
12
+ exports.default = exports.insuranceStatuses;
@@ -1,4 +1,36 @@
1
- declare const _default: {
1
+ export declare const publicLiabilityAU: {
2
+ type: string;
3
+ label: string;
4
+ };
5
+ export declare const volunteerAccidentAU: {
6
+ type: string;
7
+ label: string;
8
+ };
9
+ export declare const publicLiabilityGB: {
10
+ type: string;
11
+ label: string;
12
+ };
13
+ export declare const volunteerAccidentGB: {
14
+ type: string;
15
+ label: string;
16
+ };
17
+ export declare const publicLiabilityNZ: {
18
+ type: string;
19
+ label: string;
20
+ };
21
+ export declare const volunteerAccidentNZ: {
22
+ type: string;
23
+ label: string;
24
+ };
25
+ export declare const publicLiabilityOthers: {
26
+ type: string;
27
+ label: string;
28
+ };
29
+ export declare const volunteerAccidentOthers: {
30
+ type: string;
31
+ label: string;
32
+ };
33
+ export declare const insuranceTypes: {
2
34
  publicLiabilityAU: {
3
35
  type: string;
4
36
  label: string;
@@ -32,4 +64,4 @@ declare const _default: {
32
64
  label: string;
33
65
  };
34
66
  };
35
- export default _default;
67
+ export default insuranceTypes;
@@ -1,36 +1,46 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = {
4
- publicLiabilityAU: {
5
- type: 'publicLiabilityAU',
6
- label: 'Public Liability Insurance',
7
- },
8
- volunteerAccidentAU: {
9
- type: 'volunteerAccidentAU',
10
- label: 'Volunteer Accident Insurance',
11
- },
12
- publicLiabilityGB: {
13
- type: 'publicLiabilityGB',
14
- label: 'Public Liability',
15
- },
16
- volunteerAccidentGB: {
17
- type: 'volunteerAccidentGB',
18
- label: "Employer's Liability",
19
- },
20
- publicLiabilityNZ: {
21
- type: 'publicLiabilityNZ',
22
- label: 'Public Liability',
23
- },
24
- volunteerAccidentNZ: {
25
- type: 'volunteerAccidentNZ',
26
- label: "Employer's Liability",
27
- },
28
- publicLiabilityOthers: {
29
- type: 'publicLiabilityOthers',
30
- label: 'Public Liability',
31
- },
32
- volunteerAccidentOthers: {
33
- type: 'volunteerAccidentOthers',
34
- label: "Employer's Liability",
35
- },
3
+ exports.insuranceTypes = exports.volunteerAccidentOthers = exports.publicLiabilityOthers = exports.volunteerAccidentNZ = exports.publicLiabilityNZ = exports.volunteerAccidentGB = exports.publicLiabilityGB = exports.volunteerAccidentAU = exports.publicLiabilityAU = void 0;
4
+ exports.publicLiabilityAU = {
5
+ type: 'publicLiabilityAU',
6
+ label: 'Public Liability Insurance',
36
7
  };
8
+ exports.volunteerAccidentAU = {
9
+ type: 'volunteerAccidentAU',
10
+ label: 'Volunteer Accident Insurance',
11
+ };
12
+ exports.publicLiabilityGB = {
13
+ type: 'publicLiabilityGB',
14
+ label: 'Public Liability',
15
+ };
16
+ exports.volunteerAccidentGB = {
17
+ type: 'volunteerAccidentGB',
18
+ label: "Employer's Liability",
19
+ };
20
+ exports.publicLiabilityNZ = {
21
+ type: 'publicLiabilityNZ',
22
+ label: 'Public Liability',
23
+ };
24
+ exports.volunteerAccidentNZ = {
25
+ type: 'volunteerAccidentNZ',
26
+ label: "Employer's Liability",
27
+ };
28
+ exports.publicLiabilityOthers = {
29
+ type: 'publicLiabilityOthers',
30
+ label: 'Public Liability',
31
+ };
32
+ exports.volunteerAccidentOthers = {
33
+ type: 'volunteerAccidentOthers',
34
+ label: "Employer's Liability",
35
+ };
36
+ exports.insuranceTypes = {
37
+ publicLiabilityAU: exports.publicLiabilityAU,
38
+ volunteerAccidentAU: exports.volunteerAccidentAU,
39
+ publicLiabilityGB: exports.publicLiabilityGB,
40
+ volunteerAccidentGB: exports.volunteerAccidentGB,
41
+ publicLiabilityNZ: exports.publicLiabilityNZ,
42
+ volunteerAccidentNZ: exports.volunteerAccidentNZ,
43
+ publicLiabilityOthers: exports.publicLiabilityOthers,
44
+ volunteerAccidentOthers: exports.volunteerAccidentOthers
45
+ };
46
+ exports.default = exports.insuranceTypes;
@@ -1,2 +1,2 @@
1
- declare const _default: string[];
2
- export default _default;
1
+ export declare const languages: string[];
2
+ export default languages;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = [
3
+ exports.languages = void 0;
4
+ exports.languages = [
4
5
  'abkhaz',
5
6
  'afar',
6
7
  'afrikaans',
@@ -192,3 +193,4 @@ exports.default = [
192
193
  'zhuang',
193
194
  'zulu',
194
195
  ];
196
+ exports.default = exports.languages;
@@ -1,4 +1,4 @@
1
1
  export declare const licencesAndCertifications: string[];
2
2
  export declare const educationalQualifications: string[];
3
- declare const _default: string[];
4
- export default _default;
3
+ export declare const qualificationTypes: string[];
4
+ export default qualificationTypes;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.educationalQualifications = exports.licencesAndCertifications = void 0;
3
+ exports.qualificationTypes = exports.educationalQualifications = exports.licencesAndCertifications = void 0;
4
4
  exports.licencesAndCertifications = [
5
5
  'Drivers Licence',
6
6
  'First Aid Certification',
@@ -15,4 +15,5 @@ exports.educationalQualifications = [
15
15
  "Bachelor's Degree / Undergraduate",
16
16
  "Master's Degree / Postgraduate and above",
17
17
  ];
18
- exports.default = [...exports.licencesAndCertifications, ...exports.educationalQualifications];
18
+ exports.qualificationTypes = [...exports.licencesAndCertifications, ...exports.educationalQualifications];
19
+ exports.default = exports.qualificationTypes;
@@ -1,4 +1,14 @@
1
- declare const _default: {
1
+ export declare const daysOfTheWeek: {
2
+ label: string;
3
+ value: import("rrule").Weekday;
4
+ selected: boolean;
5
+ }[];
6
+ export declare const frequencyOptions: {
7
+ value: number;
8
+ label: string;
9
+ description: string;
10
+ }[];
11
+ export declare const rules: {
2
12
  daysOfTheWeek: {
3
13
  label: string;
4
14
  value: import("rrule").Weekday;
@@ -10,4 +20,4 @@ declare const _default: {
10
20
  description: string;
11
21
  }[];
12
22
  };
13
- export default _default;
23
+ export default rules;
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.rules = exports.frequencyOptions = exports.daysOfTheWeek = void 0;
3
4
  const rrule_1 = require("rrule");
4
- const daysOfTheWeek = [
5
+ exports.daysOfTheWeek = [
5
6
  { label: 'Monday', value: rrule_1.RRule.MO, selected: false },
6
7
  { label: 'Tuesday', value: rrule_1.RRule.TU, selected: false },
7
8
  { label: 'Wednesday', value: rrule_1.RRule.WE, selected: false },
@@ -10,12 +11,13 @@ const daysOfTheWeek = [
10
11
  { label: 'Saturday', value: rrule_1.RRule.SA, selected: false },
11
12
  { label: 'Sunday', value: rrule_1.RRule.SU, selected: false },
12
13
  ];
13
- const frequencyOptions = [
14
+ exports.frequencyOptions = [
14
15
  { value: 0, label: 'in total', description: '' },
15
16
  { value: rrule_1.RRule.WEEKLY, label: 'per week', description: 'each week' },
16
17
  { value: rrule_1.RRule.MONTHLY, label: 'per month', description: 'each month' },
17
18
  ];
18
- exports.default = {
19
- daysOfTheWeek,
20
- frequencyOptions,
19
+ exports.rules = {
20
+ daysOfTheWeek: exports.daysOfTheWeek,
21
+ frequencyOptions: exports.frequencyOptions,
21
22
  };
23
+ exports.default = exports.rules;