n8n-nodes-engine4 0.0.0-stage → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/LICENSE.md +21 -0
  2. package/README.md +91 -2
  3. package/dist/credentials/Engine4Api.credentials.d.ts +13 -0
  4. package/dist/credentials/Engine4Api.credentials.js +106 -0
  5. package/dist/credentials/Engine4Api.credentials.js.map +1 -0
  6. package/dist/nodes/Engine4/Engine4.node.d.ts +20 -0
  7. package/dist/nodes/Engine4/Engine4.node.js +136 -0
  8. package/dist/nodes/Engine4/Engine4.node.js.map +1 -0
  9. package/dist/nodes/Engine4/Engine4.node.json +18 -0
  10. package/dist/nodes/Engine4/actions/record/create.d.ts +3 -0
  11. package/dist/nodes/Engine4/actions/record/create.js +16 -0
  12. package/dist/nodes/Engine4/actions/record/create.js.map +1 -0
  13. package/dist/nodes/Engine4/actions/record/createInView.d.ts +3 -0
  14. package/dist/nodes/Engine4/actions/record/createInView.js +17 -0
  15. package/dist/nodes/Engine4/actions/record/createInView.js.map +1 -0
  16. package/dist/nodes/Engine4/actions/record/getMany.d.ts +3 -0
  17. package/dist/nodes/Engine4/actions/record/getMany.js +94 -0
  18. package/dist/nodes/Engine4/actions/record/getMany.js.map +1 -0
  19. package/dist/nodes/Engine4/actions/record/index.d.ts +7 -0
  20. package/dist/nodes/Engine4/actions/record/index.js +89 -0
  21. package/dist/nodes/Engine4/actions/record/index.js.map +1 -0
  22. package/dist/nodes/Engine4/actions/record/update.d.ts +3 -0
  23. package/dist/nodes/Engine4/actions/record/update.js +17 -0
  24. package/dist/nodes/Engine4/actions/record/update.js.map +1 -0
  25. package/dist/nodes/Engine4/engine4.dark.svg +1 -0
  26. package/dist/nodes/Engine4/engine4.svg +1 -0
  27. package/dist/nodes/helpers/api.d.ts +10 -0
  28. package/dist/nodes/helpers/api.js +74 -0
  29. package/dist/nodes/helpers/api.js.map +1 -0
  30. package/dist/nodes/helpers/fields.d.ts +21 -0
  31. package/dist/nodes/helpers/fields.js +316 -0
  32. package/dist/nodes/helpers/fields.js.map +1 -0
  33. package/dist/nodes/helpers/functions.d.ts +7 -0
  34. package/dist/nodes/helpers/functions.js +195 -0
  35. package/dist/nodes/helpers/functions.js.map +1 -0
  36. package/dist/nodes/helpers/records.d.ts +7 -0
  37. package/dist/nodes/helpers/records.js +50 -0
  38. package/dist/nodes/helpers/records.js.map +1 -0
  39. package/dist/nodes/helpers/types.d.ts +143 -0
  40. package/dist/nodes/helpers/types.js +49 -0
  41. package/dist/nodes/helpers/types.js.map +1 -0
  42. package/dist/package.json +56 -0
  43. package/dist/tsconfig.tsbuildinfo +1 -0
  44. package/package.json +55 -5
