@yuniruyuni/n8n-nodes-twitch 0.1.6 → 0.1.8
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/dist/credentials/TwitchOAuth2Api.credentials.js +3 -9
- package/dist/credentials/TwitchOAuth2Api.credentials.js.map +1 -1
- package/dist/nodes/Twitch/resources/Announcement.js +43 -81
- package/dist/nodes/Twitch/resources/Announcement.js.map +1 -1
- package/dist/nodes/Twitch/resources/Ban.js +36 -169
- package/dist/nodes/Twitch/resources/Ban.js.map +1 -1
- package/dist/nodes/Twitch/resources/BitsLeaderboard.js +54 -82
- package/dist/nodes/Twitch/resources/BitsLeaderboard.js.map +1 -1
- package/dist/nodes/Twitch/resources/Channel.js +13 -15
- package/dist/nodes/Twitch/resources/Channel.js.map +1 -1
- package/dist/nodes/Twitch/resources/ChatMessage.js +26 -49
- package/dist/nodes/Twitch/resources/ChatMessage.js.map +1 -1
- package/dist/nodes/Twitch/resources/Chatter.js +1 -49
- package/dist/nodes/Twitch/resources/Chatter.js.map +1 -1
- package/dist/nodes/Twitch/resources/Cheermote.js +1 -16
- package/dist/nodes/Twitch/resources/Cheermote.js.map +1 -1
- package/dist/nodes/Twitch/resources/Clip.js +91 -153
- package/dist/nodes/Twitch/resources/Clip.js.map +1 -1
- package/dist/nodes/Twitch/resources/CustomReward.js +309 -296
- package/dist/nodes/Twitch/resources/CustomReward.js.map +1 -1
- package/dist/nodes/Twitch/resources/Emote.js +1 -17
- package/dist/nodes/Twitch/resources/Emote.js.map +1 -1
- package/dist/nodes/Twitch/resources/Game.js +68 -92
- package/dist/nodes/Twitch/resources/Game.js.map +1 -1
- package/dist/nodes/Twitch/resources/Moderator.js +75 -108
- package/dist/nodes/Twitch/resources/Moderator.js.map +1 -1
- package/dist/nodes/Twitch/resources/Poll.js +174 -229
- package/dist/nodes/Twitch/resources/Poll.js.map +1 -1
- package/dist/nodes/Twitch/resources/Prediction.js +143 -201
- package/dist/nodes/Twitch/resources/Prediction.js.map +1 -1
- package/dist/nodes/Twitch/resources/Raid.js +48 -71
- package/dist/nodes/Twitch/resources/Raid.js.map +1 -1
- package/dist/nodes/Twitch/resources/Redemption.js +136 -139
- package/dist/nodes/Twitch/resources/Redemption.js.map +1 -1
- package/dist/nodes/Twitch/resources/Schedule.js +226 -213
- package/dist/nodes/Twitch/resources/Schedule.js.map +1 -1
- package/dist/nodes/Twitch/resources/Search.js +24 -34
- package/dist/nodes/Twitch/resources/Search.js.map +1 -1
- package/dist/nodes/Twitch/resources/Stream.js +13 -15
- package/dist/nodes/Twitch/resources/Stream.js.map +1 -1
- package/dist/nodes/Twitch/resources/Subscription.js +61 -75
- package/dist/nodes/Twitch/resources/Subscription.js.map +1 -1
- package/dist/nodes/Twitch/resources/Team.js +63 -72
- package/dist/nodes/Twitch/resources/Team.js.map +1 -1
- package/dist/nodes/Twitch/resources/User.js +13 -15
- package/dist/nodes/Twitch/resources/User.js.map +1 -1
- package/dist/nodes/Twitch/resources/Video.js +106 -129
- package/dist/nodes/Twitch/resources/Video.js.map +1 -1
- package/dist/nodes/Twitch/resources/Whisper.js +32 -28
- package/dist/nodes/Twitch/resources/Whisper.js.map +1 -1
- package/dist/nodes/Twitch/shared/updateDisplayOptions.d.ts +2 -0
- package/dist/nodes/Twitch/shared/updateDisplayOptions.js +12 -0
- package/dist/nodes/Twitch/shared/updateDisplayOptions.js.map +1 -0
- package/dist/package.json +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Channel.js","sourceRoot":"","sources":["../../../../nodes/Twitch/resources/Channel.ts"],"names":[],"mappings":";;;AACA,+DAAoE;
|
|
1
|
+
{"version":3,"file":"Channel.js","sourceRoot":"","sources":["../../../../nodes/Twitch/resources/Channel.ts"],"names":[],"mappings":";;;AACA,+DAAoE;AACpE,yEAAsE;AAGtE,MAAM,aAAa,GAAsB;IACxC;QACC,WAAW,EAAE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AAC;AAEW,QAAA,aAAa,GAAsB;IAC/C,GAAG,IAAA,2CAAoB,EAAC,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC,SAAS,CAAC,EAAE,SAAS,EAAE,CAAC,SAAS,CAAC,EAAE,EAAE,EAAE,aAAa,CAAC;CACnG,CAAC"}
|
|
@@ -2,6 +2,30 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.chatMessageFields = exports.chatMessageOperations = void 0;
|
|
4
4
|
const userIdConverter_1 = require("../shared/userIdConverter");
|
|
5
|
+
const updateDisplayOptions_1 = require("../shared/updateDisplayOptions");
|
|
6
|
+
const sendMessageFields = [
|
|
7
|
+
{
|
|
8
|
+
displayName: 'Sender ID or Username',
|
|
9
|
+
name: 'senderId',
|
|
10
|
+
type: 'string',
|
|
11
|
+
default: '',
|
|
12
|
+
required: true,
|
|
13
|
+
placeholder: 'e.g. 987654321 or username',
|
|
14
|
+
description: 'The sender user ID or username (must match the user access token). If a username is provided, it will be automatically converted to user ID.',
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
displayName: 'Message',
|
|
18
|
+
name: 'message',
|
|
19
|
+
type: 'string',
|
|
20
|
+
default: '',
|
|
21
|
+
required: true,
|
|
22
|
+
placeholder: 'e.g. Hello, Twitch!',
|
|
23
|
+
description: 'The message to send. Maximum length: 500 characters.',
|
|
24
|
+
typeOptions: {
|
|
25
|
+
maxValue: 500,
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
];
|
|
5
29
|
exports.chatMessageOperations = [
|
|
6
30
|
{
|
|
7
31
|
displayName: 'Operation',
|
|
@@ -55,56 +79,9 @@ exports.chatMessageOperations = [
|
|
|
55
79
|
},
|
|
56
80
|
],
|
|
57
81
|
default: 'sendMessage',
|
|
58
|
-
}
|
|
82
|
+
},
|
|
59
83
|
];
|
|
60
84
|
exports.chatMessageFields = [
|
|
61
|
-
{
|
|
62
|
-
displayName: 'Broadcaster ID or Username',
|
|
63
|
-
name: 'broadcasterId',
|
|
64
|
-
type: 'string',
|
|
65
|
-
displayOptions: {
|
|
66
|
-
show: {
|
|
67
|
-
resource: ['chatMessage'],
|
|
68
|
-
operation: ['sendMessage'],
|
|
69
|
-
},
|
|
70
|
-
},
|
|
71
|
-
default: '',
|
|
72
|
-
required: true,
|
|
73
|
-
placeholder: 'e.g. 123456789 or username',
|
|
74
|
-
description: 'The broadcaster user ID or username. If a username is provided, it will be automatically converted to user ID.',
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
displayName: 'Sender ID or Username',
|
|
78
|
-
name: 'senderId',
|
|
79
|
-
type: 'string',
|
|
80
|
-
displayOptions: {
|
|
81
|
-
show: {
|
|
82
|
-
resource: ['chatMessage'],
|
|
83
|
-
operation: ['sendMessage'],
|
|
84
|
-
},
|
|
85
|
-
},
|
|
86
|
-
default: '',
|
|
87
|
-
required: true,
|
|
88
|
-
placeholder: 'e.g. 987654321 or username',
|
|
89
|
-
description: 'The sender user ID or username (must match the user access token). If a username is provided, it will be automatically converted to user ID.',
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
displayName: 'Message',
|
|
93
|
-
name: 'message',
|
|
94
|
-
type: 'string',
|
|
95
|
-
displayOptions: {
|
|
96
|
-
show: {
|
|
97
|
-
resource: ['chatMessage'],
|
|
98
|
-
operation: ['sendMessage'],
|
|
99
|
-
},
|
|
100
|
-
},
|
|
101
|
-
default: '',
|
|
102
|
-
required: true,
|
|
103
|
-
placeholder: 'e.g. Hello, Twitch!',
|
|
104
|
-
description: 'The message to send. Maximum length: 500 characters.',
|
|
105
|
-
typeOptions: {
|
|
106
|
-
maxValue: 500,
|
|
107
|
-
},
|
|
108
|
-
},
|
|
85
|
+
...(0, updateDisplayOptions_1.updateDisplayOptions)({ show: { resource: ['chatMessage'], operation: ['sendMessage'] } }, sendMessageFields),
|
|
109
86
|
];
|
|
110
87
|
//# sourceMappingURL=ChatMessage.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatMessage.js","sourceRoot":"","sources":["../../../../nodes/Twitch/resources/ChatMessage.ts"],"names":[],"mappings":";;;AACA,+DAAoE;
|
|
1
|
+
{"version":3,"file":"ChatMessage.js","sourceRoot":"","sources":["../../../../nodes/Twitch/resources/ChatMessage.ts"],"names":[],"mappings":";;;AACA,+DAAoE;AACpE,yEAAsE;AAGtE,MAAM,iBAAiB,GAAsB;IAC5C;QACC,WAAW,EAAE,uBAAuB;QACpC,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,4BAA4B;QACzC,WAAW,EAAE,8IAA8I;KAC3J;IACD;QACC,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,qBAAqB;QAClC,WAAW,EAAE,sDAAsD;QACnE,WAAW,EAAE;YACZ,QAAQ,EAAE,GAAG;SACb;KACD;CACD,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;gBACL,QAAQ,EAAE,CAAC,aAAa,CAAC;aACzB;SACD;QACD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,cAAc;gBACpB,KAAK,EAAE,aAAa;gBACpB,MAAM,EAAE,gBAAgB;gBACxB,WAAW,EAAE,iCAAiC;gBAC9C,OAAO,EAAE;oBACR,OAAO,EAAE;wBACR,MAAM,EAAE,MAAM;wBACd,GAAG,EAAE,gBAAgB;qBACrB;oBACD,IAAI,EAAE;wBACL,OAAO,EAAE;4BACR,KAAK,WAAiB,cAAc;gCACnC,MAAM,kBAAkB,GAAG,IAAI,CAAC,gBAAgB,CAAC,eAAe,CAAW,CAAC;gCAC5E,MAAM,aAAa,GAAG,IAAI,CAAC,gBAAgB,CAAC,UAAU,CAAW,CAAC;gCAClE,MAAM,OAAO,GAAG,IAAI,CAAC,gBAAgB,CAAC,SAAS,CAAW,CAAC;gCAG3D,MAAM,aAAa,GAAG,MAAM,yCAAuB,CAAC,IAAI,CAAC,IAAI,EAAE,kBAAkB,CAAC,CAAC;gCACnF,MAAM,QAAQ,GAAG,MAAM,yCAAuB,CAAC,IAAI,CAAC,IAAI,EAAE,aAAa,CAAC,CAAC;gCAEzE,cAAc,CAAC,IAAI,GAAG;oCACrB,cAAc,EAAE,aAAa;oCAC7B,SAAS,EAAE,QAAQ;oCACnB,OAAO,EAAE,OAAO;iCAChB,CAAC;gCAEF,OAAO,cAAc,CAAC;4BACvB,CAAC;yBACD;qBACD;oBACD,MAAM,EAAE;wBACP,WAAW,EAAE;4BACZ;gCACC,IAAI,EAAE,cAAc;gCACpB,UAAU,EAAE;oCACX,QAAQ,EAAE,MAAM;iCAChB;6BACD;yBACD;qBACD;iBACD;aACD;SACD;QACD,OAAO,EAAE,aAAa;KACtB;CACD,CAAC;AAEW,QAAA,iBAAiB,GAAsB;IACnD,GAAG,IAAA,2CAAoB,EAAC,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC,aAAa,CAAC,EAAE,SAAS,EAAE,CAAC,aAAa,CAAC,EAAE,EAAE,EAAE,iBAAiB,CAAC;CAC/G,CAAC"}
|
|
@@ -55,55 +55,7 @@ exports.chatterOperations = [
|
|
|
55
55
|
},
|
|
56
56
|
],
|
|
57
57
|
default: 'get',
|
|
58
|
-
}
|
|
59
|
-
];
|
|
60
|
-
exports.chatterFields = [
|
|
61
|
-
{
|
|
62
|
-
displayName: 'Broadcaster ID or Username',
|
|
63
|
-
name: 'broadcasterId',
|
|
64
|
-
type: 'string',
|
|
65
|
-
displayOptions: {
|
|
66
|
-
show: {
|
|
67
|
-
resource: ['chatter'],
|
|
68
|
-
operation: ['get'],
|
|
69
|
-
},
|
|
70
|
-
},
|
|
71
|
-
default: '',
|
|
72
|
-
required: true,
|
|
73
|
-
placeholder: 'e.g. 123456789 or username',
|
|
74
|
-
description: 'The broadcaster user ID or username. If a username is provided, it will be automatically converted to user ID.',
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
displayName: 'Moderator ID or Username',
|
|
78
|
-
name: 'moderatorId',
|
|
79
|
-
type: 'string',
|
|
80
|
-
displayOptions: {
|
|
81
|
-
show: {
|
|
82
|
-
resource: ['chatter'],
|
|
83
|
-
operation: ['get'],
|
|
84
|
-
},
|
|
85
|
-
},
|
|
86
|
-
default: '',
|
|
87
|
-
required: true,
|
|
88
|
-
placeholder: 'e.g. 987654321 or username',
|
|
89
|
-
description: 'The moderator user ID or username. If a username is provided, it will be automatically converted to user ID.',
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
displayName: 'First',
|
|
93
|
-
name: 'first',
|
|
94
|
-
type: 'number',
|
|
95
|
-
displayOptions: {
|
|
96
|
-
show: {
|
|
97
|
-
resource: ['chatter'],
|
|
98
|
-
operation: ['get'],
|
|
99
|
-
},
|
|
100
|
-
},
|
|
101
|
-
default: 100,
|
|
102
|
-
description: 'The maximum number of items to return (1-1000)',
|
|
103
|
-
typeOptions: {
|
|
104
|
-
minValue: 1,
|
|
105
|
-
maxValue: 1000,
|
|
106
|
-
},
|
|
107
58
|
},
|
|
108
59
|
];
|
|
60
|
+
exports.chatterFields = [];
|
|
109
61
|
//# sourceMappingURL=Chatter.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Chatter.js","sourceRoot":"","sources":["../../../../nodes/Twitch/resources/Chatter.ts"],"names":[],"mappings":";;;AACA,+DAAoE;AAEvD,QAAA,iBAAiB,GAAsB;IACnD;
|
|
1
|
+
{"version":3,"file":"Chatter.js","sourceRoot":"","sources":["../../../../nodes/Twitch/resources/Chatter.ts"],"names":[],"mappings":";;;AACA,+DA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,EAAE,KAAK;KACd;CACD,CAAC;AAEW,QAAA,aAAa,GAAsB,EAAE,CAAC"}
|
|
@@ -52,22 +52,7 @@ exports.cheermoteOperations = [
|
|
|
52
52
|
},
|
|
53
53
|
],
|
|
54
54
|
default: 'get',
|
|
55
|
-
}
|
|
56
|
-
];
|
|
57
|
-
exports.cheermoteFields = [
|
|
58
|
-
{
|
|
59
|
-
displayName: 'Broadcaster ID or Username',
|
|
60
|
-
name: 'broadcasterId',
|
|
61
|
-
type: 'string',
|
|
62
|
-
displayOptions: {
|
|
63
|
-
show: {
|
|
64
|
-
resource: ['cheermote'],
|
|
65
|
-
operation: ['get'],
|
|
66
|
-
},
|
|
67
|
-
},
|
|
68
|
-
default: '',
|
|
69
|
-
placeholder: 'e.g. 123456789 or username',
|
|
70
|
-
description: 'The broadcaster user ID or username. If omitted, returns global cheermotes. If a username is provided, it will be automatically converted to user ID.',
|
|
71
55
|
},
|
|
72
56
|
];
|
|
57
|
+
exports.cheermoteFields = [];
|
|
73
58
|
//# sourceMappingURL=Cheermote.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Cheermote.js","sourceRoot":"","sources":["../../../../nodes/Twitch/resources/Cheermote.ts"],"names":[],"mappings":";;;AACA,+DAAoE;AAEvD,QAAA,mBAAmB,GAAsB;IACrD;
|
|
1
|
+
{"version":3,"file":"Cheermote.js","sourceRoot":"","sources":["../../../../nodes/Twitch/resources/Cheermote.ts"],"names":[],"mappings":";;;AACA,+DAAoE;AAEvD,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;gBACL,QAAQ,EAAE,CAAC,WAAW,CAAC;aACvB;SACD;QACD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,KAAK;gBACX,KAAK,EAAE,KAAK;gBACZ,MAAM,EAAE,gBAAgB;gBACxB,WAAW,EAAE,6DAA6D;gBAC1E,OAAO,EAAE;oBACR,OAAO,EAAE;wBACR,MAAM,EAAE,KAAK;wBACb,GAAG,EAAE,kBAAkB;qBACvB;oBACD,IAAI,EAAE;wBACL,OAAO,EAAE;4BACR,KAAK,WAAiB,cAAc;gCACnC,MAAM,kBAAkB,GAAG,IAAI,CAAC,gBAAgB,CAAC,eAAe,EAAE,EAAE,CAAW,CAAC;gCAEhF,IAAI,kBAAkB,EAAE,CAAC;oCACxB,MAAM,aAAa,GAAG,MAAM,yCAAuB,CAAC,IAAI,CAAC,IAAI,EAAE,kBAAkB,CAAC,CAAC;oCACnF,cAAc,CAAC,EAAE,GAAG;wCACnB,cAAc,EAAE,aAAa;qCAC7B,CAAC;gCACH,CAAC;gCAED,OAAO,cAAc,CAAC;4BACvB,CAAC;yBACD;qBACD;oBACD,MAAM,EAAE;wBACP,WAAW,EAAE;4BACZ;gCACC,IAAI,EAAE,cAAc;gCACpB,UAAU,EAAE;oCACX,QAAQ,EAAE,MAAM;iCAChB;6BACD;yBACD;qBACD;iBACD;aACD;SACD;QACD,OAAO,EAAE,KAAK;KACd;CACD,CAAC;AAEW,QAAA,eAAe,GAAsB,EAAE,CAAC"}
|
|
@@ -2,6 +2,95 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.clipFields = exports.clipOperations = void 0;
|
|
4
4
|
const userIdConverter_1 = require("../shared/userIdConverter");
|
|
5
|
+
const updateDisplayOptions_1 = require("../shared/updateDisplayOptions");
|
|
6
|
+
const createClipFields = [
|
|
7
|
+
{
|
|
8
|
+
displayName: 'Has Delay',
|
|
9
|
+
name: 'hasDelay',
|
|
10
|
+
type: 'boolean',
|
|
11
|
+
default: false,
|
|
12
|
+
description: 'Whether to add a delay before capturing the clip. If true, a delay is added before the clip is captured.',
|
|
13
|
+
},
|
|
14
|
+
];
|
|
15
|
+
const getClipsFields = [
|
|
16
|
+
{
|
|
17
|
+
displayName: 'Filter Type',
|
|
18
|
+
name: 'filterType',
|
|
19
|
+
type: 'options',
|
|
20
|
+
options: [
|
|
21
|
+
{
|
|
22
|
+
name: 'Broadcaster ID',
|
|
23
|
+
value: 'broadcasterId',
|
|
24
|
+
description: 'Get clips for a specific broadcaster',
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
name: 'Game ID',
|
|
28
|
+
value: 'gameId',
|
|
29
|
+
description: 'Get clips for a specific game',
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
name: 'Clip ID',
|
|
33
|
+
value: 'clipId',
|
|
34
|
+
description: 'Get a specific clip by ID',
|
|
35
|
+
},
|
|
36
|
+
],
|
|
37
|
+
default: 'broadcasterId',
|
|
38
|
+
required: true,
|
|
39
|
+
description: 'The type of filter to use when retrieving clips',
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
displayName: 'Game ID',
|
|
43
|
+
name: 'gameId',
|
|
44
|
+
type: 'string',
|
|
45
|
+
displayOptions: {
|
|
46
|
+
show: {
|
|
47
|
+
filterType: ['gameId'],
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
default: '',
|
|
51
|
+
required: true,
|
|
52
|
+
placeholder: 'e.g. 987654321',
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
displayName: 'Clip ID',
|
|
56
|
+
name: 'clipId',
|
|
57
|
+
type: 'string',
|
|
58
|
+
displayOptions: {
|
|
59
|
+
show: {
|
|
60
|
+
filterType: ['clipId'],
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
default: '',
|
|
64
|
+
required: true,
|
|
65
|
+
placeholder: 'e.g. AwkwardHelplessSalamanderSwiftRage',
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
displayName: 'Started At',
|
|
69
|
+
name: 'startedAt',
|
|
70
|
+
type: 'string',
|
|
71
|
+
displayOptions: {
|
|
72
|
+
show: {
|
|
73
|
+
filterType: ['broadcasterId', 'gameId'],
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
default: '',
|
|
77
|
+
placeholder: 'e.g. 2021-01-01T00:00:00Z',
|
|
78
|
+
description: 'The start date/time for clips (RFC3339 format)',
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
displayName: 'Ended At',
|
|
82
|
+
name: 'endedAt',
|
|
83
|
+
type: 'string',
|
|
84
|
+
displayOptions: {
|
|
85
|
+
show: {
|
|
86
|
+
filterType: ['broadcasterId', 'gameId'],
|
|
87
|
+
},
|
|
88
|
+
},
|
|
89
|
+
default: '',
|
|
90
|
+
placeholder: 'e.g. 2021-12-31T23:59:59Z',
|
|
91
|
+
description: 'The end date/time for clips (RFC3339 format)',
|
|
92
|
+
},
|
|
93
|
+
];
|
|
5
94
|
exports.clipOperations = [
|
|
6
95
|
{
|
|
7
96
|
displayName: 'Operation',
|
|
@@ -116,158 +205,7 @@ exports.clipOperations = [
|
|
|
116
205
|
},
|
|
117
206
|
];
|
|
118
207
|
exports.clipFields = [
|
|
119
|
-
{
|
|
120
|
-
|
|
121
|
-
name: 'broadcasterId',
|
|
122
|
-
type: 'string',
|
|
123
|
-
displayOptions: {
|
|
124
|
-
show: {
|
|
125
|
-
resource: ['clip'],
|
|
126
|
-
operation: ['createClip'],
|
|
127
|
-
},
|
|
128
|
-
},
|
|
129
|
-
default: '',
|
|
130
|
-
required: true,
|
|
131
|
-
placeholder: 'e.g. 123456789 or username',
|
|
132
|
-
description: 'The broadcaster user ID or username whose stream will be clipped. If a username is provided, it will be automatically converted to user ID.',
|
|
133
|
-
},
|
|
134
|
-
{
|
|
135
|
-
displayName: 'Has Delay',
|
|
136
|
-
name: 'hasDelay',
|
|
137
|
-
type: 'boolean',
|
|
138
|
-
displayOptions: {
|
|
139
|
-
show: {
|
|
140
|
-
resource: ['clip'],
|
|
141
|
-
operation: ['createClip'],
|
|
142
|
-
},
|
|
143
|
-
},
|
|
144
|
-
default: false,
|
|
145
|
-
description: 'Whether to add a delay before capturing the clip. If true, a delay is added before the clip is captured.',
|
|
146
|
-
},
|
|
147
|
-
{
|
|
148
|
-
displayName: 'Filter Type',
|
|
149
|
-
name: 'filterType',
|
|
150
|
-
type: 'options',
|
|
151
|
-
displayOptions: {
|
|
152
|
-
show: {
|
|
153
|
-
resource: ['clip'],
|
|
154
|
-
operation: ['getClips'],
|
|
155
|
-
},
|
|
156
|
-
},
|
|
157
|
-
options: [
|
|
158
|
-
{
|
|
159
|
-
name: 'Broadcaster ID',
|
|
160
|
-
value: 'broadcasterId',
|
|
161
|
-
description: 'Get clips for a specific broadcaster',
|
|
162
|
-
},
|
|
163
|
-
{
|
|
164
|
-
name: 'Game ID',
|
|
165
|
-
value: 'gameId',
|
|
166
|
-
description: 'Get clips for a specific game',
|
|
167
|
-
},
|
|
168
|
-
{
|
|
169
|
-
name: 'Clip ID',
|
|
170
|
-
value: 'clipId',
|
|
171
|
-
description: 'Get a specific clip by ID',
|
|
172
|
-
},
|
|
173
|
-
],
|
|
174
|
-
default: 'broadcasterId',
|
|
175
|
-
required: true,
|
|
176
|
-
description: 'The type of filter to use when retrieving clips',
|
|
177
|
-
},
|
|
178
|
-
{
|
|
179
|
-
displayName: 'Broadcaster ID or Username',
|
|
180
|
-
name: 'broadcasterId',
|
|
181
|
-
type: 'string',
|
|
182
|
-
displayOptions: {
|
|
183
|
-
show: {
|
|
184
|
-
resource: ['clip'],
|
|
185
|
-
operation: ['getClips'],
|
|
186
|
-
filterType: ['broadcasterId'],
|
|
187
|
-
},
|
|
188
|
-
},
|
|
189
|
-
default: '',
|
|
190
|
-
required: true,
|
|
191
|
-
placeholder: 'e.g. 123456789 or username',
|
|
192
|
-
description: 'The broadcaster user ID or username. If a username is provided, it will be automatically converted to user ID.',
|
|
193
|
-
},
|
|
194
|
-
{
|
|
195
|
-
displayName: 'Game ID',
|
|
196
|
-
name: 'gameId',
|
|
197
|
-
type: 'string',
|
|
198
|
-
displayOptions: {
|
|
199
|
-
show: {
|
|
200
|
-
resource: ['clip'],
|
|
201
|
-
operation: ['getClips'],
|
|
202
|
-
filterType: ['gameId'],
|
|
203
|
-
},
|
|
204
|
-
},
|
|
205
|
-
default: '',
|
|
206
|
-
required: true,
|
|
207
|
-
placeholder: 'e.g. 987654321',
|
|
208
|
-
},
|
|
209
|
-
{
|
|
210
|
-
displayName: 'Clip ID',
|
|
211
|
-
name: 'clipId',
|
|
212
|
-
type: 'string',
|
|
213
|
-
displayOptions: {
|
|
214
|
-
show: {
|
|
215
|
-
resource: ['clip'],
|
|
216
|
-
operation: ['getClips'],
|
|
217
|
-
filterType: ['clipId'],
|
|
218
|
-
},
|
|
219
|
-
},
|
|
220
|
-
default: '',
|
|
221
|
-
required: true,
|
|
222
|
-
placeholder: 'e.g. AwkwardHelplessSalamanderSwiftRage',
|
|
223
|
-
},
|
|
224
|
-
{
|
|
225
|
-
displayName: 'Started At',
|
|
226
|
-
name: 'startedAt',
|
|
227
|
-
type: 'string',
|
|
228
|
-
displayOptions: {
|
|
229
|
-
show: {
|
|
230
|
-
resource: ['clip'],
|
|
231
|
-
operation: ['getClips'],
|
|
232
|
-
filterType: ['broadcasterId', 'gameId'],
|
|
233
|
-
},
|
|
234
|
-
},
|
|
235
|
-
default: '',
|
|
236
|
-
placeholder: 'e.g. 2021-01-01T00:00:00Z',
|
|
237
|
-
description: 'The start date/time for clips (RFC3339 format)',
|
|
238
|
-
},
|
|
239
|
-
{
|
|
240
|
-
displayName: 'Ended At',
|
|
241
|
-
name: 'endedAt',
|
|
242
|
-
type: 'string',
|
|
243
|
-
displayOptions: {
|
|
244
|
-
show: {
|
|
245
|
-
resource: ['clip'],
|
|
246
|
-
operation: ['getClips'],
|
|
247
|
-
filterType: ['broadcasterId', 'gameId'],
|
|
248
|
-
},
|
|
249
|
-
},
|
|
250
|
-
default: '',
|
|
251
|
-
placeholder: 'e.g. 2021-12-31T23:59:59Z',
|
|
252
|
-
description: 'The end date/time for clips (RFC3339 format)',
|
|
253
|
-
},
|
|
254
|
-
{
|
|
255
|
-
displayName: 'First',
|
|
256
|
-
name: 'first',
|
|
257
|
-
type: 'number',
|
|
258
|
-
displayOptions: {
|
|
259
|
-
show: {
|
|
260
|
-
resource: ['clip'],
|
|
261
|
-
operation: ['getClips'],
|
|
262
|
-
filterType: ['broadcasterId', 'gameId'],
|
|
263
|
-
},
|
|
264
|
-
},
|
|
265
|
-
default: 20,
|
|
266
|
-
typeOptions: {
|
|
267
|
-
minValue: 1,
|
|
268
|
-
maxValue: 100,
|
|
269
|
-
},
|
|
270
|
-
description: 'Maximum number of clips to return (1-100)',
|
|
271
|
-
},
|
|
208
|
+
...(0, updateDisplayOptions_1.updateDisplayOptions)({ show: { resource: ['clip'], operation: ['createClip'] } }, createClipFields),
|
|
209
|
+
...(0, updateDisplayOptions_1.updateDisplayOptions)({ show: { resource: ['clip'], operation: ['getClips'] } }, getClipsFields),
|
|
272
210
|
];
|
|
273
211
|
//# sourceMappingURL=Clip.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Clip.js","sourceRoot":"","sources":["../../../../nodes/Twitch/resources/Clip.ts"],"names":[],"mappings":";;;AACA,+DAAoE;
|
|
1
|
+
{"version":3,"file":"Clip.js","sourceRoot":"","sources":["../../../../nodes/Twitch/resources/Clip.ts"],"names":[],"mappings":";;;AACA,+DAAoE;AACpE,yEAAsE;AAGtE,MAAM,gBAAgB,GAAsB;IAC3C;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,KAAK;QACd,WAAW,EAAE,0GAA0G;KACvH;CACD,CAAC;AAEF,MAAM,cAAc,GAAsB;IACzC;QACC,WAAW,EAAE,aAAa;QAC1B,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE,SAAS;QACf,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,gBAAgB;gBACtB,KAAK,EAAE,eAAe;gBACtB,WAAW,EAAE,sCAAsC;aACnD;YACD;gBACC,IAAI,EAAE,SAAS;gB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