n8n-nodes-zid-beta
Version:
BETA; n8n custom nodes for integrating with the Zid API (orders, products, customers, etc.)
77 lines (76 loc) • 2.56 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://apidog.com/apidoc/docs-site/613905/authorization';
this.extends = [
'oAuth2Api',
];
this.properties = [
{
displayName: 'Grant Type',
name: 'grantType',
type: 'hidden',
default: 'authorizationCode',
},
{
displayName: 'Client ID',
name: 'clientId',
type: 'string',
default: '',
required: true,
description: 'Your Zid application Client ID from the Partner Dashboard',
},
{
displayName: 'Client Secret',
name: 'clientSecret',
type: 'string',
typeOptions: {
password: true,
},
default: '',
required: true,
description: 'Your Zid application Client Secret from the Partner Dashboard',
},
{
displayName: 'Authorization URL',
name: 'authUrl',
type: 'string',
default: 'https://oauth.zid.sa/oauth/authorize',
required: true,
description: 'Zid OAuth authorization endpoint',
},
{
displayName: 'Access Token URL',
name: 'accessTokenUrl',
type: 'string',
default: 'https://oauth.zid.sa/oauth/token',
required: true,
description: 'Zid OAuth token endpoint',
},
{
displayName: 'Scope',
name: 'scope',
type: 'string',
default: '',
description: 'OAuth2 scopes (configured in Partner Dashboard)',
},
{
displayName: 'Auth URI Query Parameters',
name: 'authQueryParameters',
type: 'hidden',
default: 'response_type=code',
},
{
displayName: 'Authentication',
name: 'authentication',
type: 'hidden',
default: 'body',
},
];
}
}
exports.ZidOAuth2Api = ZidOAuth2Api;