n8n-nodes-layerre 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 (47) hide show
  1. package/LICENSE +22 -0
  2. package/README.md +147 -0
  3. package/dist/credentials/LayerreApi.credentials.d.ts +10 -0
  4. package/dist/credentials/LayerreApi.credentials.js +49 -0
  5. package/dist/credentials/LayerreApi.credentials.js.map +1 -0
  6. package/dist/nodes/Layerre/GenericFunctions.d.ts +2 -0
  7. package/dist/nodes/Layerre/GenericFunctions.js +27 -0
  8. package/dist/nodes/Layerre/GenericFunctions.js.map +1 -0
  9. package/dist/nodes/Layerre/Layerre.node.d.ts +11 -0
  10. package/dist/nodes/Layerre/Layerre.node.js +257 -0
  11. package/dist/nodes/Layerre/Layerre.node.js.map +1 -0
  12. package/dist/nodes/Layerre/Layerre.node.json +22 -0
  13. package/dist/nodes/Layerre/layerre.png +0 -0
  14. package/dist/nodes/Layerre/layerre.svg +34 -0
  15. package/dist/nodes/Layerre/resources/template/create.d.ts +2 -0
  16. package/dist/nodes/Layerre/resources/template/create.js +31 -0
  17. package/dist/nodes/Layerre/resources/template/create.js.map +1 -0
  18. package/dist/nodes/Layerre/resources/template/delete.d.ts +2 -0
  19. package/dist/nodes/Layerre/resources/template/delete.js +24 -0
  20. package/dist/nodes/Layerre/resources/template/delete.js.map +1 -0
  21. package/dist/nodes/Layerre/resources/template/get.d.ts +2 -0
  22. package/dist/nodes/Layerre/resources/template/get.js +24 -0
  23. package/dist/nodes/Layerre/resources/template/get.js.map +1 -0
  24. package/dist/nodes/Layerre/resources/template/getAll.d.ts +2 -0
  25. package/dist/nodes/Layerre/resources/template/getAll.js +71 -0
  26. package/dist/nodes/Layerre/resources/template/getAll.js.map +1 -0
  27. package/dist/nodes/Layerre/resources/template/index.d.ts +2 -0
  28. package/dist/nodes/Layerre/resources/template/index.js +77 -0
  29. package/dist/nodes/Layerre/resources/template/index.js.map +1 -0
  30. package/dist/nodes/Layerre/resources/variant/create.d.ts +2 -0
  31. package/dist/nodes/Layerre/resources/variant/create.js +312 -0
  32. package/dist/nodes/Layerre/resources/variant/create.js.map +1 -0
  33. package/dist/nodes/Layerre/resources/variant/delete.d.ts +2 -0
  34. package/dist/nodes/Layerre/resources/variant/delete.js +39 -0
  35. package/dist/nodes/Layerre/resources/variant/delete.js.map +1 -0
  36. package/dist/nodes/Layerre/resources/variant/get.d.ts +2 -0
  37. package/dist/nodes/Layerre/resources/variant/get.js +39 -0
  38. package/dist/nodes/Layerre/resources/variant/get.js.map +1 -0
  39. package/dist/nodes/Layerre/resources/variant/getAll.d.ts +2 -0
  40. package/dist/nodes/Layerre/resources/variant/getAll.js +72 -0
  41. package/dist/nodes/Layerre/resources/variant/getAll.js.map +1 -0
  42. package/dist/nodes/Layerre/resources/variant/index.d.ts +2 -0
  43. package/dist/nodes/Layerre/resources/variant/index.js +168 -0
  44. package/dist/nodes/Layerre/resources/variant/index.js.map +1 -0
  45. package/dist/package.json +37 -0
  46. package/dist/tsconfig.tsbuildinfo +1 -0
  47. package/package.json +50 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create.js","sourceRoot":"","sources":["../../../../../nodes/Layerre/resources/template/create.ts"],"names":[],"mappings":";;;AAEA,MAAM,yBAAyB,GAAG;IACjC,SAAS,EAAE,CAAC,QAAQ,CAAC;IACrB,QAAQ,EAAE,CAAC,UAAU,CAAC;CACtB,CAAC;AAEW,QAAA,yBAAyB,GAAsB;IAC3D;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE;YACZ,SAAS,EAAE,IAAI;SACf;QACD,cAAc,EAAE;YACf,IAAI,EAAE,yBAAyB;SAC/B;QACD,WAAW,EAAE,qDAAqD;QAClE,WAAW,EAAE,4DAA4D;QACzE,OAAO,EAAE;YACR,IAAI,EAAE;gBACL,IAAI,EAAE,MAAM;gBACZ,QAAQ,EAAE,WAAW;aACrB;SACD;KACD;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const templateDeleteDescription: INodeProperties[];
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.templateDeleteDescription = void 0;
4
+ const showOnlyForTemplateDelete = {
5
+ operation: ['delete'],
6
+ resource: ['template'],
7
+ };
8
+ exports.templateDeleteDescription = [
9
+ {
10
+ displayName: 'Template Name or ID',
11
+ name: 'templateId',
12
+ type: 'options',
13
+ typeOptions: {
14
+ loadOptionsMethod: 'getTemplates',
15
+ },
16
+ default: '',
17
+ required: true,
18
+ displayOptions: {
19
+ show: showOnlyForTemplateDelete,
20
+ },
21
+ description: 'The template to delete. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
22
+ },
23
+ ];
24
+ //# sourceMappingURL=delete.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete.js","sourceRoot":"","sources":["../../../../../nodes/Layerre/resources/template/delete.ts"],"names":[],"mappings":";;;AAEA,MAAM,yBAAyB,GAAG;IACjC,SAAS,EAAE,CAAC,QAAQ,CAAC;IACrB,QAAQ,EAAE,CAAC,UAAU,CAAC;CACtB,CAAC;AAEW,QAAA,yBAAyB,GAAsB;IAC3D;QACC,WAAW,EAAE,qBAAqB;QAClC,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE,SAAS;QACf,WAAW,EAAE;YACZ,iBAAiB,EAAE,cAAc;SACjC;QACD,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE,yBAAyB;SAC/B;QACD,WAAW,EAAE,yIAAyI;KACtJ;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const templateGetDescription: INodeProperties[];
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.templateGetDescription = void 0;
4
+ const showOnlyForTemplateGet = {
5
+ operation: ['get'],
6
+ resource: ['template'],
7
+ };
8
+ exports.templateGetDescription = [
9
+ {
10
+ displayName: 'Template Name or ID',
11
+ name: 'templateId',
12
+ type: 'options',
13
+ typeOptions: {
14
+ loadOptionsMethod: 'getTemplates',
15
+ },
16
+ default: '',
17
+ required: true,
18
+ displayOptions: {
19
+ show: showOnlyForTemplateGet,
20
+ },
21
+ description: 'The template to retrieve. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
22
+ },
23
+ ];
24
+ //# sourceMappingURL=get.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get.js","sourceRoot":"","sources":["../../../../../nodes/Layerre/resources/template/get.ts"],"names":[],"mappings":";;;AAEA,MAAM,sBAAsB,GAAG;IAC9B,SAAS,EAAE,CAAC,KAAK,CAAC;IAClB,QAAQ,EAAE,CAAC,UAAU,CAAC;CACtB,CAAC;AAEW,QAAA,sBAAsB,GAAsB;IACxD;QACC,WAAW,EAAE,qBAAqB;QAClC,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE,SAAS;QACf,WAAW,EAAE;YACZ,iBAAiB,EAAE,cAAc;SACjC;QACD,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE,sBAAsB;SAC5B;QACD,WAAW,EAAE,2IAA2I;KACxJ;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const templateGetAllDescription: INodeProperties[];
@@ -0,0 +1,71 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.templateGetAllDescription = void 0;
4
+ const showOnlyForTemplateGetAll = {
5
+ operation: ['getAll'],
6
+ resource: ['template'],
7
+ };
8
+ exports.templateGetAllDescription = [
9
+ {
10
+ displayName: 'Limit',
11
+ name: 'limit',
12
+ type: 'number',
13
+ default: 50,
14
+ typeOptions: {
15
+ minValue: 1,
16
+ maxValue: 1000,
17
+ },
18
+ displayOptions: {
19
+ show: showOnlyForTemplateGetAll,
20
+ },
21
+ description: 'Max number of results to return',
22
+ routing: {
23
+ send: {
24
+ type: 'query',
25
+ property: 'limit',
26
+ },
27
+ },
28
+ },
29
+ {
30
+ displayName: 'Options',
31
+ name: 'options',
32
+ type: 'collection',
33
+ placeholder: 'Add Option',
34
+ default: {},
35
+ displayOptions: {
36
+ show: showOnlyForTemplateGetAll,
37
+ },
38
+ options: [
39
+ {
40
+ displayName: 'Include Layers',
41
+ name: 'includeLayers',
42
+ type: 'boolean',
43
+ default: false,
44
+ description: 'Whether to include layers in the response (slower for large templates)',
45
+ routing: {
46
+ send: {
47
+ type: 'query',
48
+ property: 'include_layers',
49
+ },
50
+ },
51
+ },
52
+ {
53
+ displayName: 'Skip',
54
+ name: 'skip',
55
+ type: 'number',
56
+ default: 0,
57
+ typeOptions: {
58
+ minValue: 0,
59
+ },
60
+ description: 'Number of results to skip (for pagination)',
61
+ routing: {
62
+ send: {
63
+ type: 'query',
64
+ property: 'skip',
65
+ },
66
+ },
67
+ },
68
+ ],
69
+ },
70
+ ];
71
+ //# sourceMappingURL=getAll.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAll.js","sourceRoot":"","sources":["../../../../../nodes/Layerre/resources/template/getAll.ts"],"names":[],"mappings":";;;AAEA,MAAM,yBAAyB,GAAG;IACjC,SAAS,EAAE,CAAC,QAAQ,CAAC;IACrB,QAAQ,EAAE,CAAC,UAAU,CAAC;CACtB,CAAC;AAEW,QAAA,yBAAyB,GAAsB;IAC3D;QACC,WAAW,EAAE,OAAO;QACpB,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE;YACZ,QAAQ,EAAE,CAAC;YACX,QAAQ,EAAE,IAAI;SACd;QACD,cAAc,EAAE;YACf,IAAI,EAAE,yBAAyB;SAC/B;QACD,WAAW,EAAE,iCAAiC;QAC9C,OAAO,EAAE;YACR,IAAI,EAAE;gBACL,IAAI,EAAE,OAAO;gBACb,QAAQ,EAAE,OAAO;aACjB;SACD;KACD;IACD;QACC,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,YAAY;QACzB,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACf,IAAI,EAAE,yBAAyB;SAC/B;QACD,OAAO,EAAE;YACR;gBACC,WAAW,EAAE,gBAAgB;gBAC7B,IAAI,EAAE,eAAe;gBACrB,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,KAAK;gBACd,WAAW,EAAE,wEAAwE;gBACrF,OAAO,EAAE;oBACR,IAAI,EAAE;wBACL,IAAI,EAAE,OAAO;wBACb,QAAQ,EAAE,gBAAgB;qBAC1B;iBACD;aACD;YACD;gBACC,WAAW,EAAE,MAAM;gBACnB,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,CAAC;gBACV,WAAW,EAAE;oBACZ,QAAQ,EAAE,CAAC;iBACX;gBACD,WAAW,EAAE,4CAA4C;gBACzD,OAAO,EAAE;oBACR,IAAI,EAAE;wBACL,IAAI,EAAE,OAAO;wBACb,QAAQ,EAAE,MAAM;qBAChB;iBACD;aACD;SACD;KACD;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const templateDescription: INodeProperties[];
@@ -0,0 +1,77 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.templateDescription = void 0;
4
+ const create_1 = require("./create");
5
+ const get_1 = require("./get");
6
+ const getAll_1 = require("./getAll");
7
+ const delete_1 = require("./delete");
8
+ const showOnlyForTemplate = {
9
+ resource: ['template'],
10
+ };
11
+ exports.templateDescription = [
12
+ {
13
+ displayName: 'Operation',
14
+ name: 'operation',
15
+ type: 'options',
16
+ noDataExpression: true,
17
+ displayOptions: {
18
+ show: showOnlyForTemplate,
19
+ },
20
+ options: [
21
+ {
22
+ name: 'Create',
23
+ value: 'create',
24
+ action: 'Create a template',
25
+ description: 'Create a new template from a Canva design URL',
26
+ routing: {
27
+ request: {
28
+ method: 'POST',
29
+ url: '/template',
30
+ },
31
+ },
32
+ },
33
+ {
34
+ name: 'Delete',
35
+ value: 'delete',
36
+ action: 'Delete a template',
37
+ description: 'Delete a template',
38
+ routing: {
39
+ request: {
40
+ method: 'DELETE',
41
+ url: '=/template/{{$parameter.templateId}}',
42
+ },
43
+ },
44
+ },
45
+ {
46
+ name: 'Get',
47
+ value: 'get',
48
+ action: 'Get a template',
49
+ description: 'Retrieve a template by ID with all its layers',
50
+ routing: {
51
+ request: {
52
+ method: 'GET',
53
+ url: '=/template/{{$parameter.templateId}}',
54
+ },
55
+ },
56
+ },
57
+ {
58
+ name: 'Get Many',
59
+ value: 'getAll',
60
+ action: 'Get many templates',
61
+ description: 'Retrieve a list of templates for the current user',
62
+ routing: {
63
+ request: {
64
+ method: 'GET',
65
+ url: '/templates',
66
+ },
67
+ },
68
+ },
69
+ ],
70
+ default: 'create',
71
+ },
72
+ ...create_1.templateCreateDescription,
73
+ ...get_1.templateGetDescription,
74
+ ...getAll_1.templateGetAllDescription,
75
+ ...delete_1.templateDeleteDescription,
76
+ ];
77
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Layerre/resources/template/index.ts"],"names":[],"mappings":";;;AACA,qCAAqD;AACrD,+BAA+C;AAC/C,qCAAqD;AACrD,qCAAqD;AAErD,MAAM,mBAAmB,GAAG;IAC3B,QAAQ,EAAE,CAAC,UAAU,CAAC;CACtB,CAAC;AAEW,QAAA,mBAAmB,GAAsB;IACrD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE;YACf,IAAI,EAAE,mBAAmB;SACzB;QACD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,MAAM,EAAE,mBAAmB;gBAC3B,WAAW,EAAE,+CAA+C;gBAC5D,OAAO,EAAE;oBACR,OAAO,EAAE;wBACR,MAAM,EAAE,MAAM;wBACd,GAAG,EAAE,WAAW;qBAChB;iBACD;aACD;YACD;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,MAAM,EAAE,mBAAmB;gBAC3B,WAAW,EAAE,mBAAmB;gBAChC,OAAO,EAAE;oBACR,OAAO,EAAE;wBACR,MAAM,EAAE,QAAQ;wBAChB,GAAG,EAAE,sCAAsC;qBAC3C;iBACD;aACD;YACD;gBACC,IAAI,EAAE,KAAK;gBACX,KAAK,EAAE,KAAK;gBACZ,MAAM,EAAE,gBAAgB;gBACxB,WAAW,EAAE,+CAA+C;gBAC5D,OAAO,EAAE;oBACR,OAAO,EAAE;wBACR,MAAM,EAAE,KAAK;wBACb,GAAG,EAAE,sCAAsC;qBAC3C;iBACD;aACD;YACD;gBACC,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,QAAQ;gBACf,MAAM,EAAE,oBAAoB;gBAC5B,WAAW,EAAE,mDAAmD;gBAChE,OAAO,EAAE;oBACR,OAAO,EAAE;wBACR,MAAM,EAAE,KAAK;wBACb,GAAG,EAAE,YAAY;qBACjB;iBACD;aACD;SACD;QACD,OAAO,EAAE,QAAQ;KACjB;IACD,GAAG,kCAAyB;IAC5B,GAAG,4BAAsB;IACzB,GAAG,kCAAyB;IAC5B,GAAG,kCAAyB;CAC5B,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const variantCreateDescription: INodeProperties[];
@@ -0,0 +1,312 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.variantCreateDescription = void 0;
4
+ const showOnlyForVariantCreate = {
5
+ operation: ['create'],
6
+ resource: ['variant'],
7
+ };
8
+ exports.variantCreateDescription = [
9
+ {
10
+ displayName: 'Template Name or ID',
11
+ name: 'templateId',
12
+ type: 'options',
13
+ typeOptions: {
14
+ loadOptionsMethod: 'getTemplates',
15
+ },
16
+ default: '',
17
+ required: true,
18
+ displayOptions: {
19
+ show: showOnlyForVariantCreate,
20
+ },
21
+ description: 'The template to create a variant from. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
22
+ },
23
+ {
24
+ displayName: 'Variant Dimensions',
25
+ name: 'variantDimensions',
26
+ type: 'collection',
27
+ placeholder: 'Add Dimension Override',
28
+ default: {},
29
+ displayOptions: {
30
+ show: showOnlyForVariantCreate,
31
+ },
32
+ options: [
33
+ {
34
+ displayName: 'Width',
35
+ name: 'width',
36
+ type: 'number',
37
+ default: 0,
38
+ typeOptions: {
39
+ minValue: 1,
40
+ maxValue: 10000,
41
+ },
42
+ description: 'Override the variant width in pixels (uses template width if not set)',
43
+ routing: {
44
+ send: {
45
+ type: 'body',
46
+ property: 'width',
47
+ },
48
+ },
49
+ },
50
+ {
51
+ displayName: 'Height',
52
+ name: 'height',
53
+ type: 'number',
54
+ default: 0,
55
+ typeOptions: {
56
+ minValue: 1,
57
+ maxValue: 10000,
58
+ },
59
+ description: 'Override the variant height in pixels (uses template height if not set)',
60
+ routing: {
61
+ send: {
62
+ type: 'body',
63
+ property: 'height',
64
+ },
65
+ },
66
+ },
67
+ ],
68
+ },
69
+ {
70
+ displayName: 'Layer Overrides',
71
+ name: 'overrides',
72
+ type: 'fixedCollection',
73
+ typeOptions: {
74
+ multipleValues: true,
75
+ },
76
+ placeholder: 'Add Layer Override',
77
+ default: {},
78
+ displayOptions: {
79
+ show: showOnlyForVariantCreate,
80
+ },
81
+ description: 'Override layer properties for this variant',
82
+ options: [
83
+ {
84
+ displayName: 'Override',
85
+ name: 'override',
86
+ values: [
87
+ {
88
+ displayName: 'Layer Name or ID',
89
+ name: 'layerId',
90
+ type: 'options',
91
+ typeOptions: {
92
+ loadOptionsMethod: 'getLayers',
93
+ loadOptionsDependsOn: ['templateId'],
94
+ },
95
+ default: '',
96
+ required: true,
97
+ description: 'The layer to override. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
98
+ },
99
+ {
100
+ displayName: 'Override Options',
101
+ name: 'overrideOptions',
102
+ type: 'collection',
103
+ placeholder: 'Add Override Option',
104
+ default: {},
105
+ description: 'Optional properties to override for this layer',
106
+ options: [
107
+ {
108
+ displayName: 'Height',
109
+ name: 'height',
110
+ type: 'number',
111
+ default: 0,
112
+ typeOptions: {
113
+ minValue: 1,
114
+ maxValue: 10000,
115
+ },
116
+ description: 'Override the layer height in pixels',
117
+ },
118
+ {
119
+ displayName: 'Image Flip Horizontal',
120
+ name: 'flipHorizontal',
121
+ type: 'boolean',
122
+ default: false,
123
+ description: 'Whether to flip the image horizontally (for image layers)',
124
+ },
125
+ {
126
+ displayName: 'Image Flip Vertical',
127
+ name: 'flipVertical',
128
+ type: 'boolean',
129
+ default: false,
130
+ description: 'Whether to flip the image vertically (for image layers)',
131
+ },
132
+ {
133
+ displayName: 'Image Opacity',
134
+ name: 'opacity',
135
+ type: 'number',
136
+ default: 1,
137
+ typeOptions: {
138
+ minValue: 0,
139
+ maxValue: 1,
140
+ numberStepSize: 0.1,
141
+ },
142
+ description: 'Override the image opacity (0.0 = transparent, 1.0 = opaque, for image layers)',
143
+ },
144
+ {
145
+ displayName: 'Image URL',
146
+ name: 'imgUrl',
147
+ type: 'string',
148
+ default: '',
149
+ typeOptions: {
150
+ maxLength: 2048,
151
+ },
152
+ description: 'Override the image URL (for image layers)',
153
+ },
154
+ {
155
+ displayName: 'Rotation',
156
+ name: 'rotation',
157
+ type: 'number',
158
+ default: 0,
159
+ typeOptions: {
160
+ minValue: -360,
161
+ maxValue: 360,
162
+ },
163
+ description: 'Override the rotation angle in degrees',
164
+ },
165
+ {
166
+ displayName: 'Text',
167
+ name: 'text',
168
+ type: 'string',
169
+ default: '',
170
+ typeOptions: {
171
+ maxLength: 1000,
172
+ },
173
+ description: 'Override the text content (for text layers)',
174
+ },
175
+ {
176
+ displayName: 'Text Align',
177
+ name: 'textAlign',
178
+ type: 'options',
179
+ options: [
180
+ {
181
+ name: 'Left',
182
+ value: 'left',
183
+ },
184
+ {
185
+ name: 'Center',
186
+ value: 'center',
187
+ },
188
+ {
189
+ name: 'Right',
190
+ value: 'right',
191
+ },
192
+ {
193
+ name: 'Justify',
194
+ value: 'justify',
195
+ },
196
+ ],
197
+ default: 'left',
198
+ description: 'Override the text alignment (for text layers)',
199
+ },
200
+ {
201
+ displayName: 'Text Color',
202
+ name: 'color',
203
+ type: 'color',
204
+ default: '',
205
+ description: 'Override the text/layer color (hex format, e.g., #FF0000)',
206
+ },
207
+ {
208
+ displayName: 'Text Font Name',
209
+ name: 'fontName',
210
+ type: 'string',
211
+ default: '',
212
+ typeOptions: {
213
+ maxLength: 100,
214
+ },
215
+ description: 'Override the font family name (for text layers)',
216
+ },
217
+ {
218
+ displayName: 'Text Font Size',
219
+ name: 'fontSize',
220
+ type: 'number',
221
+ default: 0,
222
+ typeOptions: {
223
+ minValue: 1,
224
+ maxValue: 2000,
225
+ },
226
+ description: 'Override the font size in pixels (for text layers)',
227
+ },
228
+ {
229
+ displayName: 'Text Font Style: Italic',
230
+ name: 'fontItalic',
231
+ type: 'boolean',
232
+ default: false,
233
+ description: 'Whether to make the text italic (for text layers)',
234
+ },
235
+ {
236
+ displayName: 'Text Font Style: Underline',
237
+ name: 'fontUnderline',
238
+ type: 'boolean',
239
+ default: false,
240
+ description: 'Whether to underline the text (for text layers)',
241
+ },
242
+ {
243
+ displayName: 'Text Font Weight',
244
+ name: 'fontWeight',
245
+ type: 'string',
246
+ default: '',
247
+ placeholder: 'e.g. bold, 700',
248
+ description: 'Override the font weight (for text layers). Use values like "bold", "normal", or numeric values like "400", "700".',
249
+ },
250
+ {
251
+ displayName: 'Text Letter Spacing',
252
+ name: 'letterSpacing',
253
+ type: 'number',
254
+ default: 0,
255
+ typeOptions: {
256
+ minValue: -200,
257
+ maxValue: 800,
258
+ },
259
+ description: 'Override the letter spacing in pixels (for text layers)',
260
+ },
261
+ {
262
+ displayName: 'Text Line Spacing',
263
+ name: 'lineSpacing',
264
+ type: 'number',
265
+ default: 1000,
266
+ typeOptions: {
267
+ minValue: 500,
268
+ maxValue: 2500,
269
+ },
270
+ description: 'Override the line spacing in pixels (for text layers). Default is 1000.',
271
+ },
272
+ {
273
+ displayName: 'Width',
274
+ name: 'width',
275
+ type: 'number',
276
+ default: 0,
277
+ typeOptions: {
278
+ minValue: 1,
279
+ maxValue: 10000,
280
+ },
281
+ description: 'Override the layer width in pixels',
282
+ },
283
+ {
284
+ displayName: 'X Position',
285
+ name: 'x',
286
+ type: 'number',
287
+ default: 0,
288
+ typeOptions: {
289
+ minValue: -10000,
290
+ maxValue: 10000,
291
+ },
292
+ description: 'Override the X position in pixels',
293
+ },
294
+ {
295
+ displayName: 'Y Position',
296
+ name: 'y',
297
+ type: 'number',
298
+ default: 0,
299
+ typeOptions: {
300
+ minValue: -10000,
301
+ maxValue: 10000,
302
+ },
303
+ description: 'Override the Y position in pixels',
304
+ },
305
+ ],
306
+ },
307
+ ],
308
+ },
309
+ ],
310
+ },
311
+ ];
312
+ //# sourceMappingURL=create.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create.js","sourceRoot":"","sources":["../../../../../nodes/Layerre/resources/variant/create.ts"],"names":[],"mappings":";;;AAEA,MAAM,wBAAwB,GAAG;IAChC,SAAS,EAAE,CAAC,QAAQ,CAAC;IACrB,QAAQ,EAAE,CAAC,SAAS,CAAC;CACrB,CAAC;AAEW,QAAA,wBAAwB,GAAsB;IAC1D;QACC,WAAW,EAAE,qBAAqB;QAClC,IAAI,EAAE,YAAY;QAClB,IA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CACZ,QAAQ,EAAE,GAAG;oCACb,QAAQ,EAAE,IAAI;iCACd;gCACD,WAAW,EAAE,yEAAyE;6BACtF;4BACD;gCACC,WAAW,EAAE,OAAO;gCACpB,IAAI,EAAE,OAAO;gCACb,IAAI,EAAE,QAAQ;gCACd,OAAO,EAAE,CAAC;gCACV,WAAW,EAAE;oCACZ,QAAQ,EAAE,CAAC;oCACX,QAAQ,EAAE,KAAK;iCACf;gCACD,WAAW,EAAE,oCAAoC;6BACjD;4BACD;gCACC,WAAW,EAAE,YAAY;gCACzB,IAAI,EAAE,GAAG;gCACT,IAAI,EAAE,QAAQ;gCACd,OAAO,EAAE,CAAC;gCACV,WAAW,EAAE;oCACZ,QAAQ,EAAE,CAAC,KAAK;oCAChB,QAAQ,EAAE,KAAK;iCACf;gCACD,WAAW,EAAE,mCAAmC;6BAChD;4BACD;gCACC,WAAW,EAAE,YAAY;gCACzB,IAAI,EAAE,GAAG;gCACT,IAAI,EAAE,QAAQ;gCACd,OAAO,EAAE,CAAC;gCACV,WAAW,EAAE;oCACZ,QAAQ,EAAE,CAAC,KAAK;oCAChB,QAAQ,EAAE,KAAK;iCACf;gCACD,WAAW,EAAE,mCAAmC;6BAChD;yBACD;qBACD;iBACD;aACD;SACD;KACD;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const variantDeleteDescription: INodeProperties[];
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.variantDeleteDescription = void 0;
4
+ const showOnlyForVariantDelete = {
5
+ operation: ['delete'],
6
+ resource: ['variant'],
7
+ };
8
+ exports.variantDeleteDescription = [
9
+ {
10
+ displayName: 'Template Name or ID',
11
+ name: 'templateId',
12
+ type: 'options',
13
+ typeOptions: {
14
+ loadOptionsMethod: 'getTemplates',
15
+ },
16
+ default: '',
17
+ required: true,
18
+ displayOptions: {
19
+ show: showOnlyForVariantDelete,
20
+ },
21
+ description: 'The template that contains the variant. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
22
+ },
23
+ {
24
+ displayName: 'Variant Name or ID',
25
+ name: 'variantId',
26
+ type: 'options',
27
+ typeOptions: {
28
+ loadOptionsMethod: 'getVariants',
29
+ loadOptionsDependsOn: ['templateId'],
30
+ },
31
+ default: '',
32
+ required: true,
33
+ displayOptions: {
34
+ show: showOnlyForVariantDelete,
35
+ },
36
+ description: 'The variant to delete. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
37
+ },
38
+ ];
39
+ //# sourceMappingURL=delete.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete.js","sourceRoot":"","sources":["../../../../../nodes/Layerre/resources/variant/delete.ts"],"names":[],"mappings":";;;AAEA,MAAM,wBAAwB,GAAG;IAChC,SAAS,EAAE,CAAC,QAAQ,CAAC;IACrB,QAAQ,EAAE,CAAC,SAAS,CAAC;CACrB,CAAC;AAEW,QAAA,wBAAwB,GAAsB;IAC1D;QACC,WAAW,EAAE,qBAAqB;QAClC,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE,SAAS;QACf,WAAW,EAAE;YACZ,iBAAiB,EAAE,cAAc;SACjC;QACD,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE,wBAAwB;SAC9B;QACD,WAAW,EAAE,yJAAyJ;KACtK;IACD;QACC,WAAW,EAAE,oBAAoB;QACjC,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,WAAW,EAAE;YACZ,iBAAiB,EAAE,aAAa;YAChC,oBAAoB,EAAE,CAAC,YAAY,CAAC;SACpC;QACD,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE,wBAAwB;SAC9B;QACD,WAAW,EAAE,wIAAwI;KACrJ;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const variantGetDescription: INodeProperties[];
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.variantGetDescription = void 0;
4
+ const showOnlyForVariantGet = {
5
+ operation: ['get'],
6
+ resource: ['variant'],
7
+ };
8
+ exports.variantGetDescription = [
9
+ {
10
+ displayName: 'Template Name or ID',
11
+ name: 'templateId',
12
+ type: 'options',
13
+ typeOptions: {
14
+ loadOptionsMethod: 'getTemplates',
15
+ },
16
+ default: '',
17
+ required: true,
18
+ displayOptions: {
19
+ show: showOnlyForVariantGet,
20
+ },
21
+ description: 'The template that contains the variant. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
22
+ },
23
+ {
24
+ displayName: 'Variant Name or ID',
25
+ name: 'variantId',
26
+ type: 'options',
27
+ typeOptions: {
28
+ loadOptionsMethod: 'getVariants',
29
+ loadOptionsDependsOn: ['templateId'],
30
+ },
31
+ default: '',
32
+ required: true,
33
+ displayOptions: {
34
+ show: showOnlyForVariantGet,
35
+ },
36
+ description: 'The variant to retrieve. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
37
+ },
38
+ ];
39
+ //# sourceMappingURL=get.js.map