Skip to content

Commit

Permalink
rename: conversation to communication
Browse files Browse the repository at this point in the history
Signed-off-by: Patrizio Bekerle <[email protected]>
  • Loading branch information
pbek committed Aug 7, 2024
1 parent a644d59 commit 57ded26
Show file tree
Hide file tree
Showing 6 changed files with 58 additions and 54 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 0.2.7

- `conversation` got renamed to `communication`

## 0.2.6

- schema creation is now done via the SchemaRetrievalEvent
Expand Down
12 changes: 6 additions & 6 deletions src/TypesenseSync/TypesenseSync.php
Original file line number Diff line number Diff line change
Expand Up @@ -220,22 +220,22 @@ public function addDummyDocuments(string $collectionName, array $personDocuments
];
}

// conversation
// communication
for ($i = 0; $i < 50; ++$i) {
$documents[] = [
'id' => "file-cabinet-conversation.$i",
'objectType' => 'file-cabinet-conversation',
'id' => "file-cabinet-communication.$i",
'objectType' => 'file-cabinet-communication',
'base' => $getRandom($personDocuments)['base'],
'file' => [
'base' => [
'fileName' => $getRandom($fileNames),
'comment' => $getRandom($comment),
'studentLifeCyclePhase' => $getRandom($phases),
'subjectOf' => $getRandom($subjectOf),
'additionalType' => $getRandom(['PhoneCall', 'InPersonConversation']),
'additionalType' => $getRandom(['PhoneCall', 'InPersonCommunication']),
],
'conversation' => [
'abstract' => 'Short description or summarization of the phone call or in-person conversation',
'communication' => [
'abstract' => 'Short description or summarization of the phone call or in-person communication',
'agent' => [
'givenName' => 'James',
'familyName' => 'Bond',
Expand Down
2 changes: 1 addition & 1 deletion tools/GenerateDocumentJsonl.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function getRandomElement($array)
$cities = ['Beverly Hills', 'Atlanta', 'Chicago', 'Dallas', 'Seattle', 'New York', 'San Francisco', 'Phoenix'];
$zipCodes = ['90210', '30303', '60614', '75201', '98101', '10001', '94102', '85001'];
$countries = ['USA'];
$fileObjectTypes = ['fileCitizenshipCertificate', 'fileConversation', 'fileEmail', 'fileLetter', 'filePersonalLicense'];
$fileObjectTypes = ['fileCitizenshipCertificate', 'fileCommunication', 'fileEmail', 'fileLetter', 'filePersonalLicense'];

$lines = [];

Expand Down
2 changes: 1 addition & 1 deletion tools/GenerateFileJsonl.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

declare(strict_types=1);
// Define possible filetypes
$filetypes = ['personalLicence', 'letter', 'email', 'citizenshipCertificate', 'conversation'];
$filetypes = ['personalLicence', 'letter', 'email', 'citizenshipCertificate', 'communication'];

// Function to generate random file size
function generateFileSize(): int
Expand Down
Loading

0 comments on commit 57ded26

Please sign in to comment.