n8n-nodes-zid
Version:
BETA; n8n custom nodes for integrating with the Zid API (orders, products, customers, etc.)
53 lines (52 loc) • 1.57 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ZidOAuth2Api = void 0;
class ZidOAuth2Api {
constructor() {
this.name = 'zidOAuth2Api';
this.displayName = 'Zid OAuth2 API';
this.documentationUrl = 'https://docs.zid.sa/start-here';
this.extends = [
'oAuth2Api',
];
this.properties = [
{
displayName: 'Client ID',
name: 'clientId',
type: 'string',
default: '',
},
{
displayName: 'Client Secret',
name: 'clientSecret',
type: 'string',
typeOptions: {
password: true,
},
default: '',
},
{
displayName: 'Authorization URL',
name: 'authUrl',
type: 'string',
default: 'https://accounts.zid.sa/oauth2/authorize',
required: true,
},
{
displayName: 'Access Token URL',
name: 'accessTokenUrl',
type: 'string',
default: 'https://accounts.zid.sa/oauth2/token',
required: true,
},
{
displayName: 'Scope',
name: 'scope',
type: 'string',
default: '',
description: 'Optional OAuth2 scopes',
},
];
}
}
exports.ZidOAuth2Api = ZidOAuth2Api;