n8n-nodes-base 1.86.1 → 1.88.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.
Files changed (122) hide show
  1. package/dist/credentials/HttpBearerAuth.credentials.js +63 -0
  2. package/dist/credentials/HttpBearerAuth.credentials.js.map +1 -0
  3. package/dist/credentials/MicrosoftAzureCosmosDbSharedKeyApi.credentials.js +109 -0
  4. package/dist/credentials/MicrosoftAzureCosmosDbSharedKeyApi.credentials.js.map +1 -0
  5. package/dist/credentials/SalesforceJwtApi.credentials.js +60 -0
  6. package/dist/credentials/SalesforceJwtApi.credentials.js.map +1 -1
  7. package/dist/known/credentials.json +11 -0
  8. package/dist/known/nodes.json +4 -0
  9. package/dist/nodes/Brevo/__schema__/v1.0.0/contact/getAll.json +1 -9
  10. package/dist/nodes/Dropbox/__schema__/v1.0.0/file/download.json +2 -5
  11. package/dist/nodes/EmailReadImap/v2/utils.js +4 -1
  12. package/dist/nodes/EmailReadImap/v2/utils.js.map +1 -1
  13. package/dist/nodes/Form/Form.node.js +2 -2
  14. package/dist/nodes/Form/Form.node.js.map +1 -1
  15. package/dist/nodes/Form/v2/FormTriggerV2.node.js +2 -2
  16. package/dist/nodes/Form/v2/FormTriggerV2.node.js.map +1 -1
  17. package/dist/nodes/Google/Analytics/__schema__/v2.0.0/report/get.json +2 -2
  18. package/dist/nodes/Google/Calendar/__schema__/v1.3.0/event/getAll.json +7 -1
  19. package/dist/nodes/Google/Firebase/CloudFirestore/__schema__/v1.1.0/document/get.json +1 -13
  20. package/dist/nodes/Google/Gmail/__schema__/v2.1.0/message/get.json +1 -7
  21. package/dist/nodes/Google/Gmail/__schema__/v2.1.0/message/getAll.json +1 -7
  22. package/dist/nodes/Google/Gmail/__schema__/v2.1.0/thread/get.json +4 -4
  23. package/dist/nodes/Google/YouTube/__schema__/v1.0.0/video/get.json +1 -35
  24. package/dist/nodes/Google/YouTube/__schema__/v1.0.0/video/rate.json +9 -0
  25. package/dist/nodes/HaloPSA/__schema__/v1.0.0/client/getAll.json +147 -1
  26. package/dist/nodes/Hubspot/__schema__/v2.1.0/company/getAll.json +1 -4
  27. package/dist/nodes/Hubspot/__schema__/v2.1.0/contact/search.json +4 -1
  28. package/dist/nodes/Hubspot/__schema__/v2.1.0/deal/getAll.json +1 -52
  29. package/dist/nodes/Hubspot/__schema__/v2.1.0/deal/search.json +5 -2
  30. package/dist/nodes/Hubspot/__schema__/v2.1.0/ticket/get.json +1 -258
  31. package/dist/nodes/ItemLists/__schema__/v3.0.0/itemList/limit.json +9 -0
  32. package/dist/nodes/Jira/__schema__/v1.0.0/issue/get.json +84 -1
  33. package/dist/nodes/Jira/__schema__/v1.0.0/issue/getAll.json +4 -565
  34. package/dist/nodes/Lemlist/__schema__/v2.0.0/campaign/getAll.json +1 -10
  35. package/dist/nodes/Linear/__schema__/v1.0.0/issue/create.json +12 -1
  36. package/dist/nodes/Microsoft/AzureCosmosDb/AzureCosmosDb.node.js +87 -0
  37. package/dist/nodes/Microsoft/AzureCosmosDb/AzureCosmosDb.node.js.map +1 -0
  38. package/dist/nodes/Microsoft/AzureCosmosDb/AzureCosmosDb.node.json +18 -0
  39. package/dist/nodes/Microsoft/AzureCosmosDb/AzureCosmosDb.svg +1 -0
  40. package/dist/nodes/Microsoft/AzureCosmosDb/descriptions/common.js +163 -0
  41. package/dist/nodes/Microsoft/AzureCosmosDb/descriptions/common.js.map +1 -0
  42. package/dist/nodes/Microsoft/AzureCosmosDb/descriptions/container/Container.resource.js +141 -0
  43. package/dist/nodes/Microsoft/AzureCosmosDb/descriptions/container/Container.resource.js.map +1 -0
  44. package/dist/nodes/Microsoft/AzureCosmosDb/descriptions/container/create.operation.js +166 -0
  45. package/dist/nodes/Microsoft/AzureCosmosDb/descriptions/container/create.operation.js.map +1 -0
  46. package/dist/nodes/Microsoft/AzureCosmosDb/descriptions/container/delete.operation.js +40 -0
  47. package/dist/nodes/Microsoft/AzureCosmosDb/descriptions/container/delete.operation.js.map +1 -0
  48. package/dist/nodes/Microsoft/AzureCosmosDb/descriptions/container/get.operation.js +47 -0
  49. package/dist/nodes/Microsoft/AzureCosmosDb/descriptions/container/get.operation.js.map +1 -0
  50. package/dist/nodes/Microsoft/AzureCosmosDb/descriptions/container/getAll.operation.js +47 -0
  51. package/dist/nodes/Microsoft/AzureCosmosDb/descriptions/container/getAll.operation.js.map +1 -0
  52. package/dist/nodes/Microsoft/AzureCosmosDb/descriptions/index.js +42 -0
  53. package/dist/nodes/Microsoft/AzureCosmosDb/descriptions/index.js.map +1 -0
  54. package/dist/nodes/Microsoft/AzureCosmosDb/descriptions/item/Item.resource.js +210 -0
  55. package/dist/nodes/Microsoft/AzureCosmosDb/descriptions/item/Item.resource.js.map +1 -0
  56. package/dist/nodes/Microsoft/AzureCosmosDb/descriptions/item/create.operation.js +72 -0
  57. package/dist/nodes/Microsoft/AzureCosmosDb/descriptions/item/create.operation.js.map +1 -0
  58. package/dist/nodes/Microsoft/AzureCosmosDb/descriptions/item/delete.operation.js +64 -0
  59. package/dist/nodes/Microsoft/AzureCosmosDb/descriptions/item/delete.operation.js.map +1 -0
  60. package/dist/nodes/Microsoft/AzureCosmosDb/descriptions/item/get.operation.js +77 -0
  61. package/dist/nodes/Microsoft/AzureCosmosDb/descriptions/item/get.operation.js.map +1 -0
  62. package/dist/nodes/Microsoft/AzureCosmosDb/descriptions/item/getAll.operation.js +48 -0
  63. package/dist/nodes/Microsoft/AzureCosmosDb/descriptions/item/getAll.operation.js.map +1 -0
  64. package/dist/nodes/Microsoft/AzureCosmosDb/descriptions/item/query.operation.js +102 -0
  65. package/dist/nodes/Microsoft/AzureCosmosDb/descriptions/item/query.operation.js.map +1 -0
  66. package/dist/nodes/Microsoft/AzureCosmosDb/descriptions/item/update.operation.js +83 -0
  67. package/dist/nodes/Microsoft/AzureCosmosDb/descriptions/item/update.operation.js.map +1 -0
  68. package/dist/nodes/Microsoft/AzureCosmosDb/helpers/constants.js +52 -0
  69. package/dist/nodes/Microsoft/AzureCosmosDb/helpers/constants.js.map +1 -0
  70. package/dist/nodes/Microsoft/AzureCosmosDb/helpers/errorHandler.js +108 -0
  71. package/dist/nodes/Microsoft/AzureCosmosDb/helpers/errorHandler.js.map +1 -0
  72. package/dist/nodes/Microsoft/AzureCosmosDb/helpers/interfaces.js +17 -0
  73. package/dist/nodes/Microsoft/AzureCosmosDb/helpers/interfaces.js.map +1 -0
  74. package/dist/nodes/Microsoft/AzureCosmosDb/helpers/utils.js +200 -0
  75. package/dist/nodes/Microsoft/AzureCosmosDb/helpers/utils.js.map +1 -0
  76. package/dist/nodes/Microsoft/AzureCosmosDb/methods/index.js +39 -0
  77. package/dist/nodes/Microsoft/AzureCosmosDb/methods/index.js.map +1 -0
  78. package/dist/nodes/Microsoft/AzureCosmosDb/methods/listSearch.js +75 -0
  79. package/dist/nodes/Microsoft/AzureCosmosDb/methods/listSearch.js.map +1 -0
  80. package/dist/nodes/Microsoft/AzureCosmosDb/transport/index.js +43 -0
  81. package/dist/nodes/Microsoft/AzureCosmosDb/transport/index.js.map +1 -0
  82. package/dist/nodes/Microsoft/OneDrive/__schema__/v1.0.0/file/download.json +92 -1
  83. package/dist/nodes/Microsoft/Outlook/__schema__/v2.0.0/folderMessage/getAll.json +3 -81
  84. package/dist/nodes/Microsoft/Outlook/__schema__/v2.0.0/message/get.json +28 -1
  85. package/dist/nodes/Microsoft/Outlook/__schema__/v2.0.0/message/getAll.json +82 -1
  86. package/dist/nodes/Nasa/__schema__/v1.0.0/donkiSolarFlare/get.json +4 -1
  87. package/dist/nodes/Notion/__schema__/v2.2.0/databasePage/create.json +1 -4
  88. package/dist/nodes/Notion/__schema__/v2.2.0/databasePage/getAll.json +1 -4
  89. package/dist/nodes/Odoo/__schema__/v1.0.0/custom/get.json +1 -4
  90. package/dist/nodes/Odoo/__schema__/v1.0.0/custom/getAll.json +4 -1
  91. package/dist/nodes/Odoo/__schema__/v1.0.0/opportunity/getAll.json +1 -4
  92. package/dist/nodes/Phantombuster/__schema__/v1.0.0/agent/getOutput.json +1 -10
  93. package/dist/nodes/Pipedrive/__schema__/v1.0.0/person/search.json +12 -1
  94. package/dist/nodes/Salesforce/__schema__/v1.0.0/customObject/getAll.json +2 -2
  95. package/dist/nodes/Salesforce/__schema__/v1.0.0/opportunity/getAll.json +4 -1
  96. package/dist/nodes/Salesforce/__schema__/v1.0.0/search/query.json +1 -4
  97. package/dist/nodes/ServiceNow/__schema__/v1.0.0/tableRecord/getAll.json +1 -4
  98. package/dist/nodes/Slack/__schema__/v2.3.0/channel/history.json +4 -44
  99. package/dist/nodes/Ssh/__schema__/v1.0.0/command/execute.json +1 -4
  100. package/dist/nodes/Supabase/__schema__/v1.0.0/row/delete.json +7 -1
  101. package/dist/nodes/Telegram/__schema__/v1.2.0/chat/get.json +1 -10
  102. package/dist/nodes/Telegram/__schema__/v1.2.0/chat/member.json +1 -4
  103. package/dist/nodes/Transform/Summarize/utils.js +1 -1
  104. package/dist/nodes/Transform/Summarize/utils.js.map +1 -1
  105. package/dist/nodes/Trello/__schema__/v1.0.0/list/getAll.json +1 -4
  106. package/dist/nodes/Trello/__schema__/v1.0.0/list/getCards.json +4 -7
  107. package/dist/nodes/Twitter/__schema__/v2.0.0/tweet/search.json +1 -4
  108. package/dist/nodes/Wait/Wait.node.js +2 -2
  109. package/dist/nodes/Wait/Wait.node.js.map +1 -1
  110. package/dist/nodes/Webhook/error.d.ts +8 -0
  111. package/dist/nodes/Webhook/utils.d.ts +32 -0
  112. package/dist/nodes/Webhook/utils.js +13 -0
  113. package/dist/nodes/Webhook/utils.js.map +1 -1
  114. package/dist/nodes/Wordpress/__schema__/v1.0.0/post/getAll.json +9 -1
  115. package/dist/nodes/Zoho/__schema__/v1.0.0/contact/getAll.json +1 -15
  116. package/dist/test/nodes/FakeCredentialsMap.js +36 -0
  117. package/dist/test/nodes/FakeCredentialsMap.js.map +1 -1
  118. package/dist/test/nodes/Helpers.js +1 -1
  119. package/dist/test/nodes/Helpers.js.map +1 -1
  120. package/dist/types/credentials.json +3 -1
  121. package/dist/types/nodes.json +6 -5
  122. package/package.json +12 -9
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../nodes/Microsoft/AzureCosmosDb/helpers/utils.ts"],"sourcesContent":["import type {\n\tIDataObject,\n\tIExecuteSingleFunctions,\n\tIHttpRequestOptions,\n\tIN8nHttpFullResponse,\n\tINodeExecutionData,\n\tNodeApiError,\n} from 'n8n-workflow';\nimport { jsonParse, NodeOperationError, OperationalError } from 'n8n-workflow';\n\nimport { HeaderConstants } from './constants';\nimport { ErrorMap } from './errorHandler';\nimport type { IContainer } from './interfaces';\nimport { azureCosmosDbApiRequest } from '../transport';\n\nexport async function getPartitionKey(this: IExecuteSingleFunctions): Promise<string> {\n\tconst container = this.getNodeParameter('container', undefined, {\n\t\textractValue: true,\n\t}) as string;\n\n\tlet partitionKeyField: string | undefined = undefined;\n\ttry {\n\t\tconst responseData = (await azureCosmosDbApiRequest.call(\n\t\t\tthis,\n\t\t\t'GET',\n\t\t\t`/colls/${container}`,\n\t\t)) as IContainer;\n\t\tpartitionKeyField = responseData.partitionKey?.paths[0]?.replace('/', '');\n\t} catch (error) {\n\t\tconst err = error as NodeApiError;\n\t\tif (err.httpCode === '404') {\n\t\t\terr.message = ErrorMap.Container.NotFound.getMessage(container);\n\t\t\terr.description = ErrorMap.Container.NotFound.description;\n\t\t}\n\t\tthrow err;\n\t}\n\n\tif (!partitionKeyField) {\n\t\tthrow new NodeOperationError(this.getNode(), 'Partition key not found', {\n\t\t\tdescription: 'Failed to determine the partition key for this collection',\n\t\t});\n\t}\n\n\treturn partitionKeyField;\n}\n\nexport async function simplifyData(\n\tthis: IExecuteSingleFunctions,\n\titems: INodeExecutionData[],\n\t_response: IN8nHttpFullResponse,\n): Promise<INodeExecutionData[]> {\n\tconst simple = this.getNodeParameter('simple') as boolean;\n\n\tif (!simple) {\n\t\treturn items;\n\t}\n\n\tconst simplifyFields = (data: IDataObject): IDataObject => {\n\t\tconst simplifiedData = Object.keys(data)\n\t\t\t.filter((key) => !key.startsWith('_'))\n\t\t\t.reduce((acc, key) => {\n\t\t\t\tacc[key] = data[key];\n\t\t\t\treturn acc;\n\t\t\t}, {} as IDataObject);\n\n\t\treturn simplifiedData;\n\t};\n\n\treturn items.map((item) => {\n\t\tconst simplifiedData = simplifyFields(item.json);\n\t\treturn { json: simplifiedData } as INodeExecutionData;\n\t});\n}\n\nexport async function validateQueryParameters(\n\tthis: IExecuteSingleFunctions,\n\trequestOptions: IHttpRequestOptions,\n): Promise<IHttpRequestOptions> {\n\tconst query = this.getNodeParameter('query', '') as string;\n\tconst queryOptions = this.getNodeParameter('options.queryOptions') as IDataObject;\n\n\tconst parameterNames = query.replace(/\\$(\\d+)/g, '@Param$1').match(/@\\w+/g) ?? [];\n\n\tconst queryParamsString = queryOptions?.queryParameters as string;\n\tconst parameterValues = queryParamsString\n\t\t? queryParamsString.split(',').map((param) => param.trim())\n\t\t: [];\n\n\tif (parameterNames.length !== parameterValues.length) {\n\t\tthrow new NodeOperationError(this.getNode(), 'Empty parameter value provided', {\n\t\t\tdescription: 'Please provide non-empty values for the query parameters',\n\t\t});\n\t}\n\n\trequestOptions.body = {\n\t\t...(requestOptions.body as IDataObject),\n\t\tparameters: parameterNames.map((name, index) => ({\n\t\t\tname,\n\t\t\tvalue: parameterValues[index],\n\t\t})),\n\t};\n\n\treturn requestOptions;\n}\n\nexport function processJsonInput<T>(\n\tjsonData: T,\n\tinputName?: string,\n\tfallbackValue: T | undefined = undefined,\n\tdisallowSpacesIn?: string[],\n): Record<string, unknown> {\n\tlet values: Record<string, unknown> = {};\n\n\tconst input = inputName ? `'${inputName}' ` : '';\n\n\tif (typeof jsonData === 'string') {\n\t\ttry {\n\t\t\tvalues = jsonParse(jsonData, { fallbackValue }) as Record<string, unknown>;\n\t\t} catch (error) {\n\t\t\tthrow new OperationalError(`Input ${input}must contain a valid JSON`, { level: 'warning' });\n\t\t}\n\t} else if (jsonData && typeof jsonData === 'object') {\n\t\tvalues = jsonData as Record<string, unknown>;\n\t} else {\n\t\tthrow new OperationalError(`Input ${input}must contain a valid JSON`, { level: 'warning' });\n\t}\n\n\tdisallowSpacesIn?.forEach((key) => {\n\t\tconst value = values[key];\n\t\tif (typeof value === 'string' && value.includes(' ')) {\n\t\t\tthrow new OperationalError(\n\t\t\t\t`${inputName ? `'${inputName}'` : ''} property '${key}' should not contain spaces (received \"${value}\")`,\n\t\t\t\t{ level: 'warning' },\n\t\t\t);\n\t\t}\n\t});\n\n\treturn values;\n}\n\nexport async function validatePartitionKey(\n\tthis: IExecuteSingleFunctions,\n\trequestOptions: IHttpRequestOptions,\n): Promise<IHttpRequestOptions> {\n\tconst operation = this.getNodeParameter('operation') as string;\n\tlet customProperties = this.getNodeParameter('customProperties', {}) as IDataObject;\n\n\tconst partitionKey = await getPartitionKey.call(this);\n\n\tif (typeof customProperties === 'string') {\n\t\ttry {\n\t\t\tcustomProperties = jsonParse(customProperties);\n\t\t} catch (error) {\n\t\t\tthrow new NodeOperationError(this.getNode(), 'Invalid JSON format in \"Item Contents\"', {\n\t\t\t\tdescription: 'Ensure the \"Item Contents\" field contains a valid JSON object',\n\t\t\t});\n\t\t}\n\t}\n\n\tlet partitionKeyValue: string = '';\n\tconst needsPartitionKey = ['update', 'delete', 'get'].includes(operation);\n\n\tif (operation === 'create') {\n\t\tif (!(partitionKey in customProperties) || !customProperties[partitionKey]) {\n\t\t\tthrow new NodeOperationError(this.getNode(), \"Partition key not found in 'Item Contents'\", {\n\t\t\t\tdescription: `Partition key '${partitionKey}' must be present and have a valid, non-empty value in 'Item Contents'.`,\n\t\t\t});\n\t\t}\n\t\tpartitionKeyValue = customProperties[partitionKey] as string;\n\t} else if (needsPartitionKey) {\n\t\ttry {\n\t\t\tpartitionKeyValue =\n\t\t\t\tpartitionKey === 'id'\n\t\t\t\t\t? String(this.getNodeParameter('item', undefined, { extractValue: true }) ?? '')\n\t\t\t\t\t: String(this.getNodeParameter('additionalFields.partitionKey', undefined) ?? '');\n\n\t\t\tif (!partitionKeyValue) {\n\t\t\t\tthrow new NodeOperationError(this.getNode(), 'Partition key is empty', {\n\t\t\t\t\tdescription: 'Ensure the \"Partition Key\" field has a valid, non-empty value.',\n\t\t\t\t});\n\t\t\t}\n\t\t} catch (error) {\n\t\t\tthrow new NodeOperationError(this.getNode(), 'Partition key is missing or empty', {\n\t\t\t\tdescription: 'Ensure the \"Partition Key\" field exists and has a valid, non-empty value.',\n\t\t\t});\n\t\t}\n\n\t\tif (operation === 'update') {\n\t\t\tconst idValue = String(\n\t\t\t\tthis.getNodeParameter('item', undefined, { extractValue: true }) ?? '',\n\t\t\t);\n\n\t\t\t(requestOptions.body as IDataObject).id = idValue;\n\t\t\t(requestOptions.body as IDataObject)[partitionKey] = partitionKeyValue;\n\t\t}\n\t}\n\n\trequestOptions.headers = {\n\t\t...requestOptions.headers,\n\t\t[HeaderConstants.X_MS_DOCUMENTDB_PARTITIONKEY]: `[\"${partitionKeyValue}\"]`,\n\t};\n\n\treturn requestOptions;\n}\n\nexport async function validateCustomProperties(\n\tthis: IExecuteSingleFunctions,\n\trequestOptions: IHttpRequestOptions,\n): Promise<IHttpRequestOptions> {\n\tconst rawCustomProperties = this.getNodeParameter('customProperties') as IDataObject;\n\tconst customProperties = processJsonInput(rawCustomProperties, 'Item Contents');\n\tif (\n\t\tObject.keys(customProperties).length === 0 ||\n\t\tObject.values(customProperties).every((val) => val === undefined || val === null || val === '')\n\t) {\n\t\tthrow new NodeOperationError(this.getNode(), 'Item contents are empty', {\n\t\t\tdescription: 'Ensure the \"Item Contents\" field contains at least one valid property.',\n\t\t});\n\t}\n\trequestOptions.body = {\n\t\t...(requestOptions.body as IDataObject),\n\t\t...customProperties,\n\t};\n\treturn requestOptions;\n}\n\nexport const untilContainerSelected = { container: [''] };\n\nexport const untilItemSelected = { item: [''] };\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;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AAQ,GAAG,qCAAqC;AAAA,QACjF,aAAa;AAAA,MACd,CAAC;AAAA,IACF;AAEA,QAAI,cAAc,UAAU;AAC3B,YAAM,UAAU;AAAA,QACf,KAAK,iBAAiB,QAAQ,QAAW,EAAE,cAAc,KAAK,CAAC,KAAK;AAAA,MACrE;AAEA,MAAC,eAAe,KAAqB,KAAK;AAC1C,MAAC,eAAe,KAAqB,YAAY,IAAI;AAAA,IACtD;AAAA,EACD;AAEA,iBAAe,UAAU;AAAA,IACxB,GAAG,eAAe;AAAA,IAClB,CAAC,iCAAgB,4BAA4B,GAAG,KAAK,iBAAiB;AAAA,EACvE;AAEA,SAAO;AACR;AAEA,eAAsB,yBAErB,gBAC+B;AAC/B,QAAM,sBAAsB,KAAK,iBAAiB,kBAAkB;AACpE,QAAM,mBAAmB,iBAAiB,qBAAqB,eAAe;AAC9E,MACC,OAAO,KAAK,gBAAgB,EAAE,WAAW,KACzC,OAAO,OAAO,gBAAgB,EAAE,MAAM,CAAC,QAAQ,QAAQ,UAAa,QAAQ,QAAQ,QAAQ,EAAE,GAC7F;AACD,UAAM,IAAI,uCAAmB,KAAK,QAAQ,GAAG,2BAA2B;AAAA,MACvE,aAAa;AAAA,IACd,CAAC;AAAA,EACF;AACA,iBAAe,OAAO;AAAA,IACrB,GAAI,eAAe;AAAA,IACnB,GAAG;AAAA,EACJ;AACA,SAAO;AACR;AAEO,MAAM,yBAAyB,EAAE,WAAW,CAAC,EAAE,EAAE;AAEjD,MAAM,oBAAoB,EAAE,MAAM,CAAC,EAAE,EAAE;","names":[]}
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+ var methods_exports = {};
30
+ __export(methods_exports, {
31
+ listSearch: () => listSearch
32
+ });
33
+ module.exports = __toCommonJS(methods_exports);
34
+ var listSearch = __toESM(require("./listSearch"));
35
+ // Annotate the CommonJS export names for ESM import in node:
36
+ 0 && (module.exports = {
37
+ listSearch
38
+ });
39
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../nodes/Microsoft/AzureCosmosDb/methods/index.ts"],"sourcesContent":["export * as listSearch from './listSearch';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBAA4B;","names":[]}
@@ -0,0 +1,75 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var listSearch_exports = {};
20
+ __export(listSearch_exports, {
21
+ searchContainers: () => searchContainers,
22
+ searchItems: () => searchItems
23
+ });
24
+ module.exports = __toCommonJS(listSearch_exports);
25
+ var import_constants = require("../helpers/constants");
26
+ var import_transport = require("../transport");
27
+ function formatResults(items, filter) {
28
+ return items.map(({ id }) => ({
29
+ name: String(id).replace(/ /g, ""),
30
+ value: String(id)
31
+ })).filter(({ name }) => !filter || name.includes(filter)).sort((a, b) => a.name.localeCompare(b.name));
32
+ }
33
+ async function searchContainers(filter, paginationToken) {
34
+ const headers = paginationToken ? { [import_constants.HeaderConstants.X_MS_CONTINUATION]: paginationToken } : {};
35
+ const responseData = await import_transport.azureCosmosDbApiRequest.call(
36
+ this,
37
+ "GET",
38
+ "/colls",
39
+ {},
40
+ {},
41
+ headers,
42
+ true
43
+ );
44
+ const containers = responseData.body.DocumentCollections;
45
+ return {
46
+ results: formatResults(containers, filter),
47
+ paginationToken: responseData.headers[import_constants.HeaderConstants.X_MS_CONTINUATION]
48
+ };
49
+ }
50
+ async function searchItems(filter, paginationToken) {
51
+ const container = this.getCurrentNodeParameter("container", {
52
+ extractValue: true
53
+ });
54
+ const headers = paginationToken ? { [import_constants.HeaderConstants.X_MS_CONTINUATION]: paginationToken } : {};
55
+ const responseData = await import_transport.azureCosmosDbApiRequest.call(
56
+ this,
57
+ "GET",
58
+ `/colls/${container}/docs`,
59
+ {},
60
+ {},
61
+ headers,
62
+ true
63
+ );
64
+ const items = responseData.body.Documents;
65
+ return {
66
+ results: formatResults(items, filter),
67
+ paginationToken: responseData.headers[import_constants.HeaderConstants.X_MS_CONTINUATION]
68
+ };
69
+ }
70
+ // Annotate the CommonJS export names for ESM import in node:
71
+ 0 && (module.exports = {
72
+ searchContainers,
73
+ searchItems
74
+ });
75
+ //# sourceMappingURL=listSearch.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../nodes/Microsoft/AzureCosmosDb/methods/listSearch.ts"],"sourcesContent":["import type {\n\tIDataObject,\n\tILoadOptionsFunctions,\n\tINodeListSearchResult,\n\tINodeListSearchItems,\n} from 'n8n-workflow';\n\nimport { HeaderConstants } from '../helpers/constants';\nimport { azureCosmosDbApiRequest } from '../transport';\n\nfunction formatResults(items: IDataObject[], filter?: string): INodeListSearchItems[] {\n\treturn items\n\t\t.map(({ id }) => ({\n\t\t\tname: String(id).replace(/ /g, ''),\n\t\t\tvalue: String(id),\n\t\t}))\n\t\t.filter(({ name }) => !filter || name.includes(filter))\n\t\t.sort((a, b) => a.name.localeCompare(b.name));\n}\n\nexport async function searchContainers(\n\tthis: ILoadOptionsFunctions,\n\tfilter?: string,\n\tpaginationToken?: string,\n): Promise<INodeListSearchResult> {\n\tconst headers = paginationToken ? { [HeaderConstants.X_MS_CONTINUATION]: paginationToken } : {};\n\tconst responseData = (await azureCosmosDbApiRequest.call(\n\t\tthis,\n\t\t'GET',\n\t\t'/colls',\n\t\t{},\n\t\t{},\n\t\theaders,\n\t\ttrue,\n\t)) as {\n\t\tbody: IDataObject;\n\t\theaders: IDataObject;\n\t};\n\n\tconst containers = responseData.body.DocumentCollections as IDataObject[];\n\n\treturn {\n\t\tresults: formatResults(containers, filter),\n\t\tpaginationToken: responseData.headers[HeaderConstants.X_MS_CONTINUATION],\n\t};\n}\n\nexport async function searchItems(\n\tthis: ILoadOptionsFunctions,\n\tfilter?: string,\n\tpaginationToken?: string,\n): Promise<INodeListSearchResult> {\n\tconst container = this.getCurrentNodeParameter('container', {\n\t\textractValue: true,\n\t}) as string;\n\tconst headers = paginationToken ? { [HeaderConstants.X_MS_CONTINUATION]: paginationToken } : {};\n\tconst responseData = (await azureCosmosDbApiRequest.call(\n\t\tthis,\n\t\t'GET',\n\t\t`/colls/${container}/docs`,\n\t\t{},\n\t\t{},\n\t\theaders,\n\t\ttrue,\n\t)) as {\n\t\tbody: IDataObject;\n\t\theaders: IDataObject;\n\t};\n\n\tconst items = responseData.body.Documents as IDataObject[];\n\n\treturn {\n\t\tresults: formatResults(items, filter),\n\t\tpaginationToken: responseData.headers[HeaderConstants.X_MS_CONTINUATION],\n\t};\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAOA,uBAAgC;AAChC,uBAAwC;AAExC,SAAS,cAAc,OAAsB,QAAyC;AACrF,SAAO,MACL,IAAI,CAAC,EAAE,GAAG,OAAO;AAAA,IACjB,MAAM,OAAO,EAAE,EAAE,QAAQ,MAAM,EAAE;AAAA,IACjC,OAAO,OAAO,EAAE;AAAA,EACjB,EAAE,EACD,OAAO,CAAC,EAAE,KAAK,MAAM,CAAC,UAAU,KAAK,SAAS,MAAM,CAAC,EACrD,KAAK,CAAC,GAAG,MAAM,EAAE,KAAK,cAAc,EAAE,IAAI,CAAC;AAC9C;AAEA,eAAsB,iBAErB,QACA,iBACiC;AACjC,QAAM,UAAU,kBAAkB,EAAE,CAAC,iCAAgB,iBAAiB,GAAG,gBAAgB,IAAI,CAAC;AAC9F,QAAM,eAAgB,MAAM,yCAAwB;AAAA,IACnD;AAAA,IACA;AAAA,IACA;AAAA,IACA,CAAC;AAAA,IACD,CAAC;AAAA,IACD;AAAA,IACA;AAAA,EACD;AAKA,QAAM,aAAa,aAAa,KAAK;AAErC,SAAO;AAAA,IACN,SAAS,cAAc,YAAY,MAAM;AAAA,IACzC,iBAAiB,aAAa,QAAQ,iCAAgB,iBAAiB;AAAA,EACxE;AACD;AAEA,eAAsB,YAErB,QACA,iBACiC;AACjC,QAAM,YAAY,KAAK,wBAAwB,aAAa;AAAA,IAC3D,cAAc;AAAA,EACf,CAAC;AACD,QAAM,UAAU,kBAAkB,EAAE,CAAC,iCAAgB,iBAAiB,GAAG,gBAAgB,IAAI,CAAC;AAC9F,QAAM,eAAgB,MAAM,yCAAwB;AAAA,IACnD;AAAA,IACA;AAAA,IACA,UAAU,SAAS;AAAA,IACnB,CAAC;AAAA,IACD,CAAC;AAAA,IACD;AAAA,IACA;AAAA,EACD;AAKA,QAAM,QAAQ,aAAa,KAAK;AAEhC,SAAO;AAAA,IACN,SAAS,cAAc,OAAO,MAAM;AAAA,IACpC,iBAAiB,aAAa,QAAQ,iCAAgB,iBAAiB;AAAA,EACxE;AACD;","names":[]}
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var transport_exports = {};
20
+ __export(transport_exports, {
21
+ azureCosmosDbApiRequest: () => azureCosmosDbApiRequest
22
+ });
23
+ module.exports = __toCommonJS(transport_exports);
24
+ async function azureCosmosDbApiRequest(method, endpoint, body = {}, qs, headers, returnFullResponse = false) {
25
+ const credentialsType = "microsoftAzureCosmosDbSharedKeyApi";
26
+ const credentials = await this.getCredentials(credentialsType);
27
+ const baseUrl = `https://${credentials.account}.documents.azure.com/dbs/${credentials.database}`;
28
+ const options = {
29
+ method,
30
+ url: `${baseUrl}${endpoint}`,
31
+ json: true,
32
+ headers,
33
+ body,
34
+ qs,
35
+ returnFullResponse
36
+ };
37
+ return await this.helpers.httpRequestWithAuthentication.call(this, credentialsType, options);
38
+ }
39
+ // Annotate the CommonJS export names for ESM import in node:
40
+ 0 && (module.exports = {
41
+ azureCosmosDbApiRequest
42
+ });
43
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../nodes/Microsoft/AzureCosmosDb/transport/index.ts"],"sourcesContent":["import type {\n\tIDataObject,\n\tIHttpRequestOptions,\n\tIHttpRequestMethods,\n\tILoadOptionsFunctions,\n\tIExecuteSingleFunctions,\n} from 'n8n-workflow';\n\nimport type { ICosmosDbCredentials } from '../helpers/interfaces';\n\nexport async function azureCosmosDbApiRequest(\n\tthis: IExecuteSingleFunctions | ILoadOptionsFunctions,\n\tmethod: IHttpRequestMethods,\n\tendpoint: string,\n\tbody: IDataObject = {},\n\tqs?: IDataObject,\n\theaders?: IDataObject,\n\treturnFullResponse: boolean = false,\n): Promise<any> {\n\tconst credentialsType = 'microsoftAzureCosmosDbSharedKeyApi';\n\tconst credentials = await this.getCredentials<ICosmosDbCredentials>(credentialsType);\n\tconst baseUrl = `https://${credentials.account}.documents.azure.com/dbs/${credentials.database}`;\n\n\tconst options: IHttpRequestOptions = {\n\t\tmethod,\n\t\turl: `${baseUrl}${endpoint}`,\n\t\tjson: true,\n\t\theaders,\n\t\tbody,\n\t\tqs,\n\t\treturnFullResponse,\n\t};\n\n\treturn await this.helpers.httpRequestWithAuthentication.call(this, credentialsType, options);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAUA,eAAsB,wBAErB,QACA,UACA,OAAoB,CAAC,GACrB,IACA,SACA,qBAA8B,OACf;AACf,QAAM,kBAAkB;AACxB,QAAM,cAAc,MAAM,KAAK,eAAqC,eAAe;AACnF,QAAM,UAAU,WAAW,YAAY,OAAO,4BAA4B,YAAY,QAAQ;AAE9F,QAAM,UAA+B;AAAA,IACpC;AAAA,IACA,KAAK,GAAG,OAAO,GAAG,QAAQ;AAAA,IAC1B,MAAM;AAAA,IACN;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACD;AAEA,SAAO,MAAM,KAAK,QAAQ,8BAA8B,KAAK,MAAM,iBAAiB,OAAO;AAC5F;","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": 1
111
+ "version": 2
21
112
  }
@@ -18,37 +18,15 @@
18
18
  "bodyPreview": {
19
19
  "type": "string"
20
20
  },
21
- "ccRecipients": {
21
+ "categories": {
22
22
  "type": "array",
23
23
  "items": {
24
- "type": "object",
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": 1
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": 1
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": 1
107
+ "version": 2
27
108
  }
@@ -1,6 +1,9 @@
1
1
  {
2
2
  "type": "object",
3
3
  "properties": {
4
+ "activeRegionNum": {
5
+ "type": "integer"
6
+ },
4
7
  "beginTime": {
5
8
  "type": "string"
6
9
  },
@@ -46,5 +49,5 @@
46
49
  "type": "integer"
47
50
  }
48
51
  },
49
- "version": 1
52
+ "version": 2
50
53
  }
@@ -7,12 +7,9 @@
7
7
  "name": {
8
8
  "type": "string"
9
9
  },
10
- "property_name": {
11
- "type": "string"
12
- },
13
10
  "url": {
14
11
  "type": "string"
15
12
  }
16
13
  },
17
- "version": 1
14
+ "version": 2
18
15
  }
@@ -7,12 +7,9 @@
7
7
  "name": {
8
8
  "type": "string"
9
9
  },
10
- "property_name": {
11
- "type": "string"
12
- },
13
10
  "url": {
14
11
  "type": "string"
15
12
  }
16
13
  },
17
- "version": 1
14
+ "version": 2
18
15
  }
@@ -3,10 +3,7 @@
3
3
  "properties": {
4
4
  "id": {
5
5
  "type": "integer"
6
- },
7
- "name": {
8
- "type": "string"
9
6
  }
10
7
  },
11
- "version": 1
8
+ "version": 2
12
9
  }
@@ -3,7 +3,10 @@
3
3
  "properties": {
4
4
  "id": {
5
5
  "type": "integer"
6
+ },
7
+ "name": {
8
+ "type": "string"
6
9
  }
7
10
  },
8
- "version": 1
11
+ "version": 2
9
12
  }