Skip to content

Commit a85aacf

Browse files
Initial Alpha release stablizations and platform ready modules
1 parent ee41135 commit a85aacf

24 files changed

Lines changed: 956 additions & 113 deletions

TypeExtensionManager.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import utils from './utils'
77
import CONSTANTS from './constants'
88
import { runConfig } from './utility/customerUtility';
99

10-
let {initModules, writeUserData, getBasicKey, processCustomer} = utils
10+
let {initModules, writeUserData, getBasicKey, processCustomer, processPlatformModule} = utils
1111
let {CMD_ARGUMENTS:{DOC_ARG, TYPE_ARG, HELP_ARG}, STARTUP_LOG, MESSAGES:{HELP:{HELP_TEXT}}} = CONSTANTS
1212

1313
const main = async () => {
@@ -34,6 +34,7 @@ const main = async () => {
3434
runConfig(essentials, configType, rulesetType)
3535
}
3636
await processCustomer(essentials)
37+
await processPlatformModule(essentials)
3738
process.exit()
3839
})
3940
}

configs/pl_pop.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"customerName" : "Bhuvanesh",
2+
"customerName" : "Infor",
33
"documentType": "PackingManifest",
44
"jiraNumber": "PSO-19611",
55
"isSampleRequired": "Y",

configs/pl_vld.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"customerName" : "Bhuvanesh",
2+
"customerName" : "Infor",
33
"documentType": "PackingManifest",
44
"jiraNumber": "PSO-19611",
55
"isSampleRequired": "Y",

configs/po_pop.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
2-
"customerName" : "Bhuvanesh",
2+
"customerName" : "Infor",
33
"documentType": "PurchaseOrder",
44
"jiraNumber": "PSO-19611",
55
"isSampleRequired": "Y",
66
"env": "supq",
7-
"sampleRefNumber": "65888200",
7+
"sampleRefNumber": "0601434323",
88
"ruleSetType": "POP"
99
}

configs/po_vld.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"customerName" : "Bhuvanesh",
2+
"customerName" : "Infor",
33
"documentType": "PurchaseOrder",
44
"jiraNumber": "PSO-19611",
55
"isSampleRequired": "Y",

configs/pp_pop.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"customerName" : "Bhuvanesh",
2+
"customerName" : "Infor",
33
"documentType": "PackingPlanManifest",
44
"jiraNumber": "PSO-19611",
55
"isSampleRequired": "Y",

configs/pp_vld.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"customerName" : "Bhuvanesh",
2+
"customerName" : "Infor",
33
"documentType": "PackingPlanManifest",
44
"jiraNumber": "PSO-19611",
55
"isSampleRequired": "Y",

constants.js

Lines changed: 47 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,15 @@ const fields = {
3434
AUTHORIZATION: `Authorization`,
3535
OBJECT_FIELDS: `OBJECT_FIELDS`,
3636
EVENT: `Event`,
37+
MODULE_NAME: `moduleName`,
3738
IS_SAMPLE_REQUIRED: `isSampleRequired`,
39+
MODULE_PATH: `modulePath`,
40+
ADD_PLATFORM_FILE: `addPlatformFile`,
3841
FILE: `file`,
42+
RANK: `rank`,
43+
PLATFORM_FILE: `platformFile`,
3944
IS_CONFIG: `isConfig`,
45+
PMM_SAFE_FILE_REQUIRED: `pmmSafeFileRequired`,
4046
HTTP_HEADER:{
4147
headers:{
4248
Authorization: ``,
@@ -65,6 +71,33 @@ const CMD_ARGUMENTS = {
6571
HELP_ARG: `--h`
6672
}
6773

74+
const PLATFORM = {
75+
FOLDERS:{
76+
$TYPE_EXTENSION_D1: `$TypeExtensionD1`,
77+
CUSTOM_OBJECT_MODULE: `CustomObjectModule`,
78+
PLATFORM_LOCALIZATION: `PlatformLocalization`,
79+
TYPE_EXTENSION_SCRIPT: `typeExtensionScript`
80+
},
81+
FILES:{
82+
METADATA_PROPERTIES: `metadata`,
83+
DEFAULT_RANK: 10,
84+
RANK: 10,
85+
PLATFORM_MODULE: `PlatformModule`,
86+
FILE_NAME: ``,
87+
set SET_RANK (rank) {
88+
this.RANK = `${rank}`
89+
},
90+
get GET_RANK () {
91+
return this.RANK
92+
},
93+
set SET_FILE_NAME (name) {
94+
this.FILE_NAME = `${name}__Rank-${this.GET_RANK}`
95+
},
96+
get GET_FILE_NAME () {
97+
return this.FILE_NAME
98+
}
99+
}
100+
}
68101

69102
const GENERAL = {
70103
ENCODING_UTF8: `utf8`,
@@ -74,13 +107,15 @@ const GENERAL = {
74107
JIRA_BUG_HEADER: `GTBUG-`,
75108
JIRA_DEFAULT_TEXT: `CHANGEME`,
76109
DATE_FORMAT: `MM/DD/YYYY`,
110+
FULL_DATE_FORMAT: `YYYY-MM-DD HH:mm:ss.SSS`,
77111
WHO: `¯\\_(ツ)_/¯`,
78-
DESCRIPTION: `UPDATE THE DESCRIPTION`,
112+
DESCRIPTION: `New`,
79113
AFFIRM: [`YES`, `Y`],
80114
NEGATIVE: [`NO`, `N`],
81115
GET: `get`,
82116
POST: `post`,
83-
SEED: `seed`
117+
SEED: `seed`,
118+
BUNDLE: `Bundle`
84119
}
85120

86121
const GENERAL_GTNEXUS_OBJECTS = {
@@ -100,7 +135,8 @@ const GTNEXUS = {
100135
OQL: `oql`,
101136
QUERY: `query`,
102137
VERSION:{
103-
LATEST: `3.1`
138+
LATEST: `3.1`,
139+
FULL_VERSION: `310`
104140
},
105141
},
106142
get SUPQ_URL() {
@@ -117,9 +153,12 @@ const FILES = {
117153
JS: `.js`,
118154
SPEC: `.spec.js`,
119155
_JSON: `.json`,
120-
INI: `.ini`
156+
INI: `.ini`,
157+
XML: `.xml`,
158+
PROPERTIES: `.properties`
121159
},
122160
RESOURCES: `resources`,
161+
TYPE_EXTENSION_MODULE: `TypeExtensionModule`
123162

124163
}
125164

@@ -333,8 +372,8 @@ const MESSAGES = {
333372

334373
const STARTUP_LOG = {
335374
NAME: `Type Extension Manager`,
336-
VERSION: `v1.0`,
337-
BETA: `beta`,
375+
VERSION: `v1.2`,
376+
BETA: `alpha`,
338377
PATTERN: `*`,
339378
AUTHOR: `bhuvanesh.arasu@infor.com`,
340379
MENTOR: `stephen.bendfelt@infor.com`,
@@ -370,5 +409,6 @@ export default{
370409
OPTIONS,
371410
fields,
372411
CMD_ARGUMENTS,
373-
STARTUP_LOG
412+
STARTUP_LOG,
413+
PLATFORM
374414
}

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
"node-cmd": "^3.0.0",
1616
"shelljs": "^0.8.3",
1717
"slash": "^3.0.0",
18-
"upath": "^1.2.0"
18+
"upath": "^1.2.0",
19+
"xml-js": "^1.6.11"
1920
},
2021
"devDependencies": {
2122
"babel-cli": "^6.26.0",

utility/customerUtility/documentType.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ let settingDocumentType = (documentType, essentials) => {
7979

8080
case PL.SHORT_FORM.toLowerCase():
8181
case PL.FULL_FORM.toLowerCase():
82-
case PL.PACKING_PLAN.toLowerCase():
83-
case PL.PACKING_PLAN_MANIFEST.toLowerCase():
82+
case PL.PACKING_MANIFEST.toLowerCase():
83+
case PL.PACKING_LIST.toLowerCase():
8484
case FOUR:
8585
docType = PL.FULL_FORM
8686
shortForm = PL.SHORT_FORM

0 commit comments

Comments
 (0)