sr-npm 1.7.59 → 1.7.62

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.
@@ -32,7 +32,7 @@ const COLLECTIONS_FIELDS = {
32
32
  {key:'language', type: 'TEXT'},
33
33
  {key:'jobDescription', type: 'OBJECT'},
34
34
  {key:'cityText', type: 'TEXT'},
35
- {key:'departmentref', type: 'REFERENCE', typeMetadata: { reference: { referencedCollectionId: 'AmountOfJobsPerDepartment1' } } },
35
+ {key:'departmentRef', type: 'REFERENCE', typeMetadata: { reference: { referencedCollectionId: 'AmountOfJobsPerDepartment1' } } },
36
36
  {key:'city', type: 'REFERENCE', typeMetadata: { reference: { referencedCollectionId: 'cities1' } } },
37
37
  ],
38
38
  API_KEY: [
package/backend/consts.js CHANGED
@@ -3,6 +3,7 @@ const {
3
3
  saveJobsDescriptionsAndLocationToCMS,
4
4
  aggregateJobsByFieldToCMS,
5
5
  referenceJobsToField,
6
+ createApiKeyCollectionAndFillIt,
6
7
  } = require('./data');
7
8
  const { createCollectionIfMissing } = require('@hisense-staging/velo-npm/backend');
8
9
  const { COLLECTIONS, COLLECTIONS_FIELDS } = require('./collectionConsts');
@@ -126,6 +127,13 @@ const TASKS = {
126
127
  shouldSkipCheck: () => false,
127
128
  estimatedDurationSec: 3,
128
129
  },
130
+ [TASKS_NAMES.CREATE_API_KEY_COLLECTION_AND_FILL_IT]: {
131
+ name: TASKS_NAMES.CREATE_API_KEY_COLLECTION_AND_FILL_IT,
132
+ getIdentifier:()=> "SHOULD_NEVER_SKIP",
133
+ process:()=>createApiKeyCollectionAndFillIt(),
134
+ shouldSkipCheck:()=>false,
135
+ estimatedDurationSec:3
136
+ }
129
137
  };
130
138
 
131
139
 
package/backend/data.js CHANGED
@@ -180,7 +180,7 @@ async function getJobsWithNoDescriptions() {
180
180
 
181
181
  /**
182
182
  * @param {Object} params
183
- * @param {"city"|"departmentref"} params.referenceField
183
+ * @param {"city"|"departmentRef"} params.referenceField
184
184
  * @param {"cities1"|"AmountOfJobsPerDepartment1"} params.sourceCollection
185
185
  * @param {"cityText"|"department"} params.jobField
186
186
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sr-npm",
3
- "version": "1.7.59",
3
+ "version": "1.7.62",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {