@suitegeezus/suitecloud-stacker 25.2.127
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.idea/compiler.xml +6 -0
- package/.idea/git_toolbox_blame.xml +6 -0
- package/.idea/git_toolbox_prj.xml +15 -0
- package/.idea/misc.xml +6 -0
- package/.idea/modules.xml +8 -0
- package/.idea/suitecloud-stacker.iml +9 -0
- package/.idea/vcs.xml +6 -0
- package/CONTRIBUTING.md +72 -0
- package/README.md +242 -0
- package/bin/updateModule.d.ts +6 -0
- package/bin/updateModule.js +12 -0
- package/commands/CONTRIBUTING.md +7 -0
- package/commands/accountManageauth.d.ts +93 -0
- package/commands/accountManageauth.js +228 -0
- package/commands/accountSetup.d.ts +56 -0
- package/commands/accountSetup.js +218 -0
- package/commands/customhook/compiless.d.ts +10 -0
- package/commands/customhook/compiless.js +46 -0
- package/commands/customhook/watchss.d.ts +14 -0
- package/commands/customhook/watchss.js +77 -0
- package/commands/fileImport.d.ts +31 -0
- package/commands/fileImport.js +503 -0
- package/commands/fileList.d.ts +19 -0
- package/commands/fileList.js +40 -0
- package/commands/fileUpload.d.ts +52 -0
- package/commands/fileUpload.js +355 -0
- package/commands/generic.d.ts +5 -0
- package/commands/generic.js +13 -0
- package/commands/objectImport.d.ts +32 -0
- package/commands/objectImport.js +287 -0
- package/commands/objectList.d.ts +13 -0
- package/commands/objectList.js +78 -0
- package/commands/projectCreate.d.ts +31 -0
- package/commands/projectCreate.js +506 -0
- package/commands/projectDeploy.d.ts +25 -0
- package/commands/projectDeploy.js +371 -0
- package/commands/projectPackage.d.ts +10 -0
- package/commands/projectPackage.js +32 -0
- package/commands/projectValidate.d.ts +21 -0
- package/commands/projectValidate.js +112 -0
- package/commands/sdfAcs_authmap.d.ts +15 -0
- package/commands/sdfAcs_authmap.js +26 -0
- package/commands/sdfAcs_clean.d.ts +20 -0
- package/commands/sdfAcs_clean.js +22 -0
- package/deleteManifest.cjs +11 -0
- package/demo.md +26 -0
- package/index.d.ts +284 -0
- package/lib/MakeJestTestsFromDeploy.d.ts +13 -0
- package/lib/MakeJestTestsFromDeploy.js +60 -0
- package/lib/addGitKeep.d.ts +5 -0
- package/lib/addGitKeep.js +40 -0
- package/lib/addSdfObjectDirs.d.ts +5 -0
- package/lib/addSdfObjectDirs.js +16 -0
- package/lib/callCli.d.ts +7 -0
- package/lib/callCli.js +26 -0
- package/lib/compileHelper.d.ts +44 -0
- package/lib/compileHelper.js +196 -0
- package/lib/deleteProjectJson.d.ts +6 -0
- package/lib/deleteProjectJson.js +16 -0
- package/lib/deployFileHelper.d.ts +77 -0
- package/lib/deployFileHelper.js +249 -0
- package/lib/handleRootProjectJson.d.ts +10 -0
- package/lib/handleRootProjectJson.js +30 -0
- package/lib/isProd.d.ts +9 -0
- package/lib/isProd.js +13 -0
- package/lib/logHelper.d.ts +5 -0
- package/lib/logHelper.js +13 -0
- package/lib/logger.d.ts +6 -0
- package/lib/logger.js +10 -0
- package/lib/makeDeployXml.d.ts +6 -0
- package/lib/makeDeployXml.js +30 -0
- package/lib/makeJest.d.ts +12 -0
- package/lib/makeJest.js +58 -0
- package/lib/makeManifestXml.d.ts +6 -0
- package/lib/makeManifestXml.js +21 -0
- package/lib/makeProjectJson.d.ts +6 -0
- package/lib/makeProjectJson.js +16 -0
- package/lib/onErrorHelper.d.ts +31 -0
- package/lib/onErrorHelper.js +93 -0
- package/lib/pathHelpers.d.ts +133 -0
- package/lib/pathHelpers.js +428 -0
- package/lib/pause.d.ts +6 -0
- package/lib/pause.js +10 -0
- package/lib/projectJsonHelpers.d.ts +29 -0
- package/lib/projectJsonHelpers.js +92 -0
- package/lib/promptHelpers.d.ts +77 -0
- package/lib/promptHelpers.js +195 -0
- package/lib/removeFiles.d.ts +20 -0
- package/lib/removeFiles.js +46 -0
- package/lib/sdf.d.ts +11 -0
- package/lib/sdf.js +158 -0
- package/lib/spawnSuitecloudChild.d.ts +30 -0
- package/lib/spawnSuitecloudChild.js +88 -0
- package/lib/switchAuth.d.ts +17 -0
- package/lib/switchAuth.js +23 -0
- package/lib/tempFileHelper.d.ts +29 -0
- package/lib/tempFileHelper.js +70 -0
- package/lib/updateModule.d.ts +10 -0
- package/lib/updateModule.js +79 -0
- package/lib/validators.d.ts +12 -0
- package/lib/validators.js +25 -0
- package/package.json +38 -0
- package/safeCommands.d.ts +95 -0
- package/safeCommands.js +959 -0
- package/sdf.config.js +15 -0
- package/sdf.exe.js +16 -0
- package/templates/customizations.projectroot.d.ts +74 -0
- package/templates/makeModuleTypeDef.d.ts +5 -0
- package/templates/makeModuleTypeDef.js +29 -0
- package/templates/sdfGitIgnore.txt +42 -0
- package/templates/suitecloud.config.js +17 -0
- package/templates/tsconfig.ss21.projectroot.json +64 -0
- package/types/colors.d.ts +43 -0
package/sdf.config.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file 5854873/suitecloud.config.js
|
|
3
|
+
* @author Gerald Gillespie <gerald.gillespie@fullscript.com>
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
const safeCommands = require('./safeCommands');
|
|
8
|
+
|
|
9
|
+
safeCommands.makeSafeExports(
|
|
10
|
+
{
|
|
11
|
+
defaultProjectFolder: 'src',
|
|
12
|
+
commands: {...safeCommands.caseCommands}},
|
|
13
|
+
{debug: false, block: false, autoCreateProjectJson: false},
|
|
14
|
+
module
|
|
15
|
+
);
|
package/sdf.exe.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* @file /Users/geraldgillespie/code/nsaccounts/sdf/sdf.exe
|
|
4
|
+
* - Executable stub for index.js
|
|
5
|
+
* @author Gerald Gillespie <gerald.gillespie@fullscript.com>
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
const process = require('node:process');
|
|
9
|
+
const sdf = require('./lib/sdf');
|
|
10
|
+
|
|
11
|
+
const incomingArguments = process.argv.slice(2);
|
|
12
|
+
|
|
13
|
+
console.log('starting sdfAcs', process.cwd());
|
|
14
|
+
sdf.executeCommand(incomingArguments);
|
|
15
|
+
|
|
16
|
+
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
//noinspection ALL
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
// @ts-nocheck */
|
|
4
|
+
/**
|
|
5
|
+
* @file {1}
|
|
6
|
+
* - only use this once per account
|
|
7
|
+
* - this is auto-generated file based on a search of the account. See ESS query runner
|
|
8
|
+
* @author Gerald Gillespie <gerald.gillespie@fullscript.com>
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
export type NsFieldCheckbox = {
|
|
12
|
+
value: boolean;
|
|
13
|
+
text: 'T' | 'F';
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export type NsFieldDate = {
|
|
17
|
+
value: Date;
|
|
18
|
+
text: string;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export type NsFieldSelect<VT extends { value: any; text: any }, Link = never> = {
|
|
22
|
+
value: VT['value'];
|
|
23
|
+
text: VT['text'];
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export type NsFieldMultiSelect<VT extends { value: any; text: any; }, Link = never> = {
|
|
27
|
+
value: Array<VT['value']>;
|
|
28
|
+
text: Array<VT['text']>
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export type NsFieldText = { value?: string; text: string };
|
|
32
|
+
|
|
33
|
+
export type NsFieldNumber = { value: number; text: string };
|
|
34
|
+
|
|
35
|
+
export type NsInternalId = { value: `${bigint | number}`; text: `${bigint | number}`; };
|
|
36
|
+
|
|
37
|
+
/** @description - All custom fields in account */
|
|
38
|
+
export interface CustomFields {
|
|
39
|
+
// custrecord_example_TEXT: { value: string; text: string };
|
|
40
|
+
// custrecord_example_CHECKBOX: NsFieldCheckbox;
|
|
41
|
+
// custrecord_example_DATE: NsFieldDate;
|
|
42
|
+
// custrecord_example_DATETIMETZ: NsFieldDate;
|
|
43
|
+
// custrecord_example_INTEGER: NsFieldNumber;
|
|
44
|
+
// custrecord_example_FLOAT: NsFieldNumber;
|
|
45
|
+
// custrecord_example_SELECT : NsFieldSelect<NsInternalId>
|
|
46
|
+
// custrecord_example_MULTISELECT : NsFieldSelect<NsInternalId>
|
|
47
|
+
/*
|
|
48
|
+
/**
|
|
49
|
+
* @description - "Custom checkbox Example".
|
|
50
|
+
* - from `transaction`
|
|
51
|
+
* - related: `-`
|
|
52
|
+
* - bundle: -
|
|
53
|
+
*/
|
|
54
|
+
custbody_checkbox: NsFieldCheckbox;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export const enum CustomLists {
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* @description - "Custom List Example".
|
|
61
|
+
* - bundle: - Some Bundle 🔓
|
|
62
|
+
*/
|
|
63
|
+
CUSTOMLIST_EXAMPLE = 'customlist_example'
|
|
64
|
+
/**/
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export const enum CustomRecords {
|
|
68
|
+
/**
|
|
69
|
+
* @description - "Custom Record Example".
|
|
70
|
+
* - bundle: -
|
|
71
|
+
*/
|
|
72
|
+
CUSTOMRECORD_EXAMPLE = 'customrecord_example',
|
|
73
|
+
/**/
|
|
74
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @file sdf/templates/makeModuleTypeDef.ts
|
|
4
|
+
* @author Gerald Gillespie <gerald.gillespie@fullscript.com>
|
|
5
|
+
*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.fromRoot = void 0;
|
|
8
|
+
const fromRoot = (root) => {
|
|
9
|
+
console.log('fromRoot', root);
|
|
10
|
+
const ssOnlyRoot = root.replace(/^.*\bSuiteScripts\b(.*)\/?$/, '/SuiteScripts$1');
|
|
11
|
+
return `
|
|
12
|
+
/**
|
|
13
|
+
* This a map of modules used by Go. And provides resolution and typing of those paths.
|
|
14
|
+
* N/* modules are implicit and do not need to be listed here
|
|
15
|
+
* @example
|
|
16
|
+
* \`\`\`js
|
|
17
|
+
* const myUtilityLib = Go['${ssOnlyRoot}/utils/myUtility'];
|
|
18
|
+
* const Nrecord = Go['N/record'];
|
|
19
|
+
* \`\`\`
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
export type ModuleMap = {
|
|
23
|
+
"${ssOnlyRoot}/utils/utils": typeof import('${ssOnlyRoot}/utils/utils');
|
|
24
|
+
"/${ssOnlyRoot}/utils/utils": typeof import('${ssOnlyRoot}/utils/utils');
|
|
25
|
+
} & { N: typeof N; } & AddPrefix<typeof N, 'N/'>
|
|
26
|
+
`;
|
|
27
|
+
};
|
|
28
|
+
exports.fromRoot = fromRoot;
|
|
29
|
+
//# sourceMappingURL=makeModuleTypeDef.js.map
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# IDEs and editors
|
|
2
|
+
.idea
|
|
3
|
+
*.iml
|
|
4
|
+
*.iws
|
|
5
|
+
.project
|
|
6
|
+
.classpath
|
|
7
|
+
*.launch
|
|
8
|
+
.settings
|
|
9
|
+
*.sublime-workspace
|
|
10
|
+
.vscode
|
|
11
|
+
|
|
12
|
+
# Dependency directories
|
|
13
|
+
node_modules
|
|
14
|
+
|
|
15
|
+
# TypeScript cache
|
|
16
|
+
*.tsbuildinfo
|
|
17
|
+
|
|
18
|
+
# Logs
|
|
19
|
+
logs
|
|
20
|
+
*.log
|
|
21
|
+
npm-debug.log*
|
|
22
|
+
|
|
23
|
+
# Packaged SuiteCloud projects
|
|
24
|
+
build
|
|
25
|
+
|
|
26
|
+
# misc
|
|
27
|
+
.sass-cache
|
|
28
|
+
|
|
29
|
+
# Optional npm cache directory
|
|
30
|
+
.npm
|
|
31
|
+
|
|
32
|
+
# System Files
|
|
33
|
+
.DS_Store
|
|
34
|
+
Thumbs.db
|
|
35
|
+
|
|
36
|
+
# Output of 'npm pack'
|
|
37
|
+
*.tgz
|
|
38
|
+
|
|
39
|
+
# Project config
|
|
40
|
+
project.json
|
|
41
|
+
deploy.xml
|
|
42
|
+
sdflog.*
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file suitecloud.config.js
|
|
3
|
+
* - case-based suitecloud config
|
|
4
|
+
* @author Gerald Gillespie <gerald.gillespie@fullscript.com>
|
|
5
|
+
* @example
|
|
6
|
+
* ```shell
|
|
7
|
+
* nodemon ./suitecloud.config.js watch -e ts --ignore module.d.ts
|
|
8
|
+
* ```
|
|
9
|
+
*/
|
|
10
|
+
const safeCommands = require('#root/sdf/safeCommands.js');
|
|
11
|
+
|
|
12
|
+
safeCommands.makeSafeExports(
|
|
13
|
+
{commands: {...safeCommands.caseCommands},},
|
|
14
|
+
{debug: false, block: false, autoCreateProjectJson: false},
|
|
15
|
+
module
|
|
16
|
+
);
|
|
17
|
+
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"newLine": "LF",
|
|
4
|
+
"experimentalDecorators": true,
|
|
5
|
+
"moduleResolution": "Node",
|
|
6
|
+
"baseUrl": ".",
|
|
7
|
+
"paths": {
|
|
8
|
+
"/SuiteScripts/*": [
|
|
9
|
+
"src/FileCabinet/SuiteScripts/*"
|
|
10
|
+
],
|
|
11
|
+
"SuiteScripts/*": [
|
|
12
|
+
"src/FileCabinet/SuiteScripts/*"
|
|
13
|
+
],
|
|
14
|
+
"N": [
|
|
15
|
+
"../node_modules/@hitc/netsuite-types/N"
|
|
16
|
+
],
|
|
17
|
+
"N/error": [
|
|
18
|
+
"../N/error.d.ts"
|
|
19
|
+
],
|
|
20
|
+
"N/*": [
|
|
21
|
+
"./types/N/*",
|
|
22
|
+
"../types/N/*",
|
|
23
|
+
"../node_modules/@hitc/netsuite-types/N/*",
|
|
24
|
+
],
|
|
25
|
+
"ACSTypes/*": [
|
|
26
|
+
"./types/*",
|
|
27
|
+
"../types/*",
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
"module": "AMD",
|
|
31
|
+
"target": "ES2022",
|
|
32
|
+
"outDir": ".",
|
|
33
|
+
"rootDir": ".",
|
|
34
|
+
"esModuleInterop": false,
|
|
35
|
+
"lib": [
|
|
36
|
+
"ES2022"
|
|
37
|
+
],
|
|
38
|
+
"strict": true,
|
|
39
|
+
"allowJs": true,
|
|
40
|
+
"preserveConstEnums": true,
|
|
41
|
+
"importsNotUsedAsValues": "remove",
|
|
42
|
+
"strictNullChecks": true,
|
|
43
|
+
"strictFunctionTypes": true,
|
|
44
|
+
"strictBindCallApply": true,
|
|
45
|
+
"strictPropertyInitialization": true,
|
|
46
|
+
"alwaysStrict": true,
|
|
47
|
+
"noImplicitThis": true,
|
|
48
|
+
"noImplicitAny": true,
|
|
49
|
+
"importHelpers": false,
|
|
50
|
+
"noEmitHelpers": true,
|
|
51
|
+
"noImplicitReturns": true,
|
|
52
|
+
"sourceMap": true,
|
|
53
|
+
"skipDefaultLibCheck": true,
|
|
54
|
+
"skipLibCheck": true,
|
|
55
|
+
"typeRoots": [
|
|
56
|
+
"../node_modules/@types",
|
|
57
|
+
"../node_modules/@types/requirejs",
|
|
58
|
+
"../types/N",
|
|
59
|
+
"../types",
|
|
60
|
+
"./types"
|
|
61
|
+
]
|
|
62
|
+
},
|
|
63
|
+
"include": ["*.d.ts","../types/globals.d.ts","../types/acs.d.ts","../types/constants.d.ts","./types/*.d.ts"]
|
|
64
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
|
|
2
|
+
export const enum COLORS {
|
|
3
|
+
BLACK = "\u001b[30m",
|
|
4
|
+
RED = "\u001b[31m",
|
|
5
|
+
GREEN = "\u001b[32m",
|
|
6
|
+
YELLOW = "\u001b[33m",
|
|
7
|
+
BLUE = "\u001b[34m",
|
|
8
|
+
MAGENTA = "\u001b[35m",
|
|
9
|
+
CYAN = "\u001b[36m",
|
|
10
|
+
WHITE = "\u001b[37m",
|
|
11
|
+
ORANGE = "\u001b[38;5;214m",
|
|
12
|
+
BRIGHT_BLACK = "\u001b[90m",
|
|
13
|
+
BRIGHT_RED = "\u001b[91m",
|
|
14
|
+
BRIGHT_GREEN = "\u001b[92m",
|
|
15
|
+
BRIGHT_YELLOW = "\u001b[93m",
|
|
16
|
+
BRIGHT_BLUE = "\u001b[94m",
|
|
17
|
+
BRIGHT_MAGENTA = "\u001b[95m",
|
|
18
|
+
BRIGHT_CYAN = "\u001b[96m",
|
|
19
|
+
BRIGHT_WHITE = "\u001b[97m",
|
|
20
|
+
BLACK_BG = "\u001b[40m",
|
|
21
|
+
RED_BG = "\u001b[41m",
|
|
22
|
+
GREEN_BG = "\u001b[42m",
|
|
23
|
+
YELLOW_BG = "\u001b[43m",
|
|
24
|
+
BLUE_BG = "\u001b[44m",
|
|
25
|
+
MAGENTA_BG = "\u001b[45m",
|
|
26
|
+
CYAN_BG = "\u001b[46m",
|
|
27
|
+
WHITE_BG = "\u001b[47m",
|
|
28
|
+
BOLD = "\u001b[1m",
|
|
29
|
+
DIM = "\u001b[2m",
|
|
30
|
+
ITALIC = "\u001b[3m",
|
|
31
|
+
UNDERLINE = "\u001b[4m",
|
|
32
|
+
BLINK = "\u001b[5m",
|
|
33
|
+
REVERSE = "\u001b[7m",
|
|
34
|
+
HIDDEN = "\u001b[8m",
|
|
35
|
+
RESET_ALL = "\u001b[0m",
|
|
36
|
+
RESET_BOLD = "\u001b[21m",
|
|
37
|
+
RESET_UNDERLINE = "\u001b[24m",
|
|
38
|
+
RESET_REVERSE = "\u001b[27m",
|
|
39
|
+
// "example_basic_color"= "echo -e \"\\u001b[31mRed Text\\u001b[0m\"",
|
|
40
|
+
// "example_bright_color"= "echo -e \"\\u001b[91mBright Red Text\\u001b[0m\"",
|
|
41
|
+
// "example_background_color"= "echo -e \"\\u001b[44mBlue Background\\u001b[0m\"",
|
|
42
|
+
// "example_styled_text"= "echo -e \"\\u001b[1mBold Text\\u001b[0m\""
|
|
43
|
+
}
|