Skip to content
This repository has been archived by the owner on Mar 10, 2024. It is now read-only.

Commit

Permalink
feat: salesforce mappers (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
sumanthreddyc authored Feb 29, 2024
1 parent d934b86 commit 19ae326
Show file tree
Hide file tree
Showing 6 changed files with 1,621 additions and 24 deletions.
331 changes: 330 additions & 1 deletion packages/sdk/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -2276,6 +2276,144 @@
}
}
},
"/crm/v2/custom/{id}": {
"get": {
"operationId": "crm-listCustomObjectRecords",
"parameters": [
{
"in": "query",
"name": "type",
"schema": {
"type": "string",
"enum": [
"standard",
"custom"
]
},
"required": true
},
{
"in": "query",
"name": "name",
"schema": {
"type": "string"
},
"required": true
}
],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/crm.metaProperty"
}
}
}
}
},
"400": {
"description": "Invalid input data",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/error.BAD_REQUEST"
}
}
}
},
"404": {
"description": "Not found",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/error.NOT_FOUND"
}
}
}
},
"500": {
"description": "Internal server error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR"
}
}
}
}
}
},
"post": {
"operationId": "crm-createCustomObjectRecord",
"parameters": [
{
"in": "path",
"name": "id",
"schema": {
"type": "string"
},
"required": true,
"description": "The ID of the custom object"
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/crm.CustomObjectRecord"
}
}
}
},
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/crm.CustomObjectRecord"
}
}
}
},
"400": {
"description": "Invalid input data",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/error.BAD_REQUEST"
}
}
}
},
"404": {
"description": "Not found",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/error.NOT_FOUND"
}
}
}
},
"500": {
"description": "Internal server error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR"
}
}
}
}
}
}
},
"/crm/v2/metadata/objects/standard": {
"get": {
"operationId": "crm-metadataListStandardObjects",
Expand Down Expand Up @@ -2334,6 +2472,51 @@
}
}
}
},
"post": {
"operationId": "crm-metadataCreateObjectsSchema",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/crm.metaCustomObject"
}
}
}
},
"responses": {
"201": {
"description": "Custom object created successfully",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/crm.metaCustomObject"
}
}
}
},
"400": {
"description": "Invalid input data",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/error.BAD_REQUEST"
}
}
}
},
"500": {
"description": "Internal server error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR"
}
}
}
}
}
}
},
"/crm/v2/metadata/properties": {
Expand Down Expand Up @@ -2407,7 +2590,153 @@
}
}
}
}
},
"/crm/v2/metadata/associations": {
"get": {
"operationId": "crm-metadataListProperties",
"parameters": [
{
"in": "query",
"name": "type",
"schema": {
"type": "string",
"enum": [
"standard",
"custom"
]
},
"required": true
},
{
"in": "query",
"name": "name",
"schema": {
"type": "string"
},
"required": true
}
],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/crm.metaProperty"
}
}
}
}
},
"400": {
"description": "Invalid input data",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/error.BAD_REQUEST"
}
}
}
},
"404": {
"description": "Not found",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/error.NOT_FOUND"
}
}
}
},
"500": {
"description": "Internal server error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR"
}
}
}
}
}
},
"post": {
"operationId": "crm-metadataCreateAssociation",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"required": ["sourceObject", "targetObject", "id", "label"],
"properties": {
"sourceObject": {
"type": "string"
},
"targetObject": {
"type": "string"
},
"id": {
"type": "string"
},
"label": {
"type": "string"
}
}
}
}
}
},
"responses": {
"201": {
"description": "Association created successfully",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"sourceObject": {
"type": "string"
},
"targetObject": {
"type": "string"
},
"label": {
"type": "string"
}
}
}
}
}
},
"400": {
"description": "Invalid input data",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/error.BAD_REQUEST"
}
}
}
},
"500": {
"description": "Internal server error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/error.INTERNAL_SERVER_ERROR"
}
}
}
}
}
}
}
},
"components": {
"securitySchemes": {
Expand Down
Loading

0 comments on commit 19ae326

Please sign in to comment.