Skip to content

Commit

Permalink
avniproject/avni-client#1241 - value objects, are embedded now. migra…
Browse files Browse the repository at this point in the history
…tions for point and observation from old schema name to new schema name. every method in realm results proxy.
  • Loading branch information
petmongrels committed Jan 25, 2024
1 parent a8c0036 commit 7589ddb
Show file tree
Hide file tree
Showing 29 changed files with 2,696 additions and 2,567 deletions.
3 changes: 1 addition & 2 deletions src/AddressLevel.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ export class LocationMapping extends BaseEntity {
voided: !!resource.voided,
});
}

}

class AddressLevel extends BaseEntity {
Expand All @@ -81,7 +80,7 @@ class AddressLevel extends BaseEntity {
level: "double",
type: {type: "string", optional: true},
locationMappings: {type: "list", objectType: "LocationMapping"},
locationProperties: {type: "list", objectType: "Observation"},
locationProperties: {type: "list", objectType: "EmbeddedObservation"},
titleLineage: {type: "string", optional: true},
voided: {type: "bool", default: false},
parentUuid: {type: "string", optional: true},
Expand Down
2 changes: 1 addition & 1 deletion src/ChecklistItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class ChecklistItem extends BaseEntity {
uuid: "string",
detail: "ChecklistItemDetail",
completionDate: {type: "date", optional: true},
observations: {type: "list", objectType: "Observation"},
observations: {type: "list", objectType: "EmbeddedObservation"},
checklist: "Checklist",
approvalStatuses: {type: "list", objectType: "EntityApprovalStatus"},
latestEntityApprovalStatus: {type: "EntityApprovalStatus", optional: true}, //Reporting purposes
Expand Down
1 change: 1 addition & 0 deletions src/ChecklistItemStatus.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import SchemaNames from "./SchemaNames";
class ChecklistItemStatus extends PersistedObject {
static schema = {
name: SchemaNames.ChecklistItemStatus,
embedded: true,
properties: {
state: "string",
from: "StringKeyNumericValue",
Expand Down
Loading

0 comments on commit 7589ddb

Please sign in to comment.