@lingk/sync 0.0.29 → 0.0.31

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/build/main.js CHANGED
@@ -99,7 +99,8 @@ module.exports =
99
99
  icon: 'forward',
100
100
  iconAlign: 'right',
101
101
  onClick: props.nav.nextPage,
102
- style: { float: 'right', marginRight: 14 }
102
+ style: { float: 'right', marginRight: 14 },
103
+ disabled: props.nextDisabled
103
104
  },
104
105
  'Next'
105
106
  ) : null,
@@ -111,9 +112,7 @@ module.exports =
111
112
  iconAlign: 'right',
112
113
  onClick: function onClick() {
113
114
  props.handleSubmit();
114
- setTimeout(function () {
115
- return props.reset();
116
- }, 100);
115
+ //setTimeout(() => props.reset(), 100)
117
116
  },
118
117
  style: { float: 'right', marginRight: 14 }
119
118
  },
@@ -221,6 +220,7 @@ module.exports =
221
220
  exports.callGetTransformersAfterGeneration = callGetTransformersAfterGeneration;
222
221
  exports.submitWizardData = submitWizardData;
223
222
  exports.callExecuteTransformer = callExecuteTransformer;
223
+ exports.callGetPiConfig = callGetPiConfig;
224
224
  exports.callGetWizardDataEntities = callGetWizardDataEntities;
225
225
  exports.callGetWizardResourceMeta = callGetWizardResourceMeta;
226
226
  exports.clearWizardResourceMeta = clearWizardResourceMeta;
@@ -350,9 +350,9 @@ module.exports =
350
350
  integrationTypeGuid: typeGuid,
351
351
  name: "Banner to Salesforce",
352
352
  "configuration": {
353
- "apiEndpoint_student": 'https://www.lingkapis.com/v1/@self/ps/students',
354
- "apiEndpoint_course": "https://www.lingkapis.com/v1/@self/ps/courses?filter=institutionGuid%20eq%202b3e5636f2a94450a404f1a3b7c55059",
355
- "apiEndpoint_institution": "https://www.lingkapis.com/v1/@self/ps/institutions?filter=shortName%20eq%20orci",
353
+ "apiEndpoint_Student": 'https://www.lingkapis.com/v1/@self/ps/students?filter=firstName%20eq%20Rachel',
354
+ "apiEndpoint_Course": "https://www.lingkapis.com/v1/@self/ps/courses?filter=institutionGuid%20eq%202b3e5636f2a94450a404f1a3b7c55059",
355
+ "apiEndpoint_Institution": "https://www.lingkapis.com/v1/@self/ps/institutions?filter=shortName%20eq%20orci",
356
356
  "apiKey": "5664bb4478fae2000100004aae5d222c6c2742717cebc5abf69f0f9e",
357
357
  "apiSecret": "YThjODc4MjQ2MzEwNDgzMjYwY2RiYmY5Yzg4NzBhMmI=",
358
358
  "clientId": "3MVG9szVa2RxsqBbm3SjG5D.osKk4_dg2A1KP.v2_SvhrqBuS19C.ktOCziR8tQuIOyRk2.iery_dRTSXX_iO",
@@ -437,7 +437,7 @@ module.exports =
437
437
  var seconds = d.getTime() / 1000;
438
438
  var externalExecutionId = Math.round(seconds);
439
439
  query += 'action=create\\&';
440
- query += 'path=/\\&';
440
+ query += 'path=/organizations/salesforce/00D41000002jQmpEAE/sample.zip\\&';
441
441
  query += 'at=' + d.toISOString() + '\\&';
442
442
  query += 'type=file\\&';
443
443
  query += 'externalExecutionId=' + externalExecutionId;
@@ -452,11 +452,28 @@ module.exports =
452
452
  };
453
453
  }
454
454
 
