Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@
},
"devDependencies": {
"@oclif/core": "^4.11.4",
"@oclif/plugin-command-snapshot": "^5.3.22",
"@oclif/plugin-command-snapshot": "^5.3.31",
"@oclif/test": "^4.1.18",
"@salesforce/cli-plugins-testkit": "^5.3.58",
"@salesforce/dev-scripts": "^11.0.4",
Expand Down
45 changes: 45 additions & 0 deletions schemas/data-bulk-results.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$ref": "#/definitions/DataBulkResultsResult",
"definitions": {
"DataBulkResultsResult": {
"type": "object",
"properties": {
"status": {
"type": "string",
"enum": ["Open", "UploadComplete", "InProgress", "JobComplete", "Aborted", "Failed"]
},
"operation": {
"$ref": "#/definitions/IngestOperation"
},
"object": {
"type": "string"
},
"processedRecords": {
"type": "number"
},
"successfulRecords": {
"type": "number"
},
"failedRecords": {
"type": "number"
},
"successFilePath": {
"type": "string"
},
"failedFilePath": {
"type": "string"
},
"unprocessedFilePath": {
"type": "string"
}
},
"required": ["status", "operation", "object", "processedRecords", "successFilePath"],
"additionalProperties": false
},
"IngestOperation": {
"type": "string",
"enum": ["insert", "update", "upsert", "delete", "hardDelete"]
}
}
}
40 changes: 40 additions & 0 deletions schemas/data-create-file.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$ref": "#/definitions/ContentVersion",
"definitions": {
"ContentVersion": {
"type": "object",
"properties": {
"Id": {
"type": "string"
},
"attributes": {
"type": "object",
"properties": {
"type": {
"type": "string"
},
"url": {
"type": "string"
}
},
"required": ["type", "url"]
},
"Title": {
"type": "string"
},
"FileExtension": {
"type": "string"
},
"VersionData": {
"type": "string"
},
"ContentDocumentId": {
"type": "string",
"description": "this could be undefined outside of our narrow use case (created files)"
}
},
"required": ["ContentDocumentId", "FileExtension", "Title", "VersionData"]
}
}
}
69 changes: 69 additions & 0 deletions schemas/data-create-record.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$ref": "#/definitions/SaveResult",
"definitions": {
"SaveResult": {
"anyOf": [
{
"type": "object",
"properties": {
"success": {
"type": "boolean",
"const": true
},
"id": {
"type": "string"
},
"errors": {
"type": "array",
"items": {
"not": {}
}
}
},
"required": ["success", "id", "errors"],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"success": {
"type": "boolean",
"const": false
},
"id": {
"not": {}
},
"errors": {
"type": "array",
"items": {
"$ref": "#/definitions/SaveError"
}
}
},
"required": ["success", "errors"],
"additionalProperties": false
}
]
},
"SaveError": {
"type": "object",
"properties": {
"errorCode": {
"type": "string"
},
"message": {
"type": "string"
},
"fields": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": ["errorCode", "message"],
"additionalProperties": false
}
}
}
166 changes: 166 additions & 0 deletions schemas/data-delete-resume.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,166 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$ref": "#/definitions/BulkResultV2",
"definitions": {
"BulkResultV2": {
"type": "object",
"properties": {
"jobInfo": {
"$ref": "#/definitions/JobInfoV2"
},
"records": {
"$ref": "#/definitions/BulkRecordsV2"
}
},
"required": ["jobInfo"],
"additionalProperties": false
},
"JobInfoV2": {
"type": "object",
"additionalProperties": false,
"properties": {
"apexProcessingTime": {
"type": "number"
},
"apiActiveProcessingTime": {
"type": "number"
},
"assignmentRuleId": {
"type": "string"
},
"contentUrl": {
"type": "string"
},
"errorMessage": {
"type": "string"
},
"externalIdFieldName": {
"type": "string"
},
"jobType": {
"type": "string",
"enum": ["BigObjectIngest", "Classic", "V2Ingest"]
},
"operation": {
"$ref": "#/definitions/IngestOperation"
},
"state": {
"type": "string",
"enum": ["Open", "UploadComplete", "InProgress", "JobComplete", "Aborted", "Failed"]
},
"numberRecordsFailed": {
"type": "number"
},
"id": {
"type": "string"
},
"object": {
"type": "string"
},
"createdById": {
"type": "string"
},
"createdDate": {
"type": "string"
},
"systemModstamp": {
"type": "string"
},
"apiVersion": {
"type": "number"
},
"lineEnding": {
"type": "string",
"enum": ["LF", "CRLF"]
},
"columnDelimiter": {
"type": "string",
"enum": ["BACKQUOTE", "CARET", "COMMA", "PIPE", "SEMICOLON", "TAB"]
},
"concurrencyMode": {
"type": "string",
"const": "Parallel"
},
"contentType": {
"type": "string",
"const": "CSV"
},
"numberRecordsProcessed": {
"type": "number"
},
"retries": {
"type": "number"
},
"totalProcessingTime": {
"type": "number"
}
},
"required": [
"apexProcessingTime",
"apiActiveProcessingTime",
"apiVersion",
"columnDelimiter",
"concurrencyMode",
"contentType",
"contentUrl",
"createdById",
"createdDate",
"id",
"jobType",
"lineEnding",
"numberRecordsFailed",
"numberRecordsProcessed",
"object",
"operation",
"retries",
"state",
"systemModstamp",
"totalProcessingTime"
]
},
"IngestOperation": {
"type": "string",
"enum": ["insert", "update", "upsert", "delete", "hardDelete"]
},
"BulkRecordsV2": {
"type": "object",
"properties": {
"successfulResults": {
"type": "array",
"items": {
"$ref": "#/definitions/BulkProcessedRecordV2"
}
},
"failedResults": {
"type": "array",
"items": {
"$ref": "#/definitions/BulkProcessedRecordV2"
}
},
"unprocessedRecords": {
"type": "array",
"items": {
"$ref": "#/definitions/BulkProcessedRecordV2"
}
},
"unparsed": {
"type": "string"
}
},
"required": ["successfulResults", "failedResults", "unprocessedRecords"],
"additionalProperties": false
},
"BulkProcessedRecordV2": {
"type": "object",
"properties": {
"sf__Created": {
"type": "string",
"enum": ["true", "false"]
},
"sf__Id": {
"type": "string"
}
}
}
}
}
22 changes: 22 additions & 0 deletions schemas/data-export-bulk.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$ref": "#/definitions/DataExportBulkResult",
"definitions": {
"DataExportBulkResult": {
"type": "object",
"properties": {
"jobId": {
"type": "string"
},
"totalSize": {
"type": "number"
},
"filePath": {
"type": "string"
}
},
"required": ["filePath"],
"additionalProperties": false
}
}
}
19 changes: 19 additions & 0 deletions schemas/data-export-resume.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$ref": "#/definitions/DataExportResumeResult",
"definitions": {
"DataExportResumeResult": {
"type": "object",
"properties": {
"totalSize": {
"type": "number"
},
"filePath": {
"type": "string"
}
},
"required": ["totalSize", "filePath"],
"additionalProperties": false
}
}
}
Loading
Loading