@lingk/sync 0.0.3 → 0.0.5

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,4382 +0,0 @@
1
- (function(e, a) { for(var i in a) e[i] = a[i]; }(exports, /******/ (function(modules) { // webpackBootstrap
2
- /******/ // The module cache
3
- /******/ var installedModules = {};
4
- /******/
5
- /******/ // The require function
6
- /******/ function __webpack_require__(moduleId) {
7
- /******/
8
- /******/ // Check if module is in cache
9
- /******/ if(installedModules[moduleId])
10
- /******/ return installedModules[moduleId].exports;
11
- /******/
12
- /******/ // Create a new module (and put it into the cache)
13
- /******/ var module = installedModules[moduleId] = {
14
- /******/ exports: {},
15
- /******/ id: moduleId,
16
- /******/ loaded: false
17
- /******/ };
18
- /******/
19
- /******/ // Execute the module function
20
- /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
21
- /******/
22
- /******/ // Flag the module as loaded
23
- /******/ module.loaded = true;
24
- /******/
25
- /******/ // Return the exports of the module
26
- /******/ return module.exports;
27
- /******/ }
28
- /******/
29
- /******/
30
- /******/ // expose the modules object (__webpack_modules__)
31
- /******/ __webpack_require__.m = modules;
32
- /******/
33
- /******/ // expose the module cache
34
- /******/ __webpack_require__.c = installedModules;
35
- /******/
36
- /******/ // __webpack_public_path__
37
- /******/ __webpack_require__.p = "./";
38
- /******/
39
- /******/ // Load entry module and return exports
40
- /******/ return __webpack_require__(0);
41
- /******/ })
42
- /************************************************************************/
43
- /******/ ([
44
- /* 0 */
45
- /***/ function(module, exports, __webpack_require__) {
46
-
47
- module.exports = __webpack_require__(36);
48
-
49
-
50
- /***/ },
51
- /* 1 */
52
- /***/ function(module, exports) {
53
-
54
- module.exports = require("react");
55
-
56
- /***/ },
57
- /* 2 */
58
- /***/ function(module, exports) {
59
-
60
- module.exports = require("redux-form");
61
-
62
- /***/ },
63
- /* 3 */
64
- /***/ function(module, exports, __webpack_require__) {
65
-
66
- 'use strict';
67
-
68
- Object.defineProperty(exports, "__esModule", {
69
- value: true
70
- });
71
-
72
- var _react = __webpack_require__(1);
73
-
74
- var _react2 = _interopRequireDefault(_react);
75
-
76
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
77
-
78
- var NavButtons = function NavButtons(props) {
79
- var Button = props.inputs.Button;
80
- return _react2.default.createElement(
81
- 'div',
82
- { style: { marginTop: 12, width: '100%' } },
83
- !props.nav.first ? _react2.default.createElement(
84
- Button,
85
- {
86
- type: 'neutral',
87
- icon: 'back',
88
- iconAlign: 'left',
89
- onClick: props.nav.previousPage
90
- },
91
- 'Back'
92
- ) : null,
93
- !props.nav.last ? _react2.default.createElement(
94
- Button,
95
- {
96
- type: 'brand',
97
- icon: 'forward',
98
- iconAlign: 'right',
99
- onClick: props.nav.nextPage,
100
- style: { float: 'right' }
101
- },
102
- 'Next'
103
- ) : null,
104
- _react2.default.createElement(
105
- Button,
106
- {
107
- type: 'brand',
108
- icon: 'close',
109
- iconAlign: 'right',
110
- onClick: function onClick() {
111
- props.handleSubmit();
112
- setTimeout(function () {
113
- return props.reset();
114
- }, 100);
115
- },
116
- style: { float: 'right', marginRight: 14 }
117
- },
118
- props.nav.last ? 'Finish' : 'Save And Exit'
119
- )
120
- );
121
- };
122
-
123
- exports.default = NavButtons;
124
-
125
- /***/ },
126
- /* 4 */
127
- /***/ function(module, exports) {
128
-
129
- "use strict";
130
-
131
- Object.defineProperty(exports, "__esModule", {
132
- value: true
133
- });
134
- var validate = function validate(values) {
135
- var errors = {};
136
- /*if (!values.configured) {
137
- errors.configured = 'Please configure Banner Adapter before continuing'
138
- }
139
- if (!values.customer) {
140
- errors.customer = 'Please choose a customer type'
141
- } else if(!(values.newCustomer || values.existingCustomer)) {
142
- errors.customer = 'Please choose a customer'
143
- }
144
- if (!values.environment) {
145
- errors.environment = 'Please choose an environment type'
146
- } else if(!(values.newEnvironment || values.existingEnvironment)) {
147
- errors.environment = 'Please choose an environment'
148
- }
149
- return errors*/
150
- };
151
-
152
- exports.default = validate;
153
-
154
- /***/ },
155
- /* 5 */,
156
- /* 6 */
157
- /***/ function(module, exports) {
158
-
159
- 'use strict';
160
-
161
- Object.defineProperty(exports, "__esModule", {
162
- value: true
163
- });
164
- // Wizard
165
- var SET_WIZARD_DATA_ENTITIES = exports.SET_WIZARD_DATA_ENTITIES = 'SET_WIZARD_DATA_ENTITIES';
166
- var SET_WIZARD_RESOURCE_META = exports.SET_WIZARD_RESOURCE_META = 'SET_WIZARD_RESOURCE_META';
167
- var SET_WIZARD_LOADED = exports.SET_WIZARD_LOADED = 'SET_WIZARD_LOADED';
168
- var SET_WIZARD_DATA = exports.SET_WIZARD_DATA = 'SET_WIZARD_DATA';
169
- var SET_WIZARD_SAVED_SCHEMAS = exports.SET_WIZARD_SAVED_SCHEMAS = 'SET_WIZARD_SAVED_SCHEMAS';
170
-
171
- /***/ },
172
- /* 7 */
173
- /***/ function(module, exports) {
174
-
175
- module.exports = require("react-redux");
176
-
177
- /***/ },
178
- /* 8 */,
179
- /* 9 */,
180
- /* 10 */,
181
- /* 11 */,
182
- /* 12 */,
183
- /* 13 */,
184
- /* 14 */,
185
- /* 15 */,
186
- /* 16 */,
187
- /* 17 */,
188
- /* 18 */,
189
- /* 19 */,
190
- /* 20 */
191
- /***/ function(module, exports, __webpack_require__) {
192
-
193
- 'use strict';
194
-
195
- Object.defineProperty(exports, "__esModule", {
196
- value: true
197
- });
198
- exports.testAjax = testAjax;
199
- exports.callGetWizardSourceData = callGetWizardSourceData;
200
- exports.callPreview = callPreview;
201
- exports.changeWizardData = changeWizardData;
202
- exports.addEntityToWizardData = addEntityToWizardData;
203
- exports.addFieldToWizardData = addFieldToWizardData;
204
- exports.callGetSchemasForProvider = callGetSchemasForProvider;
205
- exports.clearSavedSchemas = clearSavedSchemas;
206
- exports.callPostSchema = callPostSchema;
207
- exports.callPostMapping = callPostMapping;
208
- exports.callPostProductizedIntegration = callPostProductizedIntegration;
209
- exports.callGenerateIntegration = callGenerateIntegration;
210
- exports.callGetTransformersAfterGeneration = callGetTransformersAfterGeneration;
211
- exports.submitWizardData = submitWizardData;
212
- exports.callGetWizardDataEntities = callGetWizardDataEntities;
213
- exports.callGetWizardResourceMeta = callGetWizardResourceMeta;
214
- exports.clearWizardResourceMeta = clearWizardResourceMeta;
215
-
216
- var _types = __webpack_require__(6);
217
-
218
- var types = _interopRequireWildcard(_types);
219
-
220
- function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }
221
-
222
- var axios = __webpack_require__(38);
223
- function testAjax() {
224
- return function (dispatch) {
225
- return axios('http://echo.jsontest.com/name/evan', {
226
- method: 'get'
227
- }).then(function (data) {
228
- console.log(data);
229
- }).catch(function (error) {
230
- console.log(error);
231
- });
232
- };
233
- }
234
-
235
- function callGetWizardSourceData(url) {
236
- return function (dispatch) {
237
- dispatch({
238
- type: types.SET_WIZARD_LOADED,
239
- bool: false
240
- });
241
- return axios(url, {
242
- method: 'get'
243
- }).then(function (data) {
244
- dispatch({
245
- type: types.SET_WIZARD_LOADED,
246
- bool: true
247
- });
248
- }).catch(function (error) {
249
- dispatch({
250
- type: types.SET_WIZARD_LOADED,
251
- bool: true
252
- });
253
- });
254
- };
255
- }
256
-
257
- function callPreview(url) {
258
- return function (dispatch, getState) {
259
- dispatch({
260
- type: types.SET_WIZARD_LOADED,
261
- bool: false
262
- });
263
- return axios(url, {
264
- method: 'post',
265
- headers: {
266
- 'Content-Type': 'application/json'
267
- }
268
- }).then(function (data) {
269
- /* dispatch({
270
- type: types.SET_WIZARD_PREVIEW_DATA,
271
- data: data.data[0].form_data
272
- })*/
273
- });
274
- };
275
- }
276
-
277
- function changeWizardData(data, mode) {
278
- return function (dispatch, getState) {
279
- var _getState = getState(),
280
- wizard = _getState.wizard;
281
-
282
- var wizData = Object.assign({}, wizard.data) || {};
283
- wizData[mode] = data;
284
- dispatch({
285
- type: types.SET_WIZARD_DATA,
286
- data: wizData
287
- });
288
- };
289
- }
290
-
291
- function addEntityToWizardData(entity, mode) {
292
- return function (dispatch, getState) {
293
- var _getState2 = getState(),
294
- wizard = _getState2.wizard;
295
-
296
- var wizData = Object.assign({}, wizard.data) || {};
297
- var obj = Object.assign({}, wizData[mode]) || {};
298
- obj[entity] = {};
299
- wizData[mode] = obj;
300
- dispatch({
301
- type: types.SET_WIZARD_DATA,
302
- data: wizData
303
- });
304
- };
305
- }
306
-
307
- function addFieldToWizardData(field, entity, mode) {
308
- return function (dispatch, getState) {
309
- var _getState3 = getState(),
310
- wizard = _getState3.wizard;
311
-
312
- var wizData = Object.assign({}, wizard.data) || {};
313
- var obj = Object.assign({}, wizData[mode]) || {};
314
- var entityObj = Object.assign({}, obj[entity]) || {};
315
- entityObj[field] = true;
316
- obj[entity] = entityObj;
317
- wizData[mode] = obj;
318
- dispatch({
319
- type: types.SET_WIZARD_DATA,
320
- data: wizData
321
- });
322
- };
323
- }
324
-
325
- function callGetSchemasForProvider(tenantId, appId, providerType) {
326
- return function (dispatch, getState, api) {
327
- var _getState4 = getState(),
328
- config = _getState4.config;
329
-
330
- var TRANS_API_URL = config.TRANS_API_URL;
331
-
332
- return api.get(tenantId + '/' + appId + '/schemas/' + providerType, {
333
- endpoint: TRANS_API_URL
334
- }).then(function (data) {
335
- dispatch({
336
- type: types.SET_WIZARD_SAVED_SCHEMAS,
337
- data: data
338
- });
339
- });
340
- };
341
- }
342
-
343
- function clearSavedSchemas() {
344
- return function (dispatch) {
345
- dispatch({
346
- type: types.SET_WIZARD_SAVED_SCHEMAS,
347
- data: []
348
- });
349
- };
350
- }
351
-
352
- function callPostSchema(tenantId, appId, data) {
353
- return function (dispatch, getState, api) {
354
- var _getState5 = getState(),
355
- config = _getState5.config;
356
-
357
- var TRANS_API_URL = config.TRANS_API_URL;
358
-
359
- return api.post(tenantId + '/' + appId + '/schemas', {
360
- endpoint: TRANS_API_URL,
361
- data: data
362
- }).then(function (res) {
363
- return res.schemaGuid;
364
- });
365
- };
366
- }
367
-
368
- function callPostMapping(tenantId, appId, schemaFromGuid, schemaToGuid, mappings) {
369
- return function (dispatch, getState, api) {
370
- var _getState6 = getState(),
371
- config = _getState6.config;
372
-
373
- var TRANS_API_URL = config.TRANS_API_URL;
374
-
375
- var data = {
376
- schemaFromGuid: schemaFromGuid,
377
- schemaToGuid: schemaToGuid,
378
- mappings: mappings
379
- };
380
- return api.post(tenantId + '/' + appId + '/schemamappings', {
381
- endpoint: TRANS_API_URL,
382
- data: data
383
- }).then(function (res) {
384
- return res;
385
- });
386
- };
387
- }
388
-
389
- function callPostProductizedIntegration(tenantId, appId, schemaMappingGuid, configuration, title) {
390
- return function (dispatch, getState, api) {
391
- var _getState7 = getState(),
392
- config = _getState7.config;
393
-
394
- var TRANS_API_URL = config.TRANS_API_URL;
395
-
396
- var data = {
397
- schemaMappingGuid: schemaMappingGuid,
398
- integrationTypeGuid: '9090b61412a74d97ad9ed02c5fc7e704',
399
- name: title,
400
- configuration: configuration
401
- };
402
- return api.post(tenantId + '/' + appId + '/productizedintegrations', {
403
- endpoint: TRANS_API_URL,
404
- data: data
405
- }).then(function (pi) {
406
- return pi;
407
- });
408
- };
409
- }
410
-
411
- function callGenerateIntegration(tenantId, appId, piGuid) {
412
- return function (dispatch, getState, api) {
413
- var _getState8 = getState(),
414
- config = _getState8.config;
415
-
416
- var TRANS_API_URL = config.TRANS_API_URL;
417
-
418
- return api.post(tenantId + '/' + appId + '/productizedintegrations/' + piGuid + '/generate', {
419
- endpoint: TRANS_API_URL
420
- }).then(function (res) {
421
- console.log(res);
422
- dispatch(callGetTransformersAfterGeneration(appId));
423
- });
424
- };
425
- }
426
-
427
- function callGetTransformersAfterGeneration(appId) {
428
- return function (dispatch, getState, api) {
429
- var _getState9 = getState(),
430
- config = _getState9.config;
431
-
432
- var TRANS_API_URL = config.TRANS_API_URL;
433
-
434
- return api.get('transformers/' + appId, {
435
- endpoint: TRANS_API_URL
436
- }).then(function (data) {
437
- dispatch({
438
- type: types.SET_TRANSFORMERS,
439
- data: data
440
- });
441
- });
442
- };
443
- }
444
-
445
- function submitWizardData(tenantId, appId, sourceSchema, destinationSchema, mapping, configuration, title) {
446
- return function (dispatch) {
447
- return Promise.all([dispatch(callPostSchema(tenantId, appId, sourceSchema)), dispatch(callPostSchema(tenantId, appId, destinationSchema))]).then(function (guids) {
448
- return dispatch(callPostMapping(tenantId, appId, guids[0], guids[1], mapping)).then(function (res) {
449
- dispatch(callPostProductizedIntegration(tenantId, appId, res.schemaMappingGuid, configuration, title)).then(function (pi) {
450
- dispatch(callGenerateIntegration(tenantId, appId, pi.productizedIntegrationGuid));
451
- });
452
- });
453
- });
454
- };
455
- }
456
-
457
- function callGetWizardDataEntities(hubId) {
458
- return function (dispatch, getState, api) {
459
- var _getState10 = getState(),
460
- config = _getState10.config;
461
-
462
- var API_URL = config.API_URL;
463
-
464
- return api.get('apihubs/' + hubId, {
465
- endpoint: API_URL
466
- }).then(function (data) {
467
- dispatch({
468
- type: types.SET_WIZARD_DATA_ENTITIES,
469
- data: data
470
- });
471
- });
472
- };
473
- }
474
-
475
- function callGetWizardResourceMeta(resourceId) {
476
- return function (dispatch, getState, api) {
477
- var _getState11 = getState(),
478
- config = _getState11.config;
479
-
480
- var API_URL = config.API_URL;
481
-
482
- return api.get('resourcemetas/' + resourceId, {
483
- endpoint: API_URL
484
- }).then(function (data) {
485
- dispatch({
486
- type: types.SET_WIZARD_RESOURCE_META,
487
- data: data
488
- });
489
- });
490
- };
491
- }
492
-
493
- function clearWizardResourceMeta() {
494
- return function (dispatch) {
495
- var data = [];
496
- dispatch({
497
- type: types.SET_WIZARD_RESOURCE_META,
498
- data: data
499
- });
500
- };
501
- }
502
-
503
- /***/ },
504
- /* 21 */
505
- /***/ function(module, exports) {
506
-
507
- 'use strict';
508
-
509
- Object.defineProperty(exports, "__esModule", {
510
- value: true
511
- });
512
- var providerTypes = exports.providerTypes = {
513
- Salesforce: {
514
- credentials: [{ name: 'Username' }, { name: 'Password' }, { name: 'API Key' }]
515
- },
516
- API: {
517
- credentials: [{ name: 'Consumer Key' }, { name: 'Secret' }]
518
- },
519
- FTP: {
520
- credentials: [{ name: 'Username' }, { name: 'Password' }, { name: 'Public Key' }]
521
- },
522
- Banner: {
523
- credentials: null
524
- }
525
- };
526
-
527
- /***/ },
528
- /* 22 */
529
- /***/ function(module, exports) {
530
-
531
- 'use strict';
532
-
533
- Object.defineProperty(exports, "__esModule", {
534
- value: true
535
- });
536
- var wizards = exports.wizards = {
537
- 1: { // Banner to Salesforce
538
- title: 'Banner to Salesforce',
539
- sourceProvider: 'Banner',
540
- sourceProviderType: 'Banner',
541
- destinationProvider: 'Salesforce',
542
- destinationProviderType: 'Salesforce',
543
- customStep: {
544
- type: 'bannerAdapter',
545
- title: 'Banner Adapter'
546
- },
547
- deployment: {
548
- 'once': 'Run Once',
549
- 'scheduled': 'Timed Schedule'
550
- },
551
- sourceDefaultSchema: {
552
- Staff: {
553
- 'Birthdate': true,
554
- 'Last Modified': true,
555
- 'Birthdate Verification': true,
556
- 'Hispanic Latino Ethnicity': true,
557
- 'External Id': true,
558
- 'Prefix': true,
559
- 'First Name': true,
560
- 'Last Name': true,
561
- 'Middle Name': true,
562
- 'Other First Name': true,
563
- 'Other Last Name': true,
564
- 'Other Middle Name': true,
565
- 'Other Name': true,
566
- 'Other Name Type': true,
567
- 'Suffix': true,
568
- 'Gender': true,
569
- 'US Citizenship Status': true,
570
- 'Proof Of Residency Type': true,
571
- 'State Of Residence': true,
572
- 'Visa Type': true,
573
- 'Highest Education Level Completed': true,
574
- 'Identifier': true,
575
- 'Identification System': true,
576
- 'Personal Verification Identification Type': true
577
- },
578
- Student: {
579
- 'Birthdate': true,
580
- 'Birthdate Verification': true,
581
- 'Last Modified': true,
582
- 'Hispanic Latino Ethnicity': true,
583
- 'Disability Status': true,
584
- 'Gender': true,
585
- 'US Citizenship Status': true,
586
- 'Proof Of Residency Type': true,
587
- 'External Id': true,
588
- 'Prefix': true,
589
- 'First Name': true,
590
- 'Last Name': true,
591
- 'Middle Name': true,
592
- 'Other First Name': true,
593
- 'Other Last Name': true,
594
- 'Other Middle Name': true,
595
- 'Other Name': true,
596
- 'Other Name Type': true,
597
- 'Suffix': true,
598
- 'State Of Residence': true,
599
- 'Visa Type': true,
600
- 'Highest Education Level Completed': true,
601
- 'Identifier': true,
602
- 'Identification System': true,
603
- 'Personal Verification Identification Type': true,
604
- 'Accommodations Needed Type': true,
605
- 'Disability ConditionStatus Type': true,
606
- 'Disability Condition Type': true,
607
- 'Disability Determination Source Type': true,
608
- 'Primary Disability Type': true
609
- },
610
- 'Course': {
611
- 'Facility External Id': true,
612
- 'Institution External Id': true,
613
- 'Department External Id': true,
614
- 'Last Modified': true,
615
- 'NCAA Eligibility': true,
616
- 'Instructional Minutes': true,
617
- 'External Id': true,
618
- 'Course Title': true,
619
- 'Course Number': true,
620
- 'Description': true,
621
- 'Classification Of Instructional Program Code': true,
622
- 'Credit Units Type': true,
623
- 'Credit Value': true,
624
- 'NCES College Course Map Code': true,
625
- 'Certification Description': true,
626
- 'Course Applicable Education Level': true,
627
- 'Course Level Characteristics': true,
628
- 'Credit Basis Type': true,
629
- 'Credit Level Type': true,
630
- 'Instruction Langauge': true,
631
- 'Agency Course Identifier': true,
632
- 'Original Course Identifier': true,
633
- 'Override School Course Number': true,
634
- 'Sequence Of Course': true,
635
- 'Subject Abbreviation': true
636
- },
637
- 'Course Section': {
638
- 'Course Credit Value': true,
639
- 'Time Required For Completion': true,
640
- 'Last Modified': true,
641
- 'Virtual Indicator': true,
642
- 'Work Based Learning Opportunity Type': true,
643
- 'Institution External Id': true,
644
- 'Additional Credit Type': true,
645
- 'Advanced Placement Course Code': true,
646
- 'Class Beginning Time': true,
647
- 'Class Ending Time': true,
648
- 'Class Meeting Days': true,
649
- 'Course Level Type': true,
650
- 'Course Section Delivery Mode': true,
651
- 'Credit Type Earned': true,
652
- 'Honors Type': true,
653
- 'Instruction Method': true,
654
- 'Instruction Site Name': true,
655
- 'Instruction Site Type': true,
656
- 'Related Learning Standards': true,
657
- 'Single Sex Class Status': true,
658
- 'Class Period': true,
659
- 'External Id': true,
660
- 'Course Section Number': true,
661
- 'Course External Id': true,
662
- 'Calendar Session External Id': true,
663
- 'Classification Of Instructional Program Code': true,
664
- 'Time Day Identifier': true,
665
- 'Developmental Education Type': true,
666
- 'Grade Point Average Applicability': true
667
- },
668
- 'Program': {
669
- 'Capacity': true,
670
- 'CurrentEnrollment': true,
671
- 'Name': true,
672
- 'Last Modified': true,
673
- 'Length Hours': true,
674
- 'External Id': true,
675
- 'Classification Of Instructional Program Code': true,
676
- 'Classification Of Instructional Program Version': true,
677
- 'Length Hours Type': true,
678
- 'Normal Length of Time for Completion': true,
679
- 'Normal Length of Time for Completion Units': true,
680
- 'Postsecondary Program Level': true
681
- },
682
- 'Student Enrollment': {
683
- 'Entry Date Into Postsecondary': true,
684
- 'Last Modified': true,
685
- 'Postsecondary Entering Student Ind': true,
686
- 'First Time Postsecondary Student': true,
687
- 'Distance Education Program Enrollment Indicator': true,
688
- 'Degree Or Certificate Seeking Student': true,
689
- 'Instructional Activity Hours Attempted': true,
690
- 'Student External Id': true,
691
- 'Enrollment Type': true,
692
- 'Student Level Id': true,
693
- 'Initial Enrollment Term': true,
694
- 'Term Enrollment Status': true,
695
- 'Developmental Education Type': true,
696
- 'Enrollment In Postsecondary Award Type': true,
697
- 'Developmental Education Referral Status': true,
698
- 'Directory Information Block Status': true,
699
- 'Enrollment Award Type': true,
700
- 'Instructional Activity Hours Type': true,
701
- 'Transfer Ready': true
702
- },
703
- 'Student Program': {
704
- 'Last Modified': true,
705
- 'Participation Start Date': true,
706
- 'Participation Exit Date': true,
707
- 'Student External Id': true,
708
- 'Program External Id': true,
709
- 'Program Participation Status': true,
710
- 'Transfer Out Indicator': true,
711
- 'Work Based Learning Opportunity Type': true,
712
- 'Classification Of Instructional Program Use': true
713
- },
714
- 'Institution': {
715
- 'Virtual Indicator': true,
716
- 'External Id': true,
717
- 'Name': true,
718
- 'Carnegie Basic Classification': true,
719
- 'Control Of Institution': true,
720
- 'Level Of Institution': true,
721
- 'Predominant Calendar System': true
722
- },
723
- 'Learner Action': {
724
- 'Performed At': true,
725
- 'Last Modified': true,
726
- 'Learner Action Guid': true,
727
- 'Actor Id': true,
728
- 'Student External Id': true,
729
- 'Object Description': true,
730
- 'Object Id': true,
731
- 'Object Type': true,
732
- 'Action Type': true,
733
- 'Value': true
734
- },
735
- 'Student Email': {
736
- 'Student External Id': true,
737
- 'Email Address': true,
738
- 'Email Address Type': true,
739
- 'Last Modified': true,
740
- 'Is Primary': true
741
- },
742
- 'Student Address': {
743
- 'Student External Id': true,
744
- 'Last Modified': true,
745
- 'Is Primary': true,
746
- 'Street Number And Name': true,
747
- 'Apartment Room Or Suite Number': true,
748
- 'City': true,
749
- 'State': true,
750
- 'Postal Code': true,
751
- 'County': true,
752
- 'Country Code': true,
753
- 'Latitude': true,
754
- 'Longitude': true,
755
- 'Personal Verification Identification Type': true,
756
- 'Address Type': true
757
- },
758
- 'Student Telephone': {
759
- 'Last Modified': true,
760
- 'Is Primary': true,
761
- 'Student External Id': true,
762
- 'Telephone Number Type': true,
763
- 'Telephone Number': true
764
- },
765
- 'Student Section': {
766
- 'Course Add Date': true,
767
- 'Course Drop Date': true,
768
- 'Last Modified': true,
769
- 'Degree Applicability': true,
770
- 'Number Of Credits Earned': true,
771
- 'Quality Points Earned': true,
772
- 'Student External Id': true,
773
- 'Course Section External Id': true,
774
- 'Academic Grade Scale Code': true,
775
- 'Course Repeat Code': true,
776
- 'Academic Grade': true,
777
- 'Academic Grade Status Code': true,
778
- 'Course Override School': true,
779
- 'Enrollment Guid': true,
780
- 'Grade Narrative': true,
781
- 'Narrative Explanation Grade': true
782
- },
783
- 'Staff Email': {
784
- 'Last Modified': true,
785
- 'Is Primary': true,
786
- 'Staff External Id': true,
787
- 'Email Address': true,
788
- 'Email Address Type': true
789
- },
790
- 'Staff Address': {
791
- 'Last Modified': true,
792
- 'Is Primary': true,
793
- 'Staff External Id': true,
794
- 'Street Number And Name': true,
795
- 'Apartment Room Or Suite Number': true,
796
- 'City': true,
797
- 'State': true,
798
- 'Postal Code': true,
799
- 'County': true,
800
- 'Country Code': true,
801
- 'Latitude': true,
802
- 'Longitude': true,
803
- 'Personal Verification Identification Type': true,
804
- 'Address Type': true
805
- },
806
- 'Staff Telephone': {
807
- 'Last Modified': true,
808
- 'Is Primary': true,
809
- 'Staff External Id': true,
810
- 'Telephone Number Type': true,
811
- 'Telephone Number': true
812
- },
813
- 'Calendar Session': {
814
- 'Begin Date': true,
815
- 'End Date': true,
816
- 'First Instruction Date': true,
817
- 'Last Instruction Date': true,
818
- 'Last Modified': true,
819
- 'Marking Term Indicator': true,
820
- 'Instructional Minutes': true,
821
- 'Days In Session': true,
822
- 'Minutes Per Day': true,
823
- 'External Id': true,
824
- 'Designator': true,
825
- 'Description': true,
826
- 'Session Type': true,
827
- 'Scheduling Term Indicator': true,
828
- 'Attendance Term Indicator': true,
829
- 'Session Start Time': true,
830
- 'Session End Time': true
831
- },
832
- 'Student Authentication': {
833
- 'Identity Provider Name': true,
834
- 'Identity Provider Uri': true,
835
- 'Start Date': true,
836
- 'End Date': true,
837
- 'Last Modified': true,
838
- 'Login Identifier': true,
839
- 'External Id': true,
840
- 'Student External Id': true
841
- },
842
- 'Section Instructor': {
843
- 'Last Modified': true,
844
- 'Course Section External Id': true,
845
- 'Staff External Id': true
846
- },
847
- 'Staff Authentication': {
848
- 'Start Date': true,
849
- 'End Date': true,
850
- 'Last Modified': true,
851
- 'External Id': true,
852
- 'Staff External Id': true,
853
- 'Identity Provider Name': true,
854
- 'Identity Provider Uri': true,
855
- 'Login Identifier': true
856
- },
857
- 'Department': {
858
- 'External Id': true,
859
- 'Name': true,
860
- 'Short Name': true,
861
- 'Last Modified': true
862
- },
863
- 'Course Section Schedule': {
864
- 'External Id': true,
865
- 'Course Section External ID': true,
866
- 'Class Beginning Time': true,
867
- 'Class Ending Time': true,
868
- 'Class Meeting Days': true,
869
- 'Instruction Site Name': true,
870
- 'Instruction Site Type': true,
871
- 'Time Day Identifier': true,
872
- 'Last Modified': true,
873
- 'Class Period': true,
874
- 'Instruction Method': true
875
- },
876
- 'Facility': {
877
- 'External Id': true,
878
- 'Identifier': true,
879
- 'Building Name': true,
880
- 'Space Description': true,
881
- 'Space Use Type': true,
882
- 'Binlding Site Number': true,
883
- 'Building Use Type': true,
884
- 'Last Modified': true
885
- }
886
- },
887
- destinationDefaultSchema: {
888
- 'Account': {
889
- 'Account Description': true,
890
- 'Account Fax': true,
891
- 'Account ID': true,
892
- 'Account Name': true,
893
- 'Account Phone': true,
894
- 'Account Source': true,
895
- 'Account Type': true,
896
- 'Annual Revenue': true,
897
- 'Billing Address': true,
898
- 'Billing City': true,
899
- 'Billing Country': true,
900
- 'Billing Geocode Accuracy': true,
901
- 'Billing Latitude': true,
902
- 'Billing Longitude': true,
903
- 'Billing State/Province': true,
904
- 'Billing Street': true,
905
- 'Billing Zip/Postal Code': true,
906
- 'Created By ID': true,
907
- 'Created Date': true,
908
- 'Current Address': true,
909
- 'Customer Portal Account': true,
910
- 'Deleted': true,
911
- 'Employees': true,
912
- 'Industry': true,
913
- 'Jigsaw Company ID': true,
914
- 'Last Activity': true,
915
- 'Last Modified By ID': true,
916
- 'Last Modified Date': true,
917
- 'Last Referenced Date': true,
918
- 'Last Viewed Date': true,
919
- 'Master Record ID': true,
920
- 'Owner ID': true,
921
- 'Parent Account ID': true,
922
- 'Photo URL': true,
923
- 'Record Type ID': true,
924
- 'Shipping Address': true,
925
- 'Shipping City': true,
926
- 'Shipping Country': true,
927
- 'Shipping Geocode Accuracy': true,
928
- 'Shipping Latitude': true,
929
- 'Shipping Longitude': true,
930
- 'Shipping State/Province': true,
931
- 'Shipping Street': true,
932
- 'Shipping Zip/Postal Code': true,
933
- 'SIC Description': true,
934
- 'System Modstamp': true,
935
- 'Website': true
936
- },
937
- 'Contact': {
938
- 'Account ID': true,
939
- 'Allow Customer Portal Self-Registration': true,
940
- 'Alternate Email': true,
941
- "Assistant's Name": true,
942
- "Assistant's Phone": true,
943
- 'Birthdate': true,
944
- 'Business Fax': true,
945
- 'Business Phone': true,
946
- 'Citizenship': true,
947
- 'Contact Description': true,
948
- 'Contact ID': true,
949
- 'Country of Origin': true,
950
- 'Created By ID': true,
951
- 'Created Date': true,
952
- 'Current Address': true,
953
- 'Deceased': true,
954
- 'Deleted': true,
955
- 'Department': true,
956
- 'Do Not Automatically Update': true,
957
- 'Do Not Call': true,
958
- 'Do Not Contact': true,
959
- 'Email': true,
960
- 'Email Bounced Date': true,
961
- 'Email Bounced Reason': true,
962
- 'Email Opt Out': true,
963
- 'Ethnicity': true,
964
- 'Exclude from Household Formal Greeting': true,
965
- 'Exclude from Household Informal Greeting': true,
966
- 'Exclude from Household Name': true,
967
- 'Fax Opt Out': true,
968
- 'FERPA': true,
969
- 'Financial Aid Applicant': true,
970
- 'First Name': true,
971
- 'Full Name': true,
972
- 'Gender': true,
973
- 'HIPAA': true,
974
- 'HIPAA Detail': true,
975
- 'Home Phone': true,
976
- 'Is Email Bounced': true,
977
- 'Jigsaw Contact ID': true,
978
- 'Last Activity': true,
979
- 'Last Modified By ID': true,
980
- 'Last Modified Date': true,
981
- 'Last Name': true,
982
- 'Last Referenced Date': true,
983
- 'Last Stay-in-Touch Request Date': true,
984
- 'Last Stay-in-Touch Save Date': true,
985
- 'Last Viewed Date': true,
986
- 'Lead Source': true,
987
- 'Mailing Address': true,
988
- 'Mailing City': true,
989
- 'Mailing Country': true,
990
- 'Mailing Geocode Accuracy': true,
991
- 'Mailing Latitude': true,
992
- 'Mailing Longitude': true,
993
- 'Mailing State/Province': true,
994
- 'Mailing Street': true,
995
- 'Mailing Zip/Postal Code': true,
996
- 'Master Record ID': true,
997
- 'Military Background': true,
998
- 'Military Service': true,
999
- 'Mobile Phone': true,
1000
- 'Naming Exclusions': true,
1001
- 'Other Address': true,
1002
- 'Other City': true,
1003
- 'Other Country': true,
1004
- 'Other Geocode Accuracy': true,
1005
- 'Other Latitude': true,
1006
- 'Other Longitude': true,
1007
- 'Other Phone': true,
1008
- 'Other State/Province': true,
1009
- 'Other Street': true,
1010
- 'Other Zip/Postal Code': true,
1011
- 'Owner ID': true,
1012
- 'Photo URL': true,
1013
- 'Preferred Email': true,
1014
- 'Preferred Phone': true,
1015
- 'Primary Address Type': true,
1016
- 'Primary Business Organization': true,
1017
- 'Primary Household': true,
1018
- 'Religion': true,
1019
- 'Reports To ID': true,
1020
- 'Salutation': true,
1021
- 'Secondary Address Type': true,
1022
- 'Social Security Number': true,
1023
- 'System Modstamp': true,
1024
- 'Title': true,
1025
- 'University Email': true,
1026
- 'Work Address': true,
1027
- 'Work Email': true,
1028
- 'Work Phone': true
1029
- },
1030
- 'Affiliation': {
1031
- 'Affiliation Key': true,
1032
- 'Affiliation Type': true,
1033
- 'Contact': true,
1034
- 'Created By ID': true,
1035
- 'Created Date': true,
1036
- 'Deleted': true,
1037
- 'Description': true,
1038
- 'End Date': true,
1039
- 'Last Modified By ID': true,
1040
- 'Last Modified Date': true,
1041
- 'Last Referenced Date': true,
1042
- 'Last Viewed Date': true,
1043
- 'Organization': true,
1044
- 'Owner ID': true,
1045
- 'Primary': true,
1046
- 'Record ID': true,
1047
- 'Role': true,
1048
- 'Start Date': true,
1049
- 'Status': true,
1050
- 'System Modstamp': true
1051
- },
1052
- 'Address': {
1053
- 'Address ID': true,
1054
- 'Address Type': true,
1055
- 'Created By ID': true,
1056
- 'Created Date': true,
1057
- 'Default Address': true,
1058
- 'Deleted': true,
1059
- 'Geolocation': true,
1060
- 'Geolocation (Latitude)': true,
1061
- 'Geolocation (Longitude)': true,
1062
- 'Last Modified By ID': true,
1063
- 'Last Modified Date': true,
1064
- 'Last Referenced Date': true,
1065
- 'Last Viewed Date': true,
1066
- 'Latest End Date': true,
1067
- 'Latest Start Date': true,
1068
- 'Mailing Address': true,
1069
- 'Mailing City': true,
1070
- 'Mailing Country': true,
1071
- 'Mailing State/Province': true,
1072
- 'Mailing Street': true,
1073
- 'Mailing Street2': true,
1074
- 'Mailing Street Address': true,
1075
- 'Mailing Zip/Postal Code': true,
1076
- 'Owner ID': true,
1077
- 'Parent Account': true,
1078
- 'Parent Contact': true,
1079
- 'Record ID': true,
1080
- 'Seasonal End Day': true,
1081
- 'Seasonal End Month': true,
1082
- 'Seasonal End Year': true,
1083
- 'Seasonal Start Day': true,
1084
- 'Seasonal Start Month': true,
1085
- 'Seasonal Start Year': true,
1086
- 'System Modstamp': true
1087
- },
1088
- 'Course': {
1089
- 'Course ID': true,
1090
- 'Course Name': true,
1091
- 'Created By ID': true,
1092
- 'Created Date': true,
1093
- 'Credit Hours': true,
1094
- 'Deleted': true,
1095
- 'Department': true,
1096
- 'Description': true,
1097
- 'Last Modified By ID': true,
1098
- 'Last Modified Date': true,
1099
- 'Last Referenced Date': true,
1100
- 'Last Viewed Date': true,
1101
- 'Record ID': true,
1102
- 'System Modstamp': true
1103
- },
1104
- 'Course Enrollment': {
1105
- 'Affiliation': true,
1106
- 'Contact': true,
1107
- "Contact's Academic Program": true,
1108
- 'Course Connection ID': true,
1109
- 'Course Offering ID': true,
1110
- 'Created By ID': true,
1111
- 'Created Date': true,
1112
- 'Credits Attempted': true,
1113
- 'Credits Earned': true,
1114
- 'Deleted': true,
1115
- 'Grade': true,
1116
- 'Last Modified By ID': true,
1117
- 'Last Modified Date': true,
1118
- 'Last Referenced Date': true,
1119
- 'Last Viewed Date': true,
1120
- 'Owner ID': true,
1121
- 'Primary': true,
1122
- 'Program Enrollment ID': true,
1123
- 'Record ID': true,
1124
- 'Record Type ID': true,
1125
- 'Status': true,
1126
- 'System Modstamp': true
1127
- },
1128
- 'Course Offering': {
1129
- 'Capacity': true,
1130
- 'Course': true,
1131
- 'Course Offering ID': true,
1132
- 'Created By ID': true,
1133
- 'Created Date': true,
1134
- 'Deleted': true,
1135
- 'End Date': true,
1136
- 'Last Modified By ID': true,
1137
- 'Last Modified Date': true,
1138
- 'Last Referenced Date': true,
1139
- 'Last Viewed Date': true,
1140
- 'Primary Faculty': true,
1141
- 'Record ID': true,
1142
- 'Section ID': true,
1143
- 'Start Date': true,
1144
- 'System Modstamp': true,
1145
- 'Term': true
1146
- },
1147
- 'Program Enrollment': {
1148
- 'Admission Date': true,
1149
- 'Affiliation': true,
1150
- 'Application Submitted Date': true,
1151
- 'Class Standing': true,
1152
- 'Class Year': true,
1153
- 'Contact': true,
1154
- 'Created By ID': true,
1155
- 'Created Date': true,
1156
- 'Credits Attempted': true,
1157
- 'Credits Earned': true,
1158
- 'Deleted': true,
1159
- 'Eligible to Enroll': true,
1160
- 'End Date': true,
1161
- 'Enrollment Status': true,
1162
- 'GPA': true,
1163
- 'Last Modified By ID': true,
1164
- 'Last Modified Date': true,
1165
- 'Last Referenced Date': true,
1166
- 'Last Viewed Date': true,
1167
- 'Owner ID': true,
1168
- 'Program': true,
1169
- 'Program Enrollment ID': true,
1170
- 'Record ID': true,
1171
- 'Start Date': true,
1172
- 'System Modstamp': true
1173
- },
1174
- 'Relationship': {
1175
- 'Contact': true,
1176
- 'Created By ID': true,
1177
- 'Created Date': true,
1178
- 'Deleted': true,
1179
- 'Description': true,
1180
- 'Emergency Contact': true,
1181
- 'Last Modified By ID': true,
1182
- 'Last Modified Date': true,
1183
- 'Last Referenced Date': true,
1184
- 'Last Viewed Date': true,
1185
- 'Owner ID': true,
1186
- 'Reciprocal Relationship': true,
1187
- 'Record ID': true,
1188
- 'Related Contact': true,
1189
- 'Relationship Explanation': true,
1190
- 'Relationship Key': true,
1191
- 'Status': true,
1192
- 'System Modstamp': true,
1193
- 'Type': true
1194
- },
1195
- 'Term': {
1196
- 'Account': true,
1197
- 'Created By ID': true,
1198
- 'Created Date': true,
1199
- 'Deleted': true,
1200
- 'End Date': true,
1201
- 'Last Modified By ID': true,
1202
- 'Last Modified Date': true,
1203
- 'Last Referenced Date': true,
1204
- 'Last Viewed Date': true,
1205
- 'Record ID': true,
1206
- 'Start Date': true,
1207
- 'System Modstamp': true,
1208
- 'Term Name': true
1209
- }
1210
- },
1211
- autoMapData: {
1212
- 'Student.First Name': 'Contact.First Name',
1213
- 'Student.Last Name': 'Contact.Last Name',
1214
- 'Student.Gender': 'Contact.Gender',
1215
- 'Student.External Id': 'Contact.Account ID',
1216
- 'Student.Birthdate': 'Contact.Birthdate',
1217
- 'Student.Hispanic Latino Ethnicity': 'Contact.Ethnicity',
1218
- 'Student.Last Modified': 'Contact.Last Modified Date',
1219
- 'Student Telephone.Telephone Number': 'Contact.Preferred Phone',
1220
- 'Student Email.Email Address': 'Contact.Preferred Email',
1221
- 'Student Address.Student External Id': 'Address.Owner ID',
1222
- 'Student Address.Address Type': 'Address.Primary Address Type',
1223
- 'Student Address.Street Number And Name': 'Address.Mailing Address',
1224
- 'Student Address.City': 'Address.Mailing City',
1225
- 'Student Address.State': 'Address.Mailing State/Province',
1226
- 'Student Address.Postal Code': 'Address.Mailing Zip/Postal Code',
1227
- 'Student Address.County': 'Address.Mailing Country',
1228
- 'Student Address.Latitude': 'Address.Mailing Latitude',
1229
- 'Student Address.Longitude': 'Address.Mailing Longitude',
1230
- 'Staff.First Name': 'Contact.First Name',
1231
- 'Staff.Last Name': 'Contact.Last Name',
1232
- 'Staff.Gender': 'Contact.Gender',
1233
- 'Staff.External Id': 'Contact.Account ID',
1234
- 'Staff.Birthdate': 'Contact.Birthdate',
1235
- 'Staff.Hispanic Latino Ethnicity': 'Contact.Ethnicity',
1236
- 'Staff.Last Modified': 'Contact.Last Modified Date',
1237
- 'Staff Telephone.Telephone Number': 'Contact.Preferred Phone',
1238
- 'Staff Email.Email Address': 'Contact.Preferred Email',
1239
- 'Staff Address.Staff External Id': 'Address.Owner ID',
1240
- 'Staff Address.Address Type': 'Address.Primary Address Type',
1241
- 'Staff Address.Street Number And Name': 'Address.Mailing Address',
1242
- 'Staff Address.City': 'Address.Mailing City',
1243
- 'Staff Address.State': 'Address.Mailing State/Province',
1244
- 'Staff Address.Postal Code': 'Address.Mailing Zip/Postal Code',
1245
- 'Staff Address.County': 'Address.Mailing Country',
1246
- 'Staff Address.Latitude': 'Address.Mailing Latitude',
1247
- 'Staff Address.Longitude': 'Address.Mailing Longitude',
1248
- 'Calendar Session.Designator': 'Term.Term Name',
1249
- 'Calendar Session.Begin Date': 'Term.Start Date',
1250
- 'Calendar Session.End Date': 'Term.End Date',
1251
- 'Calendar Session.Last Modified': 'Term.Last Modified Date',
1252
- 'Calendar Session.External Id': 'Term.Record ID',
1253
- 'Course.External Id': 'Course.Course ID',
1254
- 'Course.Course Title': 'Course.Course Name',
1255
- 'Course.Description': 'Course.Description',
1256
- 'Course.Department External Id': 'Course.Department',
1257
- 'Course.Credit Value': 'Course.Credit Hours',
1258
- 'Course.Last Modified': 'Course.Last Modified Date',
1259
- 'Course Section.Last Modified': 'Course Offering.Last Modified Date',
1260
- 'Course Section.External Id': 'Course Offering.Section ID',
1261
- 'Course Section.Course External Id': 'Course Offering.Course Offering ID',
1262
- 'Course Section Schedule.Course Section External ID': 'Course Offering.Section ID',
1263
- 'Student Section.Student External Id': 'Course Enrollment.Owner ID',
1264
- 'Student Section.Number Of Credits Earned': 'Course Enrollment.Credits Earned',
1265
- 'Student Section.Academic Grade': 'Course Enrollment.Grade',
1266
- 'Student Section.Last Modified': 'Course Enrollment.Last Modified Date'
1267
- },
1268
- dummyData: {
1269
- 'Student.First Name': 'Carlos',
1270
- 'Student.Last Name': 'Robertson',
1271
- 'Student.Gender': 'Male',
1272
- 'Student.External Id': 'ee106749-8b53-445e-8bc9-1babc72372ff',
1273
- 'Student.Birthdate': '1998-10-27',
1274
- 'Student.Hispanic Latino Ethnicity': 'Hispanic',
1275
- 'Student.Last Modified': '2017-1-10',
1276
- 'Student Telephone.Telephone Number': '530-753-3067',
1277
- 'Student Email.Email Address': 'carlosr98@gmail.com',
1278
- 'Student Address.Student External Id': 'ee106749-8b53-445e-8bc9-1babc72372ff',
1279
- 'Student Address.Address Type': 'residence',
1280
- 'Student Address.Street Number And Name': '2400 Rivendell Lane',
1281
- 'Student Address.City': 'Davis',
1282
- 'Student Address.State': 'CA',
1283
- 'Student Address.Postal Code': '95616',
1284
- 'Student Address.County': 'United States',
1285
- 'Student Address.Latitude': '38.5449° N',
1286
- 'Student Address.Longitude': '121.7405° W',
1287
- 'Staff.First Name': 'Amy',
1288
- 'Staff.Last Name': 'Harrison',
1289
- 'Staff.Gender': 'Female',
1290
- 'Staff.External Id': '9d0f1999-c14f-466a-b078-eac5dceb8c1e',
1291
- 'Staff.Birthdate': '1986-10-18',
1292
- 'Staff.Hispanic Latino Ethnicity': 'White',
1293
- 'Staff.Last Modified': '2017-1-10',
1294
- 'Staff Telephone.Telephone Number': '530-756-8268',
1295
- 'Staff Email.Email Address': 'asharon@ucdavis.edu',
1296
- 'Staff Address.Staff External Id': '9d0f1999-c14f-466a-b078-eac5dceb8c1e',
1297
- 'Staff Address.Address Type': 'residence',
1298
- 'Staff Address.Street Number And Name': '131 Bombadil Drive',
1299
- 'Staff Address.City': 'Davis',
1300
- 'Staff Address.State': 'CA',
1301
- 'Staff Address.Postal Code': '95616',
1302
- 'Staff Address.County': 'United States',
1303
- 'Staff Address.Latitude': '38.5449° N',
1304
- 'Staff Address.Longitude': '121.7405° W',
1305
- 'Calendar Session.Designator': 'Fall',
1306
- 'Calendar Session.Begin Date': '2017-3-11',
1307
- 'Calendar Session.End Date': '2017-6-21',
1308
- 'Calendar Session.Last Modified': '2017-1-10',
1309
- 'Calendar Session.External Id': 'e8484fb0bdf7955ade3eafc0134d46c1',
1310
- 'Course.External Id': 'de3eafc0134d4e8484fb0bdf7955a6c1',
1311
- 'Course.Course Title': 'Research Strategies and Technology',
1312
- 'Course.Description': 'This course is intended to familiarize students with the resources and the technology available for writing and presenting papers',
1313
- 'Course.Department External Id': 'Social Sciences',
1314
- 'Course.Credit Value': '4',
1315
- 'Course.Last Modified': '2017-1-10',
1316
- 'Course Section.Last Modified': '2017-1-10',
1317
- 'Course Section.External Id': '624163984-7',
1318
- 'Course Section.Course External Id': '639846241-9',
1319
- 'Course Section Schedule.Course Section External ID': '349996241-1',
1320
- 'Student Section.Student External Id': 'ee106749-8b53-445e-8bc9-1babc72372ff',
1321
- 'Student Section.Number Of Credits Earned': '4',
1322
- 'Student Section.Academic Grade': 'B',
1323
- 'Student Section.Last Modified': '2017-1-10'
1324
- }
1325
- },
1326
- 6: { // REST API to REST API
1327
- title: 'REST API to REST API',
1328
- sourceProvider: 'REST',
1329
- sourceProviderType: 'API',
1330
- destinationProvider: 'REST',
1331
- destinationProviderType: 'API',
1332
- deployment: ['once', 'scheduled']
1333
- },
1334
- 5: { // Banner to Course Enrollment
1335
- title: 'Banner to Course Enrollment',
1336
- sourceProvider: 'Banner',
1337
- sourceProviderType: 'Banner',
1338
- destinationProvider: 'Course Enrollment Feed',
1339
- destinationProviderType: 'FTP',
1340
- deployment: ['once', 'API', 'scheduled'],
1341
- customStep: {
1342
- type: 'bannerAdapter',
1343
- title: 'Banner Adapter'
1344
- },
1345
- sourceDefaultSchema: {
1346
- 'Calendar Session': {
1347
- ExternalId: true,
1348
- Designator: true,
1349
- BeginDate: true,
1350
- EndDate: true,
1351
- BNEDTerm: true,
1352
- Active: true
1353
- },
1354
- 'Course': {
1355
- ExternalId: true,
1356
- CourseNumber: true,
1357
- CourseTitle: true,
1358
- SubjectAbbreviation: true
1359
- },
1360
- 'Course Section': {
1361
- ExternalId: true,
1362
- CourseExternalId: true,
1363
- CourseSectionNumber: true,
1364
- InstructionSiteName: true,
1365
- InstructionSiteType: true,
1366
- CourseEndDate: true,
1367
- CalendarSessionExternalId: true,
1368
- Capacity: true,
1369
- CurrentEnrollment: true,
1370
- CourseFeeIncluded: true
1371
- },
1372
- 'Student': {
1373
- ExternalId: true,
1374
- FirstName: true,
1375
- LastName: true,
1376
- AidAmount: true,
1377
- AidProviderCode: true,
1378
- AidBeginDate: true,
1379
- AidEndDate: true,
1380
- AidIDType: true,
1381
- AidAccountType: true
1382
- },
1383
- 'Student Section': {
1384
- CourseSectionExternalId: true,
1385
- StudentExternalId: true,
1386
- CourseAddDate: true,
1387
- CourseDropDate: true,
1388
- Dropped: true,
1389
- Role: true
1390
- },
1391
- 'Student Email': {
1392
- ExternalId: true,
1393
- EmailAddress: true,
1394
- EmailAddressType: true,
1395
- IsPrimary: true
1396
- },
1397
- 'Staff': {
1398
- ExternalId: true,
1399
- FirstName: true,
1400
- MiddleName: true,
1401
- LastName: true
1402
- },
1403
- 'Section Instructor': {
1404
- CourseSectionExternalId: true,
1405
- StaffExternalId: true
1406
- }
1407
- },
1408
- destinationDefaultSchema: {
1409
- 'Course Enrollment': {
1410
- 'BNED Store Number / Unit': true,
1411
- 'BNED Term Year': true,
1412
- 'BNED Term Code': true,
1413
- 'College Department': true,
1414
- 'College Course': true,
1415
- 'College Section': true,
1416
- 'Professor Name': true,
1417
- 'Maximum Capacity': true,
1418
- 'Estimated Enrollment': true,
1419
- 'Actual Enrollment': true,
1420
- 'Continuation Class': true,
1421
- 'Evening Class': true,
1422
- 'Extension Class': true,
1423
- 'Location (Campus)': true,
1424
- 'Course Title': true,
1425
- 'Alternate Course ID (CRN)': true
1426
- }
1427
- },
1428
- autoMapData: {
1429
- 'Course Section.InstructionSiteName': 'Course Enrollment.Location (Campus)',
1430
- 'Course.SubjectAbbreviation': 'Course Enrollment.College Department',
1431
- 'Course.ExternalId': 'Course Enrollment.College Course',
1432
- 'Course Section.ExternalId': 'Course Enrollment.College Section',
1433
- 'Staff.LastName': 'Course Enrollment.Professor Name',
1434
- 'Staff.FirstName': 'Course Enrollment.Professor Name',
1435
- 'Course.CourseTitle': 'Course Enrollment.Course Title',
1436
- 'Course Section.Capacity': 'Course Enrollment.Maximum Capacity',
1437
- 'Course Section.CurrentEnrollment': 'Course Enrollment.Actual Enrollment',
1438
- 'Calendar Session.BNEDTerm': 'Course Enrollment.BNED Term Code'
1439
- },
1440
- dummyData: {
1441
- 'Course Section.InstructionSiteName': 'Qianshan',
1442
- 'Course.SubjectAbbreviation': 'ASTR',
1443
- 'Course.ExternalId': '786202168-1',
1444
- 'Course Section.ExternalId': '254143083-3',
1445
- 'Staff.LastName': 'Mitchell',
1446
- 'Staff.FirstName': 'Sharon',
1447
- 'Course.CourseTitle': 'Physics',
1448
- 'Course Section.Capacity': '65',
1449
- 'Course Section.CurrentEnrollment': '60',
1450
- 'Calendar Session.BNEDTerm': 'W'
1451
- }
1452
- },
1453
- 2: { // Banner to Managed SFA
1454
- title: 'Banner to Managed SFA',
1455
- sourceProvider: 'Banner',
1456
- sourceProviderType: 'Banner',
1457
- destinationProvider: 'Managed SFA',
1458
- destinationProviderType: 'FTP',
1459
- deployment: ['once', 'API', 'scheduled'],
1460
- customStep: {
1461
- type: 'bannerAdapter',
1462
- title: 'Banner Adapter'
1463
- },
1464
- sourceDefaultSchema: {
1465
- 'Calendar Session': {
1466
- ExternalId: true,
1467
- Designator: true,
1468
- BeginDate: true,
1469
- EndDate: true,
1470
- BNEDTerm: true,
1471
- Active: true
1472
- },
1473
- 'Course': {
1474
- ExternalId: true,
1475
- CourseNumber: true,
1476
- CourseTitle: true,
1477
- SubjectAbbreviation: true
1478
- },
1479
- 'Course Section': {
1480
- ExternalId: true,
1481
- CourseExternalId: true,
1482
- CourseSectionNumber: true,
1483
- InstructionSiteName: true,
1484
- InstructionSiteType: true,
1485
- CourseEndDate: true,
1486
- CalendarSessionExternalId: true,
1487
- Capacity: true,
1488
- CurrentEnrollment: true,
1489
- CourseFeeIncluded: true
1490
- },
1491
- 'Student': {
1492
- ExternalId: true,
1493
- FirstName: true,
1494
- LastName: true,
1495
- AidAmount: true,
1496
- AidProviderCode: true,
1497
- AidBeginDate: true,
1498
- AidEndDate: true,
1499
- AidIDType: true,
1500
- AidAccountType: true
1501
- },
1502
- 'Student Section': {
1503
- CourseSectionExternalId: true,
1504
- StudentExternalId: true,
1505
- CourseAddDate: true,
1506
- CourseDropDate: true,
1507
- Dropped: true,
1508
- Role: true
1509
- },
1510
- 'Student Email': {
1511
- ExternalId: true,
1512
- EmailAddress: true,
1513
- EmailAddressType: true,
1514
- IsPrimary: true
1515
- },
1516
- 'Staff': {
1517
- ExternalId: true,
1518
- FirstName: true,
1519
- MiddleName: true,
1520
- LastName: true
1521
- },
1522
- 'Section Instructor': {
1523
- CourseSectionExternalId: true,
1524
- StaffExternalId: true
1525
- }
1526
- },
1527
- destinationDefaultSchema: {
1528
- 'Managed SFA': {
1529
- 'BNED Store Number / ID': true,
1530
- 'BNED Term Year': true,
1531
- 'BNED Term Code': true,
1532
- 'Student ID': true,
1533
- 'First Name': true,
1534
- 'Middle Initial': true,
1535
- 'Last Name': true,
1536
- 'Aid Provider Code': true,
1537
- 'Aid Provider Amount Available': true,
1538
- 'Aid Provider Begin Date': true,
1539
- 'Aid Provider End Date': true,
1540
- 'Record Type': true,
1541
- 'Student ID Type': true,
1542
- 'Account Type': true
1543
- }
1544
- },
1545
- autoMapData: {
1546
- 'Student.AidIDType': 'Managed SFA.Record Type',
1547
- 'Student.AidAccountType': 'Managed SFA.Account Type',
1548
- 'Student.LastName': 'Managed SFA.Last Name',
1549
- 'Student.FirstName': 'Managed SFA.First Name',
1550
- 'Student.AidEndDate': 'Managed SFA.Aid Provider End Date',
1551
- 'Student.AidBeginDate': 'Managed SFA.Aid Provider Begin Date',
1552
- 'Student.AidAmount': 'Managed SFA.Aid Provider Amount Available',
1553
- 'Student.AidProviderCode': 'Managed SFA.Aid Provider Code',
1554
- 'Student.ExternalId': 'Managed SFA.Student ID',
1555
- 'Calendar Session.BNEDTerm': 'Managed SFA.BNED Term Code'
1556
- },
1557
- dummyData: {
1558
- 'Student.AidIDType': 'S',
1559
- 'Student.AidAccountType': 'D',
1560
- 'Student.LastName': 'Robertson',
1561
- 'Student.FirstName': 'Carlos',
1562
- 'Student.AidEndDate': '2017-02-23',
1563
- 'Student.AidBeginDate': '2016-10-12',
1564
- 'Student.AidAmount': '50000',
1565
- 'Student.AidProviderCode': '54636',
1566
- 'Student.ExternalId': 'ee106749-8b53-445e-8bc9-1babc72372ff',
1567
- 'Calendar Session.BNEDTerm': 'W'
1568
- }
1569
- },
1570
- 3: { // Banner to Course Fee API
1571
- title: 'Banner to Course Fee API',
1572
- sourceProvider: 'Banner',
1573
- sourceProviderType: 'Banner',
1574
- destinationProvider: 'Course Fee API',
1575
- destinationProviderType: 'API',
1576
- deployment: ['once', 'API', 'scheduled'],
1577
- customStep: {
1578
- type: 'bannerAdapter',
1579
- title: 'Banner Adapter'
1580
- },
1581
- sourceDefaultSchema: {
1582
- 'Calendar Session': {
1583
- ExternalId: true,
1584
- Designator: true,
1585
- BeginDate: true,
1586
- EndDate: true,
1587
- BNEDTerm: true,
1588
- Active: true
1589
- },
1590
- 'Course': {
1591
- ExternalId: true,
1592
- CourseNumber: true,
1593
- CourseTitle: true,
1594
- SubjectAbbreviation: true
1595
- },
1596
- 'Course Section': {
1597
- ExternalId: true,
1598
- CourseExternalId: true,
1599
- CourseSectionNumber: true,
1600
- InstructionSiteName: true,
1601
- InstructionSiteType: true,
1602
- CourseEndDate: true,
1603
- CalendarSessionExternalId: true,
1604
- Capacity: true,
1605
- CurrentEnrollment: true,
1606
- CourseFeeIncluded: true
1607
- },
1608
- 'Student': {
1609
- ExternalId: true,
1610
- FirstName: true,
1611
- LastName: true,
1612
- AidAmount: true,
1613
- AidProviderCode: true,
1614
- AidBeginDate: true,
1615
- AidEndDate: true,
1616
- AidIDType: true,
1617
- AidAccountType: true
1618
- },
1619
- 'Student Section': {
1620
- CourseSectionExternalId: true,
1621
- StudentExternalId: true,
1622
- CourseAddDate: true,
1623
- CourseDropDate: true,
1624
- Dropped: true,
1625
- Role: true
1626
- },
1627
- 'Student Email': {
1628
- ExternalId: true,
1629
- EmailAddress: true,
1630
- EmailAddressType: true,
1631
- IsPrimary: true
1632
- },
1633
- 'Staff': {
1634
- ExternalId: true,
1635
- FirstName: true,
1636
- MiddleName: true,
1637
- LastName: true
1638
- },
1639
- 'Section Instructor': {
1640
- CourseSectionExternalId: true,
1641
- StaffExternalId: true
1642
- }
1643
- },
1644
- destinationDefaultSchema: {
1645
- 'Course Fee': {
1646
- 'BNED Store Number / ID': true,
1647
- 'BNED Term Year / Term Code': true,
1648
- 'College Department': true,
1649
- 'College Course': true,
1650
- 'College Section': true,
1651
- 'Role': true,
1652
- 'Student Email Address': true
1653
- }
1654
- },
1655
- autoMapData: {
1656
- 'Course.SubjectAbbreviation': 'Course Fee.College Department',
1657
- 'Course.ExternalId': 'Course Fee.College Course',
1658
- 'Course Section.ExternalId': 'Course Fee.College Section',
1659
- 'Student Section.Role': 'Course Fee.Role',
1660
- 'Student Email.EmailAddress': 'Course Fee.Student Email Address',
1661
- 'Calendar Session.BNEDTerm': 'Course Fee.BNED Term Year / Term Code'
1662
- },
1663
- dummyData: {
1664
- 'Course.SubjectAbbreviation': 'ITAL',
1665
- 'Course.ExternalId': '361542699-1',
1666
- 'Course Section.ExternalId': '026743570-3',
1667
- 'Student Section.Role': 'Student',
1668
- 'Student Email.EmailAddress': 'spatterson0@tripod.edu',
1669
- 'Calendar Session.BNEDTerm': 'W'
1670
- }
1671
- },
1672
- 4: { // Banner to SFA Balance Inquiry
1673
- title: 'Banner to SFA Balance Inquiry',
1674
- sourceProvider: 'Banner',
1675
- sourceProviderType: 'Banner',
1676
- destinationProvider: 'SFA Balance Inquiry',
1677
- destinationProviderType: 'API',
1678
- deployment: ['once', 'API', 'scheduled'],
1679
- customStep: {
1680
- type: 'bannerAdapter',
1681
- title: 'Banner Adapter'
1682
- },
1683
- sourceDefaultSchema: {
1684
- 'Calendar Session': {
1685
- ExternalId: true,
1686
- Designator: true,
1687
- BeginDate: true,
1688
- EndDate: true,
1689
- BNEDTerm: true,
1690
- Active: true
1691
- },
1692
- 'Course': {
1693
- ExternalId: true,
1694
- CourseNumber: true,
1695
- CourseTitle: true,
1696
- SubjectAbbreviation: true
1697
- },
1698
- 'Course Section': {
1699
- ExternalId: true,
1700
- CourseExternalId: true,
1701
- CourseSectionNumber: true,
1702
- InstructionSiteName: true,
1703
- InstructionSiteType: true,
1704
- CourseEndDate: true,
1705
- CalendarSessionExternalId: true,
1706
- Capacity: true,
1707
- CurrentEnrollment: true,
1708
- CourseFeeIncluded: true
1709
- },
1710
- 'Student': {
1711
- ExternalId: true,
1712
- FirstName: true,
1713
- LastName: true,
1714
- AidAmount: true,
1715
- AidProviderCode: true,
1716
- AidBeginDate: true,
1717
- AidEndDate: true,
1718
- AidIDType: true,
1719
- AidAccountType: true
1720
- },
1721
- 'Student Section': {
1722
- CourseSectionExternalId: true,
1723
- StudentExternalId: true,
1724
- CourseAddDate: true,
1725
- CourseDropDate: true,
1726
- Dropped: true,
1727
- Role: true
1728
- },
1729
- 'Student Email': {
1730
- ExternalId: true,
1731
- EmailAddress: true,
1732
- EmailAddressType: true,
1733
- IsPrimary: true
1734
- },
1735
- 'Staff': {
1736
- ExternalId: true,
1737
- FirstName: true,
1738
- MiddleName: true,
1739
- LastName: true
1740
- },
1741
- 'Section Instructor': {
1742
- CourseSectionExternalId: true,
1743
- StaffExternalId: true
1744
- }
1745
- },
1746
- destinationDefaultSchema: {
1747
- 'Balance Inquiry': {
1748
- 'Student Financial Aid Balance': true,
1749
- 'Student ID': true,
1750
- 'Aid Provider Code': true,
1751
- 'Aid Provider Amount Available': true,
1752
- 'Aid Provider Begin Date': true,
1753
- 'Aid Provider End Date': true,
1754
- 'Record Type': true,
1755
- 'Student ID Type': true,
1756
- 'Account Type': true
1757
- }
1758
- },
1759
- autoMapData: {
1760
- 'Student.AidIDType': 'Managed SFA.Record Type',
1761
- 'Student.AidAccountType': 'Managed SFA.Account Type',
1762
- 'Student.AidEndDate': 'Managed SFA.Aid Provider End Date',
1763
- 'Student.AidBeginDate': 'Managed SFA.Aid Provider Begin Date',
1764
- 'Student.AidAmount': 'Managed SFA.Aid Provider Amount Available',
1765
- 'Student.AidProviderCode': 'Managed SFA.Aid Provider Code',
1766
- 'Student.ExternalId': 'Managed SFA.Student ID',
1767
- 'Calendar Session.BNEDTerm': 'Managed SFA.BNED Term Code'
1768
- },
1769
- dummyData: {
1770
- 'Student.AidIDType': 'S',
1771
- 'Student.AidAccountType': 'D',
1772
- 'Student.AidEndDate': '2017-02-23',
1773
- 'Student.AidBeginDate': '2016-10-12',
1774
- 'Student.AidAmount': '50000',
1775
- 'Student.AidProviderCode': '54636',
1776
- 'Student.ExternalId': 'ee106749-8b53-445e-8bc9-1babc72372ff',
1777
- 'Calendar Session.BNEDTerm': 'W'
1778
- }
1779
- }
1780
- };
1781
-
1782
- /***/ },
1783
- /* 23 */
1784
- /***/ function(module, exports, __webpack_require__) {
1785
-
1786
- 'use strict';
1787
-
1788
- Object.defineProperty(exports, "__esModule", {
1789
- value: true
1790
- });
1791
-
1792
- var _react = __webpack_require__(1);
1793
-
1794
- var _react2 = _interopRequireDefault(_react);
1795
-
1796
- var _reduxForm = __webpack_require__(2);
1797
-
1798
- var _validate = __webpack_require__(4);
1799
-
1800
- var _validate2 = _interopRequireDefault(_validate);
1801
-
1802
- var _navButtons = __webpack_require__(3);
1803
-
1804
- var _navButtons2 = _interopRequireDefault(_navButtons);
1805
-
1806
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
1807
-
1808
- var renderError = function renderError(_ref) {
1809
- var _ref$meta = _ref.meta,
1810
- touched = _ref$meta.touched,
1811
- error = _ref$meta.error;
1812
- return touched && error ? _react2.default.createElement(
1813
- 'div',
1814
- null,
1815
- _react2.default.createElement(
1816
- 'span',
1817
- null,
1818
- error
1819
- ),
1820
- _react2.default.createElement('br', null),
1821
- _react2.default.createElement('br', null)
1822
- ) : false;
1823
- };
1824
-
1825
- var AccountStep = function AccountStep(props) {
1826
- var inputs = props.inputs,
1827
- handleSubmit = props.handleSubmit,
1828
- nav = props.nav,
1829
- reset = props.reset,
1830
- actions = props.actions;
1831
-
1832
- return _react2.default.createElement(
1833
- 'form',
1834
- { onKeyPress: function onKeyPress(e) {
1835
- return e.charCode === 13 ? e.preventDefault() : null;
1836
- } },
1837
- _react2.default.createElement(
1838
- 'div',
1839
- { style: { fontSize: 20 } },
1840
- 'Select an Account'
1841
- ),
1842
- _react2.default.createElement('br', null),
1843
- _react2.default.createElement(
1844
- 'div',
1845
- { style: { marginLeft: 16 } },
1846
- _react2.default.createElement(_reduxForm.Field, { name: 'newAccount', type: 'text', component: inputs.rfInput, label: 'Name' })
1847
- ),
1848
- _react2.default.createElement('br', null),
1849
- _react2.default.createElement(_reduxForm.Field, { name: 'customer', component: renderError }),
1850
- _react2.default.createElement('br', null),
1851
- _react2.default.createElement(_navButtons2.default, { handleSubmit: handleSubmit, nav: nav, reset: reset, inputs: inputs }),
1852
- _react2.default.createElement('br', null),
1853
- _react2.default.createElement('br', null)
1854
- );
1855
- };
1856
-
1857
- exports.default = (0, _reduxForm.reduxForm)({
1858
- form: 'wizard',
1859
- destroyOnUnmount: false,
1860
- forceUnregisterOnUnmount: true,
1861
- touchOnBlur: false,
1862
- validate: _validate2.default
1863
- })(AccountStep);
1864
-
1865
- /***/ },
1866
- /* 24 */
1867
- /***/ function(module, exports, __webpack_require__) {
1868
-
1869
- 'use strict';
1870
-
1871
- Object.defineProperty(exports, "__esModule", {
1872
- value: true
1873
- });
1874
-
1875
- var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
1876
-
1877
- var _react = __webpack_require__(1);
1878
-
1879
- var _react2 = _interopRequireDefault(_react);
1880
-
1881
- var _reduxForm = __webpack_require__(2);
1882
-
1883
- var _validate = __webpack_require__(4);
1884
-
1885
- var _validate2 = _interopRequireDefault(_validate);
1886
-
1887
- var _navButtons = __webpack_require__(3);
1888
-
1889
- var _navButtons2 = _interopRequireDefault(_navButtons);
1890
-
1891
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
1892
-
1893
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
1894
-
1895
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
1896
-
1897
- function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
1898
-
1899
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
1900
-
1901
- var BannerAdapterStep = function (_Component) {
1902
- _inherits(BannerAdapterStep, _Component);
1903
-
1904
- function BannerAdapterStep() {
1905
- _classCallCheck(this, BannerAdapterStep);
1906
-
1907
- var _this = _possibleConstructorReturn(this, (BannerAdapterStep.__proto__ || Object.getPrototypeOf(BannerAdapterStep)).call(this));
1908
-
1909
- _this.state = {
1910
- showSecret: false
1911
- };
1912
- return _this;
1913
- }
1914
-
1915
- _createClass(BannerAdapterStep, [{
1916
- key: 'render',
1917
- value: function render() {
1918
- var _this2 = this;
1919
-
1920
- var showSecret = this.state.showSecret;
1921
- var _props = this.props,
1922
- inputs = _props.inputs,
1923
- handleSubmit = _props.handleSubmit,
1924
- nav = _props.nav,
1925
- reset = _props.reset;
1926
-
1927
- var Button = inputs.Button;
1928
- return _react2.default.createElement(
1929
- 'form',
1930
- { onKeyPress: function onKeyPress(e) {
1931
- return e.charCode === 13 ? e.preventDefault() : null;
1932
- } },
1933
- _react2.default.createElement(
1934
- 'div',
1935
- { style: { fontSize: 20 } },
1936
- 'Data Source: Configure Banner Adapter'
1937
- ),
1938
- _react2.default.createElement('br', null),
1939
- _react2.default.createElement(
1940
- 'div',
1941
- { style: { marginLeft: 16 } },
1942
- _react2.default.createElement(
1943
- 'h5',
1944
- null,
1945
- 'This integration requires Banner Adapter configuration before continuing.'
1946
- ),
1947
- _react2.default.createElement(
1948
- 'ul',
1949
- { style: { listStyle: 'initial', paddingLeft: 17 } },
1950
- _react2.default.createElement(
1951
- 'li',
1952
- null,
1953
- _react2.default.createElement(
1954
- 'h5',
1955
- null,
1956
- _react2.default.createElement(
1957
- 'a',
1958
- { href: '' },
1959
- 'Download the Banner Adapter'
1960
- )
1961
- )
1962
- ),
1963
- _react2.default.createElement(
1964
- 'li',
1965
- null,
1966
- _react2.default.createElement(
1967
- 'h5',
1968
- null,
1969
- _react2.default.createElement(
1970
- 'a',
1971
- { href: '' },
1972
- 'Read the Banner Adapter Documentation'
1973
- )
1974
- )
1975
- )
1976
- ),
1977
- _react2.default.createElement('br', null),
1978
- _react2.default.createElement(
1979
- 'label',
1980
- { htmlFor: 'link-banner', style: { marginBottom: 14 } },
1981
- 'Lingk Banner Adapter Credentials:'
1982
- ),
1983
- _react2.default.createElement('br', null),
1984
- _react2.default.createElement('br', null),
1985
- _react2.default.createElement(
1986
- 'div',
1987
- { style: { marginLeft: 18 } },
1988
- _react2.default.createElement(
1989
- 'span',
1990
- null,
1991
- 'Client ID'
1992
- ),
1993
- _react2.default.createElement('br', null),
1994
- _react2.default.createElement('input', {
1995
- readOnly: true,
1996
- type: 'text',
1997
- placeholder: 'Client ID',
1998
- size: '60',
1999
- defaultValue: '55e65cc3d2f8e50001000020df27e6d908da4bf15832e459d2240dfb'
2000
- }),
2001
- _react2.default.createElement('br', null),
2002
- _react2.default.createElement('br', null),
2003
- _react2.default.createElement(
2004
- 'span',
2005
- null,
2006
- 'Client Secret'
2007
- ),
2008
- _react2.default.createElement('br', null),
2009
- _react2.default.createElement('input', _defineProperty({
2010
- readOnly: true,
2011
- type: 'text',
2012
- placeholder: 'Client Secret',
2013
- size: '60',
2014
- defaultValue: 'ZTFlNjg2NjQ0MWQwNDI3ODRmMGQ3YmYzOTM0OWQxNTM=',
2015
- onBlur: function onBlur() {
2016
- _this2.setState({ showSecret: false });
2017
- },
2018
- style: { display: 'inline-block' }
2019
- }, 'type', showSecret ? 'text' : 'password')),
2020
- _react2.default.createElement(
2021
- Button,
2022
- {
2023
- type: 'brand',
2024
- iconAlign: 'right',
2025
- onClick: function onClick() {
2026
- return _this2.setState({ showSecret: !showSecret });
2027
- },
2028
- style: {
2029
- height: 21,
2030
- width: 56,
2031
- paddingLeft: 12,
2032
- lineHeight: '20px',
2033
- marginLeft: 4,
2034
- marginBottom: 3
2035
- }
2036
- },
2037
- this.state.showSecret ? 'Hide' : 'Show'
2038
- )
2039
- )
2040
- ),
2041
- _react2.default.createElement('br', null),
2042
- _react2.default.createElement(_navButtons2.default, { handleSubmit: handleSubmit, nav: nav, reset: reset, inputs: inputs }),
2043
- _react2.default.createElement('br', null),
2044
- _react2.default.createElement('br', null)
2045
- );
2046
- }
2047
- }]);
2048
-
2049
- return BannerAdapterStep;
2050
- }(_react.Component);
2051
-
2052
- exports.default = (0, _reduxForm.reduxForm)({
2053
- form: 'wizard',
2054
- destroyOnUnmount: false,
2055
- forceUnregisterOnUnmount: true,
2056
- touchOnBlur: false,
2057
- validate: _validate2.default
2058
- })(BannerAdapterStep);
2059
-
2060
- /***/ },
2061
- /* 25 */
2062
- /***/ function(module, exports, __webpack_require__) {
2063
-
2064
- 'use strict';
2065
-
2066
- Object.defineProperty(exports, "__esModule", {
2067
- value: true
2068
- });
2069
-
2070
- var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
2071
-
2072
- var _react = __webpack_require__(1);
2073
-
2074
- var _react2 = _interopRequireDefault(_react);
2075
-
2076
- var _reduxForm = __webpack_require__(2);
2077
-
2078
- var _validate = __webpack_require__(4);
2079
-
2080
- var _validate2 = _interopRequireDefault(_validate);
2081
-
2082
- var _navButtons = __webpack_require__(3);
2083
-
2084
- var _navButtons2 = _interopRequireDefault(_navButtons);
2085
-
2086
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
2087
-
2088
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
2089
-
2090
- function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
2091
-
2092
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
2093
-
2094
- var renderError = function renderError(_ref) {
2095
- var _ref$meta = _ref.meta,
2096
- touched = _ref$meta.touched,
2097
- error = _ref$meta.error;
2098
- return touched && error ? _react2.default.createElement(
2099
- 'span',
2100
- null,
2101
- error
2102
- ) : false;
2103
- };
2104
-
2105
- var DeployStep = function (_Component) {
2106
- _inherits(DeployStep, _Component);
2107
-
2108
- function DeployStep() {
2109
- _classCallCheck(this, DeployStep);
2110
-
2111
- return _possibleConstructorReturn(this, (DeployStep.__proto__ || Object.getPrototypeOf(DeployStep)).apply(this, arguments));
2112
- }
2113
-
2114
- _createClass(DeployStep, [{
2115
- key: 'componentDidMount',
2116
- value: function componentDidMount() {
2117
- var _props = this.props,
2118
- step = _props.step,
2119
- change = _props.change,
2120
- formValues = _props.formValues;
2121
-
2122
- change('deployment', formValues.deployment || Object.keys(step.options)[0]);
2123
- }
2124
- }, {
2125
- key: 'render',
2126
- value: function render() {
2127
- var _props2 = this.props,
2128
- inputs = _props2.inputs,
2129
- handleSubmit = _props2.handleSubmit,
2130
- nav = _props2.nav,
2131
- reset = _props2.reset,
2132
- step = _props2.step,
2133
- formValues = _props2.formValues;
2134
-
2135
- return _react2.default.createElement(
2136
- 'form',
2137
- { onKeyPress: function onKeyPress(e) {
2138
- return e.charCode == 13 ? e.preventDefault() : null;
2139
- } },
2140
- _react2.default.createElement(
2141
- 'div',
2142
- { style: { fontSize: 20 } },
2143
- 'Save and Deploy Integration'
2144
- ),
2145
- _react2.default.createElement('br', null),
2146
- _react2.default.createElement(
2147
- 'div',
2148
- { style: { marginLeft: 16 } },
2149
- _react2.default.createElement(_reduxForm.Field, { name: 'deployment', component: inputs.rfRadioGroup, label: 'Deployment Type',
2150
- options: step.options
2151
- }),
2152
- _react2.default.createElement('br', null),
2153
- step.options && formValues.deployment == 'scheduled' ? _react2.default.createElement(
2154
- 'div',
2155
- { style: { marginLeft: 16 } },
2156
- _react2.default.createElement(
2157
- 'div',
2158
- null,
2159
- 'Minutes'
2160
- ),
2161
- _react2.default.createElement(_reduxForm.Field, { name: 'scheduleMinutes', type: 'text', component: inputs.rfInput, label: '0-59 or *' }),
2162
- _react2.default.createElement(
2163
- 'div',
2164
- { style: { marginTop: 8 } },
2165
- 'Hours'
2166
- ),
2167
- _react2.default.createElement(_reduxForm.Field, { name: 'scheduleHours', type: 'text', component: inputs.rfInput, label: '0-23 or *' }),
2168
- _react2.default.createElement(
2169
- 'div',
2170
- { style: { marginTop: 8 } },
2171
- 'Days'
2172
- ),
2173
- _react2.default.createElement(_reduxForm.Field, { name: 'scheduleDays', type: 'text', component: inputs.rfInput, label: '1-31 or *' })
2174
- ) : null
2175
- ),
2176
- _react2.default.createElement('br', null),
2177
- _react2.default.createElement(_navButtons2.default, { handleSubmit: handleSubmit, nav: nav, reset: reset, inputs: inputs }),
2178
- _react2.default.createElement('br', null),
2179
- _react2.default.createElement('br', null)
2180
- );
2181
- }
2182
- }]);
2183
-
2184
- return DeployStep;
2185
- }(_react.Component);
2186
-
2187
- exports.default = (0, _reduxForm.reduxForm)({
2188
- form: 'wizard',
2189
- destroyOnUnmount: false,
2190
- forceUnregisterOnUnmount: true,
2191
- touchOnBlur: false,
2192
- validate: _validate2.default
2193
- })(DeployStep);
2194
-
2195
- /***/ },
2196
- /* 26 */
2197
- /***/ function(module, exports, __webpack_require__) {
2198
-
2199
- 'use strict';
2200
-
2201
- Object.defineProperty(exports, "__esModule", {
2202
- value: true
2203
- });
2204
-
2205
- var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
2206
-
2207
- var _react = __webpack_require__(1);
2208
-
2209
- var _react2 = _interopRequireDefault(_react);
2210
-
2211
- var _reduxForm = __webpack_require__(2);
2212
-
2213
- var _validate = __webpack_require__(4);
2214
-
2215
- var _validate2 = _interopRequireDefault(_validate);
2216
-
2217
- var _navButtons = __webpack_require__(3);
2218
-
2219
- var _navButtons2 = _interopRequireDefault(_navButtons);
2220
-
2221
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
2222
-
2223
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
2224
-
2225
- function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
2226
-
2227
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
2228
-
2229
- var renderError = function renderError(_ref) {
2230
- var _ref$meta = _ref.meta,
2231
- touched = _ref$meta.touched,
2232
- error = _ref$meta.error;
2233
- return touched && error ? _react2.default.createElement(
2234
- 'div',
2235
- null,
2236
- _react2.default.createElement(
2237
- 'span',
2238
- null,
2239
- error
2240
- ),
2241
- _react2.default.createElement('br', null),
2242
- _react2.default.createElement('br', null)
2243
- ) : false;
2244
- };
2245
-
2246
- var EnvironmentStep = function (_Component) {
2247
- _inherits(EnvironmentStep, _Component);
2248
-
2249
- function EnvironmentStep() {
2250
- _classCallCheck(this, EnvironmentStep);
2251
-
2252
- var _this = _possibleConstructorReturn(this, (EnvironmentStep.__proto__ || Object.getPrototypeOf(EnvironmentStep)).call(this));
2253
-
2254
- _this.state = {
2255
- checking: false,
2256
- checked: false
2257
- };
2258
- return _this;
2259
- }
2260
-
2261
- _createClass(EnvironmentStep, [{
2262
- key: 'componentDidMount',
2263
- value: function componentDidMount() {
2264
- var _props = this.props,
2265
- step = _props.step,
2266
- change = _props.change,
2267
- formValues = _props.formValues;
2268
-
2269
- change(step.mode + 'Endpoint', formValues[step.mode + 'Endpoint'] || 'http://');
2270
- }
2271
- }, {
2272
- key: 'check',
2273
- value: function check() {
2274
- var _this2 = this;
2275
-
2276
- //this.props.actions.callGetWizardSourceData(this.props.hasEndpoint, this.props.step.mode)
2277
- this.setState({ checking: true, checked: false });
2278
- setTimeout(function () {
2279
- _this2.setState({ checking: false, checked: true });
2280
- }, 1000);
2281
- }
2282
- }, {
2283
- key: 'render',
2284
- value: function render() {
2285
- var _this3 = this;
2286
-
2287
- var _props2 = this.props,
2288
- inputs = _props2.inputs,
2289
- step = _props2.step,
2290
- handleSubmit = _props2.handleSubmit,
2291
- nav = _props2.nav,
2292
- reset = _props2.reset,
2293
- formValues = _props2.formValues;
2294
-
2295
- var spinnerStyle = { position: 'relative', width: 24, height: 24, display: 'inline-block' };
2296
- var Button = inputs.Button;
2297
- var Spinner = inputs.Spinner;
2298
- return _react2.default.createElement(
2299
- 'form',
2300
- { onKeyPress: function onKeyPress(e) {
2301
- return e.charCode == 13 ? e.preventDefault() : null;
2302
- } },
2303
- _react2.default.createElement(
2304
- 'div',
2305
- { style: { fontSize: 20 } },
2306
- step.mode.charAt(0).toUpperCase() + step.mode.slice(1),
2307
- ': Define ',
2308
- step.provider,
2309
- ' Environment'
2310
- ),
2311
- _react2.default.createElement('br', null),
2312
- _react2.default.createElement(
2313
- 'div',
2314
- { style: { marginLeft: 16 } },
2315
- _react2.default.createElement(
2316
- 'div',
2317
- null,
2318
- _react2.default.createElement(
2319
- 'div',
2320
- { style: { display: 'inline-block' } },
2321
- _react2.default.createElement(_reduxForm.Field, { name: step.mode + 'Endpoint', type: 'text', component: inputs.rfInput, label: step.provider + ' Endpoint' })
2322
- ),
2323
- !step.credentials ? _react2.default.createElement(
2324
- Button,
2325
- {
2326
- icon: 'sync',
2327
- iconAlign: 'left',
2328
- onClick: function onClick() {
2329
- return _this3.check();
2330
- },
2331
- style: { marginLeft: 8 }
2332
- },
2333
- 'Test Connection'
2334
- ) : null,
2335
- _react2.default.createElement(
2336
- 'div',
2337
- { style: { display: 'inline-block', marginLeft: 12 } },
2338
- this.state.checking ? _react2.default.createElement(
2339
- 'div',
2340
- { style: spinnerStyle },
2341
- _react2.default.createElement(Spinner, null)
2342
- ) : null,
2343
- this.state.checked ? _react2.default.createElement(
2344
- 'span',
2345
- null,
2346
- 'Status: 200 OK'
2347
- ) : null
2348
- )
2349
- )
2350
- ),
2351
- step.credentials ? _react2.default.createElement(
2352
- 'div',
2353
- { style: { marginLeft: 16 } },
2354
- _react2.default.createElement('br', null),
2355
- _react2.default.createElement(
2356
- 'label',
2357
- null,
2358
- step.provider,
2359
- ' Credentials'
2360
- ),
2361
- _react2.default.createElement('br', null),
2362
- _react2.default.createElement(
2363
- 'div',
2364
- { style: { display: 'inline-block', marginLeft: 16 } },
2365
- step.credentials.map(function (cred, index) {
2366
- return _react2.default.createElement(
2367
- 'div',
2368
- { key: index, style: { marginTop: 8 } },
2369
- _react2.default.createElement(_reduxForm.Field, { name: '' + step.mode + cred.name, label: step.provider + ' ' + cred.name, type: 'text', component: inputs.rfInput })
2370
- );
2371
- })
2372
- ),
2373
- _react2.default.createElement(
2374
- Button,
2375
- {
2376
- icon: 'sync',
2377
- iconAlign: 'left',
2378
- onClick: function onClick() {
2379
- return _this3.check();
2380
- },
2381
- style: { marginLeft: 8 }
2382
- },
2383
- 'Test Connection'
2384
- )
2385
- ) : null,
2386
- _react2.default.createElement(_reduxForm.Field, { name: step.mode + 'Environment', component: renderError }),
2387
- _react2.default.createElement('br', null),
2388
- _react2.default.createElement(_navButtons2.default, { handleSubmit: handleSubmit, nav: nav, reset: reset, inputs: inputs }),
2389
- _react2.default.createElement('br', null),
2390
- _react2.default.createElement('br', null)
2391
- );
2392
- }
2393
- }]);
2394
-
2395
- return EnvironmentStep;
2396
- }(_react.Component);
2397
-
2398
- exports.default = (0, _reduxForm.reduxForm)({
2399
- form: 'wizard',
2400
- destroyOnUnmount: false,
2401
- forceUnregisterOnUnmount: true,
2402
- touchOnBlur: false,
2403
- validate: _validate2.default
2404
- })(EnvironmentStep);
2405
-
2406
- /***/ },
2407
- /* 27 */
2408
- /***/ function(module, exports, __webpack_require__) {
2409
-
2410
- 'use strict';
2411
-
2412
- Object.defineProperty(exports, "__esModule", {
2413
- value: true
2414
- });
2415
-
2416
- var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
2417
-
2418
- var _react = __webpack_require__(1);
2419
-
2420
- var _react2 = _interopRequireDefault(_react);
2421
-
2422
- var _reduxForm = __webpack_require__(2);
2423
-
2424
- var _validate = __webpack_require__(4);
2425
-
2426
- var _validate2 = _interopRequireDefault(_validate);
2427
-
2428
- var _navButtons = __webpack_require__(3);
2429
-
2430
- var _navButtons2 = _interopRequireDefault(_navButtons);
2431
-
2432
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
2433
-
2434
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
2435
-
2436
- function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
2437
-
2438
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
2439
-
2440
- var renderError = function renderError(_ref) {
2441
- var _ref$meta = _ref.meta,
2442
- touched = _ref$meta.touched,
2443
- error = _ref$meta.error;
2444
- return touched && error ? _react2.default.createElement(
2445
- 'span',
2446
- null,
2447
- error
2448
- ) : false;
2449
- };
2450
-
2451
- var FilterStep = function (_Component) {
2452
- _inherits(FilterStep, _Component);
2453
-
2454
- function FilterStep() {
2455
- _classCallCheck(this, FilterStep);
2456
-
2457
- return _possibleConstructorReturn(this, (FilterStep.__proto__ || Object.getPrototypeOf(FilterStep)).apply(this, arguments));
2458
- }
2459
-
2460
- _createClass(FilterStep, [{
2461
- key: 'componentDidMount',
2462
- value: function componentDidMount() {
2463
- var _props = this.props,
2464
- step = _props.step,
2465
- change = _props.change,
2466
- formValues = _props.formValues;
2467
-
2468
- change('filter', formValues.filter || 'all');
2469
- }
2470
- }, {
2471
- key: 'render',
2472
- value: function render() {
2473
- var _props2 = this.props,
2474
- inputs = _props2.inputs,
2475
- handleSubmit = _props2.handleSubmit,
2476
- nav = _props2.nav,
2477
- provider = _props2.provider,
2478
- step = _props2.step,
2479
- reset = _props2.reset;
2480
-
2481
- return _react2.default.createElement(
2482
- 'form',
2483
- { onSubmit: handleSubmit, onKeyPress: function onKeyPress(e) {
2484
- return e.charCode == 13 ? e.preventDefault() : null;
2485
- } },
2486
- _react2.default.createElement(
2487
- 'div',
2488
- { style: { fontSize: 20 } },
2489
- 'Source: Filter ',
2490
- step.provider,
2491
- ' Data'
2492
- ),
2493
- _react2.default.createElement('br', null),
2494
- _react2.default.createElement(
2495
- 'div',
2496
- { style: { marginLeft: 16 } },
2497
- _react2.default.createElement(_reduxForm.Field, { name: 'filter', component: inputs.rfRadioGroup, label: 'Data Filter Type',
2498
- options: { all: 'All Data', changed: 'Changed Data Since Last Run' }
2499
- })
2500
- ),
2501
- _react2.default.createElement('br', null),
2502
- _react2.default.createElement(_navButtons2.default, { handleSubmit: handleSubmit, nav: nav, reset: reset, inputs: inputs }),
2503
- _react2.default.createElement('br', null),
2504
- _react2.default.createElement('br', null)
2505
- );
2506
- }
2507
- }]);
2508
-
2509
- return FilterStep;
2510
- }(_react.Component);
2511
-
2512
- exports.default = (0, _reduxForm.reduxForm)({
2513
- form: 'wizard',
2514
- destroyOnUnmount: false,
2515
- forceUnregisterOnUnmount: true,
2516
- touchOnBlur: false,
2517
- validate: _validate2.default
2518
- })(FilterStep);
2519
-
2520
- /***/ },
2521
- /* 28 */
2522
- /***/ function(module, exports, __webpack_require__) {
2523
-
2524
- 'use strict';
2525
-
2526
- Object.defineProperty(exports, "__esModule", {
2527
- value: true
2528
- });
2529
-
2530
- var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
2531
-
2532
- var _react = __webpack_require__(1);
2533
-
2534
- var _react2 = _interopRequireDefault(_react);
2535
-
2536
- var _reduxForm = __webpack_require__(2);
2537
-
2538
- var _validate = __webpack_require__(4);
2539
-
2540
- var _validate2 = _interopRequireDefault(_validate);
2541
-
2542
- var _navButtons = __webpack_require__(3);
2543
-
2544
- var _navButtons2 = _interopRequireDefault(_navButtons);
2545
-
2546
- var _mapAccordion = __webpack_require__(33);
2547
-
2548
- var _mapAccordion2 = _interopRequireDefault(_mapAccordion);
2549
-
2550
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
2551
-
2552
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
2553
-
2554
- function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
2555
-
2556
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
2557
-
2558
- var renderError = function renderError(_ref) {
2559
- var _ref$meta = _ref.meta,
2560
- touched = _ref$meta.touched,
2561
- error = _ref$meta.error;
2562
- return touched && error ? _react2.default.createElement(
2563
- 'span',
2564
- null,
2565
- error
2566
- ) : false;
2567
- };
2568
-
2569
- var mappingPicker = function (_Component) {
2570
- _inherits(mappingPicker, _Component);
2571
-
2572
- function mappingPicker() {
2573
- _classCallCheck(this, mappingPicker);
2574
-
2575
- var _this = _possibleConstructorReturn(this, (mappingPicker.__proto__ || Object.getPrototypeOf(mappingPicker)).call(this));
2576
-
2577
- _this.state = {
2578
- selectedSourceEntity: null,
2579
- selectedDestinationEntity: null,
2580
- selectedSourceField: null,
2581
- shiftPressed: false
2582
- };
2583
- _this.shiftDown = _this.shiftDown.bind(_this);
2584
- _this.shiftUp = _this.shiftUp.bind(_this);
2585
- return _this;
2586
- }
2587
-
2588
- _createClass(mappingPicker, [{
2589
- key: 'componentDidMount',
2590
- value: function componentDidMount() {
2591
- document.addEventListener("keydown", this.shiftDown, false);
2592
- document.addEventListener("keyup", this.shiftUp, false);
2593
- }
2594
- }, {
2595
- key: 'componentWillUnmount',
2596
- value: function componentWillUnmount() {
2597
- document.removeEventListener("keydown", this.shiftDown, false);
2598
- document.removeEventListener("keyup", this.shiftUp, false);
2599
- }
2600
- }, {
2601
- key: 'shiftDown',
2602
- value: function shiftDown(e) {
2603
- if (e.keyCode == 16) {
2604
- this.setState({ shiftPressed: true });
2605
- }
2606
- }
2607
- }, {
2608
- key: 'shiftUp',
2609
- value: function shiftUp(e) {
2610
- if (e.keyCode == 16) {
2611
- this.setState({ shiftPressed: false });
2612
- }
2613
- }
2614
- }, {
2615
- key: 'onSelectSourceField',
2616
- value: function onSelectSourceField(entity, field) {
2617
- var _props = this.props,
2618
- input = _props.input,
2619
- change = _props.change,
2620
- mappings = _props.mappings;
2621
- //input.onChange(value);
2622
-
2623
- this.setState({
2624
- selectedSourceField: field,
2625
- selectedSourceEntity: entity
2626
- });
2627
- }
2628
- }, {
2629
- key: 'onSelectDestinationField',
2630
- value: function onSelectDestinationField(entity, field) {
2631
- var _props2 = this.props,
2632
- input = _props2.input,
2633
- change = _props2.change,
2634
- mappings = _props2.mappings;
2635
-
2636
- if (this.state.selectedSourceField) {
2637
- var obj = Object.assign({}, mappings) || {};
2638
- obj[this.state.selectedSourceEntity + '.' + this.state.selectedSourceField] = entity + '.' + field;
2639
- change('mappings', obj);
2640
- this.setState({
2641
- selectedSourceEntity: null,
2642
- selectedSourceField: null
2643
- });
2644
- }
2645
- }
2646
- }, {
2647
- key: 'render',
2648
- value: function render() {
2649
- var _this2 = this;
2650
-
2651
- var _props3 = this.props,
2652
- includedSourceFields = _props3.includedSourceFields,
2653
- includedDestinationFields = _props3.includedDestinationFields,
2654
- mappings = _props3.mappings,
2655
- step = _props3.step;
2656
-
2657
-
2658
- return _react2.default.createElement(
2659
- 'div',
2660
- null,
2661
- includedSourceFields && includedDestinationFields ? _react2.default.createElement(
2662
- 'div',
2663
- { style: { position: 'relative' } },
2664
- _react2.default.createElement(
2665
- 'div',
2666
- { style: { display: 'inline-block' } },
2667
- _react2.default.createElement(
2668
- 'h5',
2669
- { style: { height: 18, lineHeight: '21px' } },
2670
- 'Source Schema: ',
2671
- this.state.selectedSourceEntity ? null : _react2.default.createElement(
2672
- 'span',
2673
- null,
2674
- '(click field to select)'
2675
- )
2676
- ),
2677
- includedSourceFields ? _react2.default.createElement(_mapAccordion2.default, { values: includedSourceFields, selectedEntity: this.state.selectedSourceEntity,
2678
- pickEntity: function pickEntity(v) {
2679
- _this2.setState({ selectedSourceEntity: v });
2680
- }, selectedField: this.state.selectedSourceField,
2681
- clickField: function clickField(entity, field) {
2682
- return _this2.onSelectSourceField(entity, field);
2683
- }, mappings: mappings, mode: 'source'
2684
- }) : null
2685
- ),
2686
- _react2.default.createElement(
2687
- 'div',
2688
- { style: { display: 'inline-block', marginLeft: 40 } },
2689
- _react2.default.createElement(
2690
- 'h5',
2691
- null,
2692
- 'Destination Schema: ',
2693
- this.state.selectedSourceEntity ? _react2.default.createElement(
2694
- 'span',
2695
- null,
2696
- '(click field to select)'
2697
- ) : null
2698
- ),
2699
- includedDestinationFields ? _react2.default.createElement(_mapAccordion2.default, { values: includedDestinationFields, selectedEntity: this.state.selectedDestinationEntity,
2700
- pickEntity: function pickEntity(v) {
2701
- _this2.setState({ selectedDestinationEntity: v });
2702
- }, mode: 'destination',
2703
- clickField: function clickField(entity, field) {
2704
- return _this2.onSelectDestinationField(entity, field);
2705
- }, mappings: mappings,
2706
- selectedField: this.state.selectedSourceField
2707
- }) : null
2708
- ),
2709
- _react2.default.createElement(
2710
- 'div',
2711
- { style: { position: 'absolute', left: 355, top: 164, fontSize: 34, color: '#AAAAAA' } },
2712
- '\u25B6'
2713
- )
2714
- ) : null
2715
- );
2716
- }
2717
- }]);
2718
-
2719
- return mappingPicker;
2720
- }(_react.Component);
2721
-
2722
- var MapStep = function (_Component2) {
2723
- _inherits(MapStep, _Component2);
2724
-
2725
- function MapStep() {
2726
- _classCallCheck(this, MapStep);
2727
-
2728
- var _this3 = _possibleConstructorReturn(this, (MapStep.__proto__ || Object.getPrototypeOf(MapStep)).call(this));
2729
-
2730
- _this3.clearAllMappings = _this3.clearAllMappings.bind(_this3);
2731
- _this3.autoMap = _this3.autoMap.bind(_this3);
2732
- _this3.clearOneMapping = _this3.clearOneMapping.bind(_this3);
2733
- return _this3;
2734
- }
2735
-
2736
- _createClass(MapStep, [{
2737
- key: 'autoMap',
2738
- value: function autoMap() {
2739
- // this function needs to dig deeper and check every field against every mapping
2740
- var _props4 = this.props,
2741
- formValues = _props4.formValues,
2742
- change = _props4.change,
2743
- step = _props4.step;
2744
-
2745
- var sourceSchema = formValues['sourceSchema'] || {};
2746
- var obj = {};
2747
- for (var key in step.autoMapData) {
2748
- if (sourceSchema && sourceSchema[key.split('.')[0]]) {
2749
- obj[key] = step.autoMapData[key];
2750
- }
2751
- }
2752
- change('mappings', obj);
2753
- }
2754
- }, {
2755
- key: 'clearAllMappings',
2756
- value: function clearAllMappings() {
2757
- this.props.change('mappings', {});
2758
- }
2759
- }, {
2760
- key: 'clearOneMapping',
2761
- value: function clearOneMapping(key) {
2762
- var formValues = this.props.formValues;
2763
-
2764
- var mappings = formValues['mappings'] || {};
2765
- var obj = Object.assign({}, mappings);
2766
- delete obj[key];
2767
- this.props.change('mappings', obj);
2768
- }
2769
- }, {
2770
- key: 'isEmptyObject',
2771
- value: function isEmptyObject(o) {
2772
- var obj = o || {};
2773
- for (var prop in obj) {
2774
- if (Object.prototype.hasOwnProperty.call(obj, prop)) {
2775
- return false;
2776
- }
2777
- }
2778
- return true;
2779
- }
2780
- }, {
2781
- key: 'render',
2782
- value: function render() {
2783
- var _props5 = this.props,
2784
- inputs = _props5.inputs,
2785
- handleSubmit = _props5.handleSubmit,
2786
- nav = _props5.nav,
2787
- formValues = _props5.formValues,
2788
- change = _props5.change,
2789
- step = _props5.step,
2790
- reset = _props5.reset;
2791
-
2792
- var sourceSchema = formValues['sourceSchema'] || {};
2793
- var destinationSchema = formValues['destinationSchema'] || {};
2794
- var mappings = formValues['mappings'] || {};
2795
- var Button = inputs.Button;
2796
- var MapTable = inputs.MapTable;
2797
- return _react2.default.createElement(
2798
- 'form',
2799
- { onKeyPress: function onKeyPress(e) {
2800
- return e.charCode == 13 ? e.preventDefault() : null;
2801
- } },
2802
- _react2.default.createElement(
2803
- 'div',
2804
- { style: { fontSize: 20 } },
2805
- 'Map ',
2806
- step.sourceProvider,
2807
- ' to ',
2808
- step.destinationProvider
2809
- ),
2810
- _react2.default.createElement('br', null),
2811
- step.autoMapData ? _react2.default.createElement(
2812
- Button,
2813
- { type: 'brand', onClick: this.autoMap, style: { marginRight: 5 } },
2814
- 'Automap'
2815
- ) : null,
2816
- _react2.default.createElement(
2817
- Button,
2818
- { type: 'brand', onClick: this.clearAllMappings },
2819
- 'Clear All Mappings'
2820
- ),
2821
- _react2.default.createElement('br', null),
2822
- _react2.default.createElement('br', null),
2823
- _react2.default.createElement(_reduxForm.Field, { name: 'mappings', component: mappingPicker, includedSourceFields: sourceSchema,
2824
- includedDestinationFields: destinationSchema, change: change, mappings: mappings, step: step }),
2825
- _react2.default.createElement('br', null),
2826
- !this.isEmptyObject(mappings) ? _react2.default.createElement(
2827
- 'div',
2828
- null,
2829
- _react2.default.createElement(MapTable, { mappings: mappings, clearOneMapping: this.clearOneMapping })
2830
- ) : null,
2831
- _react2.default.createElement('br', null),
2832
- _react2.default.createElement(_navButtons2.default, { handleSubmit: handleSubmit, nav: nav, reset: reset, inputs: inputs }),
2833
- _react2.default.createElement('br', null),
2834
- _react2.default.createElement('br', null)
2835
- );
2836
- }
2837
- }]);
2838
-
2839
- return MapStep;
2840
- }(_react.Component);
2841
-
2842
- exports.default = (0, _reduxForm.reduxForm)({
2843
- form: 'wizard',
2844
- destroyOnUnmount: false,
2845
- forceUnregisterOnUnmount: true,
2846
- touchOnBlur: false,
2847
- validate: _validate2.default
2848
- })(MapStep);
2849
-
2850
- /***/ },
2851
- /* 29 */
2852
- /***/ function(module, exports, __webpack_require__) {
2853
-
2854
- 'use strict';
2855
-
2856
- Object.defineProperty(exports, "__esModule", {
2857
- value: true
2858
- });
2859
-
2860
- var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
2861
-
2862
- var _react = __webpack_require__(1);
2863
-
2864
- var _react2 = _interopRequireDefault(_react);
2865
-
2866
- var _reduxForm = __webpack_require__(2);
2867
-
2868
- var _validate = __webpack_require__(4);
2869
-
2870
- var _validate2 = _interopRequireDefault(_validate);
2871
-
2872
- var _navButtons = __webpack_require__(3);
2873
-
2874
- var _navButtons2 = _interopRequireDefault(_navButtons);
2875
-
2876
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
2877
-
2878
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
2879
-
2880
- function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
2881
-
2882
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
2883
-
2884
- var renderError = function renderError(_ref) {
2885
- var _ref$meta = _ref.meta,
2886
- touched = _ref$meta.touched,
2887
- error = _ref$meta.error;
2888
- return touched && error ? _react2.default.createElement(
2889
- 'div',
2890
- null,
2891
- _react2.default.createElement(
2892
- 'span',
2893
- null,
2894
- error
2895
- ),
2896
- _react2.default.createElement('br', null),
2897
- _react2.default.createElement('br', null)
2898
- ) : false;
2899
- };
2900
-
2901
- var NameStep = function (_Component) {
2902
- _inherits(NameStep, _Component);
2903
-
2904
- function NameStep() {
2905
- _classCallCheck(this, NameStep);
2906
-
2907
- return _possibleConstructorReturn(this, (NameStep.__proto__ || Object.getPrototypeOf(NameStep)).apply(this, arguments));
2908
- }
2909
-
2910
- _createClass(NameStep, [{
2911
- key: 'componentDidMount',
2912
- value: function componentDidMount() {
2913
- var _props = this.props,
2914
- step = _props.step,
2915
- change = _props.change,
2916
- formValues = _props.formValues;
2917
-
2918
- change('title', formValues.title || step.name);
2919
- }
2920
- }, {
2921
- key: 'render',
2922
- value: function render() {
2923
- var _props2 = this.props,
2924
- inputs = _props2.inputs,
2925
- handleSubmit = _props2.handleSubmit,
2926
- nav = _props2.nav,
2927
- reset = _props2.reset;
2928
-
2929
- return _react2.default.createElement(
2930
- 'form',
2931
- { onKeyPress: function onKeyPress(e) {
2932
- return e.charCode === 13 ? e.preventDefault() : null;
2933
- } },
2934
- _react2.default.createElement(
2935
- 'div',
2936
- { style: { fontSize: 20 } },
2937
- 'Name your Integration'
2938
- ),
2939
- _react2.default.createElement('br', null),
2940
- _react2.default.createElement(
2941
- 'div',
2942
- { style: { marginLeft: 16 } },
2943
- _react2.default.createElement(_reduxForm.Field, { name: 'title', type: 'text', component: inputs.rfInput, label: 'Name' })
2944
- ),
2945
- _react2.default.createElement('br', null),
2946
- _react2.default.createElement(_reduxForm.Field, { name: 'customer', component: renderError }),
2947
- _react2.default.createElement('br', null),
2948
- _react2.default.createElement(_navButtons2.default, { handleSubmit: handleSubmit, reset: reset, nav: nav, inputs: inputs }),
2949
- _react2.default.createElement('br', null),
2950
- _react2.default.createElement('br', null)
2951
- );
2952
- }
2953
- }]);
2954
-
2955
- return NameStep;
2956
- }(_react.Component);
2957
-
2958
- exports.default = (0, _reduxForm.reduxForm)({
2959
- form: 'wizard',
2960
- destroyOnUnmount: false,
2961
- forceUnregisterOnUnmount: true,
2962
- touchOnBlur: false,
2963
- validate: _validate2.default
2964
- })(NameStep);
2965
-
2966
- /***/ },
2967
- /* 30 */
2968
- /***/ function(module, exports, __webpack_require__) {
2969
-
2970
- 'use strict';
2971
-
2972
- Object.defineProperty(exports, "__esModule", {
2973
- value: true
2974
- });
2975
-
2976
- var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
2977
-
2978
- var _react = __webpack_require__(1);
2979
-
2980
- var _react2 = _interopRequireDefault(_react);
2981
-
2982
- var _reduxForm = __webpack_require__(2);
2983
-
2984
- var _validate = __webpack_require__(4);
2985
-
2986
- var _validate2 = _interopRequireDefault(_validate);
2987
-
2988
- var _navButtons = __webpack_require__(3);
2989
-
2990
- var _navButtons2 = _interopRequireDefault(_navButtons);
2991
-
2992
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
2993
-
2994
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
2995
-
2996
- function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
2997
-
2998
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
2999
-
3000
- var renderError = function renderError(_ref) {
3001
- var _ref$meta = _ref.meta,
3002
- touched = _ref$meta.touched,
3003
- error = _ref$meta.error;
3004
- return touched && error ? _react2.default.createElement(
3005
- 'span',
3006
- null,
3007
- error
3008
- ) : false;
3009
- };
3010
-
3011
- var PhaseStep = function (_Component) {
3012
- _inherits(PhaseStep, _Component);
3013
-
3014
- function PhaseStep() {
3015
- _classCallCheck(this, PhaseStep);
3016
-
3017
- return _possibleConstructorReturn(this, (PhaseStep.__proto__ || Object.getPrototypeOf(PhaseStep)).apply(this, arguments));
3018
- }
3019
-
3020
- _createClass(PhaseStep, [{
3021
- key: 'componentDidMount',
3022
- value: function componentDidMount() {
3023
- var _props = this.props,
3024
- step = _props.step,
3025
- change = _props.change,
3026
- formValues = _props.formValues;
3027
-
3028
- change('phase', formValues.phase || 'initial');
3029
- }
3030
- }, {
3031
- key: 'render',
3032
- value: function render() {
3033
- var _props2 = this.props,
3034
- inputs = _props2.inputs,
3035
- handleSubmit = _props2.handleSubmit,
3036
- nav = _props2.nav,
3037
- reset = _props2.reset;
3038
-
3039
- return _react2.default.createElement(
3040
- 'form',
3041
- { onKeyPress: function onKeyPress(e) {
3042
- return e.charCode == 13 ? e.preventDefault() : null;
3043
- } },
3044
- _react2.default.createElement(
3045
- 'div',
3046
- { style: { fontSize: 20 } },
3047
- 'Choose Implementation Phase'
3048
- ),
3049
- _react2.default.createElement('br', null),
3050
- _react2.default.createElement(
3051
- 'div',
3052
- { style: { marginLeft: 16 } },
3053
- _react2.default.createElement(_reduxForm.Field, { name: 'phase', component: inputs.rfRadioGroup, label: 'Implementation Phase',
3054
- options: { initial: 'Initial Connection', testing: 'Build for Testing', production: 'Build for Production' }
3055
- })
3056
- ),
3057
- _react2.default.createElement('br', null),
3058
- _react2.default.createElement(_navButtons2.default, { handleSubmit: handleSubmit, nav: nav, reset: reset, inputs: inputs }),
3059
- _react2.default.createElement('br', null),
3060
- _react2.default.createElement('br', null)
3061
- );
3062
- }
3063
- }]);
3064
-
3065
- return PhaseStep;
3066
- }(_react.Component);
3067
-
3068
- exports.default = (0, _reduxForm.reduxForm)({
3069
- form: 'wizard',
3070
- destroyOnUnmount: false,
3071
- forceUnregisterOnUnmount: true,
3072
- touchOnBlur: false,
3073
- validate: _validate2.default
3074
- })(PhaseStep);
3075
-
3076
- /***/ },
3077
- /* 31 */
3078
- /***/ function(module, exports, __webpack_require__) {
3079
-
3080
- 'use strict';
3081
-
3082
- Object.defineProperty(exports, "__esModule", {
3083
- value: true
3084
- });
3085
-
3086
- var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
3087
-
3088
- var _react = __webpack_require__(1);
3089
-
3090
- var _react2 = _interopRequireDefault(_react);
3091
-
3092
- var _reduxForm = __webpack_require__(2);
3093
-
3094
- var _validate = __webpack_require__(4);
3095
-
3096
- var _validate2 = _interopRequireDefault(_validate);
3097
-
3098
- var _navButtons = __webpack_require__(3);
3099
-
3100
- var _navButtons2 = _interopRequireDefault(_navButtons);
3101
-
3102
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
3103
-
3104
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
3105
-
3106
- function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
3107
-
3108
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
3109
-
3110
- var renderError = function renderError(_ref) {
3111
- var _ref$meta = _ref.meta,
3112
- touched = _ref$meta.touched,
3113
- error = _ref$meta.error;
3114
- return touched && error ? _react2.default.createElement(
3115
- 'span',
3116
- null,
3117
- error
3118
- ) : false;
3119
- };
3120
-
3121
- var PreviewStep = function (_Component) {
3122
- _inherits(PreviewStep, _Component);
3123
-
3124
- function PreviewStep() {
3125
- _classCallCheck(this, PreviewStep);
3126
-
3127
- var _this = _possibleConstructorReturn(this, (PreviewStep.__proto__ || Object.getPrototypeOf(PreviewStep)).call(this));
3128
-
3129
- _this.state = {
3130
- previewing: false,
3131
- previewed: false
3132
- };
3133
- _this.preview = _this.preview.bind(_this);
3134
- return _this;
3135
- }
3136
-
3137
- _createClass(PreviewStep, [{
3138
- key: 'preview',
3139
- value: function preview() {
3140
- var _this2 = this;
3141
-
3142
- this.setState({ previewing: true });
3143
- setTimeout(function () {
3144
- _this2.setState({ previewed: true });
3145
- }, 1000);
3146
- }
3147
- }, {
3148
- key: 'isEmptyObject',
3149
- value: function isEmptyObject(o) {
3150
- var obj = o || {};
3151
- for (var prop in obj) {
3152
- if (Object.prototype.hasOwnProperty.call(obj, prop)) {
3153
- return false;
3154
- }
3155
- }
3156
- return true;
3157
- }
3158
- }, {
3159
- key: 'render',
3160
- value: function render() {
3161
- var _props = this.props,
3162
- inputs = _props.inputs,
3163
- handleSubmit = _props.handleSubmit,
3164
- nav = _props.nav,
3165
- step = _props.step,
3166
- reset = _props.reset,
3167
- formValues = _props.formValues;
3168
- var mappings = formValues.mappings;
3169
- var Button = inputs.Button,
3170
- Spinner = inputs.Spinner,
3171
- PreviewTable = inputs.PreviewTable;
3172
-
3173
- var spinnerStyle = { position: 'relative', width: 32, height: 8, display: 'inline-block' };
3174
- return _react2.default.createElement(
3175
- 'form',
3176
- { onKeyPress: function onKeyPress(e) {
3177
- return e.charCode === 13 ? e.preventDefault() : null;
3178
- } },
3179
- _react2.default.createElement(
3180
- 'div',
3181
- { style: { fontSize: 20 } },
3182
- 'Destination Data Preview'
3183
- ),
3184
- _react2.default.createElement('br', null),
3185
- _react2.default.createElement(
3186
- Button,
3187
- { type: 'brand', className: 'btn btn-primary', onClick: this.preview },
3188
- 'Preview Integration'
3189
- ),
3190
- this.state.previewing ? _react2.default.createElement(
3191
- 'div',
3192
- { style: { display: 'inline-block', marginLeft: 18 } },
3193
- !this.state.previewed ? _react2.default.createElement(
3194
- 'div',
3195
- { style: spinnerStyle },
3196
- _react2.default.createElement(Spinner, null)
3197
- ) : null
3198
- ) : null,
3199
- _react2.default.createElement('br', null),
3200
- _react2.default.createElement('br', null),
3201
- _react2.default.createElement(
3202
- 'div',
3203
- null,
3204
- 'No data will be written during the preview process.'
3205
- ),
3206
- _react2.default.createElement('br', null),
3207
- !this.isEmptyObject(mappings) && this.state.previewed ? _react2.default.createElement(PreviewTable, { mappings: mappings, step: step }) : null,
3208
- _react2.default.createElement('br', null),
3209
- _react2.default.createElement(_navButtons2.default, { handleSubmit: handleSubmit, nav: nav, reset: reset, inputs: inputs }),
3210
- _react2.default.createElement('br', null),
3211
- _react2.default.createElement('br', null)
3212
- );
3213
- }
3214
- }]);
3215
-
3216
- return PreviewStep;
3217
- }(_react.Component);
3218
-
3219
- exports.default = (0, _reduxForm.reduxForm)({
3220
- form: 'wizard',
3221
- destroyOnUnmount: false,
3222
- forceUnregisterOnUnmount: true,
3223
- touchOnBlur: false,
3224
- validate: _validate2.default
3225
- })(PreviewStep);
3226
-
3227
- /***/ },
3228
- /* 32 */
3229
- /***/ function(module, exports, __webpack_require__) {
3230
-
3231
- 'use strict';
3232
-
3233
- Object.defineProperty(exports, "__esModule", {
3234
- value: true
3235
- });
3236
-
3237
- var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
3238
-
3239
- var _react = __webpack_require__(1);
3240
-
3241
- var _react2 = _interopRequireDefault(_react);
3242
-
3243
- var _reduxForm = __webpack_require__(2);
3244
-
3245
- var _validate = __webpack_require__(4);
3246
-
3247
- var _validate2 = _interopRequireDefault(_validate);
3248
-
3249
- var _navButtons = __webpack_require__(3);
3250
-
3251
- var _navButtons2 = _interopRequireDefault(_navButtons);
3252
-
3253
- var _schemaAccordion = __webpack_require__(34);
3254
-
3255
- var _schemaAccordion2 = _interopRequireDefault(_schemaAccordion);
3256
-
3257
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
3258
-
3259
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
3260
-
3261
- function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
3262
-
3263
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
3264
-
3265
- var renderError = function renderError(_ref) {
3266
- var _ref$meta = _ref.meta,
3267
- touched = _ref$meta.touched,
3268
- error = _ref$meta.error;
3269
- return touched && error ? _react2.default.createElement(
3270
- 'div',
3271
- null,
3272
- _react2.default.createElement(
3273
- 'span',
3274
- null,
3275
- error
3276
- ),
3277
- _react2.default.createElement('br', null),
3278
- _react2.default.createElement('br', null)
3279
- ) : false;
3280
- };
3281
-
3282
- var SchemaStep = function (_Component) {
3283
- _inherits(SchemaStep, _Component);
3284
-
3285
- function SchemaStep() {
3286
- _classCallCheck(this, SchemaStep);
3287
-
3288
- var _this = _possibleConstructorReturn(this, (SchemaStep.__proto__ || Object.getPrototypeOf(SchemaStep)).call(this));
3289
-
3290
- _this.state = {
3291
- newField: '',
3292
- newEntity: '',
3293
- selectedDataEntity: ''
3294
- };
3295
- _this.addCustomField = _this.addCustomField.bind(_this);
3296
- _this.newFieldKeyPress = _this.newFieldKeyPress.bind(_this);
3297
- _this.addCustomEntity = _this.addCustomEntity.bind(_this);
3298
- _this.newEntityKeyPress = _this.newEntityKeyPress.bind(_this);
3299
- _this.loadDefault = _this.loadDefault.bind(_this);
3300
- _this.clearAllData = _this.clearAllData.bind(_this);
3301
- return _this;
3302
- }
3303
-
3304
- _createClass(SchemaStep, [{
3305
- key: 'loadDefault',
3306
- value: function loadDefault() {
3307
- var _props = this.props,
3308
- step = _props.step,
3309
- actions = _props.actions,
3310
- change = _props.change;
3311
-
3312
- actions.changeWizardData(step.defaultSchema, step.mode);
3313
- change(step.mode + 'Schema', step.defaultSchema);
3314
- }
3315
- }, {
3316
- key: 'clearAllData',
3317
- value: function clearAllData() {
3318
- var _props2 = this.props,
3319
- step = _props2.step,
3320
- actions = _props2.actions,
3321
- change = _props2.change;
3322
-
3323
- this.setState({ selectedDataEntity: '' });
3324
- actions.changeWizardData(null, step.mode);
3325
- change(step.mode + 'Schema', {});
3326
- }
3327
- }, {
3328
- key: 'addCustomField',
3329
- value: function addCustomField() {
3330
- var _props3 = this.props,
3331
- step = _props3.step,
3332
- actions = _props3.actions,
3333
- change = _props3.change,
3334
- formValues = _props3.formValues;
3335
-
3336
- var includedFields = formValues[step.mode + 'Schema'] || {};
3337
- actions.addFieldToWizardData(this.state.newField, this.state.selectedDataEntity, step.mode);
3338
- this.setState({ newField: '' });
3339
- var obj = Object.assign({}, includedFields);
3340
- var entityObj = Object.assign({}, obj[this.state.selectedDataEntity]);
3341
- entityObj[this.state.newField] = true;
3342
- obj[this.state.selectedDataEntity] = entityObj;
3343
- change(step.mode + 'Schema', obj);
3344
- }
3345
- }, {
3346
- key: 'newFieldKeyPress',
3347
- value: function newFieldKeyPress(e) {
3348
- if (e.charCode === 13) {
3349
- e.preventDefault();
3350
- this.addCustomField();
3351
- }
3352
- }
3353
- }, {
3354
- key: 'addCustomEntity',
3355
- value: function addCustomEntity() {
3356
- var _props4 = this.props,
3357
- step = _props4.step,
3358
- actions = _props4.actions,
3359
- change = _props4.change,
3360
- formValues = _props4.formValues;
3361
-
3362
- var includedFields = formValues[step.mode + 'Schema'] || {};
3363
- actions.addEntityToWizardData(this.state.newEntity, step.mode);
3364
- var obj = Object.assign({}, includedFields) || {};
3365
- obj[this.state.newEntity] = {};
3366
- change(step.mode + 'Schema', obj);
3367
- this.setState({ selectedDataEntity: this.state.newEntity, newEntity: '' });
3368
- }
3369
- }, {
3370
- key: 'newEntityKeyPress',
3371
- value: function newEntityKeyPress(e) {
3372
- if (e.charCode === 13) {
3373
- e.preventDefault();
3374
- this.addCustomEntity();
3375
- }
3376
- }
3377
- }, {
3378
- key: 'selectAll',
3379
- value: function selectAll(dataEntity) {
3380
- var _props5 = this.props,
3381
- wizard = _props5.wizard,
3382
- change = _props5.change,
3383
- step = _props5.step,
3384
- formValues = _props5.formValues;
3385
-
3386
- var includedFields = formValues[step.mode + 'Schema'] || {};
3387
- var all = {};
3388
- for (var key in wizard.data[step.mode][this.state.selectedDataEntity]) {
3389
- all[key] = true;
3390
- }
3391
- var obj = Object.assign({}, includedFields);
3392
- obj[this.state.selectedDataEntity] = all;
3393
- change(step.mode + 'Schema', obj);
3394
- }
3395
- }, {
3396
- key: 'deselectAll',
3397
- value: function deselectAll(dataEntity) {
3398
- var _props6 = this.props,
3399
- change = _props6.change,
3400
- step = _props6.step,
3401
- formValues = _props6.formValues;
3402
-
3403
- var includedFields = formValues[step.mode + 'Schema'] || {};
3404
- var obj = Object.assign({}, includedFields);
3405
- obj[this.state.selectedDataEntity] = {};
3406
- change(step.mode + 'Schema', obj);
3407
- }
3408
- }, {
3409
- key: 'render',
3410
- value: function render() {
3411
- var _this2 = this;
3412
-
3413
- var _props7 = this.props,
3414
- inputs = _props7.inputs,
3415
- handleSubmit = _props7.handleSubmit,
3416
- nav = _props7.nav,
3417
- wizard = _props7.wizard,
3418
- formValues = _props7.formValues,
3419
- change = _props7.change,
3420
- step = _props7.step,
3421
- actions = _props7.actions,
3422
- reset = _props7.reset;
3423
-
3424
- var includedFields = formValues[step.mode + 'Schema'] || {};
3425
- var Button = inputs.Button;
3426
- var Input = inputs.Input;
3427
- var Select = inputs.Select;
3428
- var smallButtonStyle = {
3429
- marginLeft: 4,
3430
- height: 22,
3431
- width: 68,
3432
- lineHeight: '20px',
3433
- padding: 0,
3434
- verticalAlign: 'middle',
3435
- marginBottom: 4,
3436
- fontSize: 10
3437
- };
3438
- return _react2.default.createElement(
3439
- 'form',
3440
- { onKeyPress: function onKeyPress(e) {
3441
- return e.charCode == 13 ? e.preventDefault() : null;
3442
- } },
3443
- _react2.default.createElement(
3444
- 'div',
3445
- { style: { fontSize: 20 } },
3446
- step.mode.charAt(0).toUpperCase() + step.mode.slice(1),
3447
- ': Select ',
3448
- step.provider,
3449
- ' Data Definition'
3450
- ),
3451
- _react2.default.createElement('br', null),
3452
- _react2.default.createElement(
3453
- 'div',
3454
- { style: { marginLeft: 16 } },
3455
- _react2.default.createElement(
3456
- Button,
3457
- { type: 'brand', onClick: this.loadDefault },
3458
- 'Load Default'
3459
- ),
3460
- _react2.default.createElement(
3461
- Button,
3462
- { type: 'brand', onClick: this.clearAllData },
3463
- 'Clear All Data'
3464
- ),
3465
- _react2.default.createElement('br', null),
3466
- _react2.default.createElement('br', null),
3467
- _react2.default.createElement(
3468
- 'div',
3469
- { style: { display: 'inline-block' } },
3470
- _react2.default.createElement(Input, { label: 'Add Data Entity', type: 'text', value: this.state.newEntity, onChange: function onChange(e) {
3471
- return !e.target.value.includes('.') ? _this2.setState({ newEntity: e.target.value }) : {};
3472
- },
3473
- style: { width: 245 }, placeholder: 'Add Custom Data Entity', onKeyPress: this.newEntityKeyPress })
3474
- ),
3475
- _react2.default.createElement(
3476
- Button,
3477
- { type: 'brand', onClick: this.addCustomEntity, disabled: !this.state.newEntity,
3478
- style: { display: 'inline-block', marginLeft: 12 } },
3479
- 'Add'
3480
- ),
3481
- _react2.default.createElement('br', null),
3482
- _react2.default.createElement('br', null),
3483
- wizard.data && wizard.data[step.mode] ? _react2.default.createElement(Select, { wizard: wizard, step: step, selectedDataEntity: this.state.selectedDataEntity,
3484
- onSelect: function onSelect(v) {
3485
- return _this2.setState({ selectedDataEntity: v });
3486
- }
3487
- }) : null
3488
- ),
3489
- _react2.default.createElement('br', null),
3490
- this.state.selectedDataEntity || wizard.data && wizard.data[step.mode] ? _react2.default.createElement(
3491
- 'div',
3492
- { style: { position: 'relative' } },
3493
- _react2.default.createElement(
3494
- 'div',
3495
- { style: { display: 'inline-block' } },
3496
- _react2.default.createElement(
3497
- 'h5',
3498
- { style: { display: 'inline-block', maxWidth: 205, whiteSpace: 'nowrap' } },
3499
- this.state.selectedDataEntity ? _react2.default.createElement(
3500
- 'strong',
3501
- null,
3502
- this.state.selectedDataEntity
3503
- ) : _react2.default.createElement(
3504
- 'span',
3505
- null,
3506
- 'Field Types:'
3507
- )
3508
- ),
3509
- wizard.data && wizard.data[step.mode] ? _react2.default.createElement(
3510
- 'div',
3511
- { style: { float: 'right' } },
3512
- _react2.default.createElement(
3513
- Button,
3514
- { type: 'brand', style: smallButtonStyle,
3515
- onClick: function onClick(e) {
3516
- return _this2.deselectAll(_this2.state.selectedDataEntity);
3517
- } },
3518
- 'Remove All'
3519
- ),
3520
- _react2.default.createElement(
3521
- Button,
3522
- { type: 'brand', style: smallButtonStyle,
3523
- onClick: function onClick(e) {
3524
- return _this2.selectAll(_this2.state.selectedDataEntity);
3525
- } },
3526
- 'Select All'
3527
- )
3528
- ) : null,
3529
- _react2.default.createElement(
3530
- 'div',
3531
- { style: { background: 'white', height: 288, width: 350, overflow: 'scroll', border: '1px solid rgb(204, 205, 207)', padding: '12px 0 12px 20px' } },
3532
- _react2.default.createElement(
3533
- 'div',
3534
- { style: { marginBottom: 7 } },
3535
- _react2.default.createElement(Input, { className: 'form-control', type: 'text', value: this.state.newField, onChange: function onChange(e) {
3536
- return !e.target.value.includes('.') ? _this2.setState({ newField: e.target.value }) : {};
3537
- },
3538
- style: { width: 250, display: 'inline-block' }, placeholder: 'Add Field', onKeyPress: this.newFieldKeyPress, disabled: !this.state.selectedDataEntity
3539
- }),
3540
- _react2.default.createElement(
3541
- Button,
3542
- { type: 'brand', onClick: this.addCustomField, disabled: !this.state.newField,
3543
- style: { float: 'right', marginRight: 19 } },
3544
- 'Add'
3545
- )
3546
- ),
3547
- wizard.data && wizard.data[step.mode] && wizard.data[step.mode][this.state.selectedDataEntity] && Object.keys(wizard.data[step.mode][this.state.selectedDataEntity]).map(function (field, i) {
3548
- return _react2.default.createElement(
3549
- 'div',
3550
- { key: i },
3551
- _react2.default.createElement(_reduxForm.Field, { name: step.mode + 'Schema.' + _this2.state.selectedDataEntity + '.' + field,
3552
- component: inputs.rfCheckbox, type: 'checkbox', label: field })
3553
- );
3554
- })
3555
- )
3556
- ),
3557
- _react2.default.createElement(
3558
- 'div',
3559
- { style: { display: 'inline-block', marginLeft: 40 } },
3560
- _react2.default.createElement(
3561
- 'h5',
3562
- null,
3563
- 'Source Schema:'
3564
- ),
3565
- includedFields ? _react2.default.createElement(_schemaAccordion2.default, { values: includedFields, selectedEntity: this.state.selectedDataEntity,
3566
- pickEntity: function pickEntity(v) {
3567
- _this2.setState({ selectedDataEntity: v });
3568
- }
3569
- }) : null
3570
- ),
3571
- _react2.default.createElement(
3572
- 'div',
3573
- { style: { position: 'absolute', left: 358, top: 154, fontSize: 28, color: '#BBBBBB' } },
3574
- '\u25B6'
3575
- ),
3576
- _react2.default.createElement('br', null)
3577
- ) : null,
3578
- _react2.default.createElement(_navButtons2.default, { handleSubmit: handleSubmit, nav: nav, reset: reset, inputs: inputs }),
3579
- _react2.default.createElement('br', null),
3580
- _react2.default.createElement('br', null)
3581
- );
3582
- }
3583
- }]);
3584
-
3585
- return SchemaStep;
3586
- }(_react.Component);
3587
-
3588
- exports.default = (0, _reduxForm.reduxForm)({
3589
- form: 'wizard',
3590
- destroyOnUnmount: false,
3591
- forceUnregisterOnUnmount: true,
3592
- touchOnBlur: false,
3593
- validate: _validate2.default
3594
- })(SchemaStep);
3595
-
3596
- /***/ },
3597
- /* 33 */
3598
- /***/ function(module, exports, __webpack_require__) {
3599
-
3600
- 'use strict';
3601
-
3602
- Object.defineProperty(exports, "__esModule", {
3603
- value: true
3604
- });
3605
-
3606
- var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
3607
-
3608
- var _react = __webpack_require__(1);
3609
-
3610
- var _react2 = _interopRequireDefault(_react);
3611
-
3612
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
3613
-
3614
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
3615
-
3616
- function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
3617
-
3618
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
3619
-
3620
- var MapAccordion = function (_React$Component) {
3621
- _inherits(MapAccordion, _React$Component);
3622
-
3623
- function MapAccordion() {
3624
- _classCallCheck(this, MapAccordion);
3625
-
3626
- var _this = _possibleConstructorReturn(this, (MapAccordion.__proto__ || Object.getPrototypeOf(MapAccordion)).call(this));
3627
-
3628
- _this.state = {
3629
- innerSelectedEntity: ''
3630
- };
3631
- return _this;
3632
- }
3633
-
3634
- _createClass(MapAccordion, [{
3635
- key: 'scrollToTop',
3636
- value: function scrollToTop(element, scrollDuration, scrollTarget) {
3637
- var initial = element.scrollTop,
3638
- distance = scrollTarget - initial;
3639
- var step = distance / scrollDuration;
3640
- var scrollCount = initial,
3641
- count = scrollDuration;
3642
- function go(newTimestamp) {
3643
- scrollCount += step;
3644
- element.scrollTop = Math.round(scrollCount);
3645
- count--;
3646
- if (count == 0) return;
3647
- window.requestAnimationFrame(go);
3648
- }
3649
- if (step != 0) {
3650
- window.requestAnimationFrame(go);
3651
- }
3652
- }
3653
- }, {
3654
- key: 'render',
3655
- value: function render() {
3656
- var _this2 = this;
3657
-
3658
- var _props = this.props,
3659
- pickEntity = _props.pickEntity,
3660
- values = _props.values,
3661
- selectedEntity = _props.selectedEntity,
3662
- clickField = _props.clickField,
3663
- mappings = _props.mappings,
3664
- selectedField = _props.selectedField,
3665
- mode = _props.mode;
3666
-
3667
-
3668
- return _react2.default.createElement(
3669
- 'div',
3670
- { ref: function ref(_ref) {
3671
- _this2.main = _ref;
3672
- }, id: 'main',
3673
- style: {
3674
- background: 'white', height: 288, width: 350, overflow: 'scroll',
3675
- border: '1px solid rgb(204, 205, 207)', padding: 12
3676
- }
3677
- },
3678
- Object.keys(values).map(function (entity, i) {
3679
- return _react2.default.createElement(
3680
- 'div',
3681
- { key: i, className: 'accordion-panel',
3682
- style: { display: !Object.keys(values[entity]).every(function (field) {
3683
- return !values[entity][field];
3684
- }) ? 'block' : 'none' }
3685
- },
3686
- _react2.default.createElement(
3687
- 'div',
3688
- { className: 'accordion-panel-header',
3689
- onClick: function onClick() {
3690
- _this2.setState({ innerSelectedEntity: selectedEntity == entity && _this2.state.innerSelectedEntity == entity ? '' : entity });
3691
- _this2.scrollToTop(_this2.main, 18, i * 45 + 6);
3692
- pickEntity(entity);
3693
- }
3694
- },
3695
- entity
3696
- ),
3697
- _react2.default.createElement(
3698
- 'div',
3699
- { className: 'accordion-panel-collapse',
3700
- style: {
3701
- height: _this2.state.innerSelectedEntity == entity ? Object.keys(values[entity]).length * 19 + 19 : 0
3702
- }
3703
- },
3704
- _react2.default.createElement('div', { style: { height: 9 } }),
3705
- Object.keys(values[entity]).filter(function (f) {
3706
- return values[entity][f];
3707
- }).map(function (field, ii) {
3708
- return _react2.default.createElement(
3709
- 'div',
3710
- { key: ii, className: mode == 'destination' && !selectedField ? "" : "wizard-schema-field",
3711
- style: {
3712
- paddingLeft: 5,
3713
- background: selectedField && selectedField == field ? '#dfe0e0' : 'initial',
3714
- fontWeight: mode == 'source' && mappings && Object.keys(mappings).includes(entity + '.' + field) ? 'bold' : 'normal',
3715
- color: mode == 'destination' && !selectedField ? 'grey' : 'black'
3716
- },
3717
- onClick: function onClick() {
3718
- return clickField(entity, field);
3719
- }
3720
- },
3721
- field
3722
- );
3723
- }),
3724
- _react2.default.createElement('div', { style: { height: 9 } })
3725
- )
3726
- );
3727
- })
3728
- );
3729
- }
3730
- }]);
3731
-
3732
- return MapAccordion;
3733
- }(_react2.default.Component);
3734
-
3735
- exports.default = MapAccordion;
3736
-
3737
- /***/ },
3738
- /* 34 */
3739
- /***/ function(module, exports, __webpack_require__) {
3740
-
3741
- 'use strict';
3742
-
3743
- Object.defineProperty(exports, "__esModule", {
3744
- value: true
3745
- });
3746
-
3747
- var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
3748
-
3749
- var _react = __webpack_require__(1);
3750
-
3751
- var _react2 = _interopRequireDefault(_react);
3752
-
3753
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
3754
-
3755
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
3756
-
3757
- function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
3758
-
3759
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
3760
-
3761
- var SchemaAccordion = function (_React$Component) {
3762
- _inherits(SchemaAccordion, _React$Component);
3763
-
3764
- function SchemaAccordion() {
3765
- _classCallCheck(this, SchemaAccordion);
3766
-
3767
- var _this = _possibleConstructorReturn(this, (SchemaAccordion.__proto__ || Object.getPrototypeOf(SchemaAccordion)).call(this));
3768
-
3769
- _this.state = {
3770
- innerSelectedEntity: ''
3771
- };
3772
- return _this;
3773
- }
3774
-
3775
- _createClass(SchemaAccordion, [{
3776
- key: 'scrollToTop',
3777
- value: function scrollToTop(element, scrollDuration, scrollTarget) {
3778
- var initial = element.scrollTop,
3779
- distance = scrollTarget - initial;
3780
- var step = distance / scrollDuration;
3781
- var scrollCount = initial,
3782
- count = scrollDuration;
3783
- function go(newTimestamp) {
3784
- scrollCount += step;
3785
- element.scrollTop = Math.round(scrollCount);
3786
- count--;
3787
- if (count == 0) return;
3788
- window.requestAnimationFrame(go);
3789
- }
3790
- if (step != 0) {
3791
- window.requestAnimationFrame(go);
3792
- }
3793
- }
3794
- }, {
3795
- key: 'render',
3796
- value: function render() {
3797
- var _this2 = this;
3798
-
3799
- var _props = this.props,
3800
- pickEntity = _props.pickEntity,
3801
- values = _props.values,
3802
- selectedEntity = _props.selectedEntity;
3803
-
3804
-
3805
- return _react2.default.createElement(
3806
- 'div',
3807
- { ref: function ref(_ref) {
3808
- _this2.main = _ref;
3809
- }, id: 'main',
3810
- style: {
3811
- background: 'white', height: 288, width: 350, overflow: 'scroll',
3812
- border: '1px solid rgb(204, 205, 207)', padding: 12
3813
- }
3814
- },
3815
- Object.keys(values).map(function (entity, i) {
3816
- return _react2.default.createElement(
3817
- 'div',
3818
- { key: i, className: 'accordion-panel',
3819
- style: { display: !Object.keys(values[entity]).every(function (field) {
3820
- return !values[entity][field];
3821
- }) ? 'block' : 'none' }
3822
- },
3823
- _react2.default.createElement(
3824
- 'div',
3825
- { className: 'accordion-panel-header',
3826
- onClick: function onClick() {
3827
- _this2.setState({ innerSelectedEntity: selectedEntity == entity && _this2.state.innerSelectedEntity == entity ? '' : entity });
3828
- _this2.scrollToTop(_this2.main, 18, i * 45 + 6);
3829
- pickEntity(entity);
3830
- }
3831
- },
3832
- entity
3833
- ),
3834
- _react2.default.createElement(
3835
- 'div',
3836
- { className: 'accordion-panel-collapse',
3837
- style: {
3838
- height: _this2.state.innerSelectedEntity == entity ? Object.keys(values[entity]).length * 19 + 19 : 0
3839
- }
3840
- },
3841
- _react2.default.createElement('div', { style: { height: 9 } }),
3842
- Object.keys(values[entity]).filter(function (f) {
3843
- return values[entity][f];
3844
- }).map(function (field, ii) {
3845
- return _react2.default.createElement(
3846
- 'div',
3847
- { key: ii },
3848
- field
3849
- );
3850
- }),
3851
- _react2.default.createElement('div', { style: { height: 9 } })
3852
- )
3853
- );
3854
- })
3855
- );
3856
- }
3857
- }]);
3858
-
3859
- return SchemaAccordion;
3860
- }(_react2.default.Component);
3861
-
3862
- exports.default = SchemaAccordion;
3863
-
3864
- /***/ },
3865
- /* 35 */
3866
- /***/ function(module, exports, __webpack_require__) {
3867
-
3868
- 'use strict';
3869
-
3870
- Object.defineProperty(exports, "__esModule", {
3871
- value: true
3872
- });
3873
-
3874
- var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
3875
-
3876
- var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
3877
-
3878
- var _react = __webpack_require__(1);
3879
-
3880
- var _react2 = _interopRequireDefault(_react);
3881
-
3882
- var _reduxForm = __webpack_require__(2);
3883
-
3884
- var _reactRedux = __webpack_require__(7);
3885
-
3886
- var _accountStep = __webpack_require__(23);
3887
-
3888
- var _accountStep2 = _interopRequireDefault(_accountStep);
3889
-
3890
- var _phaseStep = __webpack_require__(30);
3891
-
3892
- var _phaseStep2 = _interopRequireDefault(_phaseStep);
3893
-
3894
- var _environmentStep = __webpack_require__(26);
3895
-
3896
- var _environmentStep2 = _interopRequireDefault(_environmentStep);
3897
-
3898
- var _schemaStep = __webpack_require__(32);
3899
-
3900
- var _schemaStep2 = _interopRequireDefault(_schemaStep);
3901
-
3902
- var _filterStep = __webpack_require__(27);
3903
-
3904
- var _filterStep2 = _interopRequireDefault(_filterStep);
3905
-
3906
- var _mapStep = __webpack_require__(28);
3907
-
3908
- var _mapStep2 = _interopRequireDefault(_mapStep);
3909
-
3910
- var _previewStep = __webpack_require__(31);
3911
-
3912
- var _previewStep2 = _interopRequireDefault(_previewStep);
3913
-
3914
- var _deployStep = __webpack_require__(25);
3915
-
3916
- var _deployStep2 = _interopRequireDefault(_deployStep);
3917
-
3918
- var _nameStep = __webpack_require__(29);
3919
-
3920
- var _nameStep2 = _interopRequireDefault(_nameStep);
3921
-
3922
- var _bannerAdapterStep = __webpack_require__(24);
3923
-
3924
- var _bannerAdapterStep2 = _interopRequireDefault(_bannerAdapterStep);
3925
-
3926
- __webpack_require__(37);
3927
-
3928
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
3929
-
3930
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
3931
-
3932
- function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
3933
-
3934
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
3935
-
3936
- var WizardForm = function (_Component) {
3937
- _inherits(WizardForm, _Component);
3938
-
3939
- function WizardForm(props) {
3940
- _classCallCheck(this, WizardForm);
3941
-
3942
- var _this = _possibleConstructorReturn(this, (WizardForm.__proto__ || Object.getPrototypeOf(WizardForm)).call(this, props));
3943
-
3944
- _this.nextPage = _this.nextPage.bind(_this);
3945
- _this.previousPage = _this.previousPage.bind(_this);
3946
- _this.onSubmit = _this.onSubmit.bind(_this);
3947
- _this.goToPage = _this.goToPage.bind(_this);
3948
- _this.state = {
3949
- page: 1,
3950
- currentPage: 1
3951
- };
3952
- _this.possibleSteps = {
3953
- account: _accountStep2.default,
3954
- phase: _phaseStep2.default,
3955
- environment: _environmentStep2.default,
3956
- schema: _schemaStep2.default,
3957
- filter: _filterStep2.default,
3958
- map: _mapStep2.default,
3959
- preview: _previewStep2.default,
3960
- deploy: _deployStep2.default,
3961
- bannerAdapter: _bannerAdapterStep2.default,
3962
- name: _nameStep2.default
3963
- };
3964
- return _this;
3965
- }
3966
-
3967
- _createClass(WizardForm, [{
3968
- key: 'onSubmit',
3969
- value: function onSubmit(values) {
3970
- var _this2 = this;
3971
-
3972
- console.log(values);
3973
- var sourceSchema = void 0;
3974
- var destinationSchema = void 0;
3975
- var config = Object.assign({}, values);
3976
- //----------------------------------
3977
- // Create schemas
3978
- //----------------------------------
3979
- var modes = ['source', 'destination'];
3980
- modes.map(function (mode) {
3981
- var schema = values[mode + 'Schema'];
3982
- var resources = [];
3983
- for (var key in schema) {
3984
- var props = [];
3985
- for (var prop in schema[key]) {
3986
- props.push({
3987
- name: prop,
3988
- type: _typeof(schema[key][prop]) // we need actual types on schema
3989
- });
3990
- }
3991
- resources.push({
3992
- name: key,
3993
- properties: props
3994
- });
3995
- }
3996
- var custom = values[mode + 'SchemaType'] === 'custom';
3997
- var name = custom ? values[mode + 'NewSchemaName'] : values[mode + 'ExistingSchemaName'];
3998
- if (mode === 'source') {
3999
- sourceSchema = {
4000
- name: name,
4001
- providerType: _this2.props.providers[mode],
4002
- resources: resources
4003
- };
4004
- } else {
4005
- destinationSchema = {
4006
- name: name,
4007
- providerType: _this2.props.providers[mode],
4008
- resources: resources
4009
- };
4010
- }
4011
- });
4012
- //----------------------------------
4013
- // Create mapping
4014
- //----------------------------------
4015
- var stringMapping = values.mappings;
4016
- var mapping = [];
4017
- for (var key in stringMapping) {
4018
- var obj = {
4019
- resourceFromName: key.split('.')[0],
4020
- resourceToName: stringMapping[key].split('.')[0],
4021
- propertyFromName: key.split('.')[1],
4022
- propertyToName: stringMapping[key].split('.')[1]
4023
- };
4024
- mapping.push(obj);
4025
- }
4026
- //----------------------------------
4027
- // Create configuration
4028
- //----------------------------------
4029
- var configuration = {
4030
- sourceEndpoint: config.sourceEndpoint,
4031
- destinationEndpoint: config.destinationEndpoint
4032
- };
4033
- //----------------------------------
4034
- // Post
4035
- //----------------------------------
4036
- /*const { params } = this.props
4037
- const appId = values.existingAccount // need to add "new account" here as well
4038
- if (parseInt(params.wizardID, 10) === 6) {
4039
- this.props.actions.submitWizardData(
4040
- this.props.redux.main.tenantInfo.TenantId,
4041
- appId,
4042
- sourceSchema,
4043
- destinationSchema,
4044
- mapping,
4045
- configuration,
4046
- config.title
4047
- )
4048
- }*/
4049
- this.props.actions.testAjax();
4050
- }
4051
- }, {
4052
- key: 'nextPage',
4053
- value: function nextPage() {
4054
- this.setState({
4055
- currentPage: this.state.currentPage + 1,
4056
- page: this.state.page < this.state.currentPage + 1 ? this.state.currentPage + 1 : this.state.page
4057
- });
4058
- }
4059
- }, {
4060
- key: 'previousPage',
4061
- value: function previousPage() {
4062
- this.setState({ currentPage: this.state.currentPage - 1 });
4063
- }
4064
- }, {
4065
- key: 'goToPage',
4066
- value: function goToPage(currentPage) {
4067
- if (currentPage <= this.state.page) {
4068
- this.setState({ currentPage: currentPage });
4069
- }
4070
- }
4071
- }, {
4072
- key: 'render',
4073
- value: function render() {
4074
- var _this3 = this;
4075
-
4076
- var _state = this.state,
4077
- page = _state.page,
4078
- currentPage = _state.currentPage;
4079
- var _props = this.props,
4080
- steps = _props.steps,
4081
- actions = _props.actions,
4082
- wizard = _props.wizard,
4083
- formValues = _props.formValues,
4084
- inputs = _props.inputs;
4085
- var Sidebar = inputs.Sidebar;
4086
-
4087
- return _react2.default.createElement(
4088
- 'div',
4089
- { style: { width: '100%' } },
4090
- _react2.default.createElement(
4091
- 'div',
4092
- { style: { width: 250, display: 'inline-block' } },
4093
- _react2.default.createElement(Sidebar, { steps: steps, currentPage: currentPage })
4094
- ),
4095
- _react2.default.createElement(
4096
- 'div',
4097
- { style: { width: 'calc(100% - 250px)', verticalAlign: 'top', padding: '31px 28px 31px 45px', display: 'inline-block' } },
4098
- steps.filter(function (s, i) {
4099
- return i + 1 === currentPage;
4100
- }).map(function (step, index) {
4101
- var StepComponent = _this3.possibleSteps[step.type];
4102
- var nav = {
4103
- first: currentPage === 1,
4104
- last: currentPage === steps.length,
4105
- previousPage: _this3.previousPage,
4106
- nextPage: _this3.nextPage
4107
- };
4108
- return _react2.default.createElement(
4109
- 'div',
4110
- { key: 'child-' + index },
4111
- _react2.default.createElement(StepComponent, {
4112
- step: step,
4113
- actions: actions,
4114
- wizard: wizard,
4115
- onSubmit: _this3.onSubmit,
4116
- formValues: formValues,
4117
- inputs: inputs,
4118
- nav: nav
4119
- })
4120
- );
4121
- })
4122
- )
4123
- );
4124
- }
4125
- }]);
4126
-
4127
- return WizardForm;
4128
- }(_react.Component);
4129
-
4130
- var selector = (0, _reduxForm.formValueSelector)('wizard');
4131
- WizardForm = (0, _reactRedux.connect)(function (state) {
4132
- var title = selector(state, 'title');
4133
- var phase = selector(state, 'phase');
4134
- var sourceEndpoint = selector(state, 'sourceEndpoint');
4135
- var destinationEndpoint = selector(state, 'destinationEndpoint');
4136
- var filter = selector(state, 'filter');
4137
- var deployment = selector(state, 'deployment');
4138
- var sourceSchema = selector(state, 'sourceSchema');
4139
- var destinationSchema = selector(state, 'destinationSchema');
4140
- var mappings = selector(state, 'mappings');
4141
- return Object.assign({}, state, {
4142
- formValues: {
4143
- title: title,
4144
- phase: phase,
4145
- sourceEndpoint: sourceEndpoint,
4146
- destinationEndpoint: destinationEndpoint,
4147
- filter: filter,
4148
- deployment: deployment,
4149
- sourceSchema: sourceSchema,
4150
- destinationSchema: destinationSchema,
4151
- mappings: mappings
4152
- }
4153
- });
4154
- })(WizardForm);
4155
-
4156
- exports.default = WizardForm;
4157
-
4158
- /***/ },
4159
- /* 36 */
4160
- /***/ function(module, exports, __webpack_require__) {
4161
-
4162
- 'use strict';
4163
-
4164
- Object.defineProperty(exports, "__esModule", {
4165
- value: true
4166
- });
4167
-
4168
- var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
4169
-
4170
- var _react = __webpack_require__(1);
4171
-
4172
- var _react2 = _interopRequireDefault(_react);
4173
-
4174
- var _redux = __webpack_require__(39);
4175
-
4176
- var _reactRedux = __webpack_require__(7);
4177
-
4178
- var _wizard = __webpack_require__(20);
4179
-
4180
- var wizardActions = _interopRequireWildcard(_wizard);
4181
-
4182
- var _wizardForm = __webpack_require__(35);
4183
-
4184
- var _wizardForm2 = _interopRequireDefault(_wizardForm);
4185
-
4186
- var _exampleWizardData = __webpack_require__(22);
4187
-
4188
- var example = _interopRequireWildcard(_exampleWizardData);
4189
-
4190
- var _exampleProviderData = __webpack_require__(21);
4191
-
4192
- var examp = _interopRequireWildcard(_exampleProviderData);
4193
-
4194
- function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }
4195
-
4196
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
4197
-
4198
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
4199
-
4200
- function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
4201
-
4202
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
4203
-
4204
- var WizardFormLoader = function (_Component) {
4205
- _inherits(WizardFormLoader, _Component);
4206
-
4207
- function WizardFormLoader() {
4208
- _classCallCheck(this, WizardFormLoader);
4209
-
4210
- var _this = _possibleConstructorReturn(this, (WizardFormLoader.__proto__ || Object.getPrototypeOf(WizardFormLoader)).call(this));
4211
-
4212
- _this.state = {
4213
- steps: null,
4214
- providers: {}
4215
- };
4216
- //-----------------------------
4217
- // 3 Types:
4218
- // Point-to-point
4219
- // Api creation
4220
- // Event pub/sub
4221
- //-----------------------------
4222
- _this.allSteps = [
4223
- // Point-to-point
4224
- {
4225
- type: 'name',
4226
- title: 'Name'
4227
- }, {
4228
- type: 'phase',
4229
- title: 'Implementation Phase'
4230
- }, {
4231
- type: 'custom'
4232
- }, {
4233
- type: 'environment',
4234
- title: 'Source Environment',
4235
- mode: 'source'
4236
- }, {
4237
- type: 'schema',
4238
- title: 'Source Schema',
4239
- mode: 'source'
4240
- }, {
4241
- type: 'filter',
4242
- title: 'Source Filter'
4243
- }, {
4244
- type: 'environment',
4245
- title: 'Destination Environment',
4246
- mode: 'destination'
4247
- }, {
4248
- type: 'schema',
4249
- title: 'Destination Schema',
4250
- mode: 'destination'
4251
- }, {
4252
- type: 'map',
4253
- title: 'Data Mapping'
4254
- }, {
4255
- type: 'preview',
4256
- title: 'Data Preview'
4257
- }, {
4258
- type: 'deploy',
4259
- title: 'Deploy'
4260
- }];
4261
- return _this;
4262
- }
4263
-
4264
- _createClass(WizardFormLoader, [{
4265
- key: 'componentDidMount',
4266
- value: function componentDidMount() {
4267
- var wizard = example.wizards[1];
4268
- var stepList = [];
4269
-
4270
- for (var i = 0; i < this.allSteps.length; i++) {
4271
- var step = this.allSteps[i];
4272
- if (step.type === 'name') {
4273
- step.name = wizard.title;
4274
- stepList.push(step);
4275
- } else if (step.type === 'custom') {
4276
- if (wizard.customStep) {
4277
- step.type = wizard.customStep.type;
4278
- step.title = wizard.customStep.title;
4279
- stepList.push(step);
4280
- }
4281
- } else if (step.type === 'environment') {
4282
- if (step.mode === 'source') {
4283
- step.provider = wizard.sourceProvider;
4284
- step.credentials = examp.providerTypes[wizard.sourceProviderType].credentials || null;
4285
- } else if (step.mode === 'destination') {
4286
- step.provider = wizard.destinationProvider;
4287
- step.credentials = examp.providerTypes[wizard.destinationProviderType].credentials || null;
4288
- }
4289
- stepList.push(step);
4290
- } else if (step.type === 'schema') {
4291
- if (step.mode === 'source') {
4292
- step.provider = wizard.sourceProvider;
4293
- step.defaultSchema = wizard.sourceDefaultSchema || null;
4294
- } else if (step.mode === 'destination') {
4295
- step.provider = wizard.destinationProvider;
4296
- step.defaultSchema = wizard.destinationDefaultSchema || null;
4297
- }
4298
- stepList.push(step);
4299
- } else if (step.type === 'filter') {
4300
- step.provider = wizard.sourceProvider;
4301
- stepList.push(step);
4302
- } else if (step.type === 'map') {
4303
- step.sourceProvider = wizard.sourceProvider;
4304
- step.destinationProvider = wizard.destinationProvider;
4305
- step.autoMapData = wizard.autoMapData || null;
4306
- stepList.push(step);
4307
- } else if (step.type === 'preview') {
4308
- step.dummyData = wizard.dummyData || null;
4309
- stepList.push(step);
4310
- } else if (step.type === 'deploy') {
4311
- step.options = wizard.deployment;
4312
- stepList.push(step);
4313
- } else {
4314
- stepList.push(step);
4315
- }
4316
- }
4317
- var providers = {
4318
- source: wizard.sourceProvider,
4319
- destination: wizard.destinationProvider
4320
- };
4321
- this.setState({
4322
- steps: stepList,
4323
- providers: providers
4324
- });
4325
- }
4326
- }, {
4327
- key: 'render',
4328
- value: function render() {
4329
- var _state = this.state,
4330
- steps = _state.steps,
4331
- providers = _state.providers;
4332
-
4333
- if (!steps) return _react2.default.createElement('div', null);
4334
- return _react2.default.createElement(
4335
- 'div',
4336
- null,
4337
- _react2.default.createElement(_wizardForm2.default, Object.assign({
4338
- steps: steps,
4339
- providers: providers
4340
- }, this.props))
4341
- );
4342
- }
4343
- }]);
4344
-
4345
- return WizardFormLoader;
4346
- }(_react.Component);
4347
-
4348
- function mapStateToProps(state, props) {
4349
- return {
4350
- wizard: state.wizard
4351
- };
4352
- }
4353
-
4354
- function mapDispatchToProps(dispatch) {
4355
- return {
4356
- actions: (0, _redux.bindActionCreators)(wizardActions, dispatch)
4357
- };
4358
- }
4359
-
4360
- exports.default = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)(WizardFormLoader);
4361
-
4362
- /***/ },
4363
- /* 37 */
4364
- /***/ function(module, exports) {
4365
-
4366
- // removed by extract-text-webpack-plugin
4367
-
4368
- /***/ },
4369
- /* 38 */
4370
- /***/ function(module, exports) {
4371
-
4372
- module.exports = require("axios");
4373
-
4374
- /***/ },
4375
- /* 39 */
4376
- /***/ function(module, exports) {
4377
-
4378
- module.exports = require("redux");
4379
-
4380
- /***/ }
4381
- /******/ ])));
4382
- //# sourceMappingURL=main.js.map