@becollective/utils 2.0.17 → 2.0.19
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.
|
@@ -2,6 +2,7 @@ export declare const notificationTypes: {
|
|
|
2
2
|
volunteer: {
|
|
3
3
|
messengerUpdates: string;
|
|
4
4
|
volunteerUpdates: string;
|
|
5
|
+
shiftStartingReminders: string;
|
|
5
6
|
groupMemberUpdates: string;
|
|
6
7
|
groupInvitations: string;
|
|
7
8
|
opportunityInvitations: string;
|
|
@@ -26,6 +27,7 @@ declare const _default: {
|
|
|
26
27
|
types: (string | {
|
|
27
28
|
messengerUpdates: string;
|
|
28
29
|
volunteerUpdates: string;
|
|
30
|
+
shiftStartingReminders: string;
|
|
29
31
|
groupMemberUpdates: string;
|
|
30
32
|
groupInvitations: string;
|
|
31
33
|
opportunityInvitations: string;
|
|
@@ -47,6 +49,7 @@ declare const _default: {
|
|
|
47
49
|
volunteer: {
|
|
48
50
|
messengerUpdates: string;
|
|
49
51
|
volunteerUpdates: string;
|
|
52
|
+
shiftStartingReminders: string;
|
|
50
53
|
groupMemberUpdates: string;
|
|
51
54
|
groupInvitations: string;
|
|
52
55
|
opportunityInvitations: string;
|
|
@@ -5,6 +5,7 @@ exports.notificationTypes = {
|
|
|
5
5
|
volunteer: {
|
|
6
6
|
messengerUpdates: 'messengerUpdates',
|
|
7
7
|
volunteerUpdates: 'volunteerUpdates',
|
|
8
|
+
shiftStartingReminders: 'shiftStartingReminders',
|
|
8
9
|
groupMemberUpdates: 'groupMemberUpdates',
|
|
9
10
|
groupInvitations: 'groupInvitations',
|
|
10
11
|
opportunityInvitations: 'opportunityInvitations',
|
package/lib/opportunity.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const readableOpportunityType: (type:
|
|
1
|
+
export declare const readableOpportunityType: (type: string) => string | null;
|
package/lib/opportunity.js
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.readableOpportunityType = void 0;
|
|
4
|
-
const
|
|
5
|
-
const { typesMapV2: opportunityTypes } = opportunities;
|
|
4
|
+
const opportunities_1 = require("./constants/opportunities");
|
|
6
5
|
const TYPE_MAP = {
|
|
7
|
-
[
|
|
8
|
-
[
|
|
6
|
+
[opportunities_1.typesMapV2.shift]: 'Shifts',
|
|
7
|
+
[opportunities_1.typesMapV2.flexible]: 'Flexible',
|
|
9
8
|
};
|
|
10
9
|
const readableOpportunityType = (type) => TYPE_MAP[type] || null;
|
|
11
10
|
exports.readableOpportunityType = readableOpportunityType;
|
package/package.json
CHANGED
|
@@ -2,6 +2,7 @@ export const notificationTypes = {
|
|
|
2
2
|
volunteer: {
|
|
3
3
|
messengerUpdates: 'messengerUpdates',
|
|
4
4
|
volunteerUpdates: 'volunteerUpdates',
|
|
5
|
+
shiftStartingReminders: 'shiftStartingReminders',
|
|
5
6
|
groupMemberUpdates: 'groupMemberUpdates',
|
|
6
7
|
groupInvitations: 'groupInvitations',
|
|
7
8
|
opportunityInvitations: 'opportunityInvitations',
|
package/src/constants.ts
CHANGED
|
@@ -15,7 +15,5 @@ export * as opportunities from './constants/opportunities';
|
|
|
15
15
|
export * as rules from './constants/rules';
|
|
16
16
|
export * as subscriptions from './constants/subscriptions';
|
|
17
17
|
export * as surveys from './constants/surveys';
|
|
18
|
-
|
|
19
18
|
export * as qualificationTypes from './constants/qualificationTypes';
|
|
20
19
|
export { licencesAndCertifications, educationalQualifications } from './constants/qualificationTypes';
|
|
21
|
-
|
package/src/opportunity.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
const { typesMapV2: opportunityTypes } = opportunities;
|
|
1
|
+
import { typesMapV2 as opportunityTypes } from './constants/opportunities';
|
|
3
2
|
|
|
4
3
|
const TYPE_MAP = {
|
|
5
4
|
[opportunityTypes.shift]: 'Shifts',
|
|
6
5
|
[opportunityTypes.flexible]: 'Flexible',
|
|
7
6
|
};
|
|
8
7
|
|
|
9
|
-
export const readableOpportunityType = (type) => TYPE_MAP[type] || null;
|
|
8
|
+
export const readableOpportunityType = (type: string) => TYPE_MAP[type] || null;
|