n8n-nodes-codex 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.
- package/LICENSE.md +19 -0
- package/README.md +108 -0
- package/dist/credentials/CodexApi.credentials.d.ts +10 -0
- package/dist/credentials/CodexApi.credentials.js +92 -0
- package/dist/credentials/CodexApi.credentials.js.map +1 -0
- package/dist/icons/codex-dark.svg +7 -0
- package/dist/icons/codex-light.svg +7 -0
- package/dist/icons/codex.svg +7 -0
- package/dist/icons/github.dark.svg +3 -0
- package/dist/icons/github.svg +3 -0
- package/dist/nodes/Codex/Codex.node.d.ts +4 -0
- package/dist/nodes/Codex/Codex.node.js +133 -0
- package/dist/nodes/Codex/Codex.node.js.map +1 -0
- package/dist/nodes/Codex/resources/admin/index.d.ts +2 -0
- package/dist/nodes/Codex/resources/admin/index.js +489 -0
- package/dist/nodes/Codex/resources/admin/index.js.map +1 -0
- package/dist/nodes/Codex/resources/apiKey/index.d.ts +2 -0
- package/dist/nodes/Codex/resources/apiKey/index.js +233 -0
- package/dist/nodes/Codex/resources/apiKey/index.js.map +1 -0
- package/dist/nodes/Codex/resources/book/get.d.ts +2 -0
- package/dist/nodes/Codex/resources/book/get.js +5 -0
- package/dist/nodes/Codex/resources/book/get.js.map +1 -0
- package/dist/nodes/Codex/resources/book/index.d.ts +2 -0
- package/dist/nodes/Codex/resources/book/index.js +450 -0
- package/dist/nodes/Codex/resources/book/index.js.map +1 -0
- package/dist/nodes/Codex/resources/book/list.d.ts +2 -0
- package/dist/nodes/Codex/resources/book/list.js +81 -0
- package/dist/nodes/Codex/resources/book/list.js.map +1 -0
- package/dist/nodes/Codex/resources/book/updateMetadata.d.ts +2 -0
- package/dist/nodes/Codex/resources/book/updateMetadata.js +98 -0
- package/dist/nodes/Codex/resources/book/updateMetadata.js.map +1 -0
- package/dist/nodes/Codex/resources/book/updateProgress.d.ts +2 -0
- package/dist/nodes/Codex/resources/book/updateProgress.js +46 -0
- package/dist/nodes/Codex/resources/book/updateProgress.js.map +1 -0
- package/dist/nodes/Codex/resources/duplicate/index.d.ts +2 -0
- package/dist/nodes/Codex/resources/duplicate/index.js +162 -0
- package/dist/nodes/Codex/resources/duplicate/index.js.map +1 -0
- package/dist/nodes/Codex/resources/filesystem/index.d.ts +2 -0
- package/dist/nodes/Codex/resources/filesystem/index.js +64 -0
- package/dist/nodes/Codex/resources/filesystem/index.js.map +1 -0
- package/dist/nodes/Codex/resources/genre/index.d.ts +2 -0
- package/dist/nodes/Codex/resources/genre/index.js +83 -0
- package/dist/nodes/Codex/resources/genre/index.js.map +1 -0
- package/dist/nodes/Codex/resources/library/create.d.ts +2 -0
- package/dist/nodes/Codex/resources/library/create.js +94 -0
- package/dist/nodes/Codex/resources/library/create.js.map +1 -0
- package/dist/nodes/Codex/resources/library/delete.d.ts +2 -0
- package/dist/nodes/Codex/resources/library/delete.js +5 -0
- package/dist/nodes/Codex/resources/library/delete.js.map +1 -0
- package/dist/nodes/Codex/resources/library/get.d.ts +2 -0
- package/dist/nodes/Codex/resources/library/get.js +5 -0
- package/dist/nodes/Codex/resources/library/get.js.map +1 -0
- package/dist/nodes/Codex/resources/library/index.d.ts +2 -0
- package/dist/nodes/Codex/resources/library/index.js +360 -0
- package/dist/nodes/Codex/resources/library/index.js.map +1 -0
- package/dist/nodes/Codex/resources/library/list.d.ts +2 -0
- package/dist/nodes/Codex/resources/library/list.js +5 -0
- package/dist/nodes/Codex/resources/library/list.js.map +1 -0
- package/dist/nodes/Codex/resources/library/scan.d.ts +2 -0
- package/dist/nodes/Codex/resources/library/scan.js +37 -0
- package/dist/nodes/Codex/resources/library/scan.js.map +1 -0
- package/dist/nodes/Codex/resources/library/update.d.ts +2 -0
- package/dist/nodes/Codex/resources/library/update.js +73 -0
- package/dist/nodes/Codex/resources/library/update.js.map +1 -0
- package/dist/nodes/Codex/resources/metric/index.d.ts +2 -0
- package/dist/nodes/Codex/resources/metric/index.js +154 -0
- package/dist/nodes/Codex/resources/metric/index.js.map +1 -0
- package/dist/nodes/Codex/resources/misc/index.d.ts +2 -0
- package/dist/nodes/Codex/resources/misc/index.js +216 -0
- package/dist/nodes/Codex/resources/misc/index.js.map +1 -0
- package/dist/nodes/Codex/resources/series/get.d.ts +2 -0
- package/dist/nodes/Codex/resources/series/get.js +5 -0
- package/dist/nodes/Codex/resources/series/get.js.map +1 -0
- package/dist/nodes/Codex/resources/series/index.d.ts +2 -0
- package/dist/nodes/Codex/resources/series/index.js +1348 -0
- package/dist/nodes/Codex/resources/series/index.js.map +1 -0
- package/dist/nodes/Codex/resources/series/list.d.ts +2 -0
- package/dist/nodes/Codex/resources/series/list.js +108 -0
- package/dist/nodes/Codex/resources/series/list.js.map +1 -0
- package/dist/nodes/Codex/resources/series/updateMetadata.d.ts +2 -0
- package/dist/nodes/Codex/resources/series/updateMetadata.js +116 -0
- package/dist/nodes/Codex/resources/series/updateMetadata.js.map +1 -0
- package/dist/nodes/Codex/resources/tag/index.d.ts +2 -0
- package/dist/nodes/Codex/resources/tag/index.js +83 -0
- package/dist/nodes/Codex/resources/tag/index.js.map +1 -0
- package/dist/nodes/Codex/resources/task/index.d.ts +2 -0
- package/dist/nodes/Codex/resources/task/index.js +241 -0
- package/dist/nodes/Codex/resources/task/index.js.map +1 -0
- package/dist/nodes/Codex/resources/user/index.d.ts +2 -0
- package/dist/nodes/Codex/resources/user/index.js +362 -0
- package/dist/nodes/Codex/resources/user/index.js.map +1 -0
- package/dist/nodes/Codex/resources/userPreference/index.d.ts +2 -0
- package/dist/nodes/Codex/resources/userPreference/index.js +358 -0
- package/dist/nodes/Codex/resources/userPreference/index.js.map +1 -0
- package/dist/nodes/Codex/shared/descriptions.d.ts +6 -0
- package/dist/nodes/Codex/shared/descriptions.js +94 -0
- package/dist/nodes/Codex/shared/descriptions.js.map +1 -0
- package/dist/package.json +60 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +60 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.bookUpdateProgressDescription = void 0;
|
|
4
|
+
const showOnlyForBookUpdateProgress = {
|
|
5
|
+
operation: ['updateProgress'],
|
|
6
|
+
resource: ['book'],
|
|
7
|
+
};
|
|
8
|
+
exports.bookUpdateProgressDescription = [
|
|
9
|
+
{
|
|
10
|
+
displayName: 'Page',
|
|
11
|
+
name: 'page',
|
|
12
|
+
type: 'number',
|
|
13
|
+
default: 1,
|
|
14
|
+
required: true,
|
|
15
|
+
typeOptions: {
|
|
16
|
+
minValue: 1,
|
|
17
|
+
},
|
|
18
|
+
displayOptions: {
|
|
19
|
+
show: showOnlyForBookUpdateProgress,
|
|
20
|
+
},
|
|
21
|
+
description: 'Current page number (1-indexed)',
|
|
22
|
+
routing: {
|
|
23
|
+
send: {
|
|
24
|
+
type: 'body',
|
|
25
|
+
property: 'page',
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
displayName: 'Completed',
|
|
31
|
+
name: 'completed',
|
|
32
|
+
type: 'boolean',
|
|
33
|
+
default: false,
|
|
34
|
+
displayOptions: {
|
|
35
|
+
show: showOnlyForBookUpdateProgress,
|
|
36
|
+
},
|
|
37
|
+
description: 'Whether the book has been completed',
|
|
38
|
+
routing: {
|
|
39
|
+
send: {
|
|
40
|
+
type: 'body',
|
|
41
|
+
property: 'completed',
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
];
|
|
46
|
+
//# sourceMappingURL=updateProgress.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updateProgress.js","sourceRoot":"","sources":["../../../../../nodes/Codex/resources/book/updateProgress.ts"],"names":[],"mappings":";;;AAEA,MAAM,6BAA6B,GAAG;IACrC,SAAS,EAAE,CAAC,gBAAgB,CAAC;IAC7B,QAAQ,EAAE,CAAC,MAAM,CAAC;CAClB,CAAC;AAEW,QAAA,6BAA6B,GAAsB;IAC/D;QACC,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,CAAC;QACV,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE;YACZ,QAAQ,EAAE,CAAC;SACX;QACD,cAAc,EAAE;YACf,IAAI,EAAE,6BAA6B;SACnC;QACD,WAAW,EAAE,iCAAiC;QAC9C,OAAO,EAAE;YACR,IAAI,EAAE;gBACL,IAAI,EAAE,MAAM;gBACZ,QAAQ,EAAE,MAAM;aAChB;SACD;KACD;IACD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,KAAK;QACd,cAAc,EAAE;YACf,IAAI,EAAE,6BAA6B;SACnC;QACD,WAAW,EAAE,qCAAqC;QAClD,OAAO,EAAE;YACR,IAAI,EAAE;gBACL,IAAI,EAAE,MAAM;gBACZ,QAAQ,EAAE,WAAW;aACrB;SACD;KACD;CACD,CAAC"}
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.duplicateDescription = void 0;
|
|
4
|
+
const showOnlyForDuplicates = {
|
|
5
|
+
resource: ['duplicate'],
|
|
6
|
+
};
|
|
7
|
+
exports.duplicateDescription = [
|
|
8
|
+
{
|
|
9
|
+
displayName: 'Operation',
|
|
10
|
+
name: 'operation',
|
|
11
|
+
type: 'options',
|
|
12
|
+
noDataExpression: true,
|
|
13
|
+
displayOptions: {
|
|
14
|
+
show: showOnlyForDuplicates,
|
|
15
|
+
},
|
|
16
|
+
options: [
|
|
17
|
+
{
|
|
18
|
+
name: 'Get',
|
|
19
|
+
value: 'get',
|
|
20
|
+
action: 'Get duplicate details',
|
|
21
|
+
description: 'Get details of a duplicate group',
|
|
22
|
+
routing: {
|
|
23
|
+
request: {
|
|
24
|
+
method: 'GET',
|
|
25
|
+
url: '=/api/v1/duplicates/{{$parameter.duplicateId}}',
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
name: 'List',
|
|
31
|
+
value: 'list',
|
|
32
|
+
action: 'List duplicates',
|
|
33
|
+
description: 'List all detected duplicate groups',
|
|
34
|
+
routing: {
|
|
35
|
+
request: {
|
|
36
|
+
method: 'GET',
|
|
37
|
+
url: '/api/v1/duplicates',
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
name: 'Scan',
|
|
43
|
+
value: 'scan',
|
|
44
|
+
action: 'Scan for duplicates',
|
|
45
|
+
description: 'Trigger a scan to detect duplicate books',
|
|
46
|
+
routing: {
|
|
47
|
+
request: {
|
|
48
|
+
method: 'POST',
|
|
49
|
+
url: '/api/v1/duplicates/scan',
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
],
|
|
54
|
+
default: 'list',
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
displayName: 'Duplicate ID',
|
|
58
|
+
name: 'duplicateId',
|
|
59
|
+
type: 'string',
|
|
60
|
+
default: '',
|
|
61
|
+
required: true,
|
|
62
|
+
displayOptions: {
|
|
63
|
+
show: {
|
|
64
|
+
...showOnlyForDuplicates,
|
|
65
|
+
operation: ['get'],
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
description: 'The ID of the duplicate group',
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
displayName: 'Filters',
|
|
72
|
+
name: 'filters',
|
|
73
|
+
type: 'collection',
|
|
74
|
+
placeholder: 'Add Filter',
|
|
75
|
+
default: {},
|
|
76
|
+
displayOptions: {
|
|
77
|
+
show: {
|
|
78
|
+
...showOnlyForDuplicates,
|
|
79
|
+
operation: ['list'],
|
|
80
|
+
},
|
|
81
|
+
},
|
|
82
|
+
options: [
|
|
83
|
+
{
|
|
84
|
+
displayName: 'Page',
|
|
85
|
+
name: 'page',
|
|
86
|
+
type: 'number',
|
|
87
|
+
typeOptions: {
|
|
88
|
+
minValue: 0,
|
|
89
|
+
},
|
|
90
|
+
default: 0,
|
|
91
|
+
routing: {
|
|
92
|
+
send: {
|
|
93
|
+
type: 'query',
|
|
94
|
+
property: 'page',
|
|
95
|
+
},
|
|
96
|
+
},
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
displayName: 'Page Size',
|
|
100
|
+
name: 'pageSize',
|
|
101
|
+
type: 'number',
|
|
102
|
+
typeOptions: {
|
|
103
|
+
minValue: 1,
|
|
104
|
+
maxValue: 100,
|
|
105
|
+
},
|
|
106
|
+
default: 20,
|
|
107
|
+
routing: {
|
|
108
|
+
send: {
|
|
109
|
+
type: 'query',
|
|
110
|
+
property: 'page_size',
|
|
111
|
+
},
|
|
112
|
+
},
|
|
113
|
+
},
|
|
114
|
+
],
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
displayName: 'Scan Options',
|
|
118
|
+
name: 'scanOptions',
|
|
119
|
+
type: 'collection',
|
|
120
|
+
placeholder: 'Add Option',
|
|
121
|
+
default: {},
|
|
122
|
+
displayOptions: {
|
|
123
|
+
show: {
|
|
124
|
+
...showOnlyForDuplicates,
|
|
125
|
+
operation: ['scan'],
|
|
126
|
+
},
|
|
127
|
+
},
|
|
128
|
+
options: [
|
|
129
|
+
{
|
|
130
|
+
displayName: 'Library ID',
|
|
131
|
+
name: 'libraryId',
|
|
132
|
+
type: 'string',
|
|
133
|
+
default: '',
|
|
134
|
+
description: 'Limit scan to a specific library (optional)',
|
|
135
|
+
routing: {
|
|
136
|
+
send: {
|
|
137
|
+
type: 'body',
|
|
138
|
+
property: 'library_id',
|
|
139
|
+
},
|
|
140
|
+
},
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
displayName: 'Similarity Threshold',
|
|
144
|
+
name: 'similarityThreshold',
|
|
145
|
+
type: 'number',
|
|
146
|
+
typeOptions: {
|
|
147
|
+
minValue: 0,
|
|
148
|
+
maxValue: 100,
|
|
149
|
+
},
|
|
150
|
+
default: 80,
|
|
151
|
+
description: 'Minimum similarity percentage to consider as duplicate',
|
|
152
|
+
routing: {
|
|
153
|
+
send: {
|
|
154
|
+
type: 'body',
|
|
155
|
+
property: 'similarity_threshold',
|
|
156
|
+
},
|
|
157
|
+
},
|
|
158
|
+
},
|
|
159
|
+
],
|
|
160
|
+
},
|
|
161
|
+
];
|
|
162
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Codex/resources/duplicate/index.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.filesystemDescription = void 0;
|
|
4
|
+
const showOnlyForFilesystem = {
|
|
5
|
+
resource: ['filesystem'],
|
|
6
|
+
};
|
|
7
|
+
exports.filesystemDescription = [
|
|
8
|
+
{
|
|
9
|
+
displayName: 'Operation',
|
|
10
|
+
name: 'operation',
|
|
11
|
+
type: 'options',
|
|
12
|
+
noDataExpression: true,
|
|
13
|
+
displayOptions: {
|
|
14
|
+
show: showOnlyForFilesystem,
|
|
15
|
+
},
|
|
16
|
+
options: [
|
|
17
|
+
{
|
|
18
|
+
name: 'Browse',
|
|
19
|
+
value: 'browse',
|
|
20
|
+
action: 'Browse filesystem',
|
|
21
|
+
description: 'Browse the server filesystem to find directories',
|
|
22
|
+
routing: {
|
|
23
|
+
request: {
|
|
24
|
+
method: 'GET',
|
|
25
|
+
url: '/api/v1/filesystem/browse',
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
name: 'List Drives',
|
|
31
|
+
value: 'listDrives',
|
|
32
|
+
action: 'List drives',
|
|
33
|
+
description: 'List available drives on the server',
|
|
34
|
+
routing: {
|
|
35
|
+
request: {
|
|
36
|
+
method: 'GET',
|
|
37
|
+
url: '/api/v1/filesystem/drives',
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
],
|
|
42
|
+
default: 'listDrives',
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
displayName: 'Path',
|
|
46
|
+
name: 'path',
|
|
47
|
+
type: 'string',
|
|
48
|
+
default: '/',
|
|
49
|
+
displayOptions: {
|
|
50
|
+
show: {
|
|
51
|
+
...showOnlyForFilesystem,
|
|
52
|
+
operation: ['browse'],
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
description: 'The path to browse (absolute path on the server)',
|
|
56
|
+
routing: {
|
|
57
|
+
send: {
|
|
58
|
+
type: 'query',
|
|
59
|
+
property: 'path',
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
];
|
|
64
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Codex/resources/filesystem/index.ts"],"names":[],"mappings":";;;AAEA,MAAM,qBAAqB,GAAG;IAC7B,QAAQ,EAAE,CAAC,YAAY,CAAC;CACxB,CAAC;AAEW,QAAA,qBAAqB,GAAsB;IACvD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE;YACf,IAAI,EAAE,qBAAqB;SAC3B;QACD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,MAAM,EAAE,mBAAmB;gBAC3B,WAAW,EAAE,kDAAkD;gBAC/D,OAAO,EAAE;oBACR,OAAO,EAAE;wBACR,MAAM,EAAE,KAAK;wBACb,GAAG,EAAE,2BAA2B;qBAChC;iBACD;aACD;YACD;gBACC,IAAI,EAAE,aAAa;gBACnB,KAAK,EAAE,YAAY;gBACnB,MAAM,EAAE,aAAa;gBACrB,WAAW,EAAE,qCAAqC;gBAClD,OAAO,EAAE;oBACR,OAAO,EAAE;wBACR,MAAM,EAAE,KAAK;wBACb,GAAG,EAAE,2BAA2B;qBAChC;iBACD;aACD;SACD;QACD,OAAO,EAAE,YAAY;KACrB;IAED;QACC,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,GAAG;QACZ,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,GAAG,qBAAqB;gBACxB,SAAS,EAAE,CAAC,QAAQ,CAAC;aACrB;SACD;QACD,WAAW,EAAE,kDAAkD;QAC/D,OAAO,EAAE;YACR,IAAI,EAAE;gBACL,IAAI,EAAE,OAAO;gBACb,QAAQ,EAAE,MAAM;aAChB;SACD;KACD;CACD,CAAC"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.genreDescription = void 0;
|
|
4
|
+
const showOnlyForGenres = {
|
|
5
|
+
resource: ['genre'],
|
|
6
|
+
};
|
|
7
|
+
exports.genreDescription = [
|
|
8
|
+
{
|
|
9
|
+
displayName: 'Operation',
|
|
10
|
+
name: 'operation',
|
|
11
|
+
type: 'options',
|
|
12
|
+
noDataExpression: true,
|
|
13
|
+
displayOptions: {
|
|
14
|
+
show: showOnlyForGenres,
|
|
15
|
+
},
|
|
16
|
+
options: [
|
|
17
|
+
{
|
|
18
|
+
name: 'Cleanup',
|
|
19
|
+
value: 'cleanup',
|
|
20
|
+
action: 'Cleanup unused genres',
|
|
21
|
+
description: 'Remove genres that are not assigned to any series',
|
|
22
|
+
routing: {
|
|
23
|
+
request: {
|
|
24
|
+
method: 'POST',
|
|
25
|
+
url: '/api/v1/genres/cleanup',
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
name: 'Delete',
|
|
31
|
+
value: 'delete',
|
|
32
|
+
action: 'Delete a genre',
|
|
33
|
+
description: 'Delete a genre by ID',
|
|
34
|
+
routing: {
|
|
35
|
+
request: {
|
|
36
|
+
method: 'DELETE',
|
|
37
|
+
url: '=/api/v1/genres/{{$parameter.genreId}}',
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
name: 'Get',
|
|
43
|
+
value: 'get',
|
|
44
|
+
action: 'Get a genre',
|
|
45
|
+
description: 'Get a genre by ID',
|
|
46
|
+
routing: {
|
|
47
|
+
request: {
|
|
48
|
+
method: 'GET',
|
|
49
|
+
url: '=/api/v1/genres/{{$parameter.genreId}}',
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
name: 'List',
|
|
55
|
+
value: 'list',
|
|
56
|
+
action: 'List genres',
|
|
57
|
+
description: 'List all genres',
|
|
58
|
+
routing: {
|
|
59
|
+
request: {
|
|
60
|
+
method: 'GET',
|
|
61
|
+
url: '/api/v1/genres',
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
],
|
|
66
|
+
default: 'list',
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
displayName: 'Genre ID',
|
|
70
|
+
name: 'genreId',
|
|
71
|
+
type: 'string',
|
|
72
|
+
default: '',
|
|
73
|
+
required: true,
|
|
74
|
+
displayOptions: {
|
|
75
|
+
show: {
|
|
76
|
+
...showOnlyForGenres,
|
|
77
|
+
operation: ['get', 'delete'],
|
|
78
|
+
},
|
|
79
|
+
},
|
|
80
|
+
description: 'The ID of the genre',
|
|
81
|
+
},
|
|
82
|
+
];
|
|
83
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Codex/resources/genre/index.ts"],"names":[],"mappings":";;;AAEA,MAAM,iBAAiB,GAAG;IACzB,QAAQ,EAAE,CAAC,OAAO,CAAC;CACnB,CAAC;AAEW,QAAA,gBAAgB,GAAsB;IAClD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE;YACf,IAAI,EAAE,iBAAiB;SACvB;QACD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,SAAS;gBACf,KAAK,EAAE,SAAS;gBAChB,MAAM,EAAE,uBAAuB;gBAC/B,WAAW,EAAE,mDAAmD;gBAChE,OAAO,EAAE;oBACR,OAAO,EAAE;wBACR,MAAM,EAAE,MAAM;wBACd,GAAG,EAAE,wBAAwB;qBAC7B;iBACD;aACD;YACD;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,MAAM,EAAE,gBAAgB;gBACxB,WAAW,EAAE,sBAAsB;gBACnC,OAAO,EAAE;oBACR,OAAO,EAAE;wBACR,MAAM,EAAE,QAAQ;wBAChB,GAAG,EAAE,wCAAwC;qBAC7C;iBACD;aACD;YACD;gBACC,IAAI,EAAE,KAAK;gBACX,KAAK,EAAE,KAAK;gBACZ,MAAM,EAAE,aAAa;gBACrB,WAAW,EAAE,mBAAmB;gBAChC,OAAO,EAAE;oBACR,OAAO,EAAE;wBACR,MAAM,EAAE,KAAK;wBACb,GAAG,EAAE,wCAAwC;qBAC7C;iBACD;aACD;YACD;gBACC,IAAI,EAAE,MAAM;gBACZ,KAAK,EAAE,MAAM;gBACb,MAAM,EAAE,aAAa;gBACrB,WAAW,EAAE,iBAAiB;gBAC9B,OAAO,EAAE;oBACR,OAAO,EAAE;wBACR,MAAM,EAAE,KAAK;wBACb,GAAG,EAAE,gBAAgB;qBACrB;iBACD;aACD;SACD;QACD,OAAO,EAAE,MAAM;KACf;IACD;QACC,WAAW,EAAE,UAAU;QACvB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,GAAG,iBAAiB;gBACpB,SAAS,EAAE,CAAC,KAAK,EAAE,QAAQ,CAAC;aAC5B;SACD;QACD,WAAW,EAAE,qBAAqB;KAClC;CACD,CAAC"}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.libraryCreateDescription = void 0;
|
|
4
|
+
const showOnlyForLibraryCreate = {
|
|
5
|
+
operation: ['create'],
|
|
6
|
+
resource: ['library'],
|
|
7
|
+
};
|
|
8
|
+
exports.libraryCreateDescription = [
|
|
9
|
+
{
|
|
10
|
+
displayName: 'Name',
|
|
11
|
+
name: 'name',
|
|
12
|
+
type: 'string',
|
|
13
|
+
default: '',
|
|
14
|
+
required: true,
|
|
15
|
+
displayOptions: {
|
|
16
|
+
show: showOnlyForLibraryCreate,
|
|
17
|
+
},
|
|
18
|
+
description: 'The name of the library',
|
|
19
|
+
routing: {
|
|
20
|
+
send: {
|
|
21
|
+
type: 'body',
|
|
22
|
+
property: 'name',
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
displayName: 'Path',
|
|
28
|
+
name: 'path',
|
|
29
|
+
type: 'string',
|
|
30
|
+
default: '',
|
|
31
|
+
required: true,
|
|
32
|
+
displayOptions: {
|
|
33
|
+
show: showOnlyForLibraryCreate,
|
|
34
|
+
},
|
|
35
|
+
description: 'The root path of the library on the server filesystem',
|
|
36
|
+
routing: {
|
|
37
|
+
send: {
|
|
38
|
+
type: 'body',
|
|
39
|
+
property: 'path',
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
displayName: 'Additional Fields',
|
|
45
|
+
name: 'additionalFields',
|
|
46
|
+
type: 'collection',
|
|
47
|
+
placeholder: 'Add Field',
|
|
48
|
+
default: {},
|
|
49
|
+
displayOptions: {
|
|
50
|
+
show: showOnlyForLibraryCreate,
|
|
51
|
+
},
|
|
52
|
+
options: [
|
|
53
|
+
{
|
|
54
|
+
displayName: 'Scan Strategy',
|
|
55
|
+
name: 'scanStrategy',
|
|
56
|
+
type: 'options',
|
|
57
|
+
default: 'directory_as_series',
|
|
58
|
+
options: [
|
|
59
|
+
{
|
|
60
|
+
name: 'Directory As Series',
|
|
61
|
+
value: 'directory_as_series',
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
name: 'Single Series',
|
|
65
|
+
value: 'single_series',
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
name: 'Flat',
|
|
69
|
+
value: 'flat',
|
|
70
|
+
},
|
|
71
|
+
],
|
|
72
|
+
routing: {
|
|
73
|
+
send: {
|
|
74
|
+
type: 'body',
|
|
75
|
+
property: 'scan_strategy',
|
|
76
|
+
},
|
|
77
|
+
},
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
displayName: 'Description',
|
|
81
|
+
name: 'description',
|
|
82
|
+
type: 'string',
|
|
83
|
+
default: '',
|
|
84
|
+
routing: {
|
|
85
|
+
send: {
|
|
86
|
+
type: 'body',
|
|
87
|
+
property: 'description',
|
|
88
|
+
},
|
|
89
|
+
},
|
|
90
|
+
},
|
|
91
|
+
],
|
|
92
|
+
},
|
|
93
|
+
];
|
|
94
|
+
//# sourceMappingURL=create.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create.js","sourceRoot":"","sources":["../../../../../nodes/Codex/resources/library/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,MAAM;QACnB,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE,wBAAwB;SAC9B;QACD,WAAW,EAAE,yBAAyB;QACtC,OAAO,EAAE;YACR,IAAI,EAAE;gBACL,IAAI,EAAE,MAAM;gBACZ,QAAQ,EAAE,MAAM;aAChB;SACD;KACD;IACD;QACC,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE,wBAAwB;SAC9B;QACD,WAAW,EAAE,uDAAuD;QACpE,OAAO,EAAE;YACR,IAAI,EAAE;gBACL,IAAI,EAAE,MAAM;gBACZ,QAAQ,EAAE,MAAM;aAChB;SACD;KACD;IACD;QACC,WAAW,EAAE,mBAAmB;QAChC,IAAI,EAAE,kBAAkB;QACxB,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,WAAW;QACxB,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACf,IAAI,EAAE,wBAAwB;SAC9B;QACD,OAAO,EAAE;YACR;gBACC,WAAW,EAAE,eAAe;gBAC5B,IAAI,EAAE,cAAc;gBACpB,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,qBAAqB;gBAC9B,OAAO,EAAE;oBACR;wBACC,IAAI,EAAE,qBAAqB;wBAC3B,KAAK,EAAE,qBAAqB;qBAC5B;oBACD;wBACC,IAAI,EAAE,eAAe;wBACrB,KAAK,EAAE,eAAe;qBACtB;oBACD;wBACC,IAAI,EAAE,MAAM;wBACZ,KAAK,EAAE,MAAM;qBACb;iBACD;gBACD,OAAO,EAAE;oBACR,IAAI,EAAE;wBACL,IAAI,EAAE,MAAM;wBACZ,QAAQ,EAAE,eAAe;qBACzB;iBACD;aACD;YACD;gBACC,WAAW,EAAE,aAAa;gBAC1B,IAAI,EAAE,aAAa;gBACnB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,OAAO,EAAE;oBACR,IAAI,EAAE;wBACL,IAAI,EAAE,MAAM;wBACZ,QAAQ,EAAE,aAAa;qBACvB;iBACD;aACD;SACD;KACD;CACD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete.js","sourceRoot":"","sources":["../../../../../nodes/Codex/resources/library/delete.ts"],"names":[],"mappings":";;;AAEa,QAAA,wBAAwB,GAAsB,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get.js","sourceRoot":"","sources":["../../../../../nodes/Codex/resources/library/get.ts"],"names":[],"mappings":";;;AAEa,QAAA,qBAAqB,GAAsB,EAAE,CAAC"}
|