n8n-nodes-myob
Version:
Simple n8n node to create sales orders in MYOB Business API with multiple line items
77 lines (76 loc) • 2.57 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.MyobOAuth2Api = void 0;
class MyobOAuth2Api {
constructor() {
this.name = 'myobOAuth2Api';
this.displayName = 'MYOB OAuth2';
this.extends = ['oAuth2Api'];
this.properties = [
{
displayName: 'Grant Type',
name: 'grantType',
type: 'hidden',
default: 'authorizationCode',
},
{
displayName: 'Authorization URL',
name: 'authUrl',
type: 'hidden',
default: 'https://secure.myob.com/oauth2/account/authorize',
},
{
displayName: 'Access Token URL',
name: 'accessTokenUrl',
type: 'hidden',
default: 'https://secure.myob.com/oauth2/v1/authorize',
},
{
displayName: 'Scope',
name: 'scope',
type: 'hidden',
default: 'sme-company-settings sme-sales sme-inventory',
},
{
displayName: 'Auth URI Query Parameters',
name: 'authQueryParameters',
type: 'hidden',
default: '',
},
{
displayName: 'Authentication',
name: 'authentication',
type: 'hidden',
default: 'header',
},
{
displayName: 'Company File Username',
name: 'companyFileUsername',
type: 'string',
default: 'Administrator',
description: 'Username for the MYOB company file',
required: true,
},
{
displayName: 'Company File Password',
name: 'companyFilePassword',
type: 'string',
typeOptions: {
password: true,
},
default: '',
description: 'Password for the MYOB company file',
required: true,
},
{
displayName: 'Company File GUID',
name: 'companyFileGuid',
type: 'string',
default: '',
description: 'The unique GUID of your MYOB company file (e.g., 12345678-abcd-1234-abcd-123456789abc)',
required: true,
},
];
}
}
exports.MyobOAuth2Api = MyobOAuth2Api;