From 78ae75ad5d3c18835e5e1ee8ec56203681ba6293 Mon Sep 17 00:00:00 2001 From: klauselhai Date: Wed, 23 Feb 2022 18:28:28 +0700 Subject: [PATCH 01/13] MSI-56 configure microsoft 365 search --- api.swagger.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/api.swagger.yaml b/api.swagger.yaml index 0982b4fb..36d2dabf 100644 --- a/api.swagger.yaml +++ b/api.swagger.yaml @@ -12240,6 +12240,14 @@ components: - short_description - one_line - none + microsoft_365: + description: Configuration for microsoft 365 + type: object + properties: + search: + description: This field is known as enable search in the Microsoft 365 + type: boolean + example: false administration-schema-update: type: object properties: @@ -12255,6 +12263,14 @@ components: - short_description - one_line - none + microsoft_365: + description: Configuration for microsoft 365 + type: object + properties: + search: + description: Configure for microsoft 365 search + type: boolean + example: false branding-schema: properties: logo: From 34a38524fc415b754234fccd9835abf16e65c3f7 Mon Sep 17 00:00:00 2001 From: klauselhai Date: Thu, 3 Mar 2022 22:49:49 +0700 Subject: [PATCH 02/13] MSI-65 handle new notification type --- api.swagger.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api.swagger.yaml b/api.swagger.yaml index 0982b4fb..c1b72d30 100644 --- a/api.swagger.yaml +++ b/api.swagger.yaml @@ -12894,6 +12894,7 @@ components: - invotra.comment.like - invotra.group.pending - invotra.group.added + - invotra.file.share status: description: Whether the notification has been read or not type: boolean @@ -12910,6 +12911,7 @@ components: - node - user - comment + - file target_subtype: description: This is the subtype (or "bundle" in Drupal parlance) of the entity that the notification links to type: string From baa30787fc6006142dfac8efef8761e55529416d Mon Sep 17 00:00:00 2001 From: siarhei-hrynevich Date: Mon, 15 Aug 2022 14:13:50 +0300 Subject: [PATCH 03/13] MSI-67 add message type property to post --- api.swagger.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/api.swagger.yaml b/api.swagger.yaml index 68ea306b..8651c4e6 100644 --- a/api.swagger.yaml +++ b/api.swagger.yaml @@ -14202,6 +14202,15 @@ components: type: string source: type: string + message_type: + type: string + enum: + - group_groupadd + - user_updated + - comment_created + - comment_updated + - node_created + - node_updated post-schema-update: allOf: - $ref: '#/components/schemas/post-schema-common' From 861d5aa9d97c91c8397532036db2a0aea51aad06 Mon Sep 17 00:00:00 2001 From: siarhei-hrynevich Date: Mon, 17 Oct 2022 10:40:34 +0300 Subject: [PATCH 04/13] MSI-62 Add integrations field to schema --- api.swagger.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/api.swagger.yaml b/api.swagger.yaml index 17db60c5..6ce2fb29 100644 --- a/api.swagger.yaml +++ b/api.swagger.yaml @@ -896,6 +896,15 @@ paths: - asc - desc default: desc + - description: Enabled integrations for user + in: query + name: integrations + schema: + type: array + values: + type: string + enum: + - microsoft365 - $ref: '#/components/parameters/offsetParam' - $ref: '#/components/parameters/limitParam' responses: From 0624c9fca70b990a129fac6e4be674668c4750e3 Mon Sep 17 00:00:00 2001 From: siarhei-hrynevich Date: Mon, 17 Oct 2022 12:33:13 +0300 Subject: [PATCH 05/13] MSI-62 Fix schema --- api.swagger.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api.swagger.yaml b/api.swagger.yaml index 6ce2fb29..3d699f79 100644 --- a/api.swagger.yaml +++ b/api.swagger.yaml @@ -901,7 +901,7 @@ paths: name: integrations schema: type: array - values: + items: type: string enum: - microsoft365 From 6e92fa869eae1ac0c1be85036c6d69ff183d1920 Mon Sep 17 00:00:00 2001 From: siarhei-hrynevich Date: Mon, 17 Oct 2022 18:47:49 +0300 Subject: [PATCH 06/13] MSI-64 Add schema for create notification endpoint --- api.swagger.yaml | 63 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) diff --git a/api.swagger.yaml b/api.swagger.yaml index 17db60c5..cd60fe48 100644 --- a/api.swagger.yaml +++ b/api.swagger.yaml @@ -12017,6 +12017,28 @@ paths: - SessionCookieHeader: [] - APIKeyHeader: [] - CognitoJwt: [ invotra/notifications:write ] + /notifications: + post: + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/create-notifications-schema' + required: true + tags: + - notifications + description: Share entity thought notifications. + responses: + '201': + description: The token and device id was registered successfully. + '404': + description: Entity not found. + '422': + description: Unprocessable entity. + security: + - SessionCookieHeader: [] + - APIKeyHeader: [] + - CognitoJwt: [ invotra/notifications:write ] /feeds/status: get: tags: @@ -20651,6 +20673,47 @@ components: - ios - android type: object + create-notifications-schema: + properties: + author: + description: Author uuid. + type: string + format: uuid + example: 01234567-89ab-cdef-1234-56789abcdef0 + recipient: + description: Recipient uuid. + type: string + format: uuid + example: 01234567-89ab-cdef-1234-56789abcdef0 + type: + type: string + enum: + - 'invotra.user.follow' + - 'invotra.user.mention' + - 'invotra.user.shared' + - 'invotra.m365.shared' + - 'invotra.post.comment' + - 'invotra.comment.reply' + - 'invotra.post.like' + - 'invotra.comment.like' + - 'invotra.webform.type.created' + - 'invotra.webform.type.assignee' + - 'invotra.group.added' + - 'invotra.group.pending' + - 'invotra.group.adminless' + - 'invotra.video.uploaded' + - 'invotra.workflow.updated' + entity_type: + type: string + enum: + - file + entity_uuid: + description: Sharing entity uuid. + type: string + format: uuid + example: 01234567-89ab-cdef-1234-56789abcdef0 + + type: object location-context-list-item-schema: type: object properties: From 69a86529a293ac5398ba5ddc1f73b4d13bae1581 Mon Sep 17 00:00:00 2001 From: siarhei-hrynevich Date: Tue, 18 Oct 2022 22:09:45 +0300 Subject: [PATCH 07/13] MSI-64 Add ms365 file types --- api.swagger.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/api.swagger.yaml b/api.swagger.yaml index cd60fe48..7959a744 100644 --- a/api.swagger.yaml +++ b/api.swagger.yaml @@ -7306,6 +7306,11 @@ paths: - other_document_types - pdf - video + - ms_onedrive + - ms_docx + - ms_xlsx + - ms_pptx + - ms_onenote - name: filemime description: 'Filter by file MIME type.' in: query @@ -20233,6 +20238,11 @@ components: - other_document_types - pdf - video + - ms_onedrive + - ms_docx + - ms_xlsx + - ms_pptx + - ms_onenote file-type-configuration-schema: type: object required: @@ -20252,6 +20262,11 @@ components: - other_document_types - pdf - video + - ms_onedrive + - ms_docx + - ms_xlsx + - ms_pptx + - ms_onenote extensions: description: 'The file extensions permitted within the file type.' type: array From ec9c5f81ec8a1848a44e5637f7daccbe51466243 Mon Sep 17 00:00:00 2001 From: siarhei-hrynevich Date: Wed, 2 Nov 2022 16:08:37 +0300 Subject: [PATCH 08/13] MSI-44 Add share file endpoint --- api.swagger.yaml | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/api.swagger.yaml b/api.swagger.yaml index 17db60c5..12b14108 100644 --- a/api.swagger.yaml +++ b/api.swagger.yaml @@ -7503,6 +7503,36 @@ paths: - SessionCookieHeader: [] - APIKeyHeader: [] - CognitoJwt: [ invotra/files:write ] + '/files/{file_id}/share': + parameters: + - description: The Invotra UUID of the file. + in: path + name: file_id + required: true + schema: + type: string + format: uuid + put: + tags: + - files + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/file-schema-share' + responses: + '200': + description: The file was shared successfully. + '400': + description: The supplied UUID or JSON was malformed. + '404': + description: Group, user or file is not exist. + '422': + description: Group and user UUIDs were passed both or none of them. + security: + - SessionCookieHeader: [] + - APIKeyHeader: [] + - CognitoJwt: [ invotra/files:read ] /job_roles: get: deprecated: true @@ -20236,6 +20266,20 @@ components: items: type: string example: '.mp3' + file-schema-share: + type: object + required: + - message + properties: + user_uuid: + type: string + format: uuid + group_uuid: + type: string + format: uuid + message: + type: string + format: uuid job-role-schema: allOf: - type: object From 8259a2aa37ff581f0b877a3a8abfbafe3032d086 Mon Sep 17 00:00:00 2001 From: siarhei-hrynevich Date: Thu, 3 Nov 2022 12:15:07 +0300 Subject: [PATCH 09/13] MSI-56 Fix merge conflict --- api.swagger.yaml | 3 --- 1 file changed, 3 deletions(-) diff --git a/api.swagger.yaml b/api.swagger.yaml index f4b51d30..c3d8cc3f 100644 --- a/api.swagger.yaml +++ b/api.swagger.yaml @@ -12612,7 +12612,6 @@ components: - short_description - one_line - none -<<<<<<< HEAD microsoft_365: description: Configuration for microsoft 365 type: object @@ -12621,7 +12620,6 @@ components: description: Configure for microsoft 365 search type: boolean example: false -======= franchise_settings: description: The franchise setting type: object @@ -12647,7 +12645,6 @@ components: required: - label - merge_tag ->>>>>>> MSI.SWAGGER-5.36 branding-schema: properties: logo: From b60a7c0efd413dc30f7f565aef4e7ec188b4a004 Mon Sep 17 00:00:00 2001 From: siarhei-hrynevich Date: Tue, 6 Dec 2022 14:50:17 +0300 Subject: [PATCH 10/13] MSI-64 Add relevance sort option --- api.swagger.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/api.swagger.yaml b/api.swagger.yaml index e932078e..acb4ed9f 100644 --- a/api.swagger.yaml +++ b/api.swagger.yaml @@ -7403,6 +7403,7 @@ paths: - timestamp_created - timestamp_updated - file_usage_count + - relevance default: timestamp_created - name: order description: 'Sort order.' From 515abda674596745aaf22e3768af66909b3b8934 Mon Sep 17 00:00:00 2001 From: siarhei-hrynevich Date: Tue, 20 Dec 2022 17:57:36 +0300 Subject: [PATCH 11/13] MSI-64 Add microsoft file share endpoint --- api.swagger.yaml | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/api.swagger.yaml b/api.swagger.yaml index acb4ed9f..851c7974 100644 --- a/api.swagger.yaml +++ b/api.swagger.yaml @@ -7548,6 +7548,28 @@ paths: - SessionCookieHeader: [] - APIKeyHeader: [] - CognitoJwt: [ invotra/files:read ] + '/files/share-microsoft-file': + put: + tags: + - files + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/microsoft-file-schema-share' + responses: + '200': + description: The file was shared successfully. + '400': + description: The supplied UUID or JSON was malformed. + '404': + description: Group, user or file is not exist. + '422': + description: Group and user UUIDs were passed both or none of them. + security: + - SessionCookieHeader: [] + - APIKeyHeader: [] + - CognitoJwt: [ invotra/files:read ] /job_roles: get: deprecated: true @@ -20350,6 +20372,32 @@ components: message: type: string format: uuid + microsoft-file-schema-share: + type: object + required: + - file + - share_options + properties: + file: + type: object + required: + - filename + - filemime + - url + properties: + filename: + type: string + example: 'image.jpg' + filemime: + type: string + example: 'image/jpg' + url: + type: string + example: 'https://1drv.ms/i/s!AF0oTJKSfiiDcb' + share_options: + type: object + allOf: + - $ref: '#/components/schemas/comment-schema-common' job-role-schema: allOf: - type: object From 3c3cd4f04383890d68a6028fb4b65c00b6960529 Mon Sep 17 00:00:00 2001 From: siarhei-hrynevich Date: Tue, 20 Dec 2022 17:58:55 +0300 Subject: [PATCH 12/13] MSI-64 Add user id to users endpoints --- api.swagger.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/api.swagger.yaml b/api.swagger.yaml index 851c7974..d95ebeb0 100644 --- a/api.swagger.yaml +++ b/api.swagger.yaml @@ -13602,6 +13602,11 @@ components: format: uuid example: 01234567-89ab-cdef-1234-56789abcdef0 readOnly: true + uuid: + description: The id of the user + type: string + example: '1241' + readOnly: true username: description: The user's username type: string From 5f257d46e5f57f5119ba23ef474036cb6bd69543 Mon Sep 17 00:00:00 2001 From: siarhei-hrynevich Date: Tue, 20 Dec 2022 18:38:58 +0300 Subject: [PATCH 13/13] MSI-64 Fix schema --- api.swagger.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api.swagger.yaml b/api.swagger.yaml index d95ebeb0..96ef59a9 100644 --- a/api.swagger.yaml +++ b/api.swagger.yaml @@ -20402,7 +20402,7 @@ components: share_options: type: object allOf: - - $ref: '#/components/schemas/comment-schema-common' + - $ref: '#/components/schemas/file-schema-share' job-role-schema: allOf: - type: object