Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancements: Added documentation for new functionalities. #21

Merged
merged 60 commits into from
Aug 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
f866483
Added openAPI Specifications for tasks.
yagnik159 Aug 22, 2023
a01d578
Added create task API sequence Diagram.
yagnik159 Aug 22, 2023
742af00
Restructured notes open api specs and sequence diagram
Raj-Shah1 Aug 23, 2023
c4944de
Updated Postman Collection for Create Task.
yagnik159 Aug 23, 2023
11937fa
Updated success status code from 200 to 204
Raj-Shah1 Aug 23, 2023
01135ee
Added Delete Note Sequence Diagram
Raj-Shah1 Aug 23, 2023
7ec0a1c
Update Postman Collection for create task.
yagnik159 Aug 23, 2023
6ba4a8c
Added openapi spec for suggestion api.
ajinkyac03 Aug 23, 2023
b43aa76
Added suggestions linking in index file.
ajinkyac03 Aug 23, 2023
94262d1
Updated Sequence diagrams.
yagnik159 Aug 23, 2023
b8648d0
Added delete note api in postman collection
Raj-Shah1 Aug 23, 2023
94fc694
Added account notes docs link to index files
Raj-Shah1 Aug 23, 2023
08a76bf
Merge branch 'tasks_docs' into v0.2.0
Raj-Shah1 Aug 24, 2023
a431c88
Added tasks list sequence diagram
Raj-Shah1 Aug 24, 2023
966c80e
Crm org user docs (#11)
yagnik159 Aug 25, 2023
fa85be0
Added openAPI spec and sequence diagram for get accounts feed API
V-R-Dighe Aug 25, 2023
e92db0d
Added openAPI spec and sequence diagram for get accounts feed API
V-R-Dighe Aug 25, 2023
6a4745f
Merge pull request #12 from TrueSparrowSystems/accounts_feed_docs
V-R-Dighe Aug 25, 2023
4e4cff8
Added get tasks list postman collection
Raj-Shah1 Aug 25, 2023
7caf178
Merge branch 'v0.2.0' into suggestions_docs
ajinkyac03 Aug 25, 2023
f4965f2
Added postman collection for CrmAction Suggestions
ajinkyac03 Aug 25, 2023
135fecc
Added entity in Components.
ajinkyac03 Aug 25, 2023
892b7a3
Merge pull request #13 from TrueSparrowSystems/suggestions_docs
ajinkyac03 Aug 25, 2023
fc7cd90
Updated Accounts Open API get method to use entity from account compo…
Raj-Shah1 Aug 25, 2023
b923836
Added accounts feed api in postman collection
V-R-Dighe Aug 28, 2023
be0edf2
Merge pull request #14 from TrueSparrowSystems/accounts_feed_docs
V-R-Dighe Aug 28, 2023
177381c
Updated GetAccounts list sequence diagram
Raj-Shah1 Aug 28, 2023
2019e90
added error response code in get accounts sequence diagram
Raj-Shah1 Aug 28, 2023
07ec230
Added error response code in delete note sequence diagram
Raj-Shah1 Aug 28, 2023
1d01fdd
renamed directory open api specifications
kreloaded Aug 28, 2023
a542c96
renamed directory open api specifications
kreloaded Aug 28, 2023
ce599c0
Moved note open api entities to components
Raj-Shah1 Aug 28, 2023
919888c
Merge branch 'v0.2.0' into renaming_changes
kreloaded Aug 28, 2023
6002992
Merge pull request #15 from TrueSparrowSystems/renaming_changes
kreloaded Aug 28, 2023
5d2194a
Added openAPI spec and sequence diagram for delete account task.
yagnik159 Aug 28, 2023
c565e06
Merge branch 'v0.2.0' of https://github.com/TrueSparrowSystems/AI-Sal…
yagnik159 Aug 28, 2023
69ae3e1
updated create note sequence diagram
kreloaded Aug 28, 2023
842fde2
Moved task open api entities to components
Raj-Shah1 Aug 28, 2023
3b3c880
Merge branch 'v0.2.0' into create_note_v2
kreloaded Aug 28, 2023
0fc6f86
updated create note sequence diagram
kreloaded Aug 28, 2023
770b97e
Merge pull request #16 from TrueSparrowSystems/create_note_v2
AMAN-BARBARIA Aug 28, 2023
e78ea36
Moved crm organization user open api entities to components
Raj-Shah1 Aug 28, 2023
8654ea0
Added postman collection for delete task.
yagnik159 Aug 28, 2023
afafa5b
Added openAPI specifications of disconnect user API
V-R-Dighe Aug 28, 2023
3affae9
Merge pull request #17 from TrueSparrowSystems/disconnect-user-docs
V-R-Dighe Aug 28, 2023
6de5350
Updated sequence diagram with error codes.
ajinkyac03 Aug 28, 2023
e35b2dd
Updated error status code
Raj-Shah1 Aug 28, 2023
a4e16ca
Updated sequence diagram with error code.
yagnik159 Aug 28, 2023
1d23551
Added url encode and escape special character note
Raj-Shah1 Aug 28, 2023
e1836f1
Added changes of urlEncoding and escapeChar.
yagnik159 Aug 28, 2023
c68661d
added architecture diagram
kreloaded Aug 29, 2023
a314925
updated architecture diagram
kreloaded Aug 29, 2023
3d3a69b
Merge pull request #18 from TrueSparrowSystems/architecture_diagram
rachinkapoor Aug 29, 2023
47b9dd4
Added Document on how to configure Salesforce Account
AMAN-BARBARIA Aug 29, 2023
c0a7ee6
Merge pull request #19 from TrueSparrowSystems/salesforce-configurati…
AMAN-BARBARIA Aug 29, 2023
ed66502
Added index for suggestions sequence diagram.
ajinkyac03 Aug 30, 2023
a64a9d7
Added sequence diagram and postman collection for disconnect user API
V-R-Dighe Aug 30, 2023
c6f0fa8
updated search crm-org-user sequence diagram.
yagnik159 Aug 31, 2023
4ee1d64
added open ai in architecture diagram
kreloaded Aug 31, 2023
a1e9205
Merge pull request #20 from TrueSparrowSystems/architecture_diagram
kreloaded Aug 31, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@ Welcome to the documentation for SalesSparrow. This document serves as a central
## Table of Contents

### SalesSparrow API
- [OpenAPI Specification](./openapiSpecifications/index.md)
- [OpenAPI Specification](./openApiSpecifications/index.md)
- [Sequence Diagrams](./sequenceDiagrams/index.md)
- [Database Schema](dbSchema.dbml)
- [Postman Collection](./postman/AI-Sales-Sparrow.postman_collection.json)
- [Postman Environment](./postman/AI-Sales-Sparrow-local.postman_environment.json)
- [Salesforce Connected App Setup](salesforceConnectedAppSetup.md)
- [Salesforce Configuration Guide](salesforceConfigurationGuide.md)
- [Architecture Diagram](architectureDiagram.png)

### SalesSparrow App

Expand Down
Binary file added architectureDiagram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -106,23 +106,12 @@ paths:
example: "0691e000001WXlcAAG"
note_map_by_id:
type: object
description: Map of notes by ID
properties:
0691e000001WXlcAAG:
type: object
properties:
id:
type: string
example: "0691e000001WXlcAAG"
creator:
type: string
example: "xyz"
text_preview:
type: string
example: "Note Full Content"
last_modified_time:
type: string
format: date-time
example: "2019-10-12T07:20:50.52Z"
$ref: 'Components.yaml#/components/schemas/note'

/v1/accounts/{account_id}/notes/{note_id}:
get:
Expand Down Expand Up @@ -169,16 +158,40 @@ paths:
note_detail:
type: object
properties:
id:
type: string
example: "0691e000001WXlcAAG"
creator:
type: string
example: "xyz"
text:
type: string
example: "Note Full Content"
last_modified_time:
type: string
format: date-time
example: "2019-10-12T07:20:50.52Z"
$ref: 'Components.yaml#/components/schemas/note_detail'
delete:
description: Delete note for the given note id.
parameters:
- name: account_id
description: Account Id
in: path
required: true
schema:
type: string
- name: note_id
description: Note Id
in: path
required: true
schema:
type: string
responses:
'401':
description: Unauthorized access
content:
application/json:
schema:
$ref: 'Components.yaml#/components/schemas/response_401'
'404':
description: Not Found
content:
application/json:
schema:
$ref: 'Components.yaml#/components/schemas/response_404'
'500':
description: Something went wrong
content:
application/json:
schema:
$ref: 'Components.yaml#/components/schemas/response_500'
'204':
description: Success
166 changes: 166 additions & 0 deletions openApiSpecifications/AccountTasks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,166 @@
openapi: 3.0.3
info:
title: SalesSparrow Account Tasks API's
description: Following api's will be called from the SalesSparrow application
version: '1.0'
servers:
- url: https://sales.truesparrow.com/api
paths:
/v1/accounts/{account_id}/tasks:
post:
description: Api will create task
parameters:
- name: account_id
in: path
description: Account Id
required: true
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
crm_organization_user_id:
type: string
example: '00U1e000003TnVXEA1'
description:
type: string
example: 'Complete remaining task'
due_date:
type: string
format: date
example: '2023-07-21'
required:
- crm_organization_user_id
- description
- due_date
responses:
'201':
description: Success
content:
application/json:
schema:
type: object
properties:
task_id:
type: string
example: "00U1e000003TnVXEA0"
'400':
description: "Bad Request"
content:
application/json:
schema:
$ref: 'Components.yaml#/components/schemas/response_400'
'401':
description: Unauthorized access
content:
application/json:
schema:
$ref: 'Components.yaml#/components/schemas/response_401'
'404':
description: Not Found
content:
application/json:
schema:
$ref: 'Components.yaml#/components/schemas/response_404'
'500':
description: Something went wrong
content:
application/json:
schema:
$ref: 'Components.yaml#/components/schemas/response_500'

get:
description: Api will return list of tasks for accountId
parameters:
- name: account_id
in: path
description: Account Id
required: true
schema:
type: string
responses:
'200':
description: Success
content:
application/json:
schema:
type: object
properties:
task_ids:
type: array
items:
type: string
example: "00U1e000003TUB8EAO"
task_map_by_id:
type: object
properties:
00U1e000003TUB8EAO:
type: object
properties:
$ref: 'Components.yaml#/components/schemas/task'
'400':
description: "Bad Request"
content:
application/json:
schema:
$ref: 'Components.yaml#/components/schemas/response_400'
'401':
description: Unauthorized access
content:
application/json:
schema:
$ref: 'Components.yaml#/components/schemas/response_401'
'404':
description: Not Found
content:
application/json:
schema:
$ref: 'Components.yaml#/components/schemas/response_404'
'500':
description: Something went wrong
content:
application/json:
schema:
$ref: 'Components.yaml#/components/schemas/response_500'

/v1/accounts/{account_id}/tasks/{task_id}:
delete:
description: Delete task for the given task id.
parameters:
- name: account_id
description: Account Id
in: path
required: true
schema:
type: string
- name: task_id
description: Task Id
in: path
required: true
schema:
type: string
responses:
'401':
description: Unauthorized access
content:
application/json:
schema:
$ref: 'Components.yaml#/components/schemas/response_401'
'404':
description: Not Found
content:
application/json:
schema:
$ref: 'Components.yaml#/components/schemas/response_404'
'500':
description: Something went wrong
content:
application/json:
schema:
$ref: 'Components.yaml#/components/schemas/response_500'
'204':
description: Success
Loading