@salesforce/lds-adapters-industries-public-sector 1.332.0-dev21 → 1.332.0-dev22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -721,8 +721,29 @@ function validate$G(obj, path = 'CarePlanTaskInputRepresentation') {
721
721
  if (obj.dueDate !== undefined) {
722
722
  const obj_dueDate = obj.dueDate;
723
723
  const path_dueDate = path + '.dueDate';
724
- if (typeof obj_dueDate !== 'string') {
725
- return new TypeError('Expected "string" but received "' + typeof obj_dueDate + '" (at "' + path_dueDate + '")');
724
+ let obj_dueDate_union0 = null;
725
+ const obj_dueDate_union0_error = (() => {
726
+ if (typeof obj_dueDate !== 'string') {
727
+ return new TypeError('Expected "string" but received "' + typeof obj_dueDate + '" (at "' + path_dueDate + '")');
728
+ }
729
+ })();
730
+ if (obj_dueDate_union0_error != null) {
731
+ obj_dueDate_union0 = obj_dueDate_union0_error.message;
732
+ }
733
+ let obj_dueDate_union1 = null;
734
+ const obj_dueDate_union1_error = (() => {
735
+ if (obj_dueDate !== null) {
736
+ return new TypeError('Expected "null" but received "' + typeof obj_dueDate + '" (at "' + path_dueDate + '")');
737
+ }
738
+ })();
739
+ if (obj_dueDate_union1_error != null) {
740
+ obj_dueDate_union1 = obj_dueDate_union1_error.message;
741
+ }
742
+ if (obj_dueDate_union0 && obj_dueDate_union1) {
743
+ let message = 'Object doesn\'t match union (at "' + path_dueDate + '")';
744
+ message += '\n' + obj_dueDate_union0.split('\n').map((line) => '\t' + line).join('\n');
745
+ message += '\n' + obj_dueDate_union1.split('\n').map((line) => '\t' + line).join('\n');
746
+ return new TypeError(message);
726
747
  }
727
748
  }
728
749
  if (obj.id !== undefined) {
@@ -864,8 +885,29 @@ function validate$D(obj, path = 'BenefitAssignmentInputRepresentation') {
864
885
  if (obj.endDate !== undefined) {
865
886
  const obj_endDate = obj.endDate;
866
887
  const path_endDate = path + '.endDate';
867
- if (typeof obj_endDate !== 'string') {
868
- return new TypeError('Expected "string" but received "' + typeof obj_endDate + '" (at "' + path_endDate + '")');
888
+ let obj_endDate_union0 = null;
889
+ const obj_endDate_union0_error = (() => {
890
+ if (typeof obj_endDate !== 'string') {
891
+ return new TypeError('Expected "string" but received "' + typeof obj_endDate + '" (at "' + path_endDate + '")');
892
+ }
893
+ })();
894
+ if (obj_endDate_union0_error != null) {
895
+ obj_endDate_union0 = obj_endDate_union0_error.message;
896
+ }
897
+ let obj_endDate_union1 = null;
898
+ const obj_endDate_union1_error = (() => {
899
+ if (obj_endDate !== null) {
900
+ return new TypeError('Expected "null" but received "' + typeof obj_endDate + '" (at "' + path_endDate + '")');
901
+ }
902
+ })();
903
+ if (obj_endDate_union1_error != null) {
904
+ obj_endDate_union1 = obj_endDate_union1_error.message;
905
+ }
906
+ if (obj_endDate_union0 && obj_endDate_union1) {
907
+ let message = 'Object doesn\'t match union (at "' + path_endDate + '")';
908
+ message += '\n' + obj_endDate_union0.split('\n').map((line) => '\t' + line).join('\n');
909
+ message += '\n' + obj_endDate_union1.split('\n').map((line) => '\t' + line).join('\n');
910
+ return new TypeError(message);
869
911
  }
870
912
  }
871
913
  if (obj.enrollmentCount !== undefined) {
@@ -910,8 +952,29 @@ function validate$D(obj, path = 'BenefitAssignmentInputRepresentation') {
910
952
  if (obj.startDate !== undefined) {
911
953
  const obj_startDate = obj.startDate;
912
954
  const path_startDate = path + '.startDate';
913
- if (typeof obj_startDate !== 'string') {
914
- return new TypeError('Expected "string" but received "' + typeof obj_startDate + '" (at "' + path_startDate + '")');
955
+ let obj_startDate_union0 = null;
956
+ const obj_startDate_union0_error = (() => {
957
+ if (typeof obj_startDate !== 'string') {
958
+ return new TypeError('Expected "string" but received "' + typeof obj_startDate + '" (at "' + path_startDate + '")');
959
+ }
960
+ })();
961
+ if (obj_startDate_union0_error != null) {
962
+ obj_startDate_union0 = obj_startDate_union0_error.message;
963
+ }
964
+ let obj_startDate_union1 = null;
965
+ const obj_startDate_union1_error = (() => {
966
+ if (obj_startDate !== null) {
967
+ return new TypeError('Expected "null" but received "' + typeof obj_startDate + '" (at "' + path_startDate + '")');
968
+ }
969
+ })();
970
+ if (obj_startDate_union1_error != null) {
971
+ obj_startDate_union1 = obj_startDate_union1_error.message;
972
+ }
973
+ if (obj_startDate_union0 && obj_startDate_union1) {
974
+ let message = 'Object doesn\'t match union (at "' + path_startDate + '")';
975
+ message += '\n' + obj_startDate_union0.split('\n').map((line) => '\t' + line).join('\n');
976
+ message += '\n' + obj_startDate_union1.split('\n').map((line) => '\t' + line).join('\n');
977
+ return new TypeError(message);
915
978
  }
916
979
  }
917
980
  if (obj.status !== undefined) {
@@ -977,8 +1040,29 @@ function validate$B(obj, path = 'GoalAssignmentInputRepresentation') {
977
1040
  if (obj.completionDate !== undefined) {
978
1041
  const obj_completionDate = obj.completionDate;
979
1042
  const path_completionDate = path + '.completionDate';
980
- if (typeof obj_completionDate !== 'string') {
981
- return new TypeError('Expected "string" but received "' + typeof obj_completionDate + '" (at "' + path_completionDate + '")');
1043
+ let obj_completionDate_union0 = null;
1044
+ const obj_completionDate_union0_error = (() => {
1045
+ if (typeof obj_completionDate !== 'string') {
1046
+ return new TypeError('Expected "string" but received "' + typeof obj_completionDate + '" (at "' + path_completionDate + '")');
1047
+ }
1048
+ })();
1049
+ if (obj_completionDate_union0_error != null) {
1050
+ obj_completionDate_union0 = obj_completionDate_union0_error.message;
1051
+ }
1052
+ let obj_completionDate_union1 = null;
1053
+ const obj_completionDate_union1_error = (() => {
1054
+ if (obj_completionDate !== null) {
1055
+ return new TypeError('Expected "null" but received "' + typeof obj_completionDate + '" (at "' + path_completionDate + '")');
1056
+ }
1057
+ })();
1058
+ if (obj_completionDate_union1_error != null) {
1059
+ obj_completionDate_union1 = obj_completionDate_union1_error.message;
1060
+ }
1061
+ if (obj_completionDate_union0 && obj_completionDate_union1) {
1062
+ let message = 'Object doesn\'t match union (at "' + path_completionDate + '")';
1063
+ message += '\n' + obj_completionDate_union0.split('\n').map((line) => '\t' + line).join('\n');
1064
+ message += '\n' + obj_completionDate_union1.split('\n').map((line) => '\t' + line).join('\n');
1065
+ return new TypeError(message);
982
1066
  }
983
1067
  }
984
1068
  if (obj.completionPercentage !== undefined) {
@@ -1047,8 +1131,29 @@ function validate$B(obj, path = 'GoalAssignmentInputRepresentation') {
1047
1131
  if (obj.startDate !== undefined) {
1048
1132
  const obj_startDate = obj.startDate;
1049
1133
  const path_startDate = path + '.startDate';
1050
- if (typeof obj_startDate !== 'string') {
1051
- return new TypeError('Expected "string" but received "' + typeof obj_startDate + '" (at "' + path_startDate + '")');
1134
+ let obj_startDate_union0 = null;
1135
+ const obj_startDate_union0_error = (() => {
1136
+ if (typeof obj_startDate !== 'string') {
1137
+ return new TypeError('Expected "string" but received "' + typeof obj_startDate + '" (at "' + path_startDate + '")');
1138
+ }
1139
+ })();
1140
+ if (obj_startDate_union0_error != null) {
1141
+ obj_startDate_union0 = obj_startDate_union0_error.message;
1142
+ }
1143
+ let obj_startDate_union1 = null;
1144
+ const obj_startDate_union1_error = (() => {
1145
+ if (obj_startDate !== null) {
1146
+ return new TypeError('Expected "null" but received "' + typeof obj_startDate + '" (at "' + path_startDate + '")');
1147
+ }
1148
+ })();
1149
+ if (obj_startDate_union1_error != null) {
1150
+ obj_startDate_union1 = obj_startDate_union1_error.message;
1151
+ }
1152
+ if (obj_startDate_union0 && obj_startDate_union1) {
1153
+ let message = 'Object doesn\'t match union (at "' + path_startDate + '")';
1154
+ message += '\n' + obj_startDate_union0.split('\n').map((line) => '\t' + line).join('\n');
1155
+ message += '\n' + obj_startDate_union1.split('\n').map((line) => '\t' + line).join('\n');
1156
+ return new TypeError(message);
1052
1157
  }
1053
1158
  }
1054
1159
  if (obj.status !== undefined) {
@@ -1061,8 +1166,29 @@ function validate$B(obj, path = 'GoalAssignmentInputRepresentation') {
1061
1166
  if (obj.targetCompletionDate !== undefined) {
1062
1167
  const obj_targetCompletionDate = obj.targetCompletionDate;
1063
1168
  const path_targetCompletionDate = path + '.targetCompletionDate';
1064
- if (typeof obj_targetCompletionDate !== 'string') {
1065
- return new TypeError('Expected "string" but received "' + typeof obj_targetCompletionDate + '" (at "' + path_targetCompletionDate + '")');
1169
+ let obj_targetCompletionDate_union0 = null;
1170
+ const obj_targetCompletionDate_union0_error = (() => {
1171
+ if (typeof obj_targetCompletionDate !== 'string') {
1172
+ return new TypeError('Expected "string" but received "' + typeof obj_targetCompletionDate + '" (at "' + path_targetCompletionDate + '")');
1173
+ }
1174
+ })();
1175
+ if (obj_targetCompletionDate_union0_error != null) {
1176
+ obj_targetCompletionDate_union0 = obj_targetCompletionDate_union0_error.message;
1177
+ }
1178
+ let obj_targetCompletionDate_union1 = null;
1179
+ const obj_targetCompletionDate_union1_error = (() => {
1180
+ if (obj_targetCompletionDate !== null) {
1181
+ return new TypeError('Expected "null" but received "' + typeof obj_targetCompletionDate + '" (at "' + path_targetCompletionDate + '")');
1182
+ }
1183
+ })();
1184
+ if (obj_targetCompletionDate_union1_error != null) {
1185
+ obj_targetCompletionDate_union1 = obj_targetCompletionDate_union1_error.message;
1186
+ }
1187
+ if (obj_targetCompletionDate_union0 && obj_targetCompletionDate_union1) {
1188
+ let message = 'Object doesn\'t match union (at "' + path_targetCompletionDate + '")';
1189
+ message += '\n' + obj_targetCompletionDate_union0.split('\n').map((line) => '\t' + line).join('\n');
1190
+ message += '\n' + obj_targetCompletionDate_union1.split('\n').map((line) => '\t' + line).join('\n');
1191
+ return new TypeError(message);
1066
1192
  }
1067
1193
  }
1068
1194
  })();
@@ -1150,8 +1276,29 @@ function validate$z(obj, path = 'CarePlanInputRepresentation') {
1150
1276
  if (obj.endDate !== undefined) {
1151
1277
  const obj_endDate = obj.endDate;
1152
1278
  const path_endDate = path + '.endDate';
1153
- if (typeof obj_endDate !== 'string') {
1154
- return new TypeError('Expected "string" but received "' + typeof obj_endDate + '" (at "' + path_endDate + '")');
1279
+ let obj_endDate_union0 = null;
1280
+ const obj_endDate_union0_error = (() => {
1281
+ if (typeof obj_endDate !== 'string') {
1282
+ return new TypeError('Expected "string" but received "' + typeof obj_endDate + '" (at "' + path_endDate + '")');
1283
+ }
1284
+ })();
1285
+ if (obj_endDate_union0_error != null) {
1286
+ obj_endDate_union0 = obj_endDate_union0_error.message;
1287
+ }
1288
+ let obj_endDate_union1 = null;
1289
+ const obj_endDate_union1_error = (() => {
1290
+ if (obj_endDate !== null) {
1291
+ return new TypeError('Expected "null" but received "' + typeof obj_endDate + '" (at "' + path_endDate + '")');
1292
+ }
1293
+ })();
1294
+ if (obj_endDate_union1_error != null) {
1295
+ obj_endDate_union1 = obj_endDate_union1_error.message;
1296
+ }
1297
+ if (obj_endDate_union0 && obj_endDate_union1) {
1298
+ let message = 'Object doesn\'t match union (at "' + path_endDate + '")';
1299
+ message += '\n' + obj_endDate_union0.split('\n').map((line) => '\t' + line).join('\n');
1300
+ message += '\n' + obj_endDate_union1.split('\n').map((line) => '\t' + line).join('\n');
1301
+ return new TypeError(message);
1155
1302
  }
1156
1303
  }
1157
1304
  if (obj.goalAssignments !== undefined) {
@@ -1191,8 +1338,29 @@ function validate$z(obj, path = 'CarePlanInputRepresentation') {
1191
1338
  if (obj.startDate !== undefined) {
1192
1339
  const obj_startDate = obj.startDate;
1193
1340
  const path_startDate = path + '.startDate';
1194
- if (typeof obj_startDate !== 'string') {
1195
- return new TypeError('Expected "string" but received "' + typeof obj_startDate + '" (at "' + path_startDate + '")');
1341
+ let obj_startDate_union0 = null;
1342
+ const obj_startDate_union0_error = (() => {
1343
+ if (typeof obj_startDate !== 'string') {
1344
+ return new TypeError('Expected "string" but received "' + typeof obj_startDate + '" (at "' + path_startDate + '")');
1345
+ }
1346
+ })();
1347
+ if (obj_startDate_union0_error != null) {
1348
+ obj_startDate_union0 = obj_startDate_union0_error.message;
1349
+ }
1350
+ let obj_startDate_union1 = null;
1351
+ const obj_startDate_union1_error = (() => {
1352
+ if (obj_startDate !== null) {
1353
+ return new TypeError('Expected "null" but received "' + typeof obj_startDate + '" (at "' + path_startDate + '")');
1354
+ }
1355
+ })();
1356
+ if (obj_startDate_union1_error != null) {
1357
+ obj_startDate_union1 = obj_startDate_union1_error.message;
1358
+ }
1359
+ if (obj_startDate_union0 && obj_startDate_union1) {
1360
+ let message = 'Object doesn\'t match union (at "' + path_startDate + '")';
1361
+ message += '\n' + obj_startDate_union0.split('\n').map((line) => '\t' + line).join('\n');
1362
+ message += '\n' + obj_startDate_union1.split('\n').map((line) => '\t' + line).join('\n');
1363
+ return new TypeError(message);
1196
1364
  }
1197
1365
  }
1198
1366
  const obj_status = obj.status;
@@ -2,7 +2,7 @@ import { CarePlanTaskInputRepresentation as CarePlanTaskInputRepresentation_Care
2
2
  import { BenefitDisbursementListInputRepresentation as BenefitDisbursementListInputRepresentation_BenefitDisbursementListInputRepresentation } from './BenefitDisbursementListInputRepresentation';
3
3
  import { CustomFieldListInputRepresentation as CustomFieldListInputRepresentation_CustomFieldListInputRepresentation } from './CustomFieldListInputRepresentation';
4
4
  import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
5
- export declare const VERSION = "5c096cdd763f56d8694dc9c711a83636";
5
+ export declare const VERSION = "2d419df4df704979ba4b008553a23ca9";
6
6
  export declare function validate(obj: any, path?: string): TypeError | null;
7
7
  export declare const RepresentationType: string;
8
8
  export declare function normalize(input: BenefitAssignmentInputRepresentation, existing: BenefitAssignmentInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): BenefitAssignmentInputRepresentationNormalized;
@@ -25,7 +25,7 @@ export interface BenefitAssignmentInputRepresentationNormalized {
25
25
  benefitId: string;
26
26
  customFields?: CustomFieldListInputRepresentation_CustomFieldListInputRepresentation;
27
27
  /** EndDate of the BenefitAssignment */
28
- endDate?: string;
28
+ endDate?: string | null;
29
29
  /** EnrollmentCount of the BenefitAssignment */
30
30
  enrollmentCount?: number;
31
31
  /** EntitlementAmount of the BenefitAssignment */
@@ -41,7 +41,7 @@ export interface BenefitAssignmentInputRepresentationNormalized {
41
41
  /** Priority of the BenefitAssignment */
42
42
  priority?: string;
43
43
  /** StartDate of BenefitAssignment */
44
- startDate?: string;
44
+ startDate?: string | null;
45
45
  /** Status of the BenefitAssignment */
46
46
  status?: string;
47
47
  }
@@ -57,7 +57,7 @@ export interface BenefitAssignmentInputRepresentation {
57
57
  benefitFrequency?: string;
58
58
  benefitId: string;
59
59
  customFields?: CustomFieldListInputRepresentation_CustomFieldListInputRepresentation;
60
- endDate?: string;
60
+ endDate?: string | null;
61
61
  enrollmentCount?: number;
62
62
  entitlementAmount?: number;
63
63
  id?: string;
@@ -65,6 +65,6 @@ export interface BenefitAssignmentInputRepresentation {
65
65
  participantId: string;
66
66
  payoutFrequency?: string;
67
67
  priority?: string;
68
- startDate?: string;
68
+ startDate?: string | null;
69
69
  status?: string;
70
70
  }
@@ -3,7 +3,7 @@ import { CarePlanTaskInputRepresentation as CarePlanTaskInputRepresentation_Care
3
3
  import { CustomFieldListInputRepresentation as CustomFieldListInputRepresentation_CustomFieldListInputRepresentation } from './CustomFieldListInputRepresentation';
4
4
  import { GoalAssignmentListInputRepresentation as GoalAssignmentListInputRepresentation_GoalAssignmentListInputRepresentation } from './GoalAssignmentListInputRepresentation';
5
5
  import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
6
- export declare const VERSION = "e17e52df55fd71f617e7abcc5199b83a";
6
+ export declare const VERSION = "78ced1514abe65730f2b2b3a4e8b32b8";
7
7
  export declare function validate(obj: any, path?: string): TypeError | null;
8
8
  export declare const RepresentationType: string;
9
9
  export declare function normalize(input: CarePlanInputRepresentation, existing: CarePlanInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CarePlanInputRepresentationNormalized;
@@ -29,7 +29,7 @@ export interface CarePlanInputRepresentationNormalized {
29
29
  /** Description of the CarePlan */
30
30
  description?: string;
31
31
  /** EndDate of the CarePlan */
32
- endDate?: string;
32
+ endDate?: string | null;
33
33
  goalAssignments?: GoalAssignmentListInputRepresentation_GoalAssignmentListInputRepresentation;
34
34
  /** Id of the CarePlan */
35
35
  id?: string;
@@ -40,7 +40,7 @@ export interface CarePlanInputRepresentationNormalized {
40
40
  /** Participant of the CarePlan */
41
41
  participantId: string;
42
42
  /** StartDate of the CarePlan */
43
- startDate?: string;
43
+ startDate?: string | null;
44
44
  /** Status of the CarePlan */
45
45
  status: string;
46
46
  }
@@ -57,12 +57,12 @@ export interface CarePlanInputRepresentation {
57
57
  caseId: string;
58
58
  customFields?: CustomFieldListInputRepresentation_CustomFieldListInputRepresentation;
59
59
  description?: string;
60
- endDate?: string;
60
+ endDate?: string | null;
61
61
  goalAssignments?: GoalAssignmentListInputRepresentation_GoalAssignmentListInputRepresentation;
62
62
  id?: string;
63
63
  medicationTherapyReview?: string;
64
64
  name: string;
65
65
  participantId: string;
66
- startDate?: string;
66
+ startDate?: string | null;
67
67
  status: string;
68
68
  }
@@ -1,5 +1,5 @@
1
1
  import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
2
- export declare const VERSION = "58bfab895c9cf50e6561285577eb5546";
2
+ export declare const VERSION = "24ee3f05d37774502d7ac2856ab040e4";
3
3
  export declare function validate(obj: any, path?: string): TypeError | null;
4
4
  export declare const RepresentationType: string;
5
5
  export declare function normalize(input: CarePlanTaskInputRepresentation, existing: CarePlanTaskInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CarePlanTaskInputRepresentationNormalized;
@@ -19,7 +19,7 @@ export interface CarePlanTaskInputRepresentationNormalized {
19
19
  /** Care Plan Task comment */
20
20
  comment?: string;
21
21
  /** Care Plan Task due date */
22
- dueDate?: string;
22
+ dueDate?: string | null;
23
23
  /** Id of the Task */
24
24
  id?: string;
25
25
  /** isRequired field for Task record */
@@ -40,7 +40,7 @@ export interface CarePlanTaskInputRepresentationNormalized {
40
40
  export interface CarePlanTaskInputRepresentation {
41
41
  assignedTo?: string;
42
42
  comment?: string;
43
- dueDate?: string;
43
+ dueDate?: string | null;
44
44
  id?: string;
45
45
  isRequired?: boolean;
46
46
  priority?: string;
@@ -3,7 +3,7 @@ import { GoalAssignmentListInputRepresentation as GoalAssignmentListInputReprese
3
3
  import { CustomFieldListInputRepresentation as CustomFieldListInputRepresentation_CustomFieldListInputRepresentation } from './CustomFieldListInputRepresentation';
4
4
  import { CarePlanTaskInputRepresentation as CarePlanTaskInputRepresentation_CarePlanTaskInputRepresentation } from './CarePlanTaskInputRepresentation';
5
5
  import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
6
- export declare const VERSION = "cd0dcc89e0790b97561b6061390d497f";
6
+ export declare const VERSION = "97c74a972a7867bd2ffd5373720750b0";
7
7
  export declare function validate(obj: any, path?: string): TypeError | null;
8
8
  export declare const RepresentationType: string;
9
9
  export declare function normalize(input: GoalAssignmentInputRepresentation, existing: GoalAssignmentInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): GoalAssignmentInputRepresentationNormalized;
@@ -22,7 +22,7 @@ export interface GoalAssignmentInputRepresentationNormalized {
22
22
  associatedBenefitAssignments?: BenefitAssignmentListInputRepresentation_BenefitAssignmentListInputRepresentation;
23
23
  associatedSubGoalAssignments?: GoalAssignmentListInputRepresentation_GoalAssignmentListInputRepresentation;
24
24
  /** CompletionDate of the GoalAssignment */
25
- completionDate?: string;
25
+ completionDate?: string | null;
26
26
  /** CompletionPercentage of the GoalAssignment */
27
27
  completionPercentage?: number;
28
28
  /** CustomFields of the GoalAssignment */
@@ -42,11 +42,11 @@ export interface GoalAssignmentInputRepresentationNormalized {
42
42
  /** Priority of the GoalAssignment */
43
43
  priority?: string;
44
44
  /** StartDate of the GoalAssignment */
45
- startDate?: string;
45
+ startDate?: string | null;
46
46
  /** Status of the GoalAssignment */
47
47
  status?: string;
48
48
  /** TargetCompletionDate of the GoalAssignment */
49
- targetCompletionDate?: string;
49
+ targetCompletionDate?: string | null;
50
50
  }
51
51
  /**
52
52
  * Input representation for GoalAssignment
@@ -57,7 +57,7 @@ export interface GoalAssignmentInputRepresentationNormalized {
57
57
  export interface GoalAssignmentInputRepresentation {
58
58
  associatedBenefitAssignments?: BenefitAssignmentListInputRepresentation_BenefitAssignmentListInputRepresentation;
59
59
  associatedSubGoalAssignments?: GoalAssignmentListInputRepresentation_GoalAssignmentListInputRepresentation;
60
- completionDate?: string;
60
+ completionDate?: string | null;
61
61
  completionPercentage?: number;
62
62
  customFields?: CustomFieldListInputRepresentation_CustomFieldListInputRepresentation;
63
63
  customGoalName?: string;
@@ -67,7 +67,7 @@ export interface GoalAssignmentInputRepresentation {
67
67
  goalDefinitionId: string;
68
68
  id?: string;
69
69
  priority?: string;
70
- startDate?: string;
70
+ startDate?: string | null;
71
71
  status?: string;
72
- targetCompletionDate?: string;
72
+ targetCompletionDate?: string | null;
73
73
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-industries-public-sector",
3
- "version": "1.332.0-dev21",
3
+ "version": "1.332.0-dev22",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "This has files related to Public Sector APIs",
6
6
  "main": "dist/es/es2018/industries-public-sector.js",
@@ -45,11 +45,11 @@
45
45
  "test:unit": "jest"
46
46
  },
47
47
  "dependencies": {
48
- "@salesforce/lds-bindings": "^1.332.0-dev21"
48
+ "@salesforce/lds-bindings": "^1.332.0-dev22"
49
49
  },
50
50
  "devDependencies": {
51
- "@salesforce/lds-compiler-plugins": "^1.332.0-dev21",
52
- "@salesforce/lds-karma": "^1.332.0-dev21"
51
+ "@salesforce/lds-compiler-plugins": "^1.332.0-dev22",
52
+ "@salesforce/lds-karma": "^1.332.0-dev22"
53
53
  },
54
54
  "nx": {
55
55
  "targets": {
package/sfdc/index.js CHANGED
@@ -387,8 +387,29 @@ function validate$L(obj, path = 'CarePlanTaskInputRepresentation') {
387
387
  if (obj.dueDate !== undefined) {
388
388
  const obj_dueDate = obj.dueDate;
389
389
  const path_dueDate = path + '.dueDate';
390
- if (typeof obj_dueDate !== 'string') {
391
- return new TypeError('Expected "string" but received "' + typeof obj_dueDate + '" (at "' + path_dueDate + '")');
390
+ let obj_dueDate_union0 = null;
391
+ const obj_dueDate_union0_error = (() => {
392
+ if (typeof obj_dueDate !== 'string') {
393
+ return new TypeError('Expected "string" but received "' + typeof obj_dueDate + '" (at "' + path_dueDate + '")');
394
+ }
395
+ })();
396
+ if (obj_dueDate_union0_error != null) {
397
+ obj_dueDate_union0 = obj_dueDate_union0_error.message;
398
+ }
399
+ let obj_dueDate_union1 = null;
400
+ const obj_dueDate_union1_error = (() => {
401
+ if (obj_dueDate !== null) {
402
+ return new TypeError('Expected "null" but received "' + typeof obj_dueDate + '" (at "' + path_dueDate + '")');
403
+ }
404
+ })();
405
+ if (obj_dueDate_union1_error != null) {
406
+ obj_dueDate_union1 = obj_dueDate_union1_error.message;
407
+ }
408
+ if (obj_dueDate_union0 && obj_dueDate_union1) {
409
+ let message = 'Object doesn\'t match union (at "' + path_dueDate + '")';
410
+ message += '\n' + obj_dueDate_union0.split('\n').map((line) => '\t' + line).join('\n');
411
+ message += '\n' + obj_dueDate_union1.split('\n').map((line) => '\t' + line).join('\n');
412
+ return new TypeError(message);
392
413
  }
393
414
  }
394
415
  if (obj.id !== undefined) {
@@ -3182,8 +3203,29 @@ function validate$9(obj, path = 'BenefitAssignmentInputRepresentation') {
3182
3203
  if (obj.endDate !== undefined) {
3183
3204
  const obj_endDate = obj.endDate;
3184
3205
  const path_endDate = path + '.endDate';
3185
- if (typeof obj_endDate !== 'string') {
3186
- return new TypeError('Expected "string" but received "' + typeof obj_endDate + '" (at "' + path_endDate + '")');
3206
+ let obj_endDate_union0 = null;
3207
+ const obj_endDate_union0_error = (() => {
3208
+ if (typeof obj_endDate !== 'string') {
3209
+ return new TypeError('Expected "string" but received "' + typeof obj_endDate + '" (at "' + path_endDate + '")');
3210
+ }
3211
+ })();
3212
+ if (obj_endDate_union0_error != null) {
3213
+ obj_endDate_union0 = obj_endDate_union0_error.message;
3214
+ }
3215
+ let obj_endDate_union1 = null;
3216
+ const obj_endDate_union1_error = (() => {
3217
+ if (obj_endDate !== null) {
3218
+ return new TypeError('Expected "null" but received "' + typeof obj_endDate + '" (at "' + path_endDate + '")');
3219
+ }
3220
+ })();
3221
+ if (obj_endDate_union1_error != null) {
3222
+ obj_endDate_union1 = obj_endDate_union1_error.message;
3223
+ }
3224
+ if (obj_endDate_union0 && obj_endDate_union1) {
3225
+ let message = 'Object doesn\'t match union (at "' + path_endDate + '")';
3226
+ message += '\n' + obj_endDate_union0.split('\n').map((line) => '\t' + line).join('\n');
3227
+ message += '\n' + obj_endDate_union1.split('\n').map((line) => '\t' + line).join('\n');
3228
+ return new TypeError(message);
3187
3229
  }
3188
3230
  }
3189
3231
  if (obj.enrollmentCount !== undefined) {
@@ -3228,8 +3270,29 @@ function validate$9(obj, path = 'BenefitAssignmentInputRepresentation') {
3228
3270
  if (obj.startDate !== undefined) {
3229
3271
  const obj_startDate = obj.startDate;
3230
3272
  const path_startDate = path + '.startDate';
3231
- if (typeof obj_startDate !== 'string') {
3232
- return new TypeError('Expected "string" but received "' + typeof obj_startDate + '" (at "' + path_startDate + '")');
3273
+ let obj_startDate_union0 = null;
3274
+ const obj_startDate_union0_error = (() => {
3275
+ if (typeof obj_startDate !== 'string') {
3276
+ return new TypeError('Expected "string" but received "' + typeof obj_startDate + '" (at "' + path_startDate + '")');
3277
+ }
3278
+ })();
3279
+ if (obj_startDate_union0_error != null) {
3280
+ obj_startDate_union0 = obj_startDate_union0_error.message;
3281
+ }
3282
+ let obj_startDate_union1 = null;
3283
+ const obj_startDate_union1_error = (() => {
3284
+ if (obj_startDate !== null) {
3285
+ return new TypeError('Expected "null" but received "' + typeof obj_startDate + '" (at "' + path_startDate + '")');
3286
+ }
3287
+ })();
3288
+ if (obj_startDate_union1_error != null) {
3289
+ obj_startDate_union1 = obj_startDate_union1_error.message;
3290
+ }
3291
+ if (obj_startDate_union0 && obj_startDate_union1) {
3292
+ let message = 'Object doesn\'t match union (at "' + path_startDate + '")';
3293
+ message += '\n' + obj_startDate_union0.split('\n').map((line) => '\t' + line).join('\n');
3294
+ message += '\n' + obj_startDate_union1.split('\n').map((line) => '\t' + line).join('\n');
3295
+ return new TypeError(message);
3233
3296
  }
3234
3297
  }
3235
3298
  if (obj.status !== undefined) {
@@ -3295,8 +3358,29 @@ function validate$7(obj, path = 'GoalAssignmentInputRepresentation') {
3295
3358
  if (obj.completionDate !== undefined) {
3296
3359
  const obj_completionDate = obj.completionDate;
3297
3360
  const path_completionDate = path + '.completionDate';
3298
- if (typeof obj_completionDate !== 'string') {
3299
- return new TypeError('Expected "string" but received "' + typeof obj_completionDate + '" (at "' + path_completionDate + '")');
3361
+ let obj_completionDate_union0 = null;
3362
+ const obj_completionDate_union0_error = (() => {
3363
+ if (typeof obj_completionDate !== 'string') {
3364
+ return new TypeError('Expected "string" but received "' + typeof obj_completionDate + '" (at "' + path_completionDate + '")');
3365
+ }
3366
+ })();
3367
+ if (obj_completionDate_union0_error != null) {
3368
+ obj_completionDate_union0 = obj_completionDate_union0_error.message;
3369
+ }
3370
+ let obj_completionDate_union1 = null;
3371
+ const obj_completionDate_union1_error = (() => {
3372
+ if (obj_completionDate !== null) {
3373
+ return new TypeError('Expected "null" but received "' + typeof obj_completionDate + '" (at "' + path_completionDate + '")');
3374
+ }
3375
+ })();
3376
+ if (obj_completionDate_union1_error != null) {
3377
+ obj_completionDate_union1 = obj_completionDate_union1_error.message;
3378
+ }
3379
+ if (obj_completionDate_union0 && obj_completionDate_union1) {
3380
+ let message = 'Object doesn\'t match union (at "' + path_completionDate + '")';
3381
+ message += '\n' + obj_completionDate_union0.split('\n').map((line) => '\t' + line).join('\n');
3382
+ message += '\n' + obj_completionDate_union1.split('\n').map((line) => '\t' + line).join('\n');
3383
+ return new TypeError(message);
3300
3384
  }
3301
3385
  }
3302
3386
  if (obj.completionPercentage !== undefined) {
@@ -3365,8 +3449,29 @@ function validate$7(obj, path = 'GoalAssignmentInputRepresentation') {
3365
3449
  if (obj.startDate !== undefined) {
3366
3450
  const obj_startDate = obj.startDate;
3367
3451
  const path_startDate = path + '.startDate';
3368
- if (typeof obj_startDate !== 'string') {
3369
- return new TypeError('Expected "string" but received "' + typeof obj_startDate + '" (at "' + path_startDate + '")');
3452
+ let obj_startDate_union0 = null;
3453
+ const obj_startDate_union0_error = (() => {
3454
+ if (typeof obj_startDate !== 'string') {
3455
+ return new TypeError('Expected "string" but received "' + typeof obj_startDate + '" (at "' + path_startDate + '")');
3456
+ }
3457
+ })();
3458
+ if (obj_startDate_union0_error != null) {
3459
+ obj_startDate_union0 = obj_startDate_union0_error.message;
3460
+ }
3461
+ let obj_startDate_union1 = null;
3462
+ const obj_startDate_union1_error = (() => {
3463
+ if (obj_startDate !== null) {
3464
+ return new TypeError('Expected "null" but received "' + typeof obj_startDate + '" (at "' + path_startDate + '")');
3465
+ }
3466
+ })();
3467
+ if (obj_startDate_union1_error != null) {
3468
+ obj_startDate_union1 = obj_startDate_union1_error.message;
3469
+ }
3470
+ if (obj_startDate_union0 && obj_startDate_union1) {
3471
+ let message = 'Object doesn\'t match union (at "' + path_startDate + '")';
3472
+ message += '\n' + obj_startDate_union0.split('\n').map((line) => '\t' + line).join('\n');
3473
+ message += '\n' + obj_startDate_union1.split('\n').map((line) => '\t' + line).join('\n');
3474
+ return new TypeError(message);
3370
3475
  }
3371
3476
  }
3372
3477
  if (obj.status !== undefined) {
@@ -3379,8 +3484,29 @@ function validate$7(obj, path = 'GoalAssignmentInputRepresentation') {
3379
3484
  if (obj.targetCompletionDate !== undefined) {
3380
3485
  const obj_targetCompletionDate = obj.targetCompletionDate;
3381
3486
  const path_targetCompletionDate = path + '.targetCompletionDate';
3382
- if (typeof obj_targetCompletionDate !== 'string') {
3383
- return new TypeError('Expected "string" but received "' + typeof obj_targetCompletionDate + '" (at "' + path_targetCompletionDate + '")');
3487
+ let obj_targetCompletionDate_union0 = null;
3488
+ const obj_targetCompletionDate_union0_error = (() => {
3489
+ if (typeof obj_targetCompletionDate !== 'string') {
3490
+ return new TypeError('Expected "string" but received "' + typeof obj_targetCompletionDate + '" (at "' + path_targetCompletionDate + '")');
3491
+ }
3492
+ })();
3493
+ if (obj_targetCompletionDate_union0_error != null) {
3494
+ obj_targetCompletionDate_union0 = obj_targetCompletionDate_union0_error.message;
3495
+ }
3496
+ let obj_targetCompletionDate_union1 = null;
3497
+ const obj_targetCompletionDate_union1_error = (() => {
3498
+ if (obj_targetCompletionDate !== null) {
3499
+ return new TypeError('Expected "null" but received "' + typeof obj_targetCompletionDate + '" (at "' + path_targetCompletionDate + '")');
3500
+ }
3501
+ })();
3502
+ if (obj_targetCompletionDate_union1_error != null) {
3503
+ obj_targetCompletionDate_union1 = obj_targetCompletionDate_union1_error.message;
3504
+ }
3505
+ if (obj_targetCompletionDate_union0 && obj_targetCompletionDate_union1) {
3506
+ let message = 'Object doesn\'t match union (at "' + path_targetCompletionDate + '")';
3507
+ message += '\n' + obj_targetCompletionDate_union0.split('\n').map((line) => '\t' + line).join('\n');
3508
+ message += '\n' + obj_targetCompletionDate_union1.split('\n').map((line) => '\t' + line).join('\n');
3509
+ return new TypeError(message);
3384
3510
  }
3385
3511
  }
3386
3512
  })();
@@ -3468,8 +3594,29 @@ function validate$5(obj, path = 'CarePlanInputRepresentation') {
3468
3594
  if (obj.endDate !== undefined) {
3469
3595
  const obj_endDate = obj.endDate;
3470
3596
  const path_endDate = path + '.endDate';
3471
- if (typeof obj_endDate !== 'string') {
3472
- return new TypeError('Expected "string" but received "' + typeof obj_endDate + '" (at "' + path_endDate + '")');
3597
+ let obj_endDate_union0 = null;
3598
+ const obj_endDate_union0_error = (() => {
3599
+ if (typeof obj_endDate !== 'string') {
3600
+ return new TypeError('Expected "string" but received "' + typeof obj_endDate + '" (at "' + path_endDate + '")');
3601
+ }
3602
+ })();
3603
+ if (obj_endDate_union0_error != null) {
3604
+ obj_endDate_union0 = obj_endDate_union0_error.message;
3605
+ }
3606
+ let obj_endDate_union1 = null;
3607
+ const obj_endDate_union1_error = (() => {
3608
+ if (obj_endDate !== null) {
3609
+ return new TypeError('Expected "null" but received "' + typeof obj_endDate + '" (at "' + path_endDate + '")');
3610
+ }
3611
+ })();
3612
+ if (obj_endDate_union1_error != null) {
3613
+ obj_endDate_union1 = obj_endDate_union1_error.message;
3614
+ }
3615
+ if (obj_endDate_union0 && obj_endDate_union1) {
3616
+ let message = 'Object doesn\'t match union (at "' + path_endDate + '")';
3617
+ message += '\n' + obj_endDate_union0.split('\n').map((line) => '\t' + line).join('\n');
3618
+ message += '\n' + obj_endDate_union1.split('\n').map((line) => '\t' + line).join('\n');
3619
+ return new TypeError(message);
3473
3620
  }
3474
3621
  }
3475
3622
  if (obj.goalAssignments !== undefined) {
@@ -3509,8 +3656,29 @@ function validate$5(obj, path = 'CarePlanInputRepresentation') {
3509
3656
  if (obj.startDate !== undefined) {
3510
3657
  const obj_startDate = obj.startDate;
3511
3658
  const path_startDate = path + '.startDate';
3512
- if (typeof obj_startDate !== 'string') {
3513
- return new TypeError('Expected "string" but received "' + typeof obj_startDate + '" (at "' + path_startDate + '")');
3659
+ let obj_startDate_union0 = null;
3660
+ const obj_startDate_union0_error = (() => {
3661
+ if (typeof obj_startDate !== 'string') {
3662
+ return new TypeError('Expected "string" but received "' + typeof obj_startDate + '" (at "' + path_startDate + '")');
3663
+ }
3664
+ })();
3665
+ if (obj_startDate_union0_error != null) {
3666
+ obj_startDate_union0 = obj_startDate_union0_error.message;
3667
+ }
3668
+ let obj_startDate_union1 = null;
3669
+ const obj_startDate_union1_error = (() => {
3670
+ if (obj_startDate !== null) {
3671
+ return new TypeError('Expected "null" but received "' + typeof obj_startDate + '" (at "' + path_startDate + '")');
3672
+ }
3673
+ })();
3674
+ if (obj_startDate_union1_error != null) {
3675
+ obj_startDate_union1 = obj_startDate_union1_error.message;
3676
+ }
3677
+ if (obj_startDate_union0 && obj_startDate_union1) {
3678
+ let message = 'Object doesn\'t match union (at "' + path_startDate + '")';
3679
+ message += '\n' + obj_startDate_union0.split('\n').map((line) => '\t' + line).join('\n');
3680
+ message += '\n' + obj_startDate_union1.split('\n').map((line) => '\t' + line).join('\n');
3681
+ return new TypeError(message);
3514
3682
  }
3515
3683
  }
3516
3684
  const obj_status = obj.status;
@@ -4132,4 +4300,4 @@ withDefaultLuvio((luvio) => {
4132
4300
  });
4133
4301
 
4134
4302
  export { createBenefitDisbursements, createCarePlanTasks, getCarePlanBenefitSessionDetails, getCarePlanBenefitSessionDetails_imperative, getCarePlanDefinition, getCarePlanDefinitionNotifyChange, getCarePlanDefinition_imperative, getCarePlanDetails, getCarePlanDetailsNotifyChange, getCarePlanDetails_imperative, getCarePlanTasks, getCarePlanTasks_imperative, getCarePlanTemplateDetails, getCarePlanTemplateDetailsNotifyChange, getCarePlanTemplateDetails_imperative, notifyCarePlanTemplateUpdateAvailable, notifyCarePlanUpdateAvailable, postCarePlanDetails, postCarePlanTemplateDetails, updateCarePlanDetails, updateCarePlanTasks };
4135
- // version: 1.332.0-dev21-cc02503f9d
4303
+ // version: 1.332.0-dev22-dd082a87cf
package/src/raml/api.raml CHANGED
@@ -117,7 +117,7 @@ types:
117
117
  required: false # TODO Hand-rolled W-9314597
118
118
  endDate:
119
119
  description: EndDate of the BenefitAssignment
120
- type: string
120
+ type: string | nil
121
121
  required: false # TODO Hand-rolled W-9314597
122
122
  enrollmentCount:
123
123
  description: EnrollmentCount of the BenefitAssignment
@@ -150,7 +150,7 @@ types:
150
150
  required: false # TODO Hand-rolled W-9314597
151
151
  startDate:
152
152
  description: StartDate of BenefitAssignment
153
- type: string
153
+ type: string | nil
154
154
  required: false # TODO Hand-rolled W-9314597
155
155
  status:
156
156
  description: Status of the BenefitAssignment
@@ -452,7 +452,7 @@ types:
452
452
  required: false # TODO Hand-rolled W-9314597
453
453
  endDate:
454
454
  description: EndDate of the CarePlan
455
- type: string
455
+ type: string | nil
456
456
  required: false # TODO Hand-rolled W-9314597
457
457
  goalAssignments:
458
458
  description: GoalAssignments of the CarePlan
@@ -475,7 +475,7 @@ types:
475
475
  type: string
476
476
  startDate:
477
477
  description: StartDate of the CarePlan
478
- type: string
478
+ type: string | nil
479
479
  required: false # TODO Hand-rolled W-9314597
480
480
  status:
481
481
  description: Status of the CarePlan
@@ -609,7 +609,7 @@ types:
609
609
  required: false # TODO Hand-rolled W-9314597
610
610
  dueDate:
611
611
  description: Care Plan Task due date
612
- type: string
612
+ type: string | nil
613
613
  required: false # TODO Hand-rolled W-9314597
614
614
  id:
615
615
  description: Id of the Task
@@ -967,7 +967,7 @@ types:
967
967
  properties:
968
968
  completionDate:
969
969
  description: CompletionDate of the GoalAssignment
970
- type: string
970
+ type: string | nil
971
971
  required: false # TODO Hand-rolled W-9314597
972
972
  completionPercentage:
973
973
  description: CompletionPercentage of the GoalAssignment
@@ -1007,7 +1007,7 @@ types:
1007
1007
  required: false # TODO Hand-rolled W-9314597
1008
1008
  startDate:
1009
1009
  description: StartDate of the GoalAssignment
1010
- type: string
1010
+ type: string | nil
1011
1011
  required: false # TODO Hand-rolled W-9314597
1012
1012
  status:
1013
1013
  description: Status of the GoalAssignment
@@ -1015,7 +1015,7 @@ types:
1015
1015
  required: false # TODO Hand-rolled W-9314597
1016
1016
  targetCompletionDate:
1017
1017
  description: TargetCompletionDate of the GoalAssignment
1018
- type: string
1018
+ type: string | nil
1019
1019
  required: false # TODO Hand-rolled W-9314597
1020
1020
  associatedBenefitAssignments:
1021
1021
  description: Associated SubBenefit Assignments