abmp-npm 1.1.51 → 1.6.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/backend/cms-data-methods.js +2 -6
- package/backend/consts.js +2 -10
- package/backend/index.js +0 -6
- package/backend/members-area-methods.js +1 -48
- package/backend/members-data-methods.js +0 -111
- package/backend/utils.js +1 -54
- package/package.json +2 -4
- package/pages/PersonalDetailsForm.js +1989 -0
- package/pages/index.js +1 -0
- package/backend/daily-pull/bulk-process-methods.js +0 -65
- package/backend/daily-pull/consts.js +0 -34
- package/backend/daily-pull/index.js +0 -4
- package/backend/daily-pull/process-member-methods.js +0 -290
- package/backend/daily-pull/sync-to-cms-methods.js +0 -114
- package/backend/daily-pull/utils.js +0 -78
- package/backend/jobs.js +0 -30
- package/backend/pac-api-methods.js +0 -35
- package/backend/tasks.js +0 -37
package/backend/tasks.js
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
const { TASKS_NAMES } = require('./consts');
|
|
2
|
-
const { MEMBER_ACTIONS, synchronizeSinglePage, syncMembersDataPerAction } = require('./daily-pull');
|
|
3
|
-
|
|
4
|
-
const getDailyMembersDataSyncChildTasks = () => {
|
|
5
|
-
// we don't want to sync none action as it means this members data hasn't changed and we don't need to sync it
|
|
6
|
-
const MEMBER_ACTIONS_EXCEPT_NONE = Object.values(MEMBER_ACTIONS).filter(
|
|
7
|
-
action => action !== MEMBER_ACTIONS.NONE
|
|
8
|
-
);
|
|
9
|
-
return MEMBER_ACTIONS_EXCEPT_NONE.map(action => ({
|
|
10
|
-
name: TASKS_NAMES.ScheduleMembersDataPerAction,
|
|
11
|
-
data: { action },
|
|
12
|
-
}));
|
|
13
|
-
};
|
|
14
|
-
const TASKS = {
|
|
15
|
-
[TASKS_NAMES.ScheduleDailyMembersDataSync]: {
|
|
16
|
-
name: TASKS_NAMES.ScheduleDailyMembersDataSync,
|
|
17
|
-
scheduleChildrenSequentially: false,
|
|
18
|
-
estimatedDurationSec: 60,
|
|
19
|
-
childTasks: getDailyMembersDataSyncChildTasks(),
|
|
20
|
-
},
|
|
21
|
-
[TASKS_NAMES.ScheduleMembersDataPerAction]: {
|
|
22
|
-
name: TASKS_NAMES.ScheduleMembersDataPerAction,
|
|
23
|
-
getIdentifier: task => task.data.action,
|
|
24
|
-
process: syncMembersDataPerAction,
|
|
25
|
-
shouldSkipCheck: () => false,
|
|
26
|
-
estimatedDurationSec: 6,
|
|
27
|
-
},
|
|
28
|
-
[TASKS_NAMES.SyncMembers]: {
|
|
29
|
-
name: TASKS_NAMES.SyncMembers,
|
|
30
|
-
getIdentifier: task => task,
|
|
31
|
-
process: synchronizeSinglePage,
|
|
32
|
-
shouldSkipCheck: () => false,
|
|
33
|
-
estimatedDurationSec: 6,
|
|
34
|
-
},
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
module.exports = { TASKS };
|