455
- function callGetWizardDataEntities(hubId) {
455
+ function callGetPiConfig(tenantId, accountId, piGuid) {
456
456
  return function (dispatch, getState, api) {
457
457
  var _getState8 = getState(),
458
458
  config = _getState8.config;
459
459
 
460
+ var TRANS_API_URL = config.TRANS_API_URL;
461
+
462
+ return api.get(tenantId + '/productizedintegrations', {
463
+ endpoint: TRANS_API_URL
464
+ }).then(function (data) {
465
+ console.log(data);
466
+ // get mapping
467
+ // get schemas
468
+ });
469
+ };
470
+ }
471
+
472
+ function callGetWizardDataEntities(hubId) {
473
+ return function (dispatch, getState, api) {
474
+ var _getState9 = getState(),
475
+ config = _getState9.config;
476
+
460
477
  var API_URL = config.API_URL;
461
478
 
462
479
  return api.get('apihubs/' + hubId, {
@@ -472,8 +489,8 @@ module.exports =
472
489
 
473
490
  function callGetWizardResourceMeta(resourceId) {
474
491
  return function (dispatch, getState, api) {
475
- var _getState9 = getState(),
476
- config = _getState9.config;
492
+ var _getState10 = getState(),
493
+ config = _getState10.config;
477
494
 
478
495
  var API_URL = config.API_URL;
479
496
 
@@ -937,7 +954,6 @@ module.exports =
937
954
  'Website': true
938
955
  },
939
956
  'Contact': {
940
- 'Account ID': true,
941
957
  'Alternate Email': true,
942
958
  "Assistant Name": true,
943
959
  "Assistant Phone": true,
@@ -978,7 +994,6 @@ module.exports =
978
994
  'Jigsaw Contact ID': true,
979
995
  'Last Activity': true,
980
996
  'Last Modified By ID': true,
981
- 'Last Modified Date': true,
982
997
  'Last Name': true,
983
998
  'Last Referenced Date': true,
984
999
  'Last Stay-in-Touch Request Date': true,
@@ -1051,7 +1066,7 @@ module.exports =
1051
1066
  'System Modstamp': true
1052
1067
  },
1053
1068
  'Address': {
1054
- 'Address ID': true,
1069
+ 'Address': true,
1055
1070
  'Address Type': true,
1056
1071
  'Created By ID': true,
1057
1072
  'Created Date': true,
@@ -1069,11 +1084,11 @@ module.exports =
1069
1084
  'Mailing Address': true,
1070
1085
  'Mailing City': true,
1071
1086
  'Mailing Country': true,
1072
- 'Mailing State/Province': true,
1087
+ 'Mailing State': true,
1073
1088
  'Mailing Street': true,
1074
1089
  'Mailing Street2': true,
1075
1090
  'Mailing Street Address': true,
1076
- 'Mailing Zip/Postal Code': true,
1091
+ 'Mailing Postal Code': true,
1077
1092
  'Owner ID': true,
1078
1093
  'Parent Account': true,
1079
1094
  'Parent Contact': true,
@@ -1088,7 +1103,7 @@ module.exports =
1088
1103
  },
1089
1104
  'Course': {
1090
1105
  'Course ID': true,
1091
- 'Course Name': true,
1106
+ 'Name': true,
1092
1107
  'Created By ID': true,
1093
1108
  'Created Date': true,
1094
1109
  'Credit Hours': true,
@@ -1102,7 +1117,7 @@ module.exports =
1102
1117
  'Record ID': true,
1103
1118
  'System Modstamp': true
1104
1119
  },
1105
- 'Course Enrollment': {
1120
+ 'Course Connection': {
1106
1121
  'Affiliation': true,
1107
1122
  'Contact': true,
1108
1123
  "Contact Academic Program": true,
@@ -1118,7 +1133,7 @@ module.exports =
1118
1133
  'Last Modified Date': true,
1119
1134
  'Last Referenced Date': true,
1120
1135
  'Last Viewed Date': true,
1121
- 'Owner ID': true,
1136
+ 'Owner': true,
1122
1137
  'Primary': true,
1123
1138
  'Program Enrollment ID': true,
1124
1139
  'Record ID': true,
@@ -1213,58 +1228,29 @@ module.exports =
1213
1228
  'Student.First Name': 'Contact.First Name',
1214
1229
  'Student.Last Name': 'Contact.Last Name',
1215
1230
  'Student.Gender': 'Contact.Gender',
1216
- 'Student.External Id': 'Contact.Account ID',
1217
1231
  'Student.Birthdate': 'Contact.Birthdate',
1218
- 'Student.Hispanic Latino Ethnicity': 'Contact.Ethnicity',
1219
- 'Student.Last Modified': 'Contact.Last Modified Date',
1220
1232
  'Student Telephone.Telephone Number': 'Contact.Preferred Phone',
1221
- 'Student Email.Email Address': 'Contact.Preferred Email',
1222
- 'Student Address.Student External Id': 'Address.Owner ID',
1223
- 'Student Address.Address Type': 'Address.Primary Address Type',
1224
- 'Student Address.Street Number And Name': 'Address.Mailing Address',
1233
+ 'Student Email.Email Address': 'Contact.Email',
1234
+ 'Student Address.Student External Id': 'Address.Owner',
1225
1235
  'Student Address.City': 'Address.Mailing City',
1226
- 'Student Address.State': 'Address.Mailing State/Province',
1227
- 'Student Address.Postal Code': 'Address.Mailing Zip/Postal Code',
1236
+ 'Student Address.State': 'Address.Mailing State',
1237
+ 'Student Address.Postal Code': 'Address.Mailing Postal Code',
1228
1238
  'Student Address.County': 'Address.Mailing Country',
1229
- 'Student Address.Latitude': 'Address.Mailing Latitude',
1230
- 'Student Address.Longitude': 'Address.Mailing Longitude',
1231
1239
  'Staff.First Name': 'Contact.First Name',
1232
1240
  'Staff.Last Name': 'Contact.Last Name',
1233
1241
  'Staff.Gender': 'Contact.Gender',
1234
- 'Staff.External Id': 'Contact.Account ID',
1235
1242
  'Staff.Birthdate': 'Contact.Birthdate',
1236
- 'Staff.Hispanic Latino Ethnicity': 'Contact.Ethnicity',
1237
- 'Staff.Last Modified': 'Contact.Last Modified Date',
1238
1243
  'Staff Telephone.Telephone Number': 'Contact.Preferred Phone',
1239
- 'Staff Email.Email Address': 'Contact.Preferred Email',
1240
- 'Staff Address.Staff External Id': 'Address.Owner ID',
1241
- 'Staff Address.Address Type': 'Address.Primary Address Type',
1242
- 'Staff Address.Street Number And Name': 'Address.Mailing Address',
1244
+ 'Staff Email.Email Address': 'Contact.Email',
1245
+ 'Staff Address.Staff External Id': 'Address.Owner',
1243
1246
  'Staff Address.City': 'Address.Mailing City',
1244
- 'Staff Address.State': 'Address.Mailing State/Province',
1245
- 'Staff Address.Postal Code': 'Address.Mailing Zip/Postal Code',
1247
+ 'Staff Address.State': 'Address.Mailing State',
1248
+ 'Staff Address.Postal Code': 'Address.Mailing Postal Code',
1246
1249
  'Staff Address.County': 'Address.Mailing Country',
1247
- 'Staff Address.Latitude': 'Address.Mailing Latitude',
1248
- 'Staff Address.Longitude': 'Address.Mailing Longitude',
1249
- 'Calendar Session.Designator': 'Term.Term Name',
1250
- 'Calendar Session.Begin Date': 'Term.Start Date',
1251
- 'Calendar Session.End Date': 'Term.End Date',
1252
- 'Calendar Session.Last Modified': 'Term.Last Modified Date',
1253
- 'Calendar Session.External Id': 'Term.Record ID',
1254
- 'Course.External Id': 'Course.Course ID',
1255
- 'Course.Course Title': 'Course.Course Name',
1250
+ 'Course.Course Title': 'Course.Name',
1256
1251
  'Course.Description': 'Course.Description',
1257
- 'Course.Department External Id': 'Course.Department',
1258
- 'Course.Credit Value': 'Course.Credit Hours',
1259
- 'Course.Last Modified': 'Course.Last Modified Date',
1260
- 'Course Section.Last Modified': 'Course Offering.Last Modified Date',
1261
- 'Course Section.External Id': 'Course Offering.Section ID',
1262
- 'Course Section.Course External Id': 'Course Offering.Course Offering ID',
1263
- 'Course Section Schedule.Course Section External ID': 'Course Offering.Section ID',
1264
- 'Student Section.Student External Id': 'Course Enrollment.Owner ID',
1265
- 'Student Section.Number Of Credits Earned': 'Course Enrollment.Credits Earned',
1266
- 'Student Section.Academic Grade': 'Course Enrollment.Grade',
1267
- 'Student Section.Last Modified': 'Course Enrollment.Last Modified Date'
1252
+ 'Student Section.Student External Id': 'Course Connection.Owner',
1253
+ 'Student Section.Academic Grade': 'Course Connection.Grade'
1268
1254
  },
1269
1255
  dummyData: {
1270
1256
  'Student.First Name': 'Carlos',
@@ -1323,460 +1309,6 @@ module.exports =
1323
1309
  'Student Section.Academic Grade': 'B',
1324
1310
  'Student Section.Last Modified': '2017-1-10'
1325
1311
  }
1326
- },
1327
- 6: { // REST API to REST API
1328
- title: 'REST API to REST API',
1329
- sourceProvider: 'REST',
1330
- sourceProviderType: 'API',
1331
- destinationProvider: 'REST',
1332
- destinationProviderType: 'API',
1333
- deployment: ['once', 'scheduled']
1334
- },
1335
- 5: { // Banner to Course Enrollment
1336
- title: 'Banner to Course Enrollment',
1337
- sourceProvider: 'Banner',
1338
- sourceProviderType: 'Banner',
1339
- destinationProvider: 'Course Enrollment Feed',
1340
- destinationProviderType: 'FTP',
1341
- deployment: ['once', 'API', 'scheduled'],
1342
- customStep: {
1343
- type: 'bannerAdapter',
1344
- title: 'Banner Adapter'
1345
- },
1346
- sourceDefaultSchema: {
1347
- 'Calendar Session': {
1348
- ExternalId: true,
1349
- Designator: true,
1350
- BeginDate: true,
1351
- EndDate: true,
1352
- BNEDTerm: true,
1353
- Active: true
1354
- },
1355
- 'Course': {
1356
- ExternalId: true,
1357
- CourseNumber: true,
1358
- CourseTitle: true,
1359
- SubjectAbbreviation: true
1360
- },
1361
- 'Course Section': {
1362
- ExternalId: true,
1363
- CourseExternalId: true,
1364
- CourseSectionNumber: true,
1365
- InstructionSiteName: true,
1366
- InstructionSiteType: true,
1367
- CourseEndDate: true,
1368
- CalendarSessionExternalId: true,
1369
- Capacity: true,
1370
- CurrentEnrollment: true,
1371
- CourseFeeIncluded: true
1372
- },
1373
- 'Student': {
1374
- ExternalId: true,
1375
- FirstName: true,
1376
- LastName: true,
1377
- AidAmount: true,
1378
- AidProviderCode: true,
1379
- AidBeginDate: true,
1380
- AidEndDate: true,
1381
- AidIDType: true,
1382
- AidAccountType: true
1383
- },
1384
- 'Student Section': {
1385
- CourseSectionExternalId: true,
1386
- StudentExternalId: true,
1387
- CourseAddDate: true,
1388
- CourseDropDate: true,
1389
- Dropped: true,
1390
- Role: true
1391
- },
1392
- 'Student Email': {
1393
- ExternalId: true,
1394
- EmailAddress: true,
1395
- EmailAddressType: true,
1396
- IsPrimary: true
1397
- },
1398
- 'Staff': {
1399
- ExternalId: true,
1400
- FirstName: true,
1401
- MiddleName: true,
1402
- LastName: true
1403
- },
1404
- 'Section Instructor': {
1405
- CourseSectionExternalId: true,
1406
- StaffExternalId: true
1407
- }
1408
- },
1409
- destinationDefaultSchema: {
1410
- 'Course Enrollment': {
1411
- 'BNED Store Number / Unit': true,
1412
- 'BNED Term Year': true,
1413
- 'BNED Term Code': true,
1414
- 'College Department': true,
1415
- 'College Course': true,
1416
- 'College Section': true,
1417
- 'Professor Name': true,
1418
- 'Maximum Capacity': true,
1419
- 'Estimated Enrollment': true,
1420
- 'Actual Enrollment': true,
1421
- 'Continuation Class': true,
1422
- 'Evening Class': true,
1423
- 'Extension Class': true,
1424
- 'Location (Campus)': true,
1425
- 'Course Title': true,
1426
- 'Alternate Course ID (CRN)': true
1427
- }
1428
- },
1429
- autoMapData: {
1430
- 'Course Section.InstructionSiteName': 'Course Enrollment.Location (Campus)',
1431
- 'Course.SubjectAbbreviation': 'Course Enrollment.College Department',
1432
- 'Course.ExternalId': 'Course Enrollment.College Course',
1433
- 'Course Section.ExternalId': 'Course Enrollment.College Section',
1434
- 'Staff.LastName': 'Course Enrollment.Professor Name',
1435
- 'Staff.FirstName': 'Course Enrollment.Professor Name',
1436
- 'Course.CourseTitle': 'Course Enrollment.Course Title',
1437
- 'Course Section.Capacity': 'Course Enrollment.Maximum Capacity',
1438
- 'Course Section.CurrentEnrollment': 'Course Enrollment.Actual Enrollment',
1439
- 'Calendar Session.BNEDTerm': 'Course Enrollment.BNED Term Code'
1440
- },
1441
- dummyData: {
1442
- 'Course Section.InstructionSiteName': 'Qianshan',
1443
- 'Course.SubjectAbbreviation': 'ASTR',
1444
- 'Course.ExternalId': '786202168-1',
1445
- 'Course Section.ExternalId': '254143083-3',
1446
- 'Staff.LastName': 'Mitchell',
1447
- 'Staff.FirstName': 'Sharon',
1448
- 'Course.CourseTitle': 'Physics',
1449
- 'Course Section.Capacity': '65',
1450
- 'Course Section.CurrentEnrollment': '60',
1451
- 'Calendar Session.BNEDTerm': 'W'
1452
- }
1453
- },
1454
- 2: { // Banner to Managed SFA
1455
- title: 'Banner to Managed SFA',
1456
- sourceProvider: 'Banner',
1457
- sourceProviderType: 'Banner',
1458
- destinationProvider: 'Managed SFA',
1459
- destinationProviderType: 'FTP',
1460
- deployment: ['once', 'API', 'scheduled'],
1461
- customStep: {
1462
- type: 'bannerAdapter',
1463
- title: 'Banner Adapter'
1464
- },
1465
- sourceDefaultSchema: {
1466
- 'Calendar Session': {
1467
- ExternalId: true,
1468
- Designator: true,
1469
- BeginDate: true,
1470
- EndDate: true,
1471
- BNEDTerm: true,
1472
- Active: true
1473
- },
1474
- 'Course': {
1475
- ExternalId: true,
1476
- CourseNumber: true,
1477
- CourseTitle: true,
1478
- SubjectAbbreviation: true
1479
- },
1480
- 'Course Section': {
1481
- ExternalId: true,
1482
- CourseExternalId: true,
1483
- CourseSectionNumber: true,
1484
- InstructionSiteName: true,
1485
- InstructionSiteType: true,
1486
- CourseEndDate: true,
1487
- CalendarSessionExternalId: true,
1488
- Capacity: true,
1489
- CurrentEnrollment: true,
1490
- CourseFeeIncluded: true
1491
- },
1492
- 'Student': {
1493
- ExternalId: true,
1494
- FirstName: true,
1495
- LastName: true,
1496
- AidAmount: true,
1497
- AidProviderCode: true,
1498
- AidBeginDate: true,
1499
- AidEndDate: true,
1500
- AidIDType: true,
1501
- AidAccountType: true
1502
- },
1503
- 'Student Section': {
1504
- CourseSectionExternalId: true,
1505
- StudentExternalId: true,
1506
- CourseAddDate: true,
1507
- CourseDropDate: true,
1508
- Dropped: true,
1509
- Role: true
1510
- },
1511
- 'Student Email': {
1512
- ExternalId: true,
1513
- EmailAddress: true,
1514
- EmailAddressType: true,
1515
- IsPrimary: true
1516
- },
1517
- 'Staff': {
1518
- ExternalId: true,
1519
- FirstName: true,
1520
- MiddleName: true,
1521
- LastName: true
1522
- },
1523
- 'Section Instructor': {
1524
- CourseSectionExternalId: true,
1525
- StaffExternalId: true
1526
- }
1527
- },
1528
- destinationDefaultSchema: {
1529
- 'Managed SFA': {
1530
- 'BNED Store Number / ID': true,
1531
- 'BNED Term Year': true,
1532
- 'BNED Term Code': true,
1533
- 'Student ID': true,
1534
- 'First Name': true,
1535
- 'Middle Initial': true,
1536
- 'Last Name': true,
1537
- 'Aid Provider Code': true,
1538
- 'Aid Provider Amount Available': true,
1539
- 'Aid Provider Begin Date': true,
1540
- 'Aid Provider End Date': true,
1541
- 'Record Type': true,
1542
- 'Student ID Type': true,
1543
- 'Account Type': true
1544
- }
1545
- },
1546
- autoMapData: {
1547
- 'Student.AidIDType': 'Managed SFA.Record Type',
1548
- 'Student.AidAccountType': 'Managed SFA.Account Type',
1549
- 'Student.LastName': 'Managed SFA.Last Name',
1550
- 'Student.FirstName': 'Managed SFA.First Name',
1551
- 'Student.AidEndDate': 'Managed SFA.Aid Provider End Date',
1552
- 'Student.AidBeginDate': 'Managed SFA.Aid Provider Begin Date',
1553
- 'Student.AidAmount': 'Managed SFA.Aid Provider Amount Available',
1554
- 'Student.AidProviderCode': 'Managed SFA.Aid Provider Code',
1555
- 'Student.ExternalId': 'Managed SFA.Student ID',
1556
- 'Calendar Session.BNEDTerm': 'Managed SFA.BNED Term Code'
1557
- },
1558
- dummyData: {
1559
- 'Student.AidIDType': 'S',
1560
- 'Student.AidAccountType': 'D',
1561
- 'Student.LastName': 'Robertson',
1562
- 'Student.FirstName': 'Carlos',
1563
- 'Student.AidEndDate': '2017-02-23',
1564
- 'Student.AidBeginDate': '2016-10-12',
1565
- 'Student.AidAmount': '50000',
1566
- 'Student.AidProviderCode': '54636',
1567
- 'Student.ExternalId': 'ee106749-8b53-445e-8bc9-1babc72372ff',
1568
- 'Calendar Session.BNEDTerm': 'W'
1569
- }
1570
- },
1571
- 3: { // Banner to Course Fee API
1572
- title: 'Banner to Course Fee API',
1573
- sourceProvider: 'Banner',
1574
- sourceProviderType: 'Banner',
1575
- destinationProvider: 'Course Fee API',
1576
- destinationProviderType: 'API',
1577
- deployment: ['once', 'API', 'scheduled'],
1578
- customStep: {
1579
- type: 'bannerAdapter',
1580
- title: 'Banner Adapter'
1581
- },
1582
- sourceDefaultSchema: {
1583
- 'Calendar Session': {
1584
- ExternalId: true,
1585
- Designator: true,
1586
- BeginDate: true,
1587
- EndDate: true,
1588
- BNEDTerm: true,
1589
- Active: true
1590
- },
1591
- 'Course': {
1592
- ExternalId: true,
1593
- CourseNumber: true,
1594
- CourseTitle: true,
1595
- SubjectAbbreviation: true
1596
- },
1597
- 'Course Section': {
1598
- ExternalId: true,
1599
- CourseExternalId: true,
1600
- CourseSectionNumber: true,
1601
- InstructionSiteName: true,
1602
- InstructionSiteType: true,
1603
- CourseEndDate: true,
1604
- CalendarSessionExternalId: true,
1605
- Capacity: true,
1606
- CurrentEnrollment: true,
1607
- CourseFeeIncluded: true
1608
- },
1609
- 'Student': {
1610
- ExternalId: true,
1611
- FirstName: true,
1612
- LastName: true,
1613
- AidAmount: true,
1614
- AidProviderCode: true,
1615
- AidBeginDate: true,
1616
- AidEndDate: true,
1617
- AidIDType: true,
1618
- AidAccountType: true
1619
- },
1620
- 'Student Section': {
1621
- CourseSectionExternalId: true,
1622
- StudentExternalId: true,
1623
- CourseAddDate: true,
1624
- CourseDropDate: true,
1625
- Dropped: true,
1626
- Role: true
1627
- },
1628
- 'Student Email': {
1629
- ExternalId: true,
1630
- EmailAddress: true,
1631
- EmailAddressType: true,
1632
- IsPrimary: true
1633
- },
1634
- 'Staff': {
1635
- ExternalId: true,
1636
- FirstName: true,
1637
- MiddleName: true,
1638
- LastName: true
1639
- },
1640
- 'Section Instructor': {
1641
- CourseSectionExternalId: true,
1642
- StaffExternalId: true
1643
- }
1644
- },
1645
- destinationDefaultSchema: {
1646
- 'Course Fee': {
1647
- 'BNED Store Number / ID': true,
1648
- 'BNED Term Year / Term Code': true,
1649
- 'College Department': true,
1650
- 'College Course': true,
1651
- 'College Section': true,
1652
- 'Role': true,
1653
- 'Student Email Address': true
1654
- }
1655
- },
1656
- autoMapData: {
1657
- 'Course.SubjectAbbreviation': 'Course Fee.College Department',
1658
- 'Course.ExternalId': 'Course Fee.College Course',
1659
- 'Course Section.ExternalId': 'Course Fee.College Section',
1660
- 'Student Section.Role': 'Course Fee.Role',
1661
- 'Student Email.EmailAddress': 'Course Fee.Student Email Address',
1662
- 'Calendar Session.BNEDTerm': 'Course Fee.BNED Term Year / Term Code'
1663
- },
1664
- dummyData: {
1665
- 'Course.SubjectAbbreviation': 'ITAL',
1666
- 'Course.ExternalId': '361542699-1',
1667
- 'Course Section.ExternalId': '026743570-3',
1668
- 'Student Section.Role': 'Student',
1669
- 'Student Email.EmailAddress': 'spatterson0@tripod.edu',
1670
- 'Calendar Session.BNEDTerm': 'W'
1671
- }
1672
- },
1673
- 4: { // Banner to SFA Balance Inquiry
1674
- title: 'Banner to SFA Balance Inquiry',
1675
- sourceProvider: 'Banner',
1676
- sourceProviderType: 'Banner',
1677
- destinationProvider: 'SFA Balance Inquiry',
1678
- destinationProviderType: 'API',
1679
- deployment: ['once', 'API', 'scheduled'],
1680
- customStep: {
1681
- type: 'bannerAdapter',
1682
- title: 'Banner Adapter'
1683
- },
1684
- sourceDefaultSchema: {
1685
- 'Calendar Session': {
1686
- ExternalId: true,
1687
- Designator: true,
1688
- BeginDate: true,
1689
- EndDate: true,
1690
- BNEDTerm: true,
1691
- Active: true
1692
- },
1693
- 'Course': {
1694
- ExternalId: true,
1695
- CourseNumber: true,
1696
- CourseTitle: true,
1697
- SubjectAbbreviation: true
1698
- },
1699
- 'Course Section': {
1700
- ExternalId: true,
1701
- CourseExternalId: true,
1702
- CourseSectionNumber: true,
1703
- InstructionSiteName: true,
1704
- InstructionSiteType: true,
1705
- CourseEndDate: true,
1706
- CalendarSessionExternalId: true,
1707
- Capacity: true,
1708
- CurrentEnrollment: true,
1709
- CourseFeeIncluded: true
1710
- },
1711
- 'Student': {
1712
- ExternalId: true,
1713
- FirstName: true,
1714
- LastName: true,
1715
- AidAmount: true,
1716
- AidProviderCode: true,
1717
- AidBeginDate: true,
1718
- AidEndDate: true,
1719
- AidIDType: true,
1720
- AidAccountType: true
1721
- },
1722
- 'Student Section': {
1723
- CourseSectionExternalId: true,
1724
- StudentExternalId: true,
1725
- CourseAddDate: true,
1726
- CourseDropDate: true,
1727
- Dropped: true,
1728
- Role: true
1729
- },
1730
- 'Student Email': {
1731
- ExternalId: true,
1732
- EmailAddress: true,
1733
- EmailAddressType: true,
1734
- IsPrimary: true
1735
- },
1736
- 'Staff': {
1737
- ExternalId: true,
1738
- FirstName: true,
1739
- MiddleName: true,
1740
- LastName: true
1741
- },
1742
- 'Section Instructor': {
1743
- CourseSectionExternalId: true,
1744
- StaffExternalId: true
1745
- }
1746
- },
1747
- destinationDefaultSchema: {
1748
- 'Balance Inquiry': {
1749
- 'Student Financial Aid Balance': true,
1750
- 'Student ID': true,
1751
- 'Aid Provider Code': true,
1752
- 'Aid Provider Amount Available': true,
1753
- 'Aid Provider Begin Date': true,
1754
- 'Aid Provider End Date': true,
1755
- 'Record Type': true,
1756
- 'Student ID Type': true,
1757
- 'Account Type': true
1758
- }
1759
- },
1760
- autoMapData: {
1761
- 'Student.AidIDType': 'Managed SFA.Record Type',
1762
- 'Student.AidAccountType': 'Managed SFA.Account Type',
1763
- 'Student.AidEndDate': 'Managed SFA.Aid Provider End Date',
1764
- 'Student.AidBeginDate': 'Managed SFA.Aid Provider Begin Date',
1765
- 'Student.AidAmount': 'Managed SFA.Aid Provider Amount Available',
1766
- 'Student.AidProviderCode': 'Managed SFA.Aid Provider Code',
1767
- 'Student.ExternalId': 'Managed SFA.Student ID',
1768
- 'Calendar Session.BNEDTerm': 'Managed SFA.BNED Term Code'
1769
- },
1770
- dummyData: {
1771
- 'Student.AidIDType': 'S',
1772
- 'Student.AidAccountType': 'D',
1773
- 'Student.AidEndDate': '2017-02-23',
1774
- 'Student.AidBeginDate': '2016-10-12',
1775
- 'Student.AidAmount': '50000',
1776
- 'Student.AidProviderCode': '54636',
1777
- 'Student.ExternalId': 'ee106749-8b53-445e-8bc9-1babc72372ff',
1778
- 'Calendar Session.BNEDTerm': 'W'
1779
- }
1780
1312
  }
1781
1313
  };
1782
1314
 
@@ -1790,14 +1322,13 @@ module.exports =
1790
1322
  value: true
1791
1323
  });
1792
1324
  var Resources = exports.Resources = {
1793
- 'Contact': true,
1794
- 'Affiliation': true,
1795
- 'Address': true,
1796
- 'Course': true,
1797
- 'Course Offering': true,
1798
- 'Program Enrollment': true,
1799
- 'Relationship': true,
1800
- 'Term': true
1325
+ 'Affiliation': 'hed__Affiliation__c',
1326
+ 'Address': 'hed__Address__c',
1327
+ 'Course': 'hed__Course__c',
1328
+ 'Course Offering': 'hed__Course_Offering__c',
1329
+ 'Program Connection': 'hed__Course_Enrollment__c',
1330
+ 'Relationship': 'hed__Relationship__c',
1331
+ 'Term': 'hed__Term__c'
1801
1332
  };
1802
1333
 
1803
1334
  var Heda = exports.Heda = {
@@ -2948,7 +2479,8 @@ module.exports =
2948
2479
  _react2.default.createElement(MapTable, { mappings: mappings, clearOneMapping: this.clearOneMapping })
2949
2480
  ) : null,
2950
2481
  _react2.default.createElement('br', null),
2951
- _react2.default.createElement(_navButtons2.default, { handleSubmit: handleSubmit, nav: nav, reset: reset, inputs: inputs }),
2482
+ _react2.default.createElement(_navButtons2.default, { handleSubmit: handleSubmit, nav: nav, reset: reset, inputs: inputs,
2483
+ nextDisabled: Object.keys(mappings).length < 1 }),
2952
2484
  _react2.default.createElement('br', null),
2953
2485
  _react2.default.createElement('br', null)
2954
2486
  );
@@ -3380,6 +2912,16 @@ module.exports =
3380
2912
  }
3381
2913
 
3382
2914
  _createClass(SchemaStep, [{
2915
+ key: 'componentWillUnmount',
2916
+ value: function componentWillUnmount() {
2917
+ this.setState({
2918
+ newField: '',
2919
+ newEntity: '',
2920
+ selectedDataEntity: '',
2921
+ innerSelectedEntity: ''
2922
+ });
2923
+ }
2924
+ }, {
3383
2925
  key: 'pickEntity',
3384
2926
  value: function pickEntity(v) {
3385
2927
  this.setState({
@@ -3586,7 +3128,8 @@ module.exports =
3586
3128
  }),
3587
3129
  _react2.default.createElement('br', null)
3588
3130
  ) : null,
3589
- _react2.default.createElement(_navButtons2.default, { handleSubmit: handleSubmit, nav: nav, reset: reset, inputs: inputs }),
3131
+ _react2.default.createElement(_navButtons2.default, { handleSubmit: handleSubmit, nav: nav, reset: reset, inputs: inputs,
3132
+ nextDisabled: Object.keys(includedFields).length < 1 }),
3590
3133
  _react2.default.createElement('br', null),
3591
3134
  _react2.default.createElement('br', null)
3592
3135
  );
@@ -3710,7 +3253,9 @@ module.exports =
3710
3253
  'div',
3711
3254
  { className: 'accordion-panel-collapse',
3712
3255
  style: {
3713
- height: _this2.state.innerSelectedEntity === entity ? Object.keys(values[entity]).length * 18 + 19 : 0
3256
+ height: _this2.state.innerSelectedEntity === entity ? Object.keys(values[entity]).filter(function (f) {
3257
+ return values[entity][f];
3258
+ }).length * 18 + 19 : 0
3714
3259
  }
3715
3260
  },
3716
3261
  _react2.default.createElement('div', { style: { height: 9 } }),
@@ -3722,8 +3267,8 @@ module.exports =
3722
3267
  { key: ii, className: mode === 'destination' && !selectedField ? "" : "wizard-schema-field",
3723
3268
  style: {
3724
3269
  paddingLeft: 5,
3725
- background: selectedField && selectedField === field ? '#dfe0e0' : 'initial',
3726
- fontWeight: mode === 'source' && mappings && Object.keys(mappings).includes(entity + '.' + field) || mode === 'destination' && mappings && Object.keys(mappings).includes(entity + '.' + field) ? 'bold' : 'normal',
3270
+ background: mode === 'source' && selectedField && selectedField === field ? '#dfe0e0' : 'initial',
3271
+ fontWeight: mode === 'source' && mappings && Object.keys(mappings).includes(entity + '.' + field) || mode === 'destination' && mappings && Object.values(mappings).includes(entity + '.' + field) ? 'bold' : 'normal',
3727
3272
  color: mode === 'destination' && !selectedField ? 'grey' : 'black'
3728
3273
  },
3729
3274
  onClick: function onClick() {
@@ -4089,6 +3634,21 @@ module.exports =
4089
3634
  var WizardForm = function (_Component) {
4090
3635
  _inherits(WizardForm, _Component);
4091
3636
 
3637
+ _createClass(WizardForm, [{
3638
+ key: 'componentDidMount',
3639
+ value: function componentDidMount() {
3640
+ var _props = this.props,
3641
+ piGuid = _props.piGuid,
3642
+ actions = _props.actions,
3643
+ tenantId = _props.tenantId,
3644
+ accountId = _props.accountId;
3645
+
3646
+ if (piGuid) {
3647
+ actions.callGetPiConfig(tenantId, accountId, piGuid);
3648
+ }
3649
+ }
3650
+ }]);
3651
+
4092
3652
  function WizardForm(props) {
4093
3653
  _classCallCheck(this, WizardForm);
4094
3654
 
@@ -4135,14 +3695,18 @@ module.exports =
4135
3695
  var props = Object.keys(schema[key]).filter(function (p) {
4136
3696
  return schema[key][p];
4137
3697
  }).map(function (prop) {
4138
- return {
3698
+ var srcProperty = prop.replace(/ /g, '');
3699
+ return mode === 'source' ? {
3700
+ name: srcProperty.charAt(0).toLowerCase() + srcProperty.slice(1), //lingk API fields must be camelcase
3701
+ type: _typeof(schema[key][prop]) // we need actual types on schemas
3702
+ } : {
4139
3703
  name: example.Heda[key] && example.Heda[key][prop] ? 'hed__' + prop.replace(/ /g, '') + '__c' : prop.replace(/ /g, ''),
4140
3704
  type: _typeof(schema[key][prop]) // we need actual types on schemas
4141
3705
  };
4142
3706
  });
4143
3707
  return {
4144
3708
  name: key,
4145
- type: example.Resources[key] ? 'hed__' + key.replace(/ /g, '') + '__c' : key,
3709
+ type: example.Resources[key] ? example.Resources[key] : key,
4146
3710
  properties: props
4147
3711
  };
4148
3712
  });
@@ -4160,10 +3724,11 @@ module.exports =
4160
3724
  var mapping = values.mappings && Object.keys(values.mappings).map(function (src) {
4161
3725
  var destResource = values.mappings[src].split('.')[0];
4162
3726
  var destProperty = values.mappings[src].split('.')[1];
3727
+ var srcProperty = src.split('.')[1].replace(/ /g, '');
4163
3728
  return {
4164
3729
  resourceFromName: src.split('.')[0],
4165
3730
  resourceToName: destResource,
4166
- propertyFromName: src.split('.')[1].replace(/ /g, ''),
3731
+ propertyFromName: srcProperty.charAt(0).toLowerCase() + srcProperty.slice(1),
4167
3732
  propertyToName: example.Heda[destResource] && example.Heda[destResource][destProperty] ? 'hed__' + destProperty.replace(/ /g, '') + '__c' : destProperty.replace(/ /g, '')
4168
3733
  };
4169
3734
  });
@@ -4177,13 +3742,13 @@ module.exports =
4177
3742
  //----------------------------------
4178
3743
  // Post
4179
3744
  //----------------------------------
4180
- var _props = this.props,
4181
- actions = _props.actions,
4182
- onFinish = _props.onFinish,
4183
- onSubmit = _props.onSubmit,
4184
- typeGuid = _props.typeGuid,
4185
- accountId = _props.accountId,
4186
- tenantId = _props.tenantId;
3745
+ var _props2 = this.props,
3746
+ actions = _props2.actions,
3747
+ onFinish = _props2.onFinish,
3748
+ onSubmit = _props2.onSubmit,
3749
+ typeGuid = _props2.typeGuid,
3750
+ accountId = _props2.accountId,
3751
+ tenantId = _props2.tenantId;
4187
3752
 
4188
3753
  if (true) {
4189
3754
  actions.submitWizardData(tenantId, accountId, schemas.source, schemas.destination, mapping, configuration, config.title || '', typeGuid, onFinish);
@@ -4216,12 +3781,12 @@ module.exports =
4216
3781
  var _this3 = this;
4217
3782
 
4218
3783
  var currentPage = this.state.currentPage;
4219
- var _props2 = this.props,
4220
- steps = _props2.steps,
4221
- actions = _props2.actions,
4222
- wizard = _props2.wizard,
4223
- formValues = _props2.formValues,
4224
- inputs = _props2.inputs;
3784
+ var _props3 = this.props,
3785
+ steps = _props3.steps,
3786
+ actions = _props3.actions,
3787
+ wizard = _props3.wizard,
3788
+ formValues = _props3.formValues,
3789
+ inputs = _props3.inputs;
4225
3790
  var Sidebar = inputs.Sidebar;
4226
3791
 
4227
3792
  return _react2.default.createElement(