n8n-nodes-base 1.87.0 → 1.89.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/Aws.credentials.js +16 -2
- package/dist/credentials/Aws.credentials.js.map +1 -1
- package/dist/credentials/SalesforceJwtApi.credentials.js +60 -0
- package/dist/credentials/SalesforceJwtApi.credentials.js.map +1 -1
- package/dist/nodes/Airtable/v2/actions/record/update.operation.js +15 -3
- package/dist/nodes/Airtable/v2/actions/record/update.operation.js.map +1 -1
- package/dist/nodes/Brevo/__schema__/v1.0.0/contact/getAll.json +1 -9
- package/dist/nodes/Dropbox/__schema__/v1.0.0/file/download.json +2 -5
- package/dist/nodes/Form/utils.js +2 -7
- package/dist/nodes/Form/utils.js.map +1 -1
- package/dist/nodes/Freshdesk/Freshdesk.node.js +3 -6
- package/dist/nodes/Freshdesk/Freshdesk.node.js.map +1 -1
- package/dist/nodes/Google/Analytics/__schema__/v2.0.0/report/get.json +2 -2
- package/dist/nodes/Google/Calendar/__schema__/v1.3.0/event/getAll.json +7 -1
- package/dist/nodes/Google/Firebase/CloudFirestore/__schema__/v1.1.0/document/get.json +1 -13
- package/dist/nodes/Google/Gmail/__schema__/v2.1.0/message/get.json +1 -7
- package/dist/nodes/Google/Gmail/__schema__/v2.1.0/message/getAll.json +1 -7
- package/dist/nodes/Google/Gmail/__schema__/v2.1.0/thread/get.json +4 -4
- package/dist/nodes/Google/YouTube/__schema__/v1.0.0/video/get.json +1 -35
- package/dist/nodes/Google/YouTube/__schema__/v1.0.0/video/rate.json +9 -0
- package/dist/nodes/HaloPSA/__schema__/v1.0.0/client/getAll.json +147 -1
- package/dist/nodes/HttpRequest/V3/Description.js +8 -0
- package/dist/nodes/HttpRequest/V3/Description.js.map +1 -1
- package/dist/nodes/HttpRequest/V3/HttpRequestV3.node.js +23 -5
- package/dist/nodes/HttpRequest/V3/HttpRequestV3.node.js.map +1 -1
- package/dist/nodes/HttpRequest/shared/optimizeResponse.js +387 -0
- package/dist/nodes/HttpRequest/shared/optimizeResponse.js.map +1 -0
- package/dist/nodes/Hubspot/V2/HubspotV2.node.js +10 -2
- package/dist/nodes/Hubspot/V2/HubspotV2.node.js.map +1 -1
- package/dist/nodes/Hubspot/__schema__/v2.1.0/company/getAll.json +1 -4
- package/dist/nodes/Hubspot/__schema__/v2.1.0/contact/search.json +4 -1
- package/dist/nodes/Hubspot/__schema__/v2.1.0/deal/getAll.json +1 -52
- package/dist/nodes/Hubspot/__schema__/v2.1.0/deal/search.json +5 -2
- package/dist/nodes/Hubspot/__schema__/v2.1.0/ticket/get.json +1 -258
- package/dist/nodes/ItemLists/__schema__/v3.0.0/itemList/limit.json +9 -0
- package/dist/nodes/Jira/__schema__/v1.0.0/issue/get.json +84 -1
- package/dist/nodes/Jira/__schema__/v1.0.0/issue/getAll.json +4 -565
- package/dist/nodes/Lemlist/__schema__/v2.0.0/campaign/getAll.json +1 -10
- package/dist/nodes/Linear/__schema__/v1.0.0/issue/create.json +12 -1
- package/dist/nodes/LinkedIn/GenericFunctions.js +1 -1
- package/dist/nodes/LinkedIn/GenericFunctions.js.map +1 -1
- package/dist/nodes/Microsoft/OneDrive/__schema__/v1.0.0/file/download.json +92 -1
- package/dist/nodes/Microsoft/Outlook/__schema__/v2.0.0/folderMessage/getAll.json +3 -81
- package/dist/nodes/Microsoft/Outlook/__schema__/v2.0.0/message/get.json +28 -1
- package/dist/nodes/Microsoft/Outlook/__schema__/v2.0.0/message/getAll.json +82 -1
- package/dist/nodes/Nasa/__schema__/v1.0.0/donkiSolarFlare/get.json +4 -1
- package/dist/nodes/Notion/__schema__/v2.2.0/databasePage/create.json +1 -4
- package/dist/nodes/Notion/__schema__/v2.2.0/databasePage/getAll.json +1 -4
- package/dist/nodes/Odoo/__schema__/v1.0.0/custom/get.json +1 -4
- package/dist/nodes/Odoo/__schema__/v1.0.0/custom/getAll.json +4 -1
- package/dist/nodes/Odoo/__schema__/v1.0.0/opportunity/getAll.json +1 -4
- package/dist/nodes/Phantombuster/__schema__/v1.0.0/agent/getOutput.json +1 -10
- package/dist/nodes/Pipedrive/__schema__/v1.0.0/person/search.json +12 -1
- package/dist/nodes/Postgres/v2/helpers/utils.js +3 -1
- package/dist/nodes/Postgres/v2/helpers/utils.js.map +1 -1
- package/dist/nodes/RespondToWebhook/RespondToWebhook.node.js +57 -48
- package/dist/nodes/RespondToWebhook/RespondToWebhook.node.js.map +1 -1
- package/dist/nodes/Salesforce/__schema__/v1.0.0/customObject/getAll.json +2 -2
- package/dist/nodes/Salesforce/__schema__/v1.0.0/opportunity/getAll.json +4 -1
- package/dist/nodes/Salesforce/__schema__/v1.0.0/search/query.json +1 -4
- package/dist/nodes/ServiceNow/__schema__/v1.0.0/tableRecord/getAll.json +1 -4
- package/dist/nodes/Slack/__schema__/v2.3.0/channel/history.json +4 -44
- package/dist/nodes/Ssh/__schema__/v1.0.0/command/execute.json +1 -4
- package/dist/nodes/Supabase/GenericFunctions.js +13 -4
- package/dist/nodes/Supabase/GenericFunctions.js.map +1 -1
- package/dist/nodes/Supabase/RowDescription.js +1 -0
- package/dist/nodes/Supabase/RowDescription.js.map +1 -1
- package/dist/nodes/Supabase/Supabase.node.js +17 -0
- package/dist/nodes/Supabase/Supabase.node.js.map +1 -1
- package/dist/nodes/Supabase/__schema__/v1.0.0/row/delete.json +7 -1
- package/dist/nodes/Telegram/TelegramTrigger.node.js +4 -60
- package/dist/nodes/Telegram/TelegramTrigger.node.js.map +1 -1
- package/dist/nodes/Telegram/__schema__/v1.2.0/chat/get.json +1 -10
- package/dist/nodes/Telegram/__schema__/v1.2.0/chat/member.json +1 -4
- package/dist/nodes/Telegram/util/triggerUtils.js +88 -0
- package/dist/nodes/Telegram/util/triggerUtils.js.map +1 -0
- package/dist/nodes/Transform/Summarize/utils.js +1 -1
- package/dist/nodes/Transform/Summarize/utils.js.map +1 -1
- package/dist/nodes/Trello/__schema__/v1.0.0/list/getAll.json +1 -4
- package/dist/nodes/Trello/__schema__/v1.0.0/list/getCards.json +4 -7
- package/dist/nodes/Twitter/__schema__/v2.0.0/tweet/search.json +1 -4
- package/dist/nodes/Wait/Wait.node.js +5 -6
- package/dist/nodes/Wait/Wait.node.js.map +1 -1
- package/dist/nodes/Wordpress/__schema__/v1.0.0/post/getAll.json +9 -1
- package/dist/nodes/Zoho/__schema__/v1.0.0/contact/getAll.json +1 -15
- package/dist/test/nodes/FakeCredentialsMap.js +30 -0
- package/dist/test/nodes/FakeCredentialsMap.js.map +1 -1
- package/dist/test/nodes/Helpers.js +5 -3
- package/dist/test/nodes/Helpers.js.map +1 -1
- package/dist/test/nodes/TriggerHelpers.js +5 -2
- package/dist/test/nodes/TriggerHelpers.js.map +1 -1
- package/dist/types/credentials.json +1 -1
- package/dist/types/nodes.json +5 -5
- package/package.json +11 -9
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../nodes/LinkedIn/GenericFunctions.ts"],"sourcesContent":["import type {\n\tIDataObject,\n\tIExecuteFunctions,\n\tIHookFunctions,\n\tILoadOptionsFunctions,\n\tJsonObject,\n\tIRequestOptions,\n\tIHttpRequestMethods,\n} from 'n8n-workflow';\nimport { NodeApiError } from 'n8n-workflow';\nfunction resolveHeaderData(fullResponse: any) {\n\tif (fullResponse.statusCode === 201) {\n\t\treturn { urn: fullResponse.headers['x-restli-id'] };\n\t} else {\n\t\treturn fullResponse.body;\n\t}\n}\n\nexport async function linkedInApiRequest(\n\tthis: IHookFunctions | IExecuteFunctions | ILoadOptionsFunctions,\n\tmethod: IHttpRequestMethods,\n\tendpoint: string,\n\n\tbody: any = {},\n\tbinary?: boolean,\n\t_headers?: object,\n): Promise<any> {\n\tconst authenticationMethod = this.getNodeParameter('authentication', 0);\n\tconst credentialType =\n\t\tauthenticationMethod === 'standard'\n\t\t\t? 'linkedInOAuth2Api'\n\t\t\t: 'linkedInCommunityManagementOAuth2Api';\n\n\tconst baseUrl = 'https://api.linkedin.com';\n\n\tlet options: IRequestOptions = {\n\t\theaders: {\n\t\t\tAccept: 'application/json',\n\t\t\t'X-Restli-Protocol-Version': '2.0.0',\n\t\t\t'LinkedIn-Version': '
|
|
1
|
+
{"version":3,"sources":["../../../nodes/LinkedIn/GenericFunctions.ts"],"sourcesContent":["import type {\n\tIDataObject,\n\tIExecuteFunctions,\n\tIHookFunctions,\n\tILoadOptionsFunctions,\n\tJsonObject,\n\tIRequestOptions,\n\tIHttpRequestMethods,\n} from 'n8n-workflow';\nimport { NodeApiError } from 'n8n-workflow';\nfunction resolveHeaderData(fullResponse: any) {\n\tif (fullResponse.statusCode === 201) {\n\t\treturn { urn: fullResponse.headers['x-restli-id'] };\n\t} else {\n\t\treturn fullResponse.body;\n\t}\n}\n\nexport async function linkedInApiRequest(\n\tthis: IHookFunctions | IExecuteFunctions | ILoadOptionsFunctions,\n\tmethod: IHttpRequestMethods,\n\tendpoint: string,\n\n\tbody: any = {},\n\tbinary?: boolean,\n\t_headers?: object,\n): Promise<any> {\n\tconst authenticationMethod = this.getNodeParameter('authentication', 0);\n\tconst credentialType =\n\t\tauthenticationMethod === 'standard'\n\t\t\t? 'linkedInOAuth2Api'\n\t\t\t: 'linkedInCommunityManagementOAuth2Api';\n\n\tconst baseUrl = 'https://api.linkedin.com';\n\n\tlet options: IRequestOptions = {\n\t\theaders: {\n\t\t\tAccept: 'application/json',\n\t\t\t'X-Restli-Protocol-Version': '2.0.0',\n\t\t\t'LinkedIn-Version': '202504',\n\t\t},\n\t\tmethod,\n\t\tbody,\n\t\turl: binary ? endpoint : `${baseUrl}${endpoint.includes('v2') ? '' : '/rest'}${endpoint}`,\n\t\tjson: true,\n\t};\n\n\toptions = Object.assign({}, options, {\n\t\tresolveWithFullResponse: true,\n\t});\n\t// If uploading binary data\n\tif (binary) {\n\t\tdelete options.json;\n\t\toptions.encoding = null;\n\t\tif (Object.keys(_headers as object).length > 0) {\n\t\t\tObject.assign(options.headers as object, _headers);\n\t\t}\n\t}\n\n\tif (Object.keys(body as IDataObject).length === 0) {\n\t\tdelete options.body;\n\t}\n\n\ttry {\n\t\treturn resolveHeaderData(\n\t\t\tawait this.helpers.requestOAuth2.call(this, credentialType, options, {\n\t\t\t\ttokenType: 'Bearer',\n\t\t\t}),\n\t\t);\n\t} catch (error) {\n\t\tthrow new NodeApiError(this.getNode(), error as JsonObject);\n\t}\n}\n\nexport function validateJSON(json: string | undefined): any {\n\tlet result;\n\ttry {\n\t\tresult = JSON.parse(json!);\n\t} catch (exception) {\n\t\tresult = '';\n\t}\n\treturn result;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASA,0BAA6B;AAC7B,SAAS,kBAAkB,cAAmB;AAC7C,MAAI,aAAa,eAAe,KAAK;AACpC,WAAO,EAAE,KAAK,aAAa,QAAQ,aAAa,EAAE;AAAA,EACnD,OAAO;AACN,WAAO,aAAa;AAAA,EACrB;AACD;AAEA,eAAsB,mBAErB,QACA,UAEA,OAAY,CAAC,GACb,QACA,UACe;AACf,QAAM,uBAAuB,KAAK,iBAAiB,kBAAkB,CAAC;AACtE,QAAM,iBACL,yBAAyB,aACtB,sBACA;AAEJ,QAAM,UAAU;AAEhB,MAAI,UAA2B;AAAA,IAC9B,SAAS;AAAA,MACR,QAAQ;AAAA,MACR,6BAA6B;AAAA,MAC7B,oBAAoB;AAAA,IACrB;AAAA,IACA;AAAA,IACA;AAAA,IACA,KAAK,SAAS,WAAW,GAAG,OAAO,GAAG,SAAS,SAAS,IAAI,IAAI,KAAK,OAAO,GAAG,QAAQ;AAAA,IACvF,MAAM;AAAA,EACP;AAEA,YAAU,OAAO,OAAO,CAAC,GAAG,SAAS;AAAA,IACpC,yBAAyB;AAAA,EAC1B,CAAC;AAED,MAAI,QAAQ;AACX,WAAO,QAAQ;AACf,YAAQ,WAAW;AACnB,QAAI,OAAO,KAAK,QAAkB,EAAE,SAAS,GAAG;AAC/C,aAAO,OAAO,QAAQ,SAAmB,QAAQ;AAAA,IAClD;AAAA,EACD;AAEA,MAAI,OAAO,KAAK,IAAmB,EAAE,WAAW,GAAG;AAClD,WAAO,QAAQ;AAAA,EAChB;AAEA,MAAI;AACH,WAAO;AAAA,MACN,MAAM,KAAK,QAAQ,cAAc,KAAK,MAAM,gBAAgB,SAAS;AAAA,QACpE,WAAW;AAAA,MACZ,CAAC;AAAA,IACF;AAAA,EACD,SAAS,OAAO;AACf,UAAM,IAAI,iCAAa,KAAK,QAAQ,GAAG,KAAmB;AAAA,EAC3D;AACD;AAEO,SAAS,aAAa,MAA+B;AAC3D,MAAI;AACJ,MAAI;AACH,aAAS,KAAK,MAAM,IAAK;AAAA,EAC1B,SAAS,WAAW;AACnB,aAAS;AAAA,EACV;AACA,SAAO;AACR;","names":[]}
|
|
@@ -1,15 +1,106 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "object",
|
|
3
3
|
"properties": {
|
|
4
|
+
"createdBy": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"user": {
|
|
8
|
+
"type": "object",
|
|
9
|
+
"properties": {
|
|
10
|
+
"displayName": {
|
|
11
|
+
"type": "string"
|
|
12
|
+
},
|
|
13
|
+
"email": {
|
|
14
|
+
"type": "string"
|
|
15
|
+
},
|
|
16
|
+
"id": {
|
|
17
|
+
"type": "string"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
},
|
|
4
23
|
"createdDateTime": {
|
|
5
24
|
"type": "string"
|
|
6
25
|
},
|
|
26
|
+
"file": {
|
|
27
|
+
"type": "object",
|
|
28
|
+
"properties": {
|
|
29
|
+
"hashes": {
|
|
30
|
+
"type": "object",
|
|
31
|
+
"properties": {
|
|
32
|
+
"quickXorHash": {
|
|
33
|
+
"type": "string"
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"mimeType": {
|
|
38
|
+
"type": "string"
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"fileSystemInfo": {
|
|
43
|
+
"type": "object",
|
|
44
|
+
"properties": {
|
|
45
|
+
"createdDateTime": {
|
|
46
|
+
"type": "string"
|
|
47
|
+
},
|
|
48
|
+
"lastModifiedDateTime": {
|
|
49
|
+
"type": "string"
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"id": {
|
|
54
|
+
"type": "string"
|
|
55
|
+
},
|
|
56
|
+
"lastModifiedBy": {
|
|
57
|
+
"type": "object",
|
|
58
|
+
"properties": {
|
|
59
|
+
"user": {
|
|
60
|
+
"type": "object",
|
|
61
|
+
"properties": {
|
|
62
|
+
"displayName": {
|
|
63
|
+
"type": "string"
|
|
64
|
+
},
|
|
65
|
+
"email": {
|
|
66
|
+
"type": "string"
|
|
67
|
+
},
|
|
68
|
+
"id": {
|
|
69
|
+
"type": "string"
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
},
|
|
7
75
|
"lastModifiedDateTime": {
|
|
8
76
|
"type": "string"
|
|
9
77
|
},
|
|
10
78
|
"name": {
|
|
11
79
|
"type": "string"
|
|
12
80
|
},
|
|
81
|
+
"parentReference": {
|
|
82
|
+
"type": "object",
|
|
83
|
+
"properties": {
|
|
84
|
+
"driveId": {
|
|
85
|
+
"type": "string"
|
|
86
|
+
},
|
|
87
|
+
"driveType": {
|
|
88
|
+
"type": "string"
|
|
89
|
+
},
|
|
90
|
+
"id": {
|
|
91
|
+
"type": "string"
|
|
92
|
+
},
|
|
93
|
+
"name": {
|
|
94
|
+
"type": "string"
|
|
95
|
+
},
|
|
96
|
+
"path": {
|
|
97
|
+
"type": "string"
|
|
98
|
+
},
|
|
99
|
+
"siteId": {
|
|
100
|
+
"type": "string"
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
},
|
|
13
104
|
"size": {
|
|
14
105
|
"type": "integer"
|
|
15
106
|
},
|
|
@@ -17,5 +108,5 @@
|
|
|
17
108
|
"type": "string"
|
|
18
109
|
}
|
|
19
110
|
},
|
|
20
|
-
"version":
|
|
111
|
+
"version": 2
|
|
21
112
|
}
|
|
@@ -18,37 +18,15 @@
|
|
|
18
18
|
"bodyPreview": {
|
|
19
19
|
"type": "string"
|
|
20
20
|
},
|
|
21
|
-
"
|
|
21
|
+
"categories": {
|
|
22
22
|
"type": "array",
|
|
23
23
|
"items": {
|
|
24
|
-
"type": "
|
|
25
|
-
"properties": {
|
|
26
|
-
"emailAddress": {
|
|
27
|
-
"type": "object",
|
|
28
|
-
"properties": {
|
|
29
|
-
"address": {
|
|
30
|
-
"type": "string"
|
|
31
|
-
},
|
|
32
|
-
"name": {
|
|
33
|
-
"type": "string"
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
24
|
+
"type": "string"
|
|
38
25
|
}
|
|
39
26
|
},
|
|
40
|
-
"changeKey": {
|
|
41
|
-
"type": "string"
|
|
42
|
-
},
|
|
43
27
|
"conversationId": {
|
|
44
28
|
"type": "string"
|
|
45
29
|
},
|
|
46
|
-
"conversationIndex": {
|
|
47
|
-
"type": "string"
|
|
48
|
-
},
|
|
49
|
-
"createdDateTime": {
|
|
50
|
-
"type": "string"
|
|
51
|
-
},
|
|
52
30
|
"flag": {
|
|
53
31
|
"type": "object",
|
|
54
32
|
"properties": {
|
|
@@ -57,22 +35,6 @@
|
|
|
57
35
|
}
|
|
58
36
|
}
|
|
59
37
|
},
|
|
60
|
-
"from": {
|
|
61
|
-
"type": "object",
|
|
62
|
-
"properties": {
|
|
63
|
-
"emailAddress": {
|
|
64
|
-
"type": "object",
|
|
65
|
-
"properties": {
|
|
66
|
-
"address": {
|
|
67
|
-
"type": "string"
|
|
68
|
-
},
|
|
69
|
-
"name": {
|
|
70
|
-
"type": "string"
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
},
|
|
76
38
|
"hasAttachments": {
|
|
77
39
|
"type": "boolean"
|
|
78
40
|
},
|
|
@@ -82,27 +44,12 @@
|
|
|
82
44
|
"importance": {
|
|
83
45
|
"type": "string"
|
|
84
46
|
},
|
|
85
|
-
"inferenceClassification": {
|
|
86
|
-
"type": "string"
|
|
87
|
-
},
|
|
88
|
-
"internetMessageId": {
|
|
89
|
-
"type": "string"
|
|
90
|
-
},
|
|
91
47
|
"isDraft": {
|
|
92
48
|
"type": "boolean"
|
|
93
49
|
},
|
|
94
50
|
"isRead": {
|
|
95
51
|
"type": "boolean"
|
|
96
52
|
},
|
|
97
|
-
"isReadReceiptRequested": {
|
|
98
|
-
"type": "boolean"
|
|
99
|
-
},
|
|
100
|
-
"lastModifiedDateTime": {
|
|
101
|
-
"type": "string"
|
|
102
|
-
},
|
|
103
|
-
"parentFolderId": {
|
|
104
|
-
"type": "string"
|
|
105
|
-
},
|
|
106
53
|
"receivedDateTime": {
|
|
107
54
|
"type": "string"
|
|
108
55
|
},
|
|
@@ -141,34 +88,9 @@
|
|
|
141
88
|
}
|
|
142
89
|
}
|
|
143
90
|
},
|
|
144
|
-
"sentDateTime": {
|
|
145
|
-
"type": "string"
|
|
146
|
-
},
|
|
147
91
|
"subject": {
|
|
148
92
|
"type": "string"
|
|
149
|
-
},
|
|
150
|
-
"toRecipients": {
|
|
151
|
-
"type": "array",
|
|
152
|
-
"items": {
|
|
153
|
-
"type": "object",
|
|
154
|
-
"properties": {
|
|
155
|
-
"emailAddress": {
|
|
156
|
-
"type": "object",
|
|
157
|
-
"properties": {
|
|
158
|
-
"address": {
|
|
159
|
-
"type": "string"
|
|
160
|
-
},
|
|
161
|
-
"name": {
|
|
162
|
-
"type": "string"
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
},
|
|
169
|
-
"webLink": {
|
|
170
|
-
"type": "string"
|
|
171
93
|
}
|
|
172
94
|
},
|
|
173
|
-
"version":
|
|
95
|
+
"version": 2
|
|
174
96
|
}
|
|
@@ -7,6 +7,17 @@
|
|
|
7
7
|
"@odata.etag": {
|
|
8
8
|
"type": "string"
|
|
9
9
|
},
|
|
10
|
+
"body": {
|
|
11
|
+
"type": "object",
|
|
12
|
+
"properties": {
|
|
13
|
+
"content": {
|
|
14
|
+
"type": "string"
|
|
15
|
+
},
|
|
16
|
+
"contentType": {
|
|
17
|
+
"type": "string"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
},
|
|
10
21
|
"bodyPreview": {
|
|
11
22
|
"type": "string"
|
|
12
23
|
},
|
|
@@ -19,6 +30,22 @@
|
|
|
19
30
|
"conversationId": {
|
|
20
31
|
"type": "string"
|
|
21
32
|
},
|
|
33
|
+
"from": {
|
|
34
|
+
"type": "object",
|
|
35
|
+
"properties": {
|
|
36
|
+
"emailAddress": {
|
|
37
|
+
"type": "object",
|
|
38
|
+
"properties": {
|
|
39
|
+
"address": {
|
|
40
|
+
"type": "string"
|
|
41
|
+
},
|
|
42
|
+
"name": {
|
|
43
|
+
"type": "string"
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
},
|
|
22
49
|
"hasAttachments": {
|
|
23
50
|
"type": "boolean"
|
|
24
51
|
},
|
|
@@ -29,5 +56,5 @@
|
|
|
29
56
|
"type": "string"
|
|
30
57
|
}
|
|
31
58
|
},
|
|
32
|
-
"version":
|
|
59
|
+
"version": 2
|
|
33
60
|
}
|
|
@@ -4,6 +4,17 @@
|
|
|
4
4
|
"@odata.etag": {
|
|
5
5
|
"type": "string"
|
|
6
6
|
},
|
|
7
|
+
"body": {
|
|
8
|
+
"type": "object",
|
|
9
|
+
"properties": {
|
|
10
|
+
"content": {
|
|
11
|
+
"type": "string"
|
|
12
|
+
},
|
|
13
|
+
"contentType": {
|
|
14
|
+
"type": "string"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
},
|
|
7
18
|
"bodyPreview": {
|
|
8
19
|
"type": "string"
|
|
9
20
|
},
|
|
@@ -13,15 +24,85 @@
|
|
|
13
24
|
"type": "string"
|
|
14
25
|
}
|
|
15
26
|
},
|
|
27
|
+
"ccRecipients": {
|
|
28
|
+
"type": "array",
|
|
29
|
+
"items": {
|
|
30
|
+
"type": "object",
|
|
31
|
+
"properties": {
|
|
32
|
+
"emailAddress": {
|
|
33
|
+
"type": "object",
|
|
34
|
+
"properties": {
|
|
35
|
+
"address": {
|
|
36
|
+
"type": "string"
|
|
37
|
+
},
|
|
38
|
+
"name": {
|
|
39
|
+
"type": "string"
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
},
|
|
16
46
|
"conversationId": {
|
|
17
47
|
"type": "string"
|
|
18
48
|
},
|
|
49
|
+
"from": {
|
|
50
|
+
"type": "object",
|
|
51
|
+
"properties": {
|
|
52
|
+
"emailAddress": {
|
|
53
|
+
"type": "object",
|
|
54
|
+
"properties": {
|
|
55
|
+
"address": {
|
|
56
|
+
"type": "string"
|
|
57
|
+
},
|
|
58
|
+
"name": {
|
|
59
|
+
"type": "string"
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
},
|
|
19
65
|
"hasAttachments": {
|
|
20
66
|
"type": "boolean"
|
|
21
67
|
},
|
|
22
68
|
"id": {
|
|
23
69
|
"type": "string"
|
|
70
|
+
},
|
|
71
|
+
"sender": {
|
|
72
|
+
"type": "object",
|
|
73
|
+
"properties": {
|
|
74
|
+
"emailAddress": {
|
|
75
|
+
"type": "object",
|
|
76
|
+
"properties": {
|
|
77
|
+
"address": {
|
|
78
|
+
"type": "string"
|
|
79
|
+
},
|
|
80
|
+
"name": {
|
|
81
|
+
"type": "string"
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
"toRecipients": {
|
|
88
|
+
"type": "array",
|
|
89
|
+
"items": {
|
|
90
|
+
"type": "object",
|
|
91
|
+
"properties": {
|
|
92
|
+
"emailAddress": {
|
|
93
|
+
"type": "object",
|
|
94
|
+
"properties": {
|
|
95
|
+
"address": {
|
|
96
|
+
"type": "string"
|
|
97
|
+
},
|
|
98
|
+
"name": {
|
|
99
|
+
"type": "string"
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
24
105
|
}
|
|
25
106
|
},
|
|
26
|
-
"version":
|
|
107
|
+
"version": 2
|
|
27
108
|
}
|
|
@@ -1,18 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "object",
|
|
3
3
|
"properties": {
|
|
4
|
-
"firstName": {
|
|
5
|
-
"type": "string"
|
|
6
|
-
},
|
|
7
|
-
"lastName": {
|
|
8
|
-
"type": "string"
|
|
9
|
-
},
|
|
10
|
-
"profileUrl": {
|
|
11
|
-
"type": "string"
|
|
12
|
-
},
|
|
13
4
|
"timestamp": {
|
|
14
5
|
"type": "string"
|
|
15
6
|
}
|
|
16
7
|
},
|
|
17
|
-
"version":
|
|
8
|
+
"version": 2
|
|
18
9
|
}
|
|
@@ -25,6 +25,17 @@
|
|
|
25
25
|
"type": "string"
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
|
+
"organization": {
|
|
29
|
+
"type": "object",
|
|
30
|
+
"properties": {
|
|
31
|
+
"id": {
|
|
32
|
+
"type": "integer"
|
|
33
|
+
},
|
|
34
|
+
"name": {
|
|
35
|
+
"type": "string"
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
},
|
|
28
39
|
"owner": {
|
|
29
40
|
"type": "object",
|
|
30
41
|
"properties": {
|
|
@@ -52,5 +63,5 @@
|
|
|
52
63
|
"type": "integer"
|
|
53
64
|
}
|
|
54
65
|
},
|
|
55
|
-
"version":
|
|
66
|
+
"version": 2
|
|
56
67
|
}
|
|
@@ -328,7 +328,9 @@ function hasJsonDataTypeInSchema(schema) {
|
|
|
328
328
|
return schema.some(({ data_type }) => data_type === "json");
|
|
329
329
|
}
|
|
330
330
|
function convertValuesToJsonWithPgp(pgp, schema, values) {
|
|
331
|
-
schema.filter(
|
|
331
|
+
schema.filter(
|
|
332
|
+
({ data_type, column_name }) => data_type === "json" && values[column_name] !== null && values[column_name] !== void 0
|
|
333
|
+
).forEach(({ column_name }) => {
|
|
332
334
|
values[column_name] = pgp.as.json(values[column_name], true);
|
|
333
335
|
});
|
|
334
336
|
return values;
|