@velocitycareerlabs/data-loader 1.20.0-dev-build.1cb592b8f → 1.20.0-dev-build.1e6832e17
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/package.json +3 -2
- package/src/batch-issuing/constants.js +25 -0
- package/src/batch-issuing/file-writers.js +2 -5
- package/src/batch-issuing/index.js +50 -48
- package/src/batch-issuing/orchestrators.js +146 -99
- package/src/batch-issuing/prepare-data.js +40 -81
- package/src/batch-issuing/validate-directory-exists.js +3 -3
- package/src/helpers/index.js +2 -0
- package/src/helpers/load-csv.js +14 -11
- package/src/helpers/parse-column.js +8 -0
- package/src/helpers/prepare-variable-sets.js +23 -0
- package/src/vendor-credentials/README.md +48 -8
- package/src/vendor-credentials/index.js +10 -14
- package/src/vendor-credentials/orchestrator.js +22 -0
- package/src/vendor-credentials/prepare-data.js +5 -9
- package/test/batch-issuing.test.js +448 -75
- package/test/data/batch-vars-offerids.csv +3 -3
- package/test/data/email-offer.template.json +1 -1
- package/test/vendor-credentials.test.js +6 -4
@@ -1,3 +1,3 @@
|
|
1
|
-
email,givenName,familyName,offerId
|
2
|
-
joan.lee@sap.com,Joan,Lee,100
|
3
|
-
john.smith@sap.com,John,Smith,200
|
1
|
+
email,phone,givenName,familyName,offerId
|
2
|
+
joan.lee@sap.com,+16478275610,Joan,Lee,100
|
3
|
+
john.smith@sap.com,+9711234567,John,Smith,200
|
@@ -1,5 +1,7 @@
|
|
1
1
|
const path = require('path');
|
2
|
-
const {
|
2
|
+
const {
|
3
|
+
executeVendorCredentials,
|
4
|
+
} = require('../src/vendor-credentials/orchestrator');
|
3
5
|
|
4
6
|
describe('vendor credentials test', () => {
|
5
7
|
it('should load the templates and csv', async () => {
|
@@ -9,7 +11,7 @@ describe('vendor credentials test', () => {
|
|
9
11
|
personTemplateFilename: path.join(__dirname, 'data/person.template.json'),
|
10
12
|
};
|
11
13
|
|
12
|
-
const updates = await
|
14
|
+
const updates = await executeVendorCredentials(options);
|
13
15
|
|
14
16
|
expect(updates).toEqual([
|
15
17
|
{
|
@@ -83,7 +85,7 @@ describe('vendor credentials test', () => {
|
|
83
85
|
vars: { did: 'did:ion:default' },
|
84
86
|
};
|
85
87
|
|
86
|
-
const updates = await
|
88
|
+
const updates = await executeVendorCredentials(options);
|
87
89
|
|
88
90
|
expect(updates).toEqual([
|
89
91
|
{
|
@@ -157,7 +159,7 @@ describe('vendor credentials test', () => {
|
|
157
159
|
vars: { did: 'did:ion:default' },
|
158
160
|
};
|
159
161
|
|
160
|
-
const updates = await
|
162
|
+
const updates = await executeVendorCredentials(options);
|
161
163
|
|
162
164
|
expect(updates).toEqual([
|
163
165
|
{
|