global-registry-bindings 0.6.2 → 0.6.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (101) hide show
  1. checksums.yaml +4 -4
  2. data/lib/global_registry_bindings/entity/entity_type_methods.rb +16 -18
  3. data/lib/global_registry_bindings/entity/mdm_methods.rb +11 -12
  4. data/lib/global_registry_bindings/entity/push_entity_methods.rb +23 -23
  5. data/lib/global_registry_bindings/entity/push_relationship_methods.rb +18 -18
  6. data/lib/global_registry_bindings/entity/relationship_type_methods.rb +26 -26
  7. data/lib/global_registry_bindings/exceptions.rb +7 -2
  8. data/lib/global_registry_bindings/global_registry_bindings.rb +19 -19
  9. data/lib/global_registry_bindings/model/delete_entity.rb +4 -4
  10. data/lib/global_registry_bindings/model/entity.rb +25 -25
  11. data/lib/global_registry_bindings/model/pull_mdm.rb +5 -5
  12. data/lib/global_registry_bindings/model/push_entity.rb +4 -4
  13. data/lib/global_registry_bindings/model/push_relationship.rb +10 -8
  14. data/lib/global_registry_bindings/model/relationship.rb +18 -18
  15. data/lib/global_registry_bindings/options/entity_class_options.rb +15 -15
  16. data/lib/global_registry_bindings/options/entity_instance_options.rb +11 -11
  17. data/lib/global_registry_bindings/options/entity_options_parser.rb +3 -3
  18. data/lib/global_registry_bindings/options/relationship_class_options.rb +22 -22
  19. data/lib/global_registry_bindings/options/relationship_instance_options.rb +12 -12
  20. data/lib/global_registry_bindings/options/relationship_options_parser.rb +7 -7
  21. data/lib/global_registry_bindings/options.rb +6 -6
  22. data/lib/global_registry_bindings/railtie.rb +7 -7
  23. data/lib/global_registry_bindings/testing.rb +3 -3
  24. data/lib/global_registry_bindings/version.rb +3 -3
  25. data/lib/global_registry_bindings/worker.rb +5 -5
  26. data/lib/global_registry_bindings/workers/delete_entity_worker.rb +3 -3
  27. data/lib/global_registry_bindings/workers/pull_mdm_id_worker.rb +5 -5
  28. data/lib/global_registry_bindings/workers/push_entity_worker.rb +6 -6
  29. data/lib/global_registry_bindings/workers/push_relationship_worker.rb +6 -6
  30. data/lib/global_registry_bindings.rb +3 -3
  31. metadata +16 -156
  32. data/spec/acceptance/global_registry_bindings_spec.rb +0 -191
  33. data/spec/factories/factories.rb +0 -72
  34. data/spec/fixtures/get_entities_person.json +0 -8
  35. data/spec/fixtures/get_entities_person_mdm.json +0 -13
  36. data/spec/fixtures/get_entities_person_relationship.json +0 -32
  37. data/spec/fixtures/get_entity_types.json +0 -9
  38. data/spec/fixtures/get_entity_types_address.json +0 -59
  39. data/spec/fixtures/get_entity_types_address_partial.json +0 -43
  40. data/spec/fixtures/get_entity_types_area.json +0 -44
  41. data/spec/fixtures/get_entity_types_community.json +0 -18
  42. data/spec/fixtures/get_entity_types_fancy_org.json +0 -43
  43. data/spec/fixtures/get_entity_types_fancy_org_assignment.json +0 -35
  44. data/spec/fixtures/get_entity_types_fancy_org_partial.json +0 -35
  45. data/spec/fixtures/get_entity_types_ministry.json +0 -18
  46. data/spec/fixtures/get_entity_types_person.json +0 -42
  47. data/spec/fixtures/get_entity_types_person_partial.json +0 -34
  48. data/spec/fixtures/get_relationship_types.json +0 -9
  49. data/spec/fixtures/get_relationship_types_person_fancy_org.json +0 -41
  50. data/spec/fixtures/get_relationship_types_person_fancy_org_partial.json +0 -33
  51. data/spec/fixtures/post_entities_community.json +0 -8
  52. data/spec/fixtures/post_entities_fancy_org.json +0 -8
  53. data/spec/fixtures/post_entities_fancy_org_parent.json +0 -8
  54. data/spec/fixtures/post_entities_person.json +0 -8
  55. data/spec/fixtures/post_entity_types_address.json +0 -9
  56. data/spec/fixtures/post_entity_types_fancy_org.json +0 -9
  57. data/spec/fixtures/post_entity_types_person.json +0 -9
  58. data/spec/fixtures/post_relationship_types_assigned_by.json +0 -16
  59. data/spec/fixtures/post_relationship_types_community_ministry.json +0 -16
  60. data/spec/fixtures/post_relationship_types_fancy_org_area.json +0 -16
  61. data/spec/fixtures/post_relationship_types_person_fancy_org.json +0 -16
  62. data/spec/fixtures/put_entities_address.json +0 -20
  63. data/spec/fixtures/put_entities_community_relationship.json +0 -16
  64. data/spec/fixtures/put_entities_fancy_org_area_relationship.json +0 -8
  65. data/spec/fixtures/put_entities_fancy_org_assignment_assigned_by.json +0 -20
  66. data/spec/fixtures/put_entities_fancy_org_relationship.json +0 -17
  67. data/spec/fixtures/put_entities_person_country_relationship.json +0 -23
  68. data/spec/fixtures/put_entities_person_relationship.json +0 -29
  69. data/spec/fixtures/put_entities_relationship.json +0 -8
  70. data/spec/fixtures/put_entities_relationship_400.json +0 -3
  71. data/spec/fixtures/put_relationship_types_fields.json +0 -33
  72. data/spec/fixtures/put_relationship_types_fields_fancy_org_area.json +0 -25
  73. data/spec/helpers/sidekiq_helpers.rb +0 -14
  74. data/spec/internal/app/models/address.rb +0 -17
  75. data/spec/internal/app/models/application_record.rb +0 -5
  76. data/spec/internal/app/models/area.rb +0 -7
  77. data/spec/internal/app/models/assignment.rb +0 -21
  78. data/spec/internal/app/models/community.rb +0 -20
  79. data/spec/internal/app/models/country.rb +0 -8
  80. data/spec/internal/app/models/default.rb +0 -6
  81. data/spec/internal/app/models/namespaced/person/user_edited.rb +0 -8
  82. data/spec/internal/app/models/namespaced/person.rb +0 -68
  83. data/spec/internal/app/models/organization.rb +0 -37
  84. data/spec/internal/config/database.yml +0 -4
  85. data/spec/internal/config/initializers/global_registry.rb +0 -8
  86. data/spec/internal/config/routes.rb +0 -5
  87. data/spec/internal/db/schema.rb +0 -75
  88. data/spec/internal/db/test.sqlite +0 -0
  89. data/spec/internal/log/test.log +0 -1457
  90. data/spec/models/address_spec.rb +0 -30
  91. data/spec/models/assignment_spec.rb +0 -54
  92. data/spec/models/organization_spec.rb +0 -125
  93. data/spec/models/person_spec.rb +0 -191
  94. data/spec/models/testing_spec.rb +0 -55
  95. data/spec/models/user_edited_person_spec.rb +0 -14
  96. data/spec/options/if_unless_spec.rb +0 -147
  97. data/spec/spec_helper.rb +0 -52
  98. data/spec/workers/delete_gr_entity_worker_spec.rb +0 -33
  99. data/spec/workers/pull_mdm_id_worker_spec.rb +0 -133
  100. data/spec/workers/push_entity_worker_spec.rb +0 -506
  101. data/spec/workers/push_relationship_worker_spec.rb +0 -503
