n8n-nodes-morelogin 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/README.md +65 -0
- package/credentials/moreLoginOAuth2Api.credentials.ts +43 -0
- package/dist/credentials/moreLoginOAuth2Api.credentials.d.ts +9 -0
- package/dist/credentials/moreLoginOAuth2Api.credentials.js +43 -0
- package/dist/credentials/moreLoginOAuth2Api.credentials.js.map +1 -0
- package/dist/icons/morelogin.dark.svg +23 -0
- package/dist/icons/morelogin.svg +38 -0
- package/dist/nodes/Morelogin/Morelogin.node.d.ts +5 -0
- package/dist/nodes/Morelogin/Morelogin.node.js +200 -0
- package/dist/nodes/Morelogin/Morelogin.node.js.map +1 -0
- package/dist/nodes/Morelogin/Morelogin.node.json +18 -0
- package/dist/nodes/Morelogin/resources/account/getInfo.d.ts +2 -0
- package/dist/nodes/Morelogin/resources/account/getInfo.js +20 -0
- package/dist/nodes/Morelogin/resources/account/getInfo.js.map +1 -0
- package/dist/nodes/Morelogin/resources/account/getToken.d.ts +2 -0
- package/dist/nodes/Morelogin/resources/account/getToken.js +59 -0
- package/dist/nodes/Morelogin/resources/account/getToken.js.map +1 -0
- package/dist/nodes/Morelogin/resources/account/index.d.ts +2 -0
- package/dist/nodes/Morelogin/resources/account/index.js +49 -0
- package/dist/nodes/Morelogin/resources/account/index.js.map +1 -0
- package/dist/nodes/Morelogin/resources/schedule/createOnceSchedule.d.ts +5 -0
- package/dist/nodes/Morelogin/resources/schedule/createOnceSchedule.js +54 -0
- package/dist/nodes/Morelogin/resources/schedule/createOnceSchedule.js.map +1 -0
- package/dist/nodes/Morelogin/resources/schedule/createSchedule.d.ts +5 -0
- package/dist/nodes/Morelogin/resources/schedule/createSchedule.js +115 -0
- package/dist/nodes/Morelogin/resources/schedule/createSchedule.js.map +1 -0
- package/dist/nodes/Morelogin/resources/schedule/index.d.ts +2 -0
- package/dist/nodes/Morelogin/resources/schedule/index.js +73 -0
- package/dist/nodes/Morelogin/resources/schedule/index.js.map +1 -0
- package/dist/nodes/Morelogin/resources/schedule/searchMarketTemplatePage.d.ts +5 -0
- package/dist/nodes/Morelogin/resources/schedule/searchMarketTemplatePage.js +31 -0
- package/dist/nodes/Morelogin/resources/schedule/searchMarketTemplatePage.js.map +1 -0
- package/dist/nodes/Morelogin/resources/schedule/searchPersonalTemplatePage.d.ts +5 -0
- package/dist/nodes/Morelogin/resources/schedule/searchPersonalTemplatePage.js +40 -0
- package/dist/nodes/Morelogin/resources/schedule/searchPersonalTemplatePage.js.map +1 -0
- package/dist/nodes/Morelogin/shared/descriptions.d.ts +4 -0
- package/dist/nodes/Morelogin/shared/descriptions.js +44 -0
- package/dist/nodes/Morelogin/shared/descriptions.js.map +1 -0
- package/dist/nodes/Morelogin/shared/transport.d.ts +2 -0
- package/dist/nodes/Morelogin/shared/transport.js +14 -0
- package/dist/nodes/Morelogin/shared/transport.js.map +1 -0
- package/dist/package.json +57 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/icons/morelogin.dark.svg +23 -0
- package/icons/morelogin.svg +38 -0
- package/nodes/Morelogin/Morelogin.node.json +18 -0
- package/nodes/Morelogin/Morelogin.node.ts +235 -0
- package/nodes/Morelogin/openApi.yaml +4313 -0
- package/nodes/Morelogin/resources/account/getInfo.ts +19 -0
- package/nodes/Morelogin/resources/account/getToken.ts +58 -0
- package/nodes/Morelogin/resources/account/index.ts +48 -0
- package/nodes/Morelogin/resources/schedule/createOnceSchedule.ts +54 -0
- package/nodes/Morelogin/resources/schedule/createSchedule.ts +115 -0
- package/nodes/Morelogin/resources/schedule/index.ts +73 -0
- package/nodes/Morelogin/resources/schedule/searchMarketTemplatePage.ts +31 -0
- package/nodes/Morelogin/resources/schedule/searchPersonalTemplatePage.ts +40 -0
- package/nodes/Morelogin/shared/descriptions.ts +44 -0
- package/nodes/Morelogin/shared/transport.ts +27 -0
- package/package.json +57 -0
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createOnceScheduleResponse = exports.createOnceScheduleDescription = void 0;
|
|
4
|
+
const showOnlyForScheduleSave = {
|
|
5
|
+
operation: ['createOnceSchedule'],
|
|
6
|
+
resource: ['schedule'],
|
|
7
|
+
};
|
|
8
|
+
exports.createOnceScheduleDescription = [
|
|
9
|
+
{
|
|
10
|
+
displayName: 'CloudPhoneId',
|
|
11
|
+
name: 'cloudPhoneId',
|
|
12
|
+
type: 'number',
|
|
13
|
+
default: 0,
|
|
14
|
+
displayOptions: { show: showOnlyForScheduleSave },
|
|
15
|
+
routing: { send: { type: 'body', property: 'cloudPhoneId' } },
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
displayName: 'Schedule Name',
|
|
19
|
+
name: 'scheduleName',
|
|
20
|
+
type: 'string',
|
|
21
|
+
default: '',
|
|
22
|
+
displayOptions: { show: showOnlyForScheduleSave },
|
|
23
|
+
routing: { send: { type: 'body', property: 'scheduleName' } },
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
displayName: 'Template ID',
|
|
27
|
+
name: 'templateId',
|
|
28
|
+
type: 'number',
|
|
29
|
+
default: 0,
|
|
30
|
+
displayOptions: { show: showOnlyForScheduleSave },
|
|
31
|
+
routing: { send: { type: 'body', property: 'templateId' } },
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
displayName: 'Template Parameter',
|
|
35
|
+
name: 'templateParameter',
|
|
36
|
+
type: 'string',
|
|
37
|
+
default: '',
|
|
38
|
+
description: 'Template parameters are defined in personal templates or market templates. The parameters in the template are defined as:{"Test":{"extra":{"type":"string","required":true,"multiline":{"enabled":false},"name":"Test","index":1},"type":"string"}} When requesting parameters, the parameter passed is:{"Test":"xxxx"}.',
|
|
39
|
+
displayOptions: { show: showOnlyForScheduleSave },
|
|
40
|
+
routing: { send: { type: 'body', property: 'templateParameter' } },
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
displayName: 'Description',
|
|
44
|
+
name: 'description',
|
|
45
|
+
type: 'string',
|
|
46
|
+
default: '',
|
|
47
|
+
displayOptions: { show: showOnlyForScheduleSave },
|
|
48
|
+
routing: { send: { type: 'body', property: 'description' } },
|
|
49
|
+
},
|
|
50
|
+
];
|
|
51
|
+
exports.createOnceScheduleResponse = {
|
|
52
|
+
description: 'Response: { code, msg, requestId }',
|
|
53
|
+
};
|
|
54
|
+
//# sourceMappingURL=createOnceSchedule.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createOnceSchedule.js","sourceRoot":"","sources":["../../../../../nodes/Morelogin/resources/schedule/createOnceSchedule.ts"],"names":[],"mappings":";;;AAEA,MAAM,uBAAuB,GAAG;IAC5B,SAAS,EAAE,CAAC,oBAAoB,CAAC;IACjC,QAAQ,EAAE,CAAC,UAAU,CAAC;CACzB,CAAC;AAEW,QAAA,6BAA6B,GAAsB;IAC5D;QACI,WAAW,EAAE,cAAc;QAC3B,IAAI,EAAE,cAAc;QACpB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,CAAC;QACV,cAAc,EAAE,EAAE,IAAI,EAAE,uBAAuB,EAAE;QACjD,OAAO,EAAE,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,EAAE;KAChE;IACD;QACI,WAAW,EAAE,eAAe;QAC5B,IAAI,EAAE,cAAc;QACpB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,cAAc,EAAE,EAAE,IAAI,EAAE,uBAAuB,EAAE;QACjD,OAAO,EAAE,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,EAAE;KAChE;IACD;QACI,WAAW,EAAE,aAAa;QAC1B,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,CAAC;QACV,cAAc,EAAE,EAAE,IAAI,EAAE,uBAAuB,EAAE;QACjD,OAAO,EAAE,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,YAAY,EAAE,EAAE;KAC9D;IACD;QACI,WAAW,EAAE,oBAAoB;QACjC,IAAI,EAAE,mBAAmB;QACzB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,0TAA0T;QACvU,cAAc,EAAE,EAAE,IAAI,EAAE,uBAAuB,EAAE;QACjD,OAAO,EAAE,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,mBAAmB,EAAE,EAAE;KACrE;IACD;QACI,WAAW,EAAE,aAAa;QAC1B,IAAI,EAAE,aAAa;QACnB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,cAAc,EAAE,EAAE,IAAI,EAAE,uBAAuB,EAAE;QACjD,OAAO,EAAE,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,aAAa,EAAE,EAAE;KAC/D;CACJ,CAAC;AAEW,QAAA,0BAA0B,GAAG;IACtC,WAAW,EAAE,oCAAoC;CACpD,CAAC"}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createScheduleResponse = exports.createScheduleDescription = void 0;
|
|
4
|
+
const showOnlyForScheduleSave = {
|
|
5
|
+
operation: ['createSchedule'],
|
|
6
|
+
resource: ['schedule'],
|
|
7
|
+
};
|
|
8
|
+
exports.createScheduleDescription = [
|
|
9
|
+
{
|
|
10
|
+
displayName: 'Task Name',
|
|
11
|
+
name: 'taskName',
|
|
12
|
+
type: 'string',
|
|
13
|
+
default: '',
|
|
14
|
+
displayOptions: { show: showOnlyForScheduleSave },
|
|
15
|
+
routing: { send: { type: 'body', property: 'taskName' } },
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
displayName: 'Template ID',
|
|
19
|
+
name: 'templateId',
|
|
20
|
+
type: 'number',
|
|
21
|
+
default: 0,
|
|
22
|
+
displayOptions: { show: showOnlyForScheduleSave },
|
|
23
|
+
routing: { send: { type: 'body', property: 'templateId' } },
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
displayName: 'Template Type',
|
|
27
|
+
name: 'templateType',
|
|
28
|
+
type: 'options',
|
|
29
|
+
options: [
|
|
30
|
+
{ name: 'PERSONAL', value: 'PERSONAL' },
|
|
31
|
+
{ name: 'MARKET', value: 'MARKET' },
|
|
32
|
+
],
|
|
33
|
+
default: 'PERSONAL',
|
|
34
|
+
displayOptions: { show: showOnlyForScheduleSave },
|
|
35
|
+
routing: { send: { type: 'body', property: 'templateType' } },
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
displayName: 'Task Type',
|
|
39
|
+
name: 'taskType',
|
|
40
|
+
type: 'options',
|
|
41
|
+
options: [
|
|
42
|
+
{ name: 'TEMPORARY', value: 'TEMPORARY' },
|
|
43
|
+
{ name: 'SCHEDULED', value: 'SCHEDULED' },
|
|
44
|
+
],
|
|
45
|
+
default: 'TEMPORARY',
|
|
46
|
+
displayOptions: { show: showOnlyForScheduleSave },
|
|
47
|
+
routing: { send: { type: 'body', property: 'taskType' } },
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
displayName: 'Notes',
|
|
51
|
+
name: 'notes',
|
|
52
|
+
type: 'string',
|
|
53
|
+
default: '',
|
|
54
|
+
description: 'Plan notes',
|
|
55
|
+
displayOptions: { show: showOnlyForScheduleSave },
|
|
56
|
+
routing: { send: { type: 'body', property: 'notes' } },
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
displayName: 'Cloud Phone Configs',
|
|
60
|
+
name: 'cloudPhoneConfigs',
|
|
61
|
+
type: 'fixedCollection',
|
|
62
|
+
typeOptions: { multipleValues: true },
|
|
63
|
+
placeholder: 'Add Cloud Phone',
|
|
64
|
+
default: {},
|
|
65
|
+
displayOptions: { show: showOnlyForScheduleSave },
|
|
66
|
+
options: [
|
|
67
|
+
{
|
|
68
|
+
displayName: 'Config Item',
|
|
69
|
+
name: 'configItem',
|
|
70
|
+
values: [
|
|
71
|
+
{ displayName: 'CloudPhoneId', name: 'cloudPhoneId', type: 'number', default: 0 },
|
|
72
|
+
{ displayName: 'Template Parameter', name: 'templateParameter', type: 'string', default: '' },
|
|
73
|
+
{ displayName: 'Trigger Time', name: 'triggerTime', type: 'string', default: '' },
|
|
74
|
+
],
|
|
75
|
+
},
|
|
76
|
+
],
|
|
77
|
+
routing: {
|
|
78
|
+
send: {
|
|
79
|
+
type: 'body',
|
|
80
|
+
property: 'cloudPhoneConfigs',
|
|
81
|
+
value: '={{ $value.configItem.map(i => ({ cloudPhoneId: i.cloudPhoneId, templateParameter: i.templateParameter, triggerTime: i.triggerTime })) }}',
|
|
82
|
+
},
|
|
83
|
+
},
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
displayName: 'Schedule Config',
|
|
87
|
+
name: 'scheduleConfig',
|
|
88
|
+
type: 'fixedCollection',
|
|
89
|
+
typeOptions: { multipleValues: false },
|
|
90
|
+
placeholder: 'Add Schedule Config',
|
|
91
|
+
default: {},
|
|
92
|
+
displayOptions: { show: showOnlyForScheduleSave },
|
|
93
|
+
options: [
|
|
94
|
+
{
|
|
95
|
+
displayName: 'Schedule',
|
|
96
|
+
name: 'schedule',
|
|
97
|
+
values: [
|
|
98
|
+
{ displayName: 'End Time', name: 'endTime', type: 'string', default: '' },
|
|
99
|
+
{ displayName: 'Schedule Type', name: 'scheduleType', type: 'string', default: '' },
|
|
100
|
+
],
|
|
101
|
+
},
|
|
102
|
+
],
|
|
103
|
+
routing: {
|
|
104
|
+
send: {
|
|
105
|
+
type: 'body',
|
|
106
|
+
property: 'scheduleConfig',
|
|
107
|
+
value: '={{ $value.schedule }}',
|
|
108
|
+
},
|
|
109
|
+
},
|
|
110
|
+
},
|
|
111
|
+
];
|
|
112
|
+
exports.createScheduleResponse = {
|
|
113
|
+
description: 'Response: { code, msg, requestId }',
|
|
114
|
+
};
|
|
115
|
+
//# sourceMappingURL=createSchedule.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createSchedule.js","sourceRoot":"","sources":["../../../../../nodes/Morelogin/resources/schedule/createSchedule.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.scheduleDescription = void 0;
|
|
4
|
+
const searchMarketTemplatePage_1 = require("./searchMarketTemplatePage");
|
|
5
|
+
const searchPersonalTemplatePage_1 = require("./searchPersonalTemplatePage");
|
|
6
|
+
const createSchedule_1 = require("./createSchedule");
|
|
7
|
+
const createOnceSchedule_1 = require("./createOnceSchedule");
|
|
8
|
+
const showOnlyForCloudphone = {
|
|
9
|
+
resource: ['schedule'],
|
|
10
|
+
};
|
|
11
|
+
exports.scheduleDescription = [
|
|
12
|
+
{
|
|
13
|
+
displayName: 'Operation',
|
|
14
|
+
name: 'operation',
|
|
15
|
+
type: 'options',
|
|
16
|
+
noDataExpression: true,
|
|
17
|
+
displayOptions: {
|
|
18
|
+
show: showOnlyForCloudphone,
|
|
19
|
+
},
|
|
20
|
+
options: [
|
|
21
|
+
{
|
|
22
|
+
name: 'Schedule: Template Market Page',
|
|
23
|
+
value: 'searchMarketTemplateForPage',
|
|
24
|
+
action: 'List market templates',
|
|
25
|
+
routing: {
|
|
26
|
+
request: {
|
|
27
|
+
method: 'POST',
|
|
28
|
+
url: '=/cloudphone/rpa/template/market/page',
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
name: 'Schedule: Template Personal Page',
|
|
34
|
+
value: 'searchPersonalTemplateForPage',
|
|
35
|
+
action: 'List personal templates',
|
|
36
|
+
routing: {
|
|
37
|
+
request: {
|
|
38
|
+
method: 'POST',
|
|
39
|
+
url: '=/cloudphone/rpa/template/personal/page',
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
name: 'Create a Schedule',
|
|
45
|
+
value: 'createSchedule',
|
|
46
|
+
action: 'Create a schedule',
|
|
47
|
+
routing: {
|
|
48
|
+
request: {
|
|
49
|
+
method: 'POST',
|
|
50
|
+
url: '=/cloudphone/rpa/task/save',
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
name: 'Create a Once Schedule',
|
|
56
|
+
value: 'createOnceSchedule',
|
|
57
|
+
action: 'Create a once schedule',
|
|
58
|
+
routing: {
|
|
59
|
+
request: {
|
|
60
|
+
method: 'POST',
|
|
61
|
+
url: '=/cloudphone/rpa/onceTask/save',
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
],
|
|
66
|
+
default: 'createOnceSchedule',
|
|
67
|
+
},
|
|
68
|
+
...searchMarketTemplatePage_1.searchMarketTemplateForPageDescription,
|
|
69
|
+
...searchPersonalTemplatePage_1.searchPersonalTemplateForPageDescription,
|
|
70
|
+
...createSchedule_1.createScheduleDescription,
|
|
71
|
+
...createOnceSchedule_1.createOnceScheduleDescription,
|
|
72
|
+
];
|
|
73
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Morelogin/resources/schedule/index.ts"],"names":[],"mappings":";;;AAEA,yEAAoF;AACpF,6EAAwF;AACxF,qDAA6D;AAC7D,6DAAqE;AAErE,MAAM,qBAAqB,GAAG;IAC1B,QAAQ,EAAE,CAAC,UAAU,CAAC;CACzB,CAAC;AAEW,QAAA,mBAAmB,GAAsB;IAClD;QACI,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE;YACZ,IAAI,EAAE,qBAAqB;SAC9B;QACD,OAAO,EAAE;YACL;gBACI,IAAI,EAAE,gCAAgC;gBACtC,KAAK,EAAE,6BAA6B;gBACpC,MAAM,EAAE,uBAAuB;gBAC/B,OAAO,EAAE;oBACL,OAAO,EAAE;wBACL,MAAM,EAAE,MAAM;wBACd,GAAG,EAAE,uCAAuC;qBAC/C;iBACJ;aACJ;YACD;gBACI,IAAI,EAAE,kCAAkC;gBACxC,KAAK,EAAE,+BAA+B;gBACtC,MAAM,EAAE,yBAAyB;gBACjC,OAAO,EAAE;oBACL,OAAO,EAAE;wBACL,MAAM,EAAE,MAAM;wBACd,GAAG,EAAE,yCAAyC;qBACjD;iBACJ;aACJ;YACD;gBACI,IAAI,EAAE,mBAAmB;gBACzB,KAAK,EAAE,gBAAgB;gBACvB,MAAM,EAAE,mBAAmB;gBAC3B,OAAO,EAAE;oBACL,OAAO,EAAE;wBACL,MAAM,EAAE,MAAM;wBACd,GAAG,EAAE,4BAA4B;qBACpC;iBACJ;aACJ;YACD;gBACI,IAAI,EAAE,wBAAwB;gBAC9B,KAAK,EAAE,oBAAoB;gBAC3B,MAAM,EAAE,wBAAwB;gBAChC,OAAO,EAAE;oBACL,OAAO,EAAE;wBACL,MAAM,EAAE,MAAM;wBACd,GAAG,EAAE,gCAAgC;qBACxC;iBACJ;aACJ;SACJ;QACD,OAAO,EAAE,oBAAoB;KAChC;IACD,GAAG,iEAAsC;IACzC,GAAG,qEAAwC;IAC3C,GAAG,0CAAyB;IAC5B,GAAG,kDAA6B;CACnC,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.searchMarketTemplateForPageResponse = exports.searchMarketTemplateForPageDescription = void 0;
|
|
4
|
+
const descriptions_1 = require("../../shared/descriptions");
|
|
5
|
+
const showOnlyForMarketTemplatePagePage = {
|
|
6
|
+
operation: ['searchMarketTemplateForPage'],
|
|
7
|
+
resource: ['schedule'],
|
|
8
|
+
};
|
|
9
|
+
exports.searchMarketTemplateForPageDescription = [
|
|
10
|
+
{
|
|
11
|
+
displayName: 'Search Key',
|
|
12
|
+
name: 'searchKey',
|
|
13
|
+
type: 'string',
|
|
14
|
+
default: '',
|
|
15
|
+
description: 'Template name (fuzzy search)',
|
|
16
|
+
displayOptions: { show: showOnlyForMarketTemplatePagePage },
|
|
17
|
+
routing: { send: { type: 'body', property: 'searchKey' } },
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
...descriptions_1.pageNo,
|
|
21
|
+
displayOptions: { show: showOnlyForMarketTemplatePagePage },
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
...descriptions_1.pageSize,
|
|
25
|
+
displayOptions: { show: showOnlyForMarketTemplatePagePage },
|
|
26
|
+
},
|
|
27
|
+
];
|
|
28
|
+
exports.searchMarketTemplateForPageResponse = {
|
|
29
|
+
description: 'Response includes pagination fields and dataList',
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=searchMarketTemplatePage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"searchMarketTemplatePage.js","sourceRoot":"","sources":["../../../../../nodes/Morelogin/resources/schedule/searchMarketTemplatePage.ts"],"names":[],"mappings":";;;AACA,4DAA6D;AAE7D,MAAM,iCAAiC,GAAG;IACtC,SAAS,EAAE,CAAC,6BAA6B,CAAC;IAC1C,QAAQ,EAAE,CAAC,UAAU,CAAC;CACzB,CAAC;AAEW,QAAA,sCAAsC,GAAsB;IACrE;QACI,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,8BAA8B;QAC3C,cAAc,EAAE,EAAE,IAAI,EAAE,iCAAiC,EAAE;QAC3D,OAAO,EAAE,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,WAAW,EAAE,EAAE;KAC7D;IACD;QACI,GAAG,qBAAM;QACT,cAAc,EAAE,EAAE,IAAI,EAAE,iCAAiC,EAAE;KAC9D;IACD;QACI,GAAG,uBAAQ;QACX,cAAc,EAAE,EAAE,IAAI,EAAE,iCAAiC,EAAE;KAC9D;CACJ,CAAC;AAEW,QAAA,mCAAmC,GAAG;IAC/C,WAAW,EAAE,kDAAkD;CAClE,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.searchPersonalTemplateForPageResponse = exports.searchPersonalTemplateForPageDescription = void 0;
|
|
4
|
+
const descriptions_1 = require("../../shared/descriptions");
|
|
5
|
+
const showOnlyForRpaTemplatePersonalPage = {
|
|
6
|
+
operation: ['searchPersonalTemplateForPage'],
|
|
7
|
+
resource: ['schedule'],
|
|
8
|
+
};
|
|
9
|
+
exports.searchPersonalTemplateForPageDescription = [
|
|
10
|
+
{
|
|
11
|
+
displayName: 'Search Key',
|
|
12
|
+
name: 'searchKey',
|
|
13
|
+
type: 'string',
|
|
14
|
+
default: '',
|
|
15
|
+
description: 'Template name (fuzzy search)',
|
|
16
|
+
displayOptions: { show: showOnlyForRpaTemplatePersonalPage },
|
|
17
|
+
routing: { send: { type: 'body', property: 'searchKey' } },
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
displayName: 'Description',
|
|
21
|
+
name: 'desc',
|
|
22
|
+
type: 'string',
|
|
23
|
+
default: '',
|
|
24
|
+
description: 'Template description',
|
|
25
|
+
displayOptions: { show: showOnlyForRpaTemplatePersonalPage },
|
|
26
|
+
routing: { send: { type: 'body', property: 'desc' } },
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
...descriptions_1.pageNo,
|
|
30
|
+
displayOptions: { show: showOnlyForRpaTemplatePersonalPage },
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
...descriptions_1.pageSize,
|
|
34
|
+
displayOptions: { show: showOnlyForRpaTemplatePersonalPage },
|
|
35
|
+
},
|
|
36
|
+
];
|
|
37
|
+
exports.searchPersonalTemplateForPageResponse = {
|
|
38
|
+
description: 'Response includes pagination fields and dataList',
|
|
39
|
+
};
|
|
40
|
+
//# sourceMappingURL=searchPersonalTemplatePage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"searchPersonalTemplatePage.js","sourceRoot":"","sources":["../../../../../nodes/Morelogin/resources/schedule/searchPersonalTemplatePage.ts"],"names":[],"mappings":";;;AACA,4DAA6D;AAE7D,MAAM,kCAAkC,GAAG;IACvC,SAAS,EAAE,CAAC,+BAA+B,CAAC;IAC5C,QAAQ,EAAE,CAAC,UAAU,CAAC;CACzB,CAAC;AAEW,QAAA,wCAAwC,GAAsB;IACvE;QACI,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,8BAA8B;QAC3C,cAAc,EAAE,EAAE,IAAI,EAAE,kCAAkC,EAAE;QAC5D,OAAO,EAAE,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,WAAW,EAAE,EAAE;KAC7D;IACD;QACI,WAAW,EAAE,aAAa;QAC1B,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,sBAAsB;QACnC,cAAc,EAAE,EAAE,IAAI,EAAE,kCAAkC,EAAE;QAC5D,OAAO,EAAE,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE;KACxD;IACD;QACI,GAAG,qBAAM;QACT,cAAc,EAAE,EAAE,IAAI,EAAE,kCAAkC,EAAE;KAC/D;IACD;QACI,GAAG,uBAAQ;QACX,cAAc,EAAE,EAAE,IAAI,EAAE,kCAAkC,EAAE;KAC/D;CACJ,CAAC;AAEW,QAAA,qCAAqC,GAAG;IACjD,WAAW,EAAE,kDAAkD;CAClE,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.pageSize = exports.pageNo = exports.cloudphoneId = void 0;
|
|
4
|
+
exports.cloudphoneId = {
|
|
5
|
+
displayName: 'Cloudphone ID',
|
|
6
|
+
name: 'id',
|
|
7
|
+
type: 'string',
|
|
8
|
+
default: '',
|
|
9
|
+
required: true,
|
|
10
|
+
description: 'Cloud phone ID',
|
|
11
|
+
routing: {
|
|
12
|
+
send: {
|
|
13
|
+
type: 'body',
|
|
14
|
+
property: 'id',
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
};
|
|
18
|
+
exports.pageNo = {
|
|
19
|
+
displayName: 'Page Number',
|
|
20
|
+
name: 'pageNo',
|
|
21
|
+
type: 'number',
|
|
22
|
+
default: 1,
|
|
23
|
+
description: 'Page number for paginated requests',
|
|
24
|
+
routing: {
|
|
25
|
+
send: {
|
|
26
|
+
type: 'body',
|
|
27
|
+
property: 'pageNo',
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
};
|
|
31
|
+
exports.pageSize = {
|
|
32
|
+
displayName: 'Page Size',
|
|
33
|
+
name: 'pageSize',
|
|
34
|
+
type: 'number',
|
|
35
|
+
default: 10,
|
|
36
|
+
description: 'Page size for paginated requests',
|
|
37
|
+
routing: {
|
|
38
|
+
send: {
|
|
39
|
+
type: 'body',
|
|
40
|
+
property: 'pageSize',
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
};
|
|
44
|
+
//# sourceMappingURL=descriptions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"descriptions.js","sourceRoot":"","sources":["../../../../nodes/Morelogin/shared/descriptions.ts"],"names":[],"mappings":";;;AAEa,QAAA,YAAY,GAAoB;IACzC,WAAW,EAAE,eAAe;IAC5B,IAAI,EAAE,IAAI;IACV,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE,EAAE;IACX,QAAQ,EAAE,IAAI;IACd,WAAW,EAAE,gBAAgB;IAC7B,OAAO,EAAE;QACL,IAAI,EAAE;YACF,IAAI,EAAE,MAAM;YACZ,QAAQ,EAAE,IAAI;SACjB;KACJ;CACJ,CAAC;AAEW,QAAA,MAAM,GAAoB;IACnC,WAAW,EAAE,aAAa;IAC1B,IAAI,EAAE,QAAQ;IACd,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE,CAAC;IACV,WAAW,EAAE,oCAAoC;IACjD,OAAO,EAAE;QACL,IAAI,EAAE;YACF,IAAI,EAAE,MAAM;YACZ,QAAQ,EAAE,QAAQ;SACrB;KACJ;CACJ,CAAC;AAEW,QAAA,QAAQ,GAAoB;IACrC,WAAW,EAAE,WAAW;IACxB,IAAI,EAAE,UAAU;IAChB,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE,EAAE;IACX,WAAW,EAAE,kCAAkC;IAC/C,OAAO,EAAE;QACL,IAAI,EAAE;YACF,IAAI,EAAE,MAAM;YACZ,QAAQ,EAAE,UAAU;SACvB;KACJ;CACJ,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import type { IHookFunctions, IExecuteFunctions, IExecuteSingleFunctions, ILoadOptionsFunctions, IHttpRequestMethods, IDataObject } from 'n8n-workflow';
|
|
2
|
+
export declare function moreloginApiRequest(this: IHookFunctions | IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions, method: IHttpRequestMethods, resource: string, qs?: IDataObject, body?: IDataObject | undefined): Promise<any>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.moreloginApiRequest = moreloginApiRequest;
|
|
4
|
+
async function moreloginApiRequest(method, resource, qs = {}, body = undefined) {
|
|
5
|
+
const options = {
|
|
6
|
+
method: method,
|
|
7
|
+
qs,
|
|
8
|
+
body,
|
|
9
|
+
url: `https://api.morelogin.com${resource}`,
|
|
10
|
+
json: true,
|
|
11
|
+
};
|
|
12
|
+
return this.helpers.httpRequestWithAuthentication.call(this, 'moreLoginOAuth2Api', options);
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=transport.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transport.js","sourceRoot":"","sources":["../../../../nodes/Morelogin/shared/transport.ts"],"names":[],"mappings":";;AAUA,kDAgBC;AAhBM,KAAK,UAAU,mBAAmB,CAErC,MAA2B,EAC3B,QAAgB,EAChB,KAAkB,EAAE,EACpB,OAAgC,SAAS;IAEzC,MAAM,OAAO,GAAwB;QACjC,MAAM,EAAE,MAAM;QACd,EAAE;QACF,IAAI;QACJ,GAAG,EAAE,4BAA4B,QAAQ,EAAE;QAC3C,IAAI,EAAE,IAAI;KACb,CAAC;IAEF,OAAO,IAAI,CAAC,OAAO,CAAC,6BAA6B,CAAC,IAAI,CAAC,IAAI,EAAE,oBAAoB,EAAE,OAAO,CAAC,CAAC;AAChG,CAAC"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "n8n-nodes-morelogin",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Morelogin node for n8n",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"homepage": "",
|
|
7
|
+
"keywords": [
|
|
8
|
+
"n8n",
|
|
9
|
+
"n8n-community-node-package",
|
|
10
|
+
"n8n-community-node-package",
|
|
11
|
+
"morelogin"
|
|
12
|
+
],
|
|
13
|
+
"author": {
|
|
14
|
+
"name": "morelogin",
|
|
15
|
+
"email": "developer@morelogin.com"
|
|
16
|
+
},
|
|
17
|
+
"repository": {
|
|
18
|
+
"type": "git",
|
|
19
|
+
"url": "https://github.com/MoreLoginBrowser/n8n-nodes-morelogin.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
|
+
"files": [
|
|
31
|
+
"dist",
|
|
32
|
+
"nodes",
|
|
33
|
+
"credentials",
|
|
34
|
+
"icons"
|
|
35
|
+
],
|
|
36
|
+
"n8n": {
|
|
37
|
+
"n8nNodesApiVersion": 1,
|
|
38
|
+
"strict": true,
|
|
39
|
+
"credentials": [
|
|
40
|
+
"credentials/moreLoginOAuth2Api.credentials.ts"
|
|
41
|
+
],
|
|
42
|
+
"nodes": [
|
|
43
|
+
"nodes/morelogin/morelogin.node.ts"
|
|
44
|
+
]
|
|
45
|
+
},
|
|
46
|
+
"devDependencies": {
|
|
47
|
+
"@n8n/node-cli": "*",
|
|
48
|
+
"@types/node": "^25.0.3",
|
|
49
|
+
"eslint": "9.32.0",
|
|
50
|
+
"prettier": "3.6.2",
|
|
51
|
+
"release-it": "^19.0.4",
|
|
52
|
+
"typescript": "5.9.2"
|
|
53
|
+
},
|
|
54
|
+
"peerDependencies": {
|
|
55
|
+
"n8n-workflow": "*"
|
|
56
|
+
}
|
|
57
|
+
}
|