@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.
@@ -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
@@ -4,7 +4,7 @@
4
4
  "id": "{{did}}"
5
5
  },
6
6
  "credentialSubject": {
7
- "vendorUserId": "{{email}}",
7
+ "vendorUserId": "{{vendorUserId}}",
8
8
  "email": "{{email}}"
9
9
  }
10
10
  }
@@ -1,5 +1,7 @@
1
1
  const path = require('path');
2
- const { prepareData } = require('../src/vendor-credentials/prepare-data');
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 prepareData(options);
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 prepareData(options);
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 prepareData(options);
162
+ const updates = await executeVendorCredentials(options);
161
163
 
162
164
  expect(updates).toEqual([
163
165
  {