n8n-nodes-base 0.161.0 → 0.162.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/dist/credentials/GristApi.credentials.js +20 -0
- package/dist/credentials/GristApi.credentials.js.map +1 -1
- package/dist/nodes/Google/Chat/GenericFunctions.d.ts +14 -0
- package/dist/nodes/Google/Chat/GenericFunctions.js +160 -0
- package/dist/nodes/Google/Chat/GenericFunctions.js.map +1 -0
- package/dist/nodes/Google/Chat/GoogleChat.node.d.ts +14 -0
- package/dist/nodes/Google/Chat/GoogleChat.node.js +358 -0
- package/dist/nodes/Google/Chat/GoogleChat.node.js.map +1 -0
- package/dist/nodes/Google/Chat/GoogleChat.node.json +27 -0
- package/dist/nodes/Google/Chat/MessageInterface.d.ts +36 -0
- package/dist/nodes/Google/Chat/MessageInterface.js +9 -0
- package/dist/nodes/Google/Chat/MessageInterface.js.map +1 -0
- package/dist/nodes/Google/Chat/descriptions/AttachmentDescription.d.ts +3 -0
- package/dist/nodes/Google/Chat/descriptions/AttachmentDescription.js +47 -0
- package/dist/nodes/Google/Chat/descriptions/AttachmentDescription.js.map +1 -0
- package/dist/nodes/Google/Chat/descriptions/IncomingWebhookDescription.d.ts +3 -0
- package/dist/nodes/Google/Chat/descriptions/IncomingWebhookDescription.js +180 -0
- package/dist/nodes/Google/Chat/descriptions/IncomingWebhookDescription.js.map +1 -0
- package/dist/nodes/Google/Chat/descriptions/MediaDescription.d.ts +3 -0
- package/dist/nodes/Google/Chat/descriptions/MediaDescription.js +65 -0
- package/dist/nodes/Google/Chat/descriptions/MediaDescription.js.map +1 -0
- package/dist/nodes/Google/Chat/descriptions/MemberDescription.d.ts +3 -0
- package/dist/nodes/Google/Chat/descriptions/MemberDescription.js +75 -0
- package/dist/nodes/Google/Chat/descriptions/MemberDescription.js.map +1 -0
- package/dist/nodes/Google/Chat/descriptions/MessageDescription.d.ts +3 -0
- package/dist/nodes/Google/Chat/descriptions/MessageDescription.js +323 -0
- package/dist/nodes/Google/Chat/descriptions/MessageDescription.js.map +1 -0
- package/dist/nodes/Google/Chat/descriptions/SpaceDescription.d.ts +3 -0
- package/dist/nodes/Google/Chat/descriptions/SpaceDescription.js +54 -0
- package/dist/nodes/Google/Chat/descriptions/SpaceDescription.js.map +1 -0
- package/dist/nodes/Google/Chat/descriptions/index.d.ts +6 -0
- package/dist/nodes/Google/Chat/descriptions/index.js +19 -0
- package/dist/nodes/Google/Chat/descriptions/index.js.map +1 -0
- package/dist/nodes/Google/Chat/googleChat.svg +1 -0
- package/dist/nodes/Grist/GenericFunctions.js +5 -3
- package/dist/nodes/Grist/GenericFunctions.js.map +1 -1
- package/dist/nodes/Grist/Grist.node.js +5 -3
- package/dist/nodes/Grist/Grist.node.js.map +1 -1
- package/dist/nodes/HaloPSA/HaloPSA.node.json +3 -5
- package/dist/nodes/Linear/LinearTrigger.node.json +20 -0
- package/dist/nodes/Telegram/GenericFunctions.js +1 -0
- package/dist/nodes/Telegram/GenericFunctions.js.map +1 -1
- package/dist/nodes/Telegram/TelegramTrigger.node.js +5 -1
- package/dist/nodes/Telegram/TelegramTrigger.node.js.map +1 -1
- package/dist/nodes/Wait/Wait.node.js +14 -0
- package/dist/nodes/Wait/Wait.node.js.map +1 -1
- package/dist/nodes/Webhook/Webhook.node.js +61 -15
- package/dist/nodes/Webhook/Webhook.node.js.map +1 -1
- package/package.json +4 -3
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { IDataObject } from 'n8n-workflow';
|
|
2
|
+
export interface IMessage {
|
|
3
|
+
name?: string;
|
|
4
|
+
sender?: IUser;
|
|
5
|
+
createTime?: string;
|
|
6
|
+
text?: string;
|
|
7
|
+
cards?: IDataObject[];
|
|
8
|
+
previewText?: string;
|
|
9
|
+
annotations?: IDataObject[];
|
|
10
|
+
thread?: IDataObject[];
|
|
11
|
+
space?: IDataObject;
|
|
12
|
+
fallbackText?: string;
|
|
13
|
+
actionResponse?: IDataObject;
|
|
14
|
+
argumentText?: string;
|
|
15
|
+
slashCommand?: IDataObject;
|
|
16
|
+
attachment?: IDataObject[];
|
|
17
|
+
}
|
|
18
|
+
export interface IMessageUi {
|
|
19
|
+
text?: string;
|
|
20
|
+
cards?: {
|
|
21
|
+
metadata: IDataObject[];
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
export interface IUser {
|
|
25
|
+
name?: string;
|
|
26
|
+
displayName?: string;
|
|
27
|
+
domainId?: string;
|
|
28
|
+
type?: Type;
|
|
29
|
+
isAnonymous?: boolean;
|
|
30
|
+
}
|
|
31
|
+
declare enum Type {
|
|
32
|
+
'TYPE_UNSPECIFIED' = 0,
|
|
33
|
+
'HUMAN' = 1,
|
|
34
|
+
'BOT' = 2
|
|
35
|
+
}
|
|
36
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var Type;
|
|
4
|
+
(function (Type) {
|
|
5
|
+
Type[Type["TYPE_UNSPECIFIED"] = 0] = "TYPE_UNSPECIFIED";
|
|
6
|
+
Type[Type["HUMAN"] = 1] = "HUMAN";
|
|
7
|
+
Type[Type["BOT"] = 2] = "BOT";
|
|
8
|
+
})(Type || (Type = {}));
|
|
9
|
+
//# sourceMappingURL=MessageInterface.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MessageInterface.js","sourceRoot":"","sources":["../../../../nodes/Google/Chat/MessageInterface.ts"],"names":[],"mappings":";;AAiCA,IAAK,IAIJ;AAJD,WAAK,IAAI;IACR,uDAAkB,CAAA;IAClB,iCAAO,CAAA;IACP,6BAAK,CAAA;AACN,CAAC,EAJI,IAAI,KAAJ,IAAI,QAIR"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.attachmentFields = exports.attachmentOperations = void 0;
|
|
4
|
+
exports.attachmentOperations = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Operation',
|
|
7
|
+
name: 'operation',
|
|
8
|
+
noDataExpression: true,
|
|
9
|
+
type: 'options',
|
|
10
|
+
displayOptions: {
|
|
11
|
+
show: {
|
|
12
|
+
resource: [
|
|
13
|
+
'attachment',
|
|
14
|
+
],
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
options: [
|
|
18
|
+
{
|
|
19
|
+
name: 'Get',
|
|
20
|
+
value: 'get',
|
|
21
|
+
description: 'Gets the metadata of a message attachment. The attachment data is fetched using the media API.',
|
|
22
|
+
},
|
|
23
|
+
],
|
|
24
|
+
default: 'get',
|
|
25
|
+
},
|
|
26
|
+
];
|
|
27
|
+
exports.attachmentFields = [
|
|
28
|
+
{
|
|
29
|
+
displayName: 'Attachment Name',
|
|
30
|
+
name: 'attachmentName',
|
|
31
|
+
type: 'string',
|
|
32
|
+
required: true,
|
|
33
|
+
displayOptions: {
|
|
34
|
+
show: {
|
|
35
|
+
resource: [
|
|
36
|
+
'attachment',
|
|
37
|
+
],
|
|
38
|
+
operation: [
|
|
39
|
+
'get',
|
|
40
|
+
],
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
default: '',
|
|
44
|
+
description: 'Resource name of the attachment, in the form "spaces/*/messages/*/attachments/*"',
|
|
45
|
+
},
|
|
46
|
+
];
|
|
47
|
+
//# sourceMappingURL=AttachmentDescription.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AttachmentDescription.js","sourceRoot":"","sources":["../../../../../nodes/Google/Chat/descriptions/AttachmentDescription.ts"],"names":[],"mappings":";;;AAIa,QAAA,oBAAoB,GAAsB;IACtD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,gBAAgB,EAAE,IAAI;QACtB,IAAI,EAAE,SAAS;QACf,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE;oBACT,YAAY;iBACZ;aACD;SACD;QACD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,KAAK;gBACX,KAAK,EAAE,KAAK;gBACZ,WAAW,EAAE,gGAAgG;aAC7G;SACD;QACD,OAAO,EAAE,KAAK;KACd;CACD,CAAC;AAEY,QAAA,gBAAgB,GAAsB;IAInD;QACC,WAAW,EAAE,iBAAiB;QAC9B,IAAI,EAAE,gBAAgB;QACtB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE;oBACT,YAAY;iBACZ;gBACD,SAAS,EAAE;oBACV,KAAK;iBACL;aACD;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,kFAAkF;KAC/F;CACD,CAAC"}
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.incomingWebhookFields = exports.incomingWebhookOperations = void 0;
|
|
4
|
+
exports.incomingWebhookOperations = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Operation',
|
|
7
|
+
name: 'operation',
|
|
8
|
+
noDataExpression: true,
|
|
9
|
+
type: 'options',
|
|
10
|
+
displayOptions: {
|
|
11
|
+
show: {
|
|
12
|
+
resource: [
|
|
13
|
+
'incomingWebhook',
|
|
14
|
+
],
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
options: [
|
|
18
|
+
{
|
|
19
|
+
name: 'Create',
|
|
20
|
+
value: 'create',
|
|
21
|
+
description: 'Creates a message through incoming webhook (no chat bot needed)',
|
|
22
|
+
},
|
|
23
|
+
],
|
|
24
|
+
default: 'create',
|
|
25
|
+
},
|
|
26
|
+
];
|
|
27
|
+
exports.incomingWebhookFields = [
|
|
28
|
+
{
|
|
29
|
+
displayName: 'See <a href="https://developers.google.com/chat/how-tos/webhooks" target="_blank">Google Chat Guide</a> To Webhooks',
|
|
30
|
+
name: 'jsonNotice',
|
|
31
|
+
type: 'notice',
|
|
32
|
+
displayOptions: {
|
|
33
|
+
show: {
|
|
34
|
+
resource: [
|
|
35
|
+
'incomingWebhook',
|
|
36
|
+
],
|
|
37
|
+
operation: [
|
|
38
|
+
'create',
|
|
39
|
+
],
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
default: '',
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
displayName: 'Incoming Webhook URL',
|
|
46
|
+
name: 'incomingWebhookUrl',
|
|
47
|
+
type: 'string',
|
|
48
|
+
required: true,
|
|
49
|
+
displayOptions: {
|
|
50
|
+
show: {
|
|
51
|
+
resource: [
|
|
52
|
+
'incomingWebhook',
|
|
53
|
+
],
|
|
54
|
+
operation: [
|
|
55
|
+
'create',
|
|
56
|
+
],
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
default: '',
|
|
60
|
+
description: 'URL for the incoming webhook',
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
displayName: 'JSON Parameters',
|
|
64
|
+
name: 'jsonParameters',
|
|
65
|
+
type: 'boolean',
|
|
66
|
+
displayOptions: {
|
|
67
|
+
show: {
|
|
68
|
+
resource: [
|
|
69
|
+
'incomingWebhook',
|
|
70
|
+
],
|
|
71
|
+
operation: [
|
|
72
|
+
'create',
|
|
73
|
+
],
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
default: false,
|
|
77
|
+
description: 'Whether to pass the message object as JSON',
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
displayName: 'Message',
|
|
81
|
+
name: 'messageUi',
|
|
82
|
+
type: 'collection',
|
|
83
|
+
required: true,
|
|
84
|
+
placeholder: 'Add Options',
|
|
85
|
+
displayOptions: {
|
|
86
|
+
show: {
|
|
87
|
+
resource: [
|
|
88
|
+
'incomingWebhook',
|
|
89
|
+
],
|
|
90
|
+
operation: [
|
|
91
|
+
'create',
|
|
92
|
+
],
|
|
93
|
+
jsonParameters: [
|
|
94
|
+
false,
|
|
95
|
+
],
|
|
96
|
+
},
|
|
97
|
+
},
|
|
98
|
+
default: { 'text': '' },
|
|
99
|
+
description: 'The message object',
|
|
100
|
+
options: [
|
|
101
|
+
{
|
|
102
|
+
displayName: 'Text',
|
|
103
|
+
name: 'text',
|
|
104
|
+
type: 'string',
|
|
105
|
+
default: '',
|
|
106
|
+
description: 'The message text',
|
|
107
|
+
},
|
|
108
|
+
],
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
displayName: 'See <a href="https://developers.google.com/chat/reference/rest/v1/spaces.messages#Message" target="_blank">Google Chat Guide</a> To Creating Messages',
|
|
112
|
+
name: 'jsonNotice',
|
|
113
|
+
type: 'notice',
|
|
114
|
+
displayOptions: {
|
|
115
|
+
show: {
|
|
116
|
+
resource: [
|
|
117
|
+
'incomingWebhook',
|
|
118
|
+
],
|
|
119
|
+
operation: [
|
|
120
|
+
'create',
|
|
121
|
+
],
|
|
122
|
+
jsonParameters: [
|
|
123
|
+
true,
|
|
124
|
+
],
|
|
125
|
+
},
|
|
126
|
+
},
|
|
127
|
+
default: '',
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
displayName: 'Message (JSON)',
|
|
131
|
+
name: 'messageJson',
|
|
132
|
+
type: 'json',
|
|
133
|
+
required: true,
|
|
134
|
+
typeOptions: {
|
|
135
|
+
alwaysOpenEditWindow: true,
|
|
136
|
+
},
|
|
137
|
+
displayOptions: {
|
|
138
|
+
show: {
|
|
139
|
+
resource: [
|
|
140
|
+
'incomingWebhook',
|
|
141
|
+
],
|
|
142
|
+
operation: [
|
|
143
|
+
'create',
|
|
144
|
+
],
|
|
145
|
+
jsonParameters: [
|
|
146
|
+
true,
|
|
147
|
+
],
|
|
148
|
+
},
|
|
149
|
+
},
|
|
150
|
+
default: '',
|
|
151
|
+
description: 'Message input as JSON Object or JSON String',
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
displayName: 'Additional Fields',
|
|
155
|
+
name: 'additionalFields',
|
|
156
|
+
type: 'collection',
|
|
157
|
+
placeholder: 'Add Field',
|
|
158
|
+
default: {},
|
|
159
|
+
displayOptions: {
|
|
160
|
+
show: {
|
|
161
|
+
resource: [
|
|
162
|
+
'incomingWebhook',
|
|
163
|
+
],
|
|
164
|
+
operation: [
|
|
165
|
+
'create',
|
|
166
|
+
],
|
|
167
|
+
},
|
|
168
|
+
},
|
|
169
|
+
options: [
|
|
170
|
+
{
|
|
171
|
+
displayName: 'Thread Key',
|
|
172
|
+
name: 'threadKey',
|
|
173
|
+
type: 'string',
|
|
174
|
+
default: '',
|
|
175
|
+
description: 'Thread identifier which groups messages into a single thread. Has no effect if thread field, corresponding to an existing thread, is set in message. Example: spaces/AAAAMpdlehY/threads/MZ8fXhZXGkk.',
|
|
176
|
+
},
|
|
177
|
+
],
|
|
178
|
+
},
|
|
179
|
+
];
|
|
180
|
+
//# sourceMappingURL=IncomingWebhookDescription.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IncomingWebhookDescription.js","sourceRoot":"","sources":["../../../../../nodes/Google/Chat/descriptions/IncomingWebhookDescription.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.mediaFields = exports.mediaOperations = void 0;
|
|
4
|
+
exports.mediaOperations = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Operation',
|
|
7
|
+
name: 'operation',
|
|
8
|
+
noDataExpression: true,
|
|
9
|
+
type: 'options',
|
|
10
|
+
displayOptions: {
|
|
11
|
+
show: {
|
|
12
|
+
resource: [
|
|
13
|
+
'media',
|
|
14
|
+
],
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
options: [
|
|
18
|
+
{
|
|
19
|
+
name: 'Download',
|
|
20
|
+
value: 'download',
|
|
21
|
+
description: 'Download media',
|
|
22
|
+
},
|
|
23
|
+
],
|
|
24
|
+
default: 'download',
|
|
25
|
+
},
|
|
26
|
+
];
|
|
27
|
+
exports.mediaFields = [
|
|
28
|
+
{
|
|
29
|
+
displayName: 'Resource Name',
|
|
30
|
+
name: 'resourceName',
|
|
31
|
+
type: 'string',
|
|
32
|
+
required: true,
|
|
33
|
+
displayOptions: {
|
|
34
|
+
show: {
|
|
35
|
+
resource: [
|
|
36
|
+
'media',
|
|
37
|
+
],
|
|
38
|
+
operation: [
|
|
39
|
+
'download',
|
|
40
|
+
],
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
default: '',
|
|
44
|
+
description: 'Name of the media that is being downloaded',
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
displayName: 'Binary Property',
|
|
48
|
+
name: 'binaryPropertyName',
|
|
49
|
+
type: 'string',
|
|
50
|
+
default: 'data',
|
|
51
|
+
required: true,
|
|
52
|
+
displayOptions: {
|
|
53
|
+
show: {
|
|
54
|
+
resource: [
|
|
55
|
+
'media',
|
|
56
|
+
],
|
|
57
|
+
operation: [
|
|
58
|
+
'download',
|
|
59
|
+
],
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
description: 'Name of the binary property to which to write the data of the read file',
|
|
63
|
+
},
|
|
64
|
+
];
|
|
65
|
+
//# sourceMappingURL=MediaDescription.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MediaDescription.js","sourceRoot":"","sources":["../../../../../nodes/Google/Chat/descriptions/MediaDescription.ts"],"names":[],"mappings":";;;AAIa,QAAA,eAAe,GAAsB;IACjD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,gBAAgB,EAAE,IAAI;QACtB,IAAI,EAAE,SAAS;QACf,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE;oBACT,OAAO;iBACP;aACD;SACD;QACD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,UAAU;gBACjB,WAAW,EAAE,gBAAgB;aAC7B;SACD;QACD,OAAO,EAAE,UAAU;KACnB;CACD,CAAC;AAEY,QAAA,WAAW,GAAsB;IAI9C;QACC,WAAW,EAAE,eAAe;QAC5B,IAAI,EAAE,cAAc;QACpB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE;oBACT,OAAO;iBACP;gBACD,SAAS,EAAE;oBACV,UAAU;iBACV;aACD;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,4CAA4C;KACzD;IACD;QACC,WAAW,EAAE,iBAAiB;QAC9B,IAAI,EAAE,oBAAoB;QAC1B,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE;oBACT,OAAO;iBACP;gBACD,SAAS,EAAE;oBACV,UAAU;iBACV;aACD;SACD;QACD,WAAW,EAAE,yEAAyE;KACtF;CACD,CAAC"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.memberFields = exports.memberOperations = void 0;
|
|
4
|
+
const GenericFunctions_1 = require("../GenericFunctions");
|
|
5
|
+
exports.memberOperations = [
|
|
6
|
+
{
|
|
7
|
+
displayName: 'Operation',
|
|
8
|
+
name: 'operation',
|
|
9
|
+
noDataExpression: true,
|
|
10
|
+
type: 'options',
|
|
11
|
+
displayOptions: {
|
|
12
|
+
show: {
|
|
13
|
+
resource: [
|
|
14
|
+
'member',
|
|
15
|
+
],
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
options: [
|
|
19
|
+
{
|
|
20
|
+
name: 'Get',
|
|
21
|
+
value: 'get',
|
|
22
|
+
description: 'Get a membership',
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
name: 'Get All',
|
|
26
|
+
value: 'getAll',
|
|
27
|
+
description: 'Get all memberships in a space',
|
|
28
|
+
},
|
|
29
|
+
],
|
|
30
|
+
default: 'get',
|
|
31
|
+
},
|
|
32
|
+
];
|
|
33
|
+
exports.memberFields = [
|
|
34
|
+
{
|
|
35
|
+
displayName: 'Member ID',
|
|
36
|
+
name: 'memberId',
|
|
37
|
+
type: 'string',
|
|
38
|
+
required: true,
|
|
39
|
+
displayOptions: {
|
|
40
|
+
show: {
|
|
41
|
+
resource: [
|
|
42
|
+
'member',
|
|
43
|
+
],
|
|
44
|
+
operation: [
|
|
45
|
+
'get',
|
|
46
|
+
],
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
default: '',
|
|
50
|
+
description: 'Member to be retrieved in the form "spaces/*/members/*"',
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
displayName: 'Space Name/ID',
|
|
54
|
+
name: 'spaceId',
|
|
55
|
+
type: 'options',
|
|
56
|
+
required: true,
|
|
57
|
+
typeOptions: {
|
|
58
|
+
loadOptionsMethod: 'getSpaces',
|
|
59
|
+
},
|
|
60
|
+
displayOptions: {
|
|
61
|
+
show: {
|
|
62
|
+
resource: [
|
|
63
|
+
'member',
|
|
64
|
+
],
|
|
65
|
+
operation: [
|
|
66
|
+
'getAll',
|
|
67
|
+
],
|
|
68
|
+
},
|
|
69
|
+
},
|
|
70
|
+
default: [],
|
|
71
|
+
description: 'The name of the space for which to retrieve members, in the form "spaces/*"',
|
|
72
|
+
},
|
|
73
|
+
...GenericFunctions_1.getPagingParameters('member'),
|
|
74
|
+
];
|
|
75
|
+
//# sourceMappingURL=MemberDescription.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MemberDescription.js","sourceRoot":"","sources":["../../../../../nodes/Google/Chat/descriptions/MemberDescription.ts"],"names":[],"mappings":";;;AAIA,0DAE6B;AAEhB,QAAA,gBAAgB,GAAsB;IAClD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,gBAAgB,EAAE,IAAI;QACtB,IAAI,EAAE,SAAS;QACf,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE;oBACT,QAAQ;iBACR;aACD;SACD;QACD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,KAAK;gBACX,KAAK,EAAE,KAAK;gBACZ,WAAW,EAAE,kBAAkB;aAC/B;YACD;gBACC,IAAI,EAAE,SAAS;gBACf,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,gCAAgC;aAC7C;SACD;QACD,OAAO,EAAE,KAAK;KACd;CACD,CAAC;AAGW,QAAA,YAAY,GAAsB;IAI9C;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE;oBACT,QAAQ;iBACR;gBACD,SAAS,EAAE;oBACV,KAAK;iBACL;aACD;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,yDAAyD;KACtE;IAKD;QACC,WAAW,EAAE,eAAe;QAC5B,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE;YACZ,iBAAiB,EAAE,WAAW;SAC9B;QACD,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE;oBACT,QAAQ;iBACR;gBACD,SAAS,EAAE;oBACV,QAAQ;iBACR;aACD;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,6EAA6E;KAC1F;IAED,GAAG,sCAAmB,CAAC,QAAQ,CAAC;CAChC,CAAC"}
|