@@ -1,44 +0,0 @@
1
- {
2
- "entity_types": [
3
- {
4
- "id": "548852c6-d55e-11e3-897f-12725f8f377c",
5
- "name": "area",
6
- "description": "Areas",
7
- "data_visibility": "public",
8
- "fields": [
9
- {
10
- "id": "428acf06-d6ab-11e3-ae81-12725f8f377c",
11
- "name": "area_code",
12
- "data_visibility": "public",
13
- "field_type": "string",
14
- "is_editable": true,
15
- "unique_value": false
16
- },
17
- {
18
- "id": "39b33954-d6ab-11e3-aa70-12725f8f377c",
19
- "name": "area_name",
20
- "data_visibility": "public",
21
- "field_type": "string",
22
- "is_editable": true,
23
- "unique_value": false
24
- },
25
- {
26
- "id": "4f12bd4c-d6ab-11e3-b0c9-12725f8f377c",
27
- "name": "is_active",
28
- "data_visibility": "public",
29
- "field_type": "boolean",
30
- "is_editable": true,
31
- "unique_value": false
32
- }
33
- ],
34
- "is_editable": true,
35
- "unique_value": false
36
- }
37
- ],
38
- "meta": {
39
- "page": 1,
40
- "next_page": false,
41
- "from": 1,
42
- "to": 1
43
- }
44
- }
@@ -1,18 +0,0 @@
1
- {
2
- "entity_types": [
3
- {
4
- "id": "3d8a68df-72f3-45f0-848b-4a6322448a6c",
5
- "name": "community",
6
- "data_visibility": "public",
7
- "fields": [],
8
- "is_editable": true,
9
- "unique_value": false
10
- }
11
- ],
12
- "meta": {
13
- "page": 1,
14
- "next_page": false,
15
- "from": 1,
16
- "to": 1
17
- }
18
- }
@@ -1,43 +0,0 @@
1
- {
2
- "entity_types": [
3
- {
4
- "id": "025a1128-3f33-11e7-b876-129bd0521531",
5
- "name": "fancy_org",
6
- "data_visibility": "public",
7
- "fields": [
8
- {
9
- "id": "692bef3e-3f33-11e7-b937-129bd0521531",
10
- "name": "name",
11
- "data_visibility": "public",
12
- "field_type": "string",
13
- "is_editable": true,
14
- "unique_value": false
15
- },
16
- {
17
- "id": "6e504b40-3f33-11e7-b937-129bd0521531",
18
- "name": "description",
19
- "data_visibility": "public",
20
- "field_type": "string",
21
- "is_editable": true,
22
- "unique_value": false
23
- },
24
- {
25
- "id": "7311faa2-3f33-11e7-b876-129bd0521531",
26
- "name": "start_date",
27
- "data_visibility": "public",
28
- "field_type": "date",
29
- "is_editable": true,
30
- "unique_value": false
31
- }
32
- ],
33
- "is_editable": true,
34
- "unique_value": false
35
- }
36
- ],
37
- "meta": {
38
- "page": 1,
39
- "next_page": false,
40
- "from": 1,
41
- "to": 1
42
- }
43
- }
@@ -1,35 +0,0 @@
1
- {
2
- "entity_types": [
3
- {
4
- "id": "5d70b630-4248-11e7-90b4-129bd0521531",
5
- "name": "fancy_org_assignment",
6
- "data_visibility": "public",
7
- "fields": [
8
- {
9
- "id": "235ce6fc-4249-11e7-944f-129bd0521531",
10
- "name": "role",
11
- "data_visibility": "public",
12
- "field_type": "string",
13
- "is_editable": false,
14
- "unique_value": false
15
- },
16
- {
17
- "id": "675bd9ee-4249-11e7-9e93-129bd0521531",
18
- "name": "hired_at",
19
- "data_visibility": "public",
20
- "field_type": "datetime",
21
- "is_editable": false,
22
- "unique_value": false
23
- }
24
- ],
25
- "is_editable": false,
26
- "unique_value": false
27
- }
28
- ],
29
- "meta": {
30
- "page": 1,
31
- "next_page": false,
32
- "from": 1,
33
- "to": 1
34
- }
35
- }
@@ -1,35 +0,0 @@
1
- {
2
- "entity_types": [
3
- {
4
- "id": "025a1128-3f33-11e7-b876-129bd0521531",
5
- "name": "fancy_org",
6
- "data_visibility": "public",
7
- "fields": [
8
- {
9
- "id": "692bef3e-3f33-11e7-b937-129bd0521531",
10
- "name": "name",
11
- "data_visibility": "public",
12
- "field_type": "string",
13
- "is_editable": true,
14
- "unique_value": false
15
- },
16
- {
17
- "id": "7311faa2-3f33-11e7-b876-129bd0521531",
18
- "name": "start_date",
19
- "data_visibility": "public",
20
- "field_type": "date",
21
- "is_editable": true,
22
- "unique_value": false
23
- }
24
- ],
25
- "is_editable": true,
26
- "unique_value": false
27
- }
28
- ],
29
- "meta": {
30
- "page": 1,
31
- "next_page": false,
32
- "from": 1,
33
- "to": 1
34
- }
35
- }
@@ -1,18 +0,0 @@
1
- {
2
- "entity_types": [
3
- {
4
- "id": "f0f0876b-0ebe-4680-9e48-1c3b72523d07",
5
- "name": "ministry",
6
- "data_visibility": "public",
7
- "fields": [],
8
- "is_editable": true,
9
- "unique_value": false
10
- }
11
- ],
12
- "meta": {
13
- "page": 1,
14
- "next_page": false,
15
- "from": 1,
16
- "to": 1
17
- }
18
- }
@@ -1,42 +0,0 @@
1
- {
2
- "entity_types": [
3
- {
4
- "id": "ee13a693-3ce7-4c19-b59a-30c8f137acd8",
5
- "name": "person",
6
- "data_visibility": "public",
7
- "fields": [
8
- {
9
- "id": "67256bfa-3b34-11e7-b876-129bd0521531",
10
- "name": "first_name",
11
- "data_visibility": "public",
12
- "field_type": "string",
13
- "is_editable": true,
14
- "unique_value": false
15
- },
16
- {
17
- "id": "6b82f97e-3b34-11e7-bba6-129bd0521531",
18
- "name": "last_name",
19
- "data_visibility": "public",
20
- "field_type": "string",
21
- "is_editable": true,
22
- "unique_value": false
23
- },
24
- {
25
- "id": "f5331684-3ca8-11e7-b937-129bd0521531",
26
- "name": "address",
27
- "data_visibility": "public",
28
- "is_editable": true,
29
- "unique_value": false
30
- }
31
- ],
32
- "is_editable": true,
33
- "unique_value": false
34
- }
35
- ],
36
- "meta": {
37
- "page": 1,
38
- "next_page": false,
39
- "from": 1,
40
- "to": 1
41
- }
42
- }
@@ -1,34 +0,0 @@
1
- {
2
- "entity_types": [
3
- {
4
- "id": "ee13a693-3ce7-4c19-b59a-30c8f137acd8",
5
- "name": "person",
6
- "data_visibility": "public",
7
- "fields": [
8
- {
9
- "id": "6b82f97e-3b34-11e7-bba6-129bd0521531",
10
- "name": "last_name",
11
- "data_visibility": "public",
12
- "field_type": "string",
13
- "is_editable": true,
14
- "unique_value": false
15
- },
16
- {
17
- "id": "f5331684-3ca8-11e7-b937-129bd0521531",
18
- "name": "address",
19
- "data_visibility": "public",
20
- "is_editable": true,
21
- "unique_value": false
22
- }
23
- ],
24
- "is_editable": true,
25
- "unique_value": false
26
- }
27
- ],
28
- "meta": {
29
- "page": 1,
30
- "next_page": false,
31
- "from": 1,
32
- "to": 1
33
- }
34
- }
@@ -1,9 +0,0 @@
1
- {
2
- "relationship_types": [],
3
- "meta": {
4
- "page": 1,
5
- "next_page": false,
6
- "from": 1,
7
- "to": 1
8
- }
9
- }
@@ -1,41 +0,0 @@
1
- {
2
- "relationship_types": [
3
- {
4
- "id": "5d721db8-4248-11e7-90b4-129bd0521531",
5
- "relationship_entity_type_id": "5d70b630-4248-11e7-90b4-129bd0521531",
6
- "relationship1": {
7
- "entity_type": "person",
8
- "relationship_name": "person"
9
- },
10
- "relationship2": {
11
- "entity_type": "fancy_org",
12
- "relationship_name": "fancy_org"
13
- },
14
- "fields": [
15
- {
16
- "id": "235ce6fc-4249-11e7-944f-129bd0521531",
17
- "name": "role",
18
- "data_visibility": "public",
19
- "field_type": "string",
20
- "is_editable": true,
21
- "unique_value": false
22
- },
23
- {
24
- "id": "675bd9ee-4249-11e7-9e93-129bd0521531",
25
- "name": "hired_at",
26
- "data_visibility": "public",
27
- "field_type": "datetime",
28
- "is_editable": true,
29
- "unique_value": false
30
- }
31
- ],
32
- "is_editable": true
33
- }
34
- ],
35
- "meta": {
36
- "page": 1,
37
- "next_page": false,
38
- "from": 1,
39
- "to": 1
40
- }
41
- }
@@ -1,33 +0,0 @@
1
- {
2
- "relationship_types": [
3
- {
4
- "id": "5d721db8-4248-11e7-90b4-129bd0521531",
5
- "relationship_entity_type_id": "5d70b630-4248-11e7-90b4-129bd0521531",
6
- "relationship1": {
7
- "entity_type": "person",
8
- "relationship_name": "person"
9
- },
10
- "relationship2": {
11
- "entity_type": "fancy_org",
12
- "relationship_name": "fancy_org"
13
- },
14
- "fields": [
15
- {
16
- "id": "675bd9ee-4249-11e7-9e93-129bd0521531",
17
- "name": "hired_at",
18
- "data_visibility": "public",
19
- "field_type": "datetime",
20
- "is_editable": true,
21
- "unique_value": false
22
- }
23
- ],
24
- "is_editable": true
25
- }
26
- ],
27
- "meta": {
28
- "page": 1,
29
- "next_page": false,
30
- "from": 1,
31
- "to": 1
32
- }
33
- }
@@ -1,8 +0,0 @@
1
- {
2
- "entity": {
3
- "community": {
4
- "id": "6133f6fe-c63a-425a-bb46-68917c689723",
5
- "client_integration_id": "1"
6
- }
7
- }
8
- }
@@ -1,8 +0,0 @@
1
- {
2
- "entity": {
3
- "fancy_org": {
4
- "id": "aebb4170-3f34-11e7-bba6-129bd0521531",
5
- "client_integration_id": "1"
6
- }
7
- }
8
- }
@@ -1,8 +0,0 @@
1
- {
2
- "entity": {
3
- "fancy_org": {
4
- "id": "cd5da38a-c336-46a7-b818-dcdd51c4acde",
5
- "client_integration_id": "1"
6
- }
7
- }
8
- }
@@ -1,8 +0,0 @@
1
- {
2
- "entity": {
3
- "person": {
4
- "id": "22527d88-3cba-11e7-b876-129bd0521531",
5
- "client_integration_id": "1"
6
- }
7
- }
8
- }
@@ -1,9 +0,0 @@
1
- {
2
- "entity_type": {
3
- "id": "f5331684-3ca8-11e7-b937-129bd0521531",
4
- "name": "address",
5
- "data_visibility": "public",
6
- "is_editable": true,
7
- "unique_value": false
8
- }
9
- }
@@ -1,9 +0,0 @@
1
- {
2
- "entity_type": {
3
- "id": "025a1128-3f33-11e7-b876-129bd0521531",
4
- "name": "fancy_org",
5
- "data_visibility": "public",
6
- "is_editable": true,
7
- "unique_value": false
8
- }
9
- }
@@ -1,9 +0,0 @@
1
- {
2
- "entity_type": {
3
- "id": "ee13a693-3ce7-4c19-b59a-30c8f137acd8",
4
- "name": "person",
5
- "data_visibility": "public",
6
- "is_editable": true,
7
- "unique_value": false
8
- }
9
- }
@@ -1,16 +0,0 @@
1
- {
2
- "relationship_type": {
3
- "id": "4f5e565c-76c7-11e7-b3f0-129bd0521531",
4
- "relationship_entity_type_id": "4f5d8150-76c7-11e7-b3f0-129bd0521531",
5
- "relationship1": {
6
- "entity_type": "fancy_org_assignment",
7
- "relationship_name": "assigned_by"
8
- },
9
- "relationship2": {
10
- "entity_type": "person",
11
- "relationship_name": "person"
12
- },
13
- "fields": [],
14
- "is_editable": true
15
- }
16
- }
@@ -1,16 +0,0 @@
1
- {
2
- "relationship_type": {
3
- "id": "3df8cbd3-bc9f-4ffd-aefd-3cbf51a37931",
4
- "relationship_entity_type_id": "f854900f-9dcf-473a-be1b-399dda75edae",
5
- "relationship1": {
6
- "entity_type": "community",
7
- "relationship_name": "community"
8
- },
9
- "relationship2": {
10
- "entity_type": "ministry",
11
- "relationship_name": "ministry"
12
- },
13
- "fields": [],
14
- "is_editable": true
15
- }
16
- }
@@ -1,16 +0,0 @@
1
- {
2
- "relationship_type": {
3
- "id": "f03b947e-6644-11e7-93dd-129bd0521531",
4
- "relationship_entity_type_id": "f03a929a-6644-11e7-93dd-129bd0521531",
5
- "relationship1": {
6
- "entity_type": "fancy_org",
7
- "relationship_name": "fancy_org"
8
- },
9
- "relationship2": {
10
- "entity_type": "area",
11
- "relationship_name": "area"
12
- },
13
- "fields": [],
14
- "is_editable": true
15
- }
16
- }
@@ -1,16 +0,0 @@
1
- {
2
- "relationship_type": {
3
- "id": "5d721db8-4248-11e7-90b4-129bd0521531",
4
- "relationship_entity_type_id": "5d70b630-4248-11e7-90b4-129bd0521531",
5
- "relationship1": {
6
- "entity_type": "person",
7
- "relationship_name": "person"
8
- },
9
- "relationship2": {
10
- "entity_type": "fancy_org",
11
- "relationship_name": "fancy_org"
12
- },
13
- "fields": [],
14
- "is_editable": true
15
- }
16
- }
@@ -1,20 +0,0 @@
1
- {
2
- "entity": {
3
- "person": {
4
- "id": "22527d88-3cba-11e7-b876-129bd0521531",
5
- "client_integration_id": "1",
6
- "address": [
7
- {
8
- "id": "0a594356-3f1c-11e7-bba6-129bd0521531",
9
- "client_integration_id": "1"
10
- }
11
- ],
12
- "authentication": [
13
- {
14
- "id": "9484718a-3cbb-11e7-b876-129bd0521531",
15
- "client_integration_id": "1"
16
- }
17
- ]
18
- }
19
- }
20
- }
@@ -1,16 +0,0 @@
1
- {
2
- "entity": {
3
- "community": {
4
- "id": "6133f6fe-c63a-425a-bb46-68917c689723",
5
- "ministry:relationship": [
6
- {
7
- "ministry": "41f767fd-86f4-42e2-8d24-cbc3f697b794",
8
- "relationship_entity_id": "ee40f9ed-d625-405b-8ce6-aec821611ec6",
9
- "client_integration_id": "1"
10
- }
11
- ],
12
- "client_integration_id": "1"
13
- }
14
- },
15
- "meta": {}
16
- }
@@ -1,8 +0,0 @@
1
- {
2
- "entity": {
3
- "fancy_org_assignment": {
4
- "id": "c99d7d7e-8b14-4fe6-9c11-e5359ee03637",
5
- "client_integration_id": "1"
6
- }
7
- }
8
- }
@@ -1,20 +0,0 @@
1
- {
2
- "entity": {
3
- "fancy_org_assignment": {
4
- "id": "51a014a4-4252-11e7-944f-129bd0521531",
5
- "person:relationship": {
6
- "person": "22527d88-3cba-11e7-b876-129bd0521531",
7
- "relationship_entity_id": "0fd8b8b8-76c9-11e7-b15c-129bd0521531",
8
- "client_integration_id": "1"
9
- },
10
- "person": {
11
- "id": "22527d88-3cba-11e7-b876-129bd0521531"
12
- },
13
- "fancy_org": {
14
- "id": "aebb4170-3f34-11e7-bba6-129bd0521531"
15
- },
16
- "client_integration_id": "1"
17
- }
18
- },
19
- "meta": {}
20
- }
@@ -1,17 +0,0 @@
1
- {
2
- "entity": {
3
- "fancy_org": {
4
- "id": "aebb4170-3f34-11e7-bba6-129bd0521531",
5
- "area:relationship": [
6
- {
7
- "area": "0fdb70c5-f51e-4628-a1fe-caa37fae53cd",
8
- "relationship_entity_id": "c99d7d7e-8b14-4fe6-9c11-e5359ee03637",
9
- "client_integration_id": "1",
10
- "priority": "High"
11
- }
12
- ],
13
- "client_integration_id": "1"
14
- }
15
- },
16
- "meta": {}
17
- }
@@ -1,23 +0,0 @@
1
- {
2
- "entity": {
3
- "person": {
4
- "id": "2f0c62f1-5738-4860-88bd-5706fb801d7b",
5
- "country:relationship": [
6
- {
7
- "country": "0f9089a3-2b93-4de8-9b81-92be0261f325",
8
- "relationship_entity_id": "420d2fd1-7a73-41ed-9d8f-5dc79b00a688",
9
- "client_integration_id": "cos_1",
10
- "country_of_service": true
11
- },
12
- {
13
- "country": "7cdaf399-d449-4008-8c6b-3c64a2b2730c",
14
- "relationship_entity_id": "a4c030ce-13f2-44f5-8131-4003eb21c0ae",
15
- "client_integration_id": "cor_1",
16
- "country_of_residence": true
17
- }
18
- ],
19
- "client_integration_id": "1"
20
- }
21
- },
22
- "meta": {}
23
- }
@@ -1,29 +0,0 @@
1
- {
2
- "entity": {
3
- "person": {
4
- "id": "22527d88-3cba-11e7-b876-129bd0521531",
5
- "fancy_org:relationship": [
6
- {
7
- "fancy_org": "aebb4170-3f34-11e7-bba6-129bd0521531",
8
- "relationship_entity_id": "51a014a4-4252-11e7-944f-129bd0521531",
9
- "client_integration_id": "1",
10
- "role": "leader"
11
- },
12
- {
13
- "fancy_org": "aebb4170-3f34-11e7-bba6-129bd0521531",
14
- "relationship_entity_id": "4b11dcda-4630-11e7-be1b-129bd0521531",
15
- "client_integration_id": "3",
16
- "role": "supervisor"
17
- },
18
- {
19
- "fancy_org": "aebb4170-3f34-11e7-bba6-129bd0521531",
20
- "relationship_entity_id": "687c8ca2-4630-11e7-be1b-129bd0521531",
21
- "client_integration_id": "4",
22
- "role": "entry_level"
23
- }
24
- ],
25
- "client_integration_id": "1"
26
- }
27
- },
28
- "meta": {}
29
- }
@@ -1,8 +0,0 @@
1
- {
2
- "entity": {
3
- "fancy_org_assignment": {
4
- "id": "51a014a4-4252-11e7-944f-129bd0521531",
5
- "client_integration_id": "1"
6
- }
7
- }
8
- }
@@ -1,3 +0,0 @@
1
- {
2
- "error": "Validation failed: A fancy_org_assignment entity with a client_integeration_id of 1 already exists"
3
- }