@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.
Files changed (113) hide show
  1. package/.idea/compiler.xml +6 -0
  2. package/.idea/git_toolbox_blame.xml +6 -0
  3. package/.idea/git_toolbox_prj.xml +15 -0
  4. package/.idea/misc.xml +6 -0
  5. package/.idea/modules.xml +8 -0
  6. package/.idea/suitecloud-stacker.iml +9 -0
  7. package/.idea/vcs.xml +6 -0
  8. package/CONTRIBUTING.md +72 -0
  9. package/README.md +242 -0
  10. package/bin/updateModule.d.ts +6 -0
  11. package/bin/updateModule.js +12 -0
  12. package/commands/CONTRIBUTING.md +7 -0
  13. package/commands/accountManageauth.d.ts +93 -0
  14. package/commands/accountManageauth.js +228 -0
  15. package/commands/accountSetup.d.ts +56 -0
  16. package/commands/accountSetup.js +218 -0
  17. package/commands/customhook/compiless.d.ts +10 -0
  18. package/commands/customhook/compiless.js +46 -0
  19. package/commands/customhook/watchss.d.ts +14 -0
  20. package/commands/customhook/watchss.js +77 -0
  21. package/commands/fileImport.d.ts +31 -0
  22. package/commands/fileImport.js +503 -0
  23. package/commands/fileList.d.ts +19 -0
  24. package/commands/fileList.js +40 -0
  25. package/commands/fileUpload.d.ts +52 -0
  26. package/commands/fileUpload.js +355 -0
  27. package/commands/generic.d.ts +5 -0
  28. package/commands/generic.js +13 -0
  29. package/commands/objectImport.d.ts +32 -0
  30. package/commands/objectImport.js +287 -0
  31. package/commands/objectList.d.ts +13 -0
  32. package/commands/objectList.js +78 -0
  33. package/commands/projectCreate.d.ts +31 -0
  34. package/commands/projectCreate.js +506 -0
  35. package/commands/projectDeploy.d.ts +25 -0
  36. package/commands/projectDeploy.js +371 -0
  37. package/commands/projectPackage.d.ts +10 -0
  38. package/commands/projectPackage.js +32 -0
  39. package/commands/projectValidate.d.ts +21 -0
  40. package/commands/projectValidate.js +112 -0
  41. package/commands/sdfAcs_authmap.d.ts +15 -0
  42. package/commands/sdfAcs_authmap.js +26 -0
  43. package/commands/sdfAcs_clean.d.ts +20 -0
  44. package/commands/sdfAcs_clean.js +22 -0
  45. package/deleteManifest.cjs +11 -0
  46. package/demo.md +26 -0
  47. package/index.d.ts +284 -0
  48. package/lib/MakeJestTestsFromDeploy.d.ts +13 -0
  49. package/lib/MakeJestTestsFromDeploy.js +60 -0
  50. package/lib/addGitKeep.d.ts +5 -0
  51. package/lib/addGitKeep.js +40 -0
  52. package/lib/addSdfObjectDirs.d.ts +5 -0
  53. package/lib/addSdfObjectDirs.js +16 -0
  54. package/lib/callCli.d.ts +7 -0
  55. package/lib/callCli.js +26 -0
  56. package/lib/compileHelper.d.ts +44 -0
  57. package/lib/compileHelper.js +196 -0
  58. package/lib/deleteProjectJson.d.ts +6 -0
  59. package/lib/deleteProjectJson.js +16 -0
  60. package/lib/deployFileHelper.d.ts +77 -0
  61. package/lib/deployFileHelper.js +249 -0
  62. package/lib/handleRootProjectJson.d.ts +10 -0
  63. package/lib/handleRootProjectJson.js +30 -0
  64. package/lib/isProd.d.ts +9 -0
  65. package/lib/isProd.js +13 -0
  66. package/lib/logHelper.d.ts +5 -0
  67. package/lib/logHelper.js +13 -0
  68. package/lib/logger.d.ts +6 -0
  69. package/lib/logger.js +10 -0
  70. package/lib/makeDeployXml.d.ts +6 -0
  71. package/lib/makeDeployXml.js +30 -0
  72. package/lib/makeJest.d.ts +12 -0
  73. package/lib/makeJest.js +58 -0
  74. package/lib/makeManifestXml.d.ts +6 -0
  75. package/lib/makeManifestXml.js +21 -0
  76. package/lib/makeProjectJson.d.ts +6 -0
  77. package/lib/makeProjectJson.js +16 -0
  78. package/lib/onErrorHelper.d.ts +31 -0
  79. package/lib/onErrorHelper.js +93 -0
  80. package/lib/pathHelpers.d.ts +133 -0
  81. package/lib/pathHelpers.js +428 -0
  82. package/lib/pause.d.ts +6 -0
  83. package/lib/pause.js +10 -0
  84. package/lib/projectJsonHelpers.d.ts +29 -0
  85. package/lib/projectJsonHelpers.js +92 -0
  86. package/lib/promptHelpers.d.ts +77 -0
  87. package/lib/promptHelpers.js +195 -0
  88. package/lib/removeFiles.d.ts +20 -0
  89. package/lib/removeFiles.js +46 -0
  90. package/lib/sdf.d.ts +11 -0
  91. package/lib/sdf.js +158 -0
  92. package/lib/spawnSuitecloudChild.d.ts +30 -0
  93. package/lib/spawnSuitecloudChild.js +88 -0
  94. package/lib/switchAuth.d.ts +17 -0
  95. package/lib/switchAuth.js +23 -0
  96. package/lib/tempFileHelper.d.ts +29 -0
  97. package/lib/tempFileHelper.js +70 -0
  98. package/lib/updateModule.d.ts +10 -0
  99. package/lib/updateModule.js +79 -0
  100. package/lib/validators.d.ts +12 -0
  101. package/lib/validators.js +25 -0
  102. package/package.json +38 -0
  103. package/safeCommands.d.ts +95 -0
  104. package/safeCommands.js +959 -0
  105. package/sdf.config.js +15 -0
  106. package/sdf.exe.js +16 -0
  107. package/templates/customizations.projectroot.d.ts +74 -0
  108. package/templates/makeModuleTypeDef.d.ts +5 -0
  109. package/templates/makeModuleTypeDef.js +29 -0
  110. package/templates/sdfGitIgnore.txt +42 -0
  111. package/templates/suitecloud.config.js +17 -0
  112. package/templates/tsconfig.ss21.projectroot.json +64 -0
  113. 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,5 @@
1
+ /**
2
+ * @file sdf/templates/makeModuleTypeDef.ts
3
+ * @author Gerald Gillespie <gerald.gillespie@fullscript.com>
4
+ */
5
+ export declare const fromRoot: (root: string) => string;
@@ -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
+ }