Michael Scott
12/13/2021, 1:22 AMmichoel
12/13/2021, 4:49 AMDmitry Masanov
12/13/2021, 7:56 AMMichael Scott
12/13/2021, 12:08 PMDmitry Masanov
12/13/2021, 12:09 PM{
"compilerOptions": {
"allowJs": false,
"strictNullChecks": true,
"strict": false,
"module": "amd",
"moduleResolution": "node",
"target": "ES5",
"sourceMap": false,
"newLine": "LF",
"noUnusedLocals": true,
"experimentalDecorators": true,
"baseUrl": "./",
"rootDir": "../",
"outDir": "./",
"lib": [
"es5","es2015.promise", "dom", "es6", "dom.iterable"
],
"skipLibCheck": false,
"esModuleInterop": true,
"paths": {
"N/*": [
"node_modules/@hitc/netsuite-types/N/*", "../@hitc/netsuite-types/N/*"
],
"N": [
"node_modules/@hitc/netsuite-types/N", "../@hitc/netsuite-types/N"
]
}
},
"exclude": [
"node_modules", "__mocks__", "__tests__"
],
}
Dmitry Masanov
12/13/2021, 12:10 PMDmitry Masanov
12/13/2021, 12:12 PMMichael Scott
12/13/2021, 12:15 PMMichael Scott
12/13/2021, 12:15 PMDmitry Masanov
12/13/2021, 12:16 PMmodule.exports = {
presets: [
[
'@babel/env',
{
targets: {
ie: '10',
node: 'current'
},
useBuiltIns: 'usage',
corejs: 3,
},
],
'@babel/preset-typescript'
],
'plugins': [
['@babel/plugin-proposal-decorators', { 'legacy': true }],
['@babel/plugin-proposal-class-properties']
],
};
Michael Scott
12/13/2021, 12:18 PMDmitry Masanov
12/13/2021, 12:21 PMMichael Scott
12/13/2021, 12:21 PMMichael Scott
12/13/2021, 12:21 PMMichael Scott
12/13/2021, 12:21 PMMichael Scott
12/13/2021, 12:21 PMMichael Scott
12/13/2021, 12:21 PMMichael Scott
12/13/2021, 12:22 PMDmitry Masanov
12/13/2021, 12:24 PMMichael Scott
12/13/2021, 12:24 PMMichael Scott
12/13/2021, 12:25 PMMichael Scott
12/13/2021, 12:26 PMMichael Scott
12/13/2021, 12:26 PMMichael Scott
12/13/2021, 12:27 PMMichael Scott
12/13/2021, 12:28 PMMichael Scott
12/13/2021, 12:28 PMMichael Scott
12/13/2021, 12:29 PMimport {EntryPoints} from 'N/types';
import * as record from 'N/record';
export let onRequest: EntryPoints.Suitelet.onRequest = (context: EntryPoints.Suitelet.onRequestContext) => {
let folder = record.load({type: 'folder', id: 36464});
let allfields = folder.getFields().join(', ');
context.response.write(`<br>all fields: ${allfields}`);
};
but it is not acceptable to show to others NS devs until NS actually accepts it soDmitry Masanov
12/13/2021, 12:31 PMDmitry Masanov
12/13/2021, 12:32 PMMichael Scott
12/13/2021, 12:32 PM