@@ -0,0 +1,195 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.searchEntities = searchEntities;
4
+ exports.getEntityFields = getEntityFields;
5
+ exports.getFilterFields = getFilterFields;
6
+ exports.getEntityFieldsForUpdate = getEntityFieldsForUpdate;
7
+ exports.getInsertViews = getInsertViews;
8
+ exports.getViewFields = getViewFields;
9
+ const types_1 = require("./types");
10
+ const api_1 = require("./api");
11
+ const INSERT_VIEW_TYPE = 'Insert';
12
+ const EMPTY_GUID = '00000000-0000-0000-0000-000000000000';
13
+ const SYSTEM_COLUMNS = [
14
+ { name: 'Data ID (System)', value: 'DataId' },
15
+ { name: 'Created Date (System)', value: 'CreatedDate' },
16
+ { name: 'Created By (System)', value: 'CreatedBy' },
17
+ { name: 'Modified Date (System)', value: 'ModifiedDate' },
18
+ { name: 'Modified By (System)', value: 'ModifiedBy' },
19
+ { name: 'Entry Time (System)', value: 'EntryTime' },
20
+ { name: 'Display Value (System)', value: 'DisplayValue' },
21
+ ];
22
+ async function searchEntities(filter) {
23
+ const entities = await api_1.getGenericEntities.call(this);
24
+ const search = filter === null || filter === void 0 ? void 0 : filter.toLowerCase().trim();
25
+ const results = entities
26
+ .filter((entity) => entity.AllowExternalApi !== false)
27
+ .map((entity) => ({
28
+ name: entity.EntityFriendlyName
29
+ ? `${entity.EntityFriendlyName} (${entity.EntityName})`
30
+ : entity.EntityName,
31
+ value: entity.EntityId,
32
+ }))
33
+ .filter((entry) => !search || entry.name.toLowerCase().includes(search))
34
+ .sort((a, b) => a.name.localeCompare(b.name));
35
+ return { results };
36
+ }
37
+ const FIELD_TYPES_BY_NAME = new Map(Object.values(types_1.Engine4FieldType).map((type) => [type.toLowerCase(), type]));
38
+ function parseFieldType(dataType) {
39
+ return FIELD_TYPES_BY_NAME.get((dataType !== null && dataType !== void 0 ? dataType : '').toLowerCase());
40
+ }
41
+ const DISPLAY_ONLY_TYPES = new Set([
42
+ types_1.Engine4FieldType.nonHtmlDisplay,
43
+ types_1.Engine4FieldType.textblock,
44
+ types_1.Engine4FieldType.imageblock,
45
+ types_1.Engine4FieldType.configHelp,
46
+ types_1.Engine4FieldType.subview,
47
+ types_1.Engine4FieldType.groupAggregation,
48
+ ]);
49
+ function toFieldType(type) {
50
+ switch (type) {
51
+ case types_1.Engine4FieldType.checkbox:
52
+ case types_1.Engine4FieldType.decision:
53
+ return 'boolean';
54
+ case types_1.Engine4FieldType.integer:
55
+ case types_1.Engine4FieldType.year:
56
+ case types_1.Engine4FieldType.decimal:
57
+ return 'number';
58
+ case types_1.Engine4FieldType.date:
59
+ case types_1.Engine4FieldType.datetime:
60
+ return 'dateTime';
61
+ case types_1.Engine4FieldType.time:
62
+ return 'time';
63
+ case types_1.Engine4FieldType.hyperlink:
64
+ return 'url';
65
+ case types_1.Engine4FieldType.textarea:
66
+ case types_1.Engine4FieldType.richtext:
67
+ case types_1.Engine4FieldType.markdown:
68
+ case types_1.Engine4FieldType.password:
69
+ case types_1.Engine4FieldType.passwordarea:
70
+ case types_1.Engine4FieldType.filechooser:
71
+ case types_1.Engine4FieldType.singledocument:
72
+ case types_1.Engine4FieldType.signature:
73
+ case types_1.Engine4FieldType.filters:
74
+ case types_1.Engine4FieldType.specialized:
75
+ case types_1.Engine4FieldType.serialized:
76
+ case types_1.Engine4FieldType.custom:
77
+ case types_1.Engine4FieldType.monthyear:
78
+ case types_1.Engine4FieldType.input:
79
+ case types_1.Engine4FieldType.tel:
80
+ case types_1.Engine4FieldType.mail:
81
+ case types_1.Engine4FieldType.geocode:
82
+ case types_1.Engine4FieldType.color:
83
+ case types_1.Engine4FieldType.icon:
84
+ case types_1.Engine4FieldType.iconv2:
85
+ case types_1.Engine4FieldType.select:
86
+ case types_1.Engine4FieldType.inputSelect:
87
+ case types_1.Engine4FieldType.asyncselect:
88
+ case types_1.Engine4FieldType.autocomplete:
89
+ case types_1.Engine4FieldType.multidropdown:
90
+ case types_1.Engine4FieldType.multiDecision:
91
+ case types_1.Engine4FieldType.richdocumentLookup:
92
+ default:
93
+ return 'string';
94
+ }
95
+ }
96
+ function mapFieldToProperty(property, label) {
97
+ var _a;
98
+ const name = (label === null || label === void 0 ? void 0 : label.trim()) || ((_a = property.PropertyName) === null || _a === void 0 ? void 0 : _a.trim()) || property.GenericColumnName;
99
+ const fieldType = parseFieldType(property.DataType);
100
+ return {
101
+ id: property.GenericColumnName,
102
+ displayName: `${name} (${property.GenericColumnName})`,
103
+ type: toFieldType(fieldType),
104
+ required: property.IsRequired === true,
105
+ defaultMatch: false,
106
+ canBeUsedToMatch: false,
107
+ display: fieldType === undefined || !DISPLAY_ONLY_TYPES.has(fieldType),
108
+ };
109
+ }
110
+ async function getEntityFields() {
111
+ const entityId = this.getNodeParameter('entity', undefined, { extractValue: true });
112
+ if (!entityId) {
113
+ return { fields: [], emptyFieldsNotice: 'Select an entity first' };
114
+ }
115
+ const properties = await api_1.getGenericProperties.call(this, entityId);
116
+ return {
117
+ fields: properties.map((property) => mapFieldToProperty(property)),
118
+ emptyFieldsNotice: 'This entity has no fields that can be written through the API',
119
+ };
120
+ }
121
+ async function getFilterFields() {
122
+ const entityId = this.getNodeParameter('entity', undefined, { extractValue: true });
123
+ if (!entityId) {
124
+ return SYSTEM_COLUMNS;
125
+ }
126
+ const properties = await api_1.getGenericProperties.call(this, entityId);
127
+ const columns = properties
128
+ .filter((property) => {
129
+ const fieldType = parseFieldType(property.DataType);
130
+ return fieldType === undefined || !DISPLAY_ONLY_TYPES.has(fieldType);
131
+ })
132
+ .map((property) => {
133
+ var _a;
134
+ const label = ((_a = property.PropertyName) === null || _a === void 0 ? void 0 : _a.trim()) || property.GenericColumnName;
135
+ return {
136
+ name: `${label} (${property.GenericColumnName})`,
137
+ value: property.GenericColumnName,
138
+ };
139
+ })
140
+ .sort((a, b) => a.name.localeCompare(b.name));
141
+ return [...SYSTEM_COLUMNS, ...columns];
142
+ }
143
+ async function getEntityFieldsForUpdate() {
144
+ const result = await getEntityFields.call(this);
145
+ return {
146
+ ...result,
147
+ fields: result.fields.map((field) => ({ ...field, required: false })),
148
+ };
149
+ }
150
+ async function getInsertViews(filter) {
151
+ const entityId = this.getNodeParameter('entity', undefined, { extractValue: true });
152
+ if (!entityId) {
153
+ return { results: [] };
154
+ }
155
+ const views = await api_1.getGenericViews.call(this, entityId);
156
+ const search = filter === null || filter === void 0 ? void 0 : filter.toLowerCase().trim();
157
+ const results = views
158
+ .filter((view) => view.ViewType === INSERT_VIEW_TYPE)
159
+ .map((view) => ({ name: view.ViewName, value: view.ViewId }))
160
+ .filter((entry) => !search || entry.name.toLowerCase().includes(search))
161
+ .sort((a, b) => a.name.localeCompare(b.name));
162
+ return { results };
163
+ }
164
+ async function getViewFields() {
165
+ var _a;
166
+ const entityId = this.getNodeParameter('entity', undefined, { extractValue: true });
167
+ const viewId = this.getNodeParameter('view', undefined, { extractValue: true });
168
+ if (!entityId || !viewId) {
169
+ return { fields: [], emptyFieldsNotice: 'Select an entity and a view first' };
170
+ }
171
+ const [viewFields, properties] = await Promise.all([
172
+ api_1.getGenericViewFields.call(this, viewId),
173
+ api_1.getGenericProperties.call(this, entityId),
174
+ ]);
175
+ const propertiesById = new Map(properties.map((property) => [property.PropertyId, property]));
176
+ const fields = [];
177
+ const seenColumns = new Set();
178
+ for (const viewField of viewFields) {
179
+ if (viewField.AssociatedViewField && viewField.AssociatedViewField !== EMPTY_GUID) {
180
+ continue;
181
+ }
182
+ const property = propertiesById.get((_a = viewField.PropertyId) !== null && _a !== void 0 ? _a : '');
183
+ if (!property || seenColumns.has(property.GenericColumnName)) {
184
+ continue;
185
+ }
186
+ seenColumns.add(property.GenericColumnName);
187
+ fields.push(mapFieldToProperty(property, viewField.ViewFieldLabel));
188
+ }
189
+ fields.sort((a, b) => a.displayName.localeCompare(b.displayName));
190
+ return {
191
+ fields,
192
+ emptyFieldsNotice: 'This view has no fields that can be written through the API',
193
+ };
194
+ }
195
+ //# sourceMappingURL=functions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"functions.js","sourceRoot":"","sources":["../../../nodes/helpers/functions.ts"],"names":[],"mappings":";;AAmCA,wCAoBC;AA0FD,0CAaC;AAED,0CA0BC;AAED,4DASC;AAED,wCAoBC;AAED,sCAuCC;AAzPD,mCAA2C;AAC3C,+BAKe;AAGf,MAAM,gBAAgB,GAAG,QAAQ,CAAC;AAGlC,MAAM,UAAU,GAAG,sCAAsC,CAAC;AAE1D,MAAM,cAAc,GAA2B;IAC9C,EAAE,IAAI,EAAE,kBAAkB,EAAE,KAAK,EAAE,QAAQ,EAAE;IAC7C,EAAE,IAAI,EAAE,uBAAuB,EAAE,KAAK,EAAE,aAAa,EAAE;IACvD,EAAE,IAAI,EAAE,qBAAqB,EAAE,KAAK,EAAE,WAAW,EAAE;IACnD,EAAE,IAAI,EAAE,wBAAwB,EAAE,KAAK,EAAE,cAAc,EAAE;IACzD,EAAE,IAAI,EAAE,sBAAsB,EAAE,KAAK,EAAE,YAAY,EAAE;IACrD,EAAE,IAAI,EAAE,qBAAqB,EAAE,KAAK,EAAE,WAAW,EAAE;IACnD,EAAE,IAAI,EAAE,wBAAwB,EAAE,KAAK,EAAE,cAAc,EAAE;CACzD,CAAC;AAEK,KAAK,UAAU,cAAc,CAEnC,MAAe;IAEf,MAAM,QAAQ,GAA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AC,CAAC,CAAC,CAAC;IAE9F,MAAM,MAAM,GAA0B,EAAE,CAAC;IACzC,MAAM,WAAW,GAAG,IAAI,GAAG,EAAU,CAAC;IAEtC,KAAK,MAAM,SAAS,IAAI,UAAU,EAAE,CAAC;QAEpC,IAAI,SAAS,CAAC,mBAAmB,IAAI,SAAS,CAAC,mBAAmB,KAAK,UAAU,EAAE,CAAC;YACnF,SAAS;QACV,CAAC;QAED,MAAM,QAAQ,GAAG,cAAc,CAAC,GAAG,CAAC,MAAA,SAAS,CAAC,UAAU,mCAAI,EAAE,CAAC,CAAC;QAChE,IAAI,CAAC,QAAQ,IAAI,WAAW,CAAC,GAAG,CAAC,QAAQ,CAAC,iBAAiB,CAAC,EAAE,CAAC;YAC9D,SAAS;QACV,CAAC;QAED,WAAW,CAAC,GAAG,CAAC,QAAQ,CAAC,iBAAiB,CAAC,CAAC;QAC5C,MAAM,CAAC,IAAI,CAAC,kBAAkB,CAAC,QAAQ,EAAE,SAAS,CAAC,cAAc,CAAC,CAAC,CAAC;IACrE,CAAC;IAGD,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC;IAElE,OAAO;QACN,MAAM;QACN,iBAAiB,EAAE,6DAA6D;KAChF,CAAC;AACH,CAAC"}
@@ -0,0 +1,7 @@
1
+ import type { IExecuteFunctions, INodeExecutionData } from 'n8n-workflow';
2
+ interface SaveRecordOptions {
3
+ onlyMappedColumns?: boolean;
4
+ withDataId?: boolean;
5
+ }
6
+ export declare function saveRecordFromParameters(this: IExecuteFunctions, itemIndex: number, { onlyMappedColumns, withDataId }?: SaveRecordOptions): Promise<INodeExecutionData[]>;
7
+ export {};
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.saveRecordFromParameters = saveRecordFromParameters;
4
+ const n8n_workflow_1 = require("n8n-workflow");
5
+ const api_1 = require("./api");
6
+ async function saveRecordFromParameters(itemIndex, { onlyMappedColumns = false, withDataId = false } = {}) {
7
+ var _a, _b;
8
+ const entityId = this.getNodeParameter('entity', itemIndex, '', {
9
+ extractValue: true,
10
+ });
11
+ let dataId;
12
+ if (withDataId) {
13
+ dataId = this.getNodeParameter('dataId', itemIndex, '').trim();
14
+ if (!dataId) {
15
+ throw new n8n_workflow_1.NodeOperationError(this.getNode(), `The 'DataId' parameter is empty [item ${itemIndex}]`, {
16
+ itemIndex,
17
+ description: 'Enter or map the DataId of the ENGINE4 record to update, e.g. {{ $json.DataId }}',
18
+ });
19
+ }
20
+ }
21
+ const options = this.getNodeParameter('options', itemIndex, {});
22
+ const returnType = (_a = options.returnType) !== null && _a !== void 0 ? _a : 'full';
23
+ const values = (_b = this.getNodeParameter('fields.value', itemIndex, {})) !== null && _b !== void 0 ? _b : {};
24
+ let allowedColumns;
25
+ if (onlyMappedColumns) {
26
+ const schema = this.getNodeParameter('fields.schema', itemIndex, []);
27
+ allowedColumns = new Set(schema.filter((field) => field.display).map((field) => field.id));
28
+ }
29
+ const record = {};
30
+ for (const [key, value] of Object.entries(values)) {
31
+ if (value === undefined || value === null || value === '') {
32
+ continue;
33
+ }
34
+ if (allowedColumns && !allowedColumns.has(key)) {
35
+ continue;
36
+ }
37
+ record[key] = value;
38
+ }
39
+ record.EntityId = entityId;
40
+ if (dataId) {
41
+ record.DataId = dataId;
42
+ }
43
+ const response = await api_1.saveAll.call(this, [record], returnType);
44
+ if (response === undefined) {
45
+ return [{ json: { success: true }, pairedItem: { item: itemIndex } }];
46
+ }
47
+ const records = Array.isArray(response) ? response : [response];
48
+ return records.map((json) => ({ json, pairedItem: { item: itemIndex } }));
49
+ }
50
+ //# sourceMappingURL=records.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"records.js","sourceRoot":"","sources":["../../../nodes/helpers/records.ts"],"names":[],"mappings":";;AAgBA,4DA8DC;AAxED,+CA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 export type Engine4ReturnType = 'full' | 'dataId' | 'none';
3
+ export interface IEntity {
4
+ EntityId: string;
5
+ EntityName: string;
6
+ EntityFriendlyName?: string;
7
+ IsMobileEntity?: boolean;
8
+ AllowExternalApi?: boolean;
9
+ }
10
+ export interface IProperty {
11
+ EntityId: string;
12
+ PropertyId: string;
13
+ GenericColumnName: string;
14
+ PropertyName?: string;
15
+ DataType?: string;
16
+ Size?: number | null;
17
+ Precision?: number | null;
18
+ Scale?: number | null;
19
+ IsUtc?: boolean;
20
+ IsRequired?: boolean;
21
+ LookupEntityId?: string | null;
22
+ }
23
+ export interface IView {
24
+ EntityId: string;
25
+ ViewId: string;
26
+ ViewName: string;
27
+ ViewType: string;
28
+ IsMobile?: boolean;
29
+ }
30
+ export interface IViewField {
31
+ ViewId: string;
32
+ ViewFieldId: string;
33
+ PropertyId?: string | null;
34
+ PropertyName?: string;
35
+ AssociatedViewField?: string | null;
36
+ AssociatedViewId?: string | null;
37
+ PositionX?: number | null;
38
+ PositionY?: number | null;
39
+ Width?: number | null;
40
+ Height?: number | null;
41
+ GenericColumnName?: string;
42
+ FieldGenericColumnName?: string;
43
+ ViewFieldLabel?: string;
44
+ }
45
+ export declare enum Engine4FieldType {
46
+ input = "input",
47
+ textarea = "textarea",
48
+ select = "select",
49
+ inputSelect = "inputSelect",
50
+ asyncselect = "asyncselect",
51
+ multidropdown = "multidropdown",
52
+ richdocumentLookup = "richdocumentLookup",
53
+ checkbox = "checkbox",
54
+ decision = "decision",
55
+ multiDecision = "multiDecision",
56
+ time = "time",
57
+ date = "date",
58
+ monthyear = "monthyear",
59
+ year = "year",
60
+ datetime = "datetime",
61
+ filechooser = "filechooser",
62
+ filters = "filters",
63
+ specialized = "specialized",
64
+ singledocument = "singledocument",
65
+ signature = "signature",
66
+ richtext = "richtext",
67
+ tel = "tel",
68
+ mail = "mail",
69
+ nonHtmlDisplay = "nonHtmlDisplay",
70
+ hyperlink = "hyperlink",
71
+ subview = "subview",
72
+ geocode = "geocode",
73
+ color = "color",
74
+ password = "password",
75
+ passwordarea = "passwordarea",
76
+ autocomplete = "autocomplete",
77
+ integer = "integer",
78
+ decimal = "decimal",
79
+ icon = "icon",
80
+ iconv2 = "iconv2",
81
+ serialized = "serialized",
82
+ groupAggregation = "groupAggregation",
83
+ configHelp = "configHelp",
84
+ textblock = "textblock",
85
+ custom = "custom",
86
+ imageblock = "imageblock",
87
+ markdown = "markdown"
88
+ }
89
+ export interface IGenericDataElement extends IDataObject {
90
+ DataId?: string;
91
+ EntityId?: string;
92
+ EntityName?: string;
93
+ UserId?: string;
94
+ UserName?: string;
95
+ MandatorId?: string;
96
+ MandatorName?: string;
97
+ DisplayValue?: string;
98
+ EntryTime?: string;
99
+ IsActive?: boolean;
100
+ AttachmentCount?: number;
101
+ AttachmentSizeMB?: number;
102
+ RecordCount?: number;
103
+ DeviceId?: string;
104
+ RelatedCustoms?: {
105
+ [dotSeparatedColumnNames: string]: string;
106
+ };
107
+ ModifiedDate?: string;
108
+ ModifiedById?: string;
109
+ ModifiedBy?: string;
110
+ CreatedDate?: string;
111
+ CreatedById?: string;
112
+ CreatedBy?: string;
113
+ TriggerStamp?: string;
114
+ HasWriteAccess?: boolean;
115
+ }
116
+ export type FetchCompareOperator = '=' | '!=' | '<' | '>' | '<=' | '>=' | 'LIKE' | 'CONTAINS' | 'ISNULL' | 'ISNOTNULL' | 'IN';
117
+ export interface IFetchFilter extends IDataObject {
118
+ GenericName: string;
119
+ CompareOperator: FetchCompareOperator;
120
+ Value?: string | string[];
121
+ Logic?: 'AND' | 'OR';
122
+ Groups?: IFetchFilter[];
123
+ }
124
+ export interface IFetchSorting extends IDataObject {
125
+ GenericName: string;
126
+ Descending: boolean;
127
+ }
128
+ export interface IFetchRequest extends IDataObject {
129
+ EntityId: string;
130
+ Take: number;
131
+ Skip: number;
132
+ Filter: IFetchFilter | null;
133
+ Sortings: IFetchSorting[];
134
+ IsActive: boolean;
135
+ WithLongValues: boolean;
136
+ ConvertAllCustomDataToStrings: boolean;
137
+ WithTotalCount: boolean;
138
+ }
139
+ export interface IFetchResponse {
140
+ Items?: IGenericDataElement[];
141
+ TotalCount?: number | null;
142
+ Aggregations?: unknown;
143
+ }
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Engine4FieldType = void 0;
4
+ var Engine4FieldType;
5
+ (function (Engine4FieldType) {
6
+ Engine4FieldType["input"] = "input";
7
+ Engine4FieldType["textarea"] = "textarea";
8
+ Engine4FieldType["select"] = "select";
9
+ Engine4FieldType["inputSelect"] = "inputSelect";
10
+ Engine4FieldType["asyncselect"] = "asyncselect";
11
+ Engine4FieldType["multidropdown"] = "multidropdown";
12
+ Engine4FieldType["richdocumentLookup"] = "richdocumentLookup";
13
+ Engine4FieldType["checkbox"] = "checkbox";
14
+ Engine4FieldType["decision"] = "decision";
15
+ Engine4FieldType["multiDecision"] = "multiDecision";
16
+ Engine4FieldType["time"] = "time";
17
+ Engine4FieldType["date"] = "date";
18
+ Engine4FieldType["monthyear"] = "monthyear";
19
+ Engine4FieldType["year"] = "year";
20
+ Engine4FieldType["datetime"] = "datetime";
21
+ Engine4FieldType["filechooser"] = "filechooser";
22
+ Engine4FieldType["filters"] = "filters";
23
+ Engine4FieldType["specialized"] = "specialized";
24
+ Engine4FieldType["singledocument"] = "singledocument";
25
+ Engine4FieldType["signature"] = "signature";
26
+ Engine4FieldType["richtext"] = "richtext";
27
+ Engine4FieldType["tel"] = "tel";
28
+ Engine4FieldType["mail"] = "mail";
29
+ Engine4FieldType["nonHtmlDisplay"] = "nonHtmlDisplay";
30
+ Engine4FieldType["hyperlink"] = "hyperlink";
31
+ Engine4FieldType["subview"] = "subview";
32
+ Engine4FieldType["geocode"] = "geocode";
33
+ Engine4FieldType["color"] = "color";
34
+ Engine4FieldType["password"] = "password";
35
+ Engine4FieldType["passwordarea"] = "passwordarea";
36
+ Engine4FieldType["autocomplete"] = "autocomplete";
37
+ Engine4FieldType["integer"] = "integer";
38
+ Engine4FieldType["decimal"] = "decimal";
39
+ Engine4FieldType["icon"] = "icon";
40
+ Engine4FieldType["iconv2"] = "iconv2";
41
+ Engine4FieldType["serialized"] = "serialized";
42
+ Engine4FieldType["groupAggregation"] = "groupAggregation";
43
+ Engine4FieldType["configHelp"] = "configHelp";
44
+ Engine4FieldType["textblock"] = "textblock";
45
+ Engine4FieldType["custom"] = "custom";
46
+ Engine4FieldType["imageblock"] = "imageblock";
47
+ Engine4FieldType["markdown"] = "markdown";
48
+ })(Engine4FieldType || (exports.Engine4FieldType = Engine4FieldType = {}));
49
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../nodes/helpers/types.ts"],"names":[],"mappings":";;;AAmDA,IAAY,gBA2CX;AA3CD,WAAY,gBAAgB;IAC3B,mCAAe,CAAA;IACf,yCAAqB,CAAA;IACrB,qCAAiB,CAAA;IACjB,+CAA2B,CAAA;IAC3B,+CAA2B,CAAA;IAC3B,mDAA+B,CAAA;IAC/B,6DAAyC,CAAA;IACzC,yCAAqB,CAAA;IACrB,yCAAqB,CAAA;IACrB,mDAA+B,CAAA;IAC/B,iCAAa,CAAA;IACb,iCAAa,CAAA;IACb,2CAAuB,CAAA;IACvB,iCAAa,CAAA;IACb,yCAAqB,CAAA;IACrB,+CAA2B,CAAA;IAC3B,uCAAmB,CAAA;IACnB,+CAA2B,CAAA;IAC3B,qDAAiC,CAAA;IACjC,2CAAuB,CAAA;IACvB,yCAAqB,CAAA;IACrB,+BAAW,CAAA;IACX,iCAAa,CAAA;IACb,qDAAiC,CAAA;IACjC,2CAAuB,CAAA;IACvB,uCAAmB,CAAA;IACnB,uCAAmB,CAAA;IACnB,mCAAe,CAAA;IACf,yCAAqB,CAAA;IACrB,iDAA6B,CAAA;IAC7B,iDAA6B,CAAA;IAC7B,uCAAmB,CAAA;IACnB,uCAAmB,CAAA;IACnB,iCAAa,CAAA;IACb,qCAAiB,CAAA;IACjB,6CAAyB,CAAA;IACzB,yDAAqC,CAAA;IACrC,6CAAyB,CAAA;IACzB,2CAAuB,CAAA;IACvB,qCAAiB,CAAA;IACjB,6CAAyB,CAAA;IACzB,yCAAqB,CAAA;AACtB,CAAC,EA3CW,gBAAgB,gCAAhB,gBAAgB,QA2C3B"}
@@ -0,0 +1,56 @@
1
+ {
2
+ "name": "n8n-nodes-engine4",
3
+ "version": "1.0.0",
4
+ "description": "n8n community node for ENGINE4 by Mobile Function",
5
+ "license": "MIT",
6
+ "homepage": "https://www.mobile-function.com/",
7
+ "keywords": [
8
+ "n8n-community-node-package",
9
+ "engine4",
10
+ "mobile-function",
11
+ "field-service-management"
12
+ ],
13
+ "author": {
14
+ "name": "mobile function",
15
+ "email": "info@mobile-function.com"
16
+ },
17
+ "repository": {
18
+ "type": "git",
19
+ "url": "https://github.com/Mobile-Function-GmbH/n8n-nodes-engine4.git"
20
+ },
21
+ "scripts": {
22
+ "build": "n8n-node build",
23
+ "build:watch": "tsc --watch",
24
+ "dev": "n8n-node dev",
25
+ "lint": "n8n-node lint",
26
+ "lint:fix": "n8n-node lint --fix",
27
+ "release": "n8n-node release",
28
+ "prepublishOnly": "n8n-node prerelease"
29
+ },
30
+ "publishConfig": {
31
+ "access": "public"
32
+ },
33
+ "files": [
34
+ "dist"
35
+ ],
36
+ "n8n": {
37
+ "n8nNodesApiVersion": 1,
38
+ "strict": true,
39
+ "credentials": [
40
+ "dist/credentials/Engine4Api.credentials.js"
41
+ ],
42
+ "nodes": [
43
+ "dist/nodes/Engine4/Engine4.node.js"
44
+ ]
45
+ },
46
+ "devDependencies": {
47
+ "@n8n/node-cli": "*",
48
+ "eslint": "9.32.0",
49
+ "prettier": "3.6.2",
50
+ "release-it": "^21.1.0",
51
+ "typescript": "5.9.2"
52
+ },
53
+ "peerDependencies": {
54
+ "n8n-workflow": "*"
55
+ }
56
+ }