n8n-nodes-hebrew-calendar
Version:
n8n community node for Hebrew Calendar operations - check if dates are Shabbat, holidays, or Chol Hamoed
173 lines • 5.91 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.hebrewCalendarFields = exports.hebrewCalendarOperations = void 0;
exports.hebrewCalendarOperations = [];
exports.hebrewCalendarFields = [
{
displayName: 'Location',
name: 'location',
type: 'options',
default: 'Tel Aviv',
description: 'Location for calculating times (affects sunset/sunrise times)',
options: [
{ name: 'Ashdod', value: 'Ashdod' },
{ name: 'Beersheba', value: 'Beersheba' },
{ name: 'Bnei Brak', value: 'Bnei Brak' },
{ name: 'Haifa', value: 'Haifa' },
{ name: 'Holon', value: 'Holon' },
{ name: 'Jerusalem', value: 'Jerusalem' },
{ name: 'Netanya', value: 'Netanya' },
{ name: 'Petah Tikva', value: 'Petah Tikva' },
{ name: 'Rishon LeZion', value: 'Rishon LeZion' },
{ name: 'Tel Aviv', value: 'Tel Aviv' },
],
},
{
displayName: 'Target Date',
name: 'targetDate',
type: 'string',
displayOptions: {
show: {
operation: ['checkDateStatus', 'getShabbatTimes'],
},
},
default: '={{new Date().toISOString().split("T")[0]}}',
description: 'Date to check (YYYY-MM-DD format)',
placeholder: '2024-01-15',
required: true,
},
{
displayName: 'Check Specific Time',
name: 'checkTime',
type: 'boolean',
displayOptions: {
show: {
operation: ['checkDateStatus'],
},
},
default: false,
description: 'Whether to check if the specific time is within Shabbat/holiday hours',
},
{
displayName: 'Target Time',
name: 'targetTime',
type: 'string',
displayOptions: {
show: {
operation: ['checkDateStatus'],
checkTime: [true],
},
},
default: '12:00',
description: 'Time to check (HH:MM format)',
placeholder: '19:30',
required: true,
},
{
displayName: 'Include Chol Hamoed',
name: 'includeCholHamoed',
type: 'boolean',
displayOptions: {
show: {
operation: ['checkDateStatus', 'getHolidayInfo'],
},
},
default: true,
description: 'Whether to include Chol Hamoed (intermediate days) as special days',
},
{
displayName: 'Start Date',
name: 'startDate',
type: 'string',
displayOptions: {
show: {
operation: ['getHolidayInfo'],
},
},
default: '={{new Date().toISOString().split("T")[0]}}',
description: 'Start date for holiday range (YYYY-MM-DD format)',
placeholder: '2024-01-01',
required: true,
},
{
displayName: 'End Date',
name: 'endDate',
type: 'string',
displayOptions: {
show: {
operation: ['getHolidayInfo'],
},
},
default: '={{new Date(new Date().getTime() + 30 * 24 * 60 * 60 * 1000).toISOString().split("T")[0]}}',
description: 'End date for holiday range (YYYY-MM-DD format)',
placeholder: '2024-12-31',
required: true,
},
{
displayName: 'Additional Options',
name: 'additionalOptions',
type: 'collection',
placeholder: 'Add Option',
default: {},
options: [
{
displayName: 'Candle Lighting Minutes',
name: 'candleLightingMinutes',
type: 'number',
default: 18,
description: 'Minutes before sunset for candle lighting (18 for most places, 40 for Jerusalem)',
typeOptions: {
minValue: 0,
maxValue: 60,
},
},
{
displayName: 'Havdalah Minutes',
name: 'havdalahMinutes',
type: 'number',
default: 0,
description: 'Minutes after sunset for Havdalah (0 for tzeit/nightfall, or fixed minutes like 42, 50, 72)',
typeOptions: {
minValue: 0,
maxValue: 90,
},
},
{
displayName: 'Include Fast Days',
name: 'includeFastDays',
type: 'boolean',
default: true,
description: 'Whether to include minor fast days',
},
{
displayName: 'Include Minor Holidays',
name: 'includeMinorHolidays',
type: 'boolean',
default: true,
description: 'Whether to include minor holidays like Tu BiShvat, Lag BaOmer, etc',
},
{
displayName: 'Include Modern Holidays',
name: 'includeModernHolidays',
type: 'boolean',
default: true,
description: 'Whether to include modern Israeli holidays (Yom HaShoah, Yom HaZikaron, etc.)',
},
{
displayName: 'Include Rosh Chodesh',
name: 'includeRoshChodesh',
type: 'boolean',
default: true,
description: 'Whether to include Rosh Chodesh (new moon) dates',
},
{
displayName: 'Include Special Shabbatot',
name: 'includeSpecialShabbatot',
type: 'boolean',
default: true,
description: 'Whether to include special Shabbatot (Shekalim, Zachor, etc.)',
},
],
},
];
//# sourceMappingURL=HebrewCalendarDescription.js.map