@salesforce/lds-adapters-industries-education 1.252.0 → 1.256.0

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.
@@ -6978,12 +6978,19 @@ const getSuccessTeamAdapterFactory = (luvio) => function education__getSuccessTe
6978
6978
  buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
6979
6979
  };
6980
6980
 
6981
- const VERSION$7 = "ce60fe41443cd6ac03404d1153559867";
6981
+ const VERSION$7 = "d60c44c1e6c3976a0b3d975dcfb0b0d4";
6982
6982
  function validate$7(obj, path = 'Task') {
6983
6983
  const v_error = (() => {
6984
6984
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
6985
6985
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
6986
6986
  }
6987
+ if (obj.completedDate !== undefined) {
6988
+ const obj_completedDate = obj.completedDate;
6989
+ const path_completedDate = path + '.completedDate';
6990
+ if (typeof obj_completedDate !== 'string') {
6991
+ return new TypeError('Expected "string" but received "' + typeof obj_completedDate + '" (at "' + path_completedDate + '")');
6992
+ }
6993
+ }
6987
6994
  if (obj.createdDate !== undefined) {
6988
6995
  const obj_createdDate = obj.createdDate;
6989
6996
  const path_createdDate = path + '.createdDate';
@@ -7683,7 +7690,7 @@ const updateTaskStatusAdapterFactory = (luvio) => {
7683
7690
  };
7684
7691
  };
7685
7692
 
7686
- const VERSION$3 = "405c2ee418162df1428de92afa3ac88a";
7693
+ const VERSION$3 = "3816f003ea6c9a084462f5e361862312";
7687
7694
  function validate$3(obj, path = 'ActionPlanTemplateItem') {
7688
7695
  const v_error = (() => {
7689
7696
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -7724,6 +7731,20 @@ function validate$3(obj, path = 'ActionPlanTemplateItem') {
7724
7731
  return new TypeError('Expected "string" but received "' + typeof obj_itemObjectType + '" (at "' + path_itemObjectType + '")');
7725
7732
  }
7726
7733
  }
7734
+ if (obj.prerequisites !== undefined) {
7735
+ const obj_prerequisites = obj.prerequisites;
7736
+ const path_prerequisites = path + '.prerequisites';
7737
+ if (!ArrayIsArray(obj_prerequisites)) {
7738
+ return new TypeError('Expected "array" but received "' + typeof obj_prerequisites + '" (at "' + path_prerequisites + '")');
7739
+ }
7740
+ for (let i = 0; i < obj_prerequisites.length; i++) {
7741
+ const obj_prerequisites_item = obj_prerequisites[i];
7742
+ const path_prerequisites_item = path_prerequisites + '[' + i + ']';
7743
+ if (obj_prerequisites_item === undefined) {
7744
+ return new TypeError('Expected "defined" but received "' + typeof obj_prerequisites_item + '" (at "' + path_prerequisites_item + '")');
7745
+ }
7746
+ }
7747
+ }
7727
7748
  if (obj.priority !== undefined) {
7728
7749
  const obj_priority = obj.priority;
7729
7750
  const path_priority = path + '.priority';
@@ -7772,6 +7793,11 @@ const select$4 = function ActionPlanTemplateItemSelect() {
7772
7793
  kind: 'Scalar',
7773
7794
  required: false
7774
7795
  },
7796
+ {
7797
+ name: 'prerequisites',
7798
+ kind: 'Object',
7799
+ // any
7800
+ },
7775
7801
  {
7776
7802
  name: 'priority',
7777
7803
  kind: 'Scalar',
@@ -7877,15 +7903,61 @@ function equals$3(existing, incoming) {
7877
7903
  return false;
7878
7904
  }
7879
7905
  }
7906
+ const existing_prerequisites = existing.prerequisites;
7907
+ const incoming_prerequisites = incoming.prerequisites;
7908
+ // if at least one of these optionals is defined
7909
+ if (existing_prerequisites !== undefined || incoming_prerequisites !== undefined) {
7910
+ // if one of these is not defined we know the other is defined and therefore
7911
+ // not equal
7912
+ if (existing_prerequisites === undefined || incoming_prerequisites === undefined) {
7913
+ return false;
7914
+ }
7915
+ const equals_prerequisites_items = equalsArray(existing_prerequisites, incoming_prerequisites, (existing_prerequisites_item, incoming_prerequisites_item) => {
7916
+ if (JSONStringify(incoming_prerequisites_item) !== JSONStringify(existing_prerequisites_item)) {
7917
+ return false;
7918
+ }
7919
+ });
7920
+ if (equals_prerequisites_items === false) {
7921
+ return false;
7922
+ }
7923
+ }
7880
7924
  return true;
7881
7925
  }
7882
7926
 
7883
- const VERSION$2 = "a9b7b7dd4af0f7fb60abe915f1b75126";
7927
+ const VERSION$2 = "c8b590315fbee209b190d8d74f322b3b";
7884
7928
  function validate$2(obj, path = 'ActionPlanTemplate') {
7885
7929
  const v_error = (() => {
7886
7930
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
7887
7931
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
7888
7932
  }
7933
+ if (obj.aptType !== undefined) {
7934
+ const obj_aptType = obj.aptType;
7935
+ const path_aptType = path + '.aptType';
7936
+ if (typeof obj_aptType !== 'string') {
7937
+ return new TypeError('Expected "string" but received "' + typeof obj_aptType + '" (at "' + path_aptType + '")');
7938
+ }
7939
+ }
7940
+ if (obj.aptVersionId !== undefined) {
7941
+ const obj_aptVersionId = obj.aptVersionId;
7942
+ const path_aptVersionId = path + '.aptVersionId';
7943
+ if (typeof obj_aptVersionId !== 'string') {
7944
+ return new TypeError('Expected "string" but received "' + typeof obj_aptVersionId + '" (at "' + path_aptVersionId + '")');
7945
+ }
7946
+ }
7947
+ if (obj.assocCaseRecordTypeName !== undefined) {
7948
+ const obj_assocCaseRecordTypeName = obj.assocCaseRecordTypeName;
7949
+ const path_assocCaseRecordTypeName = path + '.assocCaseRecordTypeName';
7950
+ if (typeof obj_assocCaseRecordTypeName !== 'string') {
7951
+ return new TypeError('Expected "string" but received "' + typeof obj_assocCaseRecordTypeName + '" (at "' + path_assocCaseRecordTypeName + '")');
7952
+ }
7953
+ }
7954
+ if (obj.assocProgramName !== undefined) {
7955
+ const obj_assocProgramName = obj.assocProgramName;
7956
+ const path_assocProgramName = path + '.assocProgramName';
7957
+ if (typeof obj_assocProgramName !== 'string') {
7958
+ return new TypeError('Expected "string" but received "' + typeof obj_assocProgramName + '" (at "' + path_assocProgramName + '")');
7959
+ }
7960
+ }
7889
7961
  if (obj.description !== undefined) {
7890
7962
  const obj_description = obj.description;
7891
7963
  const path_description = path + '.description';
@@ -7907,6 +7979,13 @@ function validate$2(obj, path = 'ActionPlanTemplate') {
7907
7979
  return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
7908
7980
  }
7909
7981
  }
7982
+ if (obj.targetId !== undefined) {
7983
+ const obj_targetId = obj.targetId;
7984
+ const path_targetId = path + '.targetId';
7985
+ if (typeof obj_targetId !== 'string') {
7986
+ return new TypeError('Expected "string" but received "' + typeof obj_targetId + '" (at "' + path_targetId + '")');
7987
+ }
7988
+ }
7910
7989
  if (obj.templateItems !== undefined) {
7911
7990
  const obj_templateItems = obj.templateItems;
7912
7991
  const path_templateItems = path + '.templateItems';
@@ -7934,6 +8013,26 @@ const select$3 = function ActionPlanTemplateSelect() {
7934
8013
  version: VERSION$2,
7935
8014
  private: [],
7936
8015
  selections: [
8016
+ {
8017
+ name: 'aptType',
8018
+ kind: 'Scalar',
8019
+ required: false
8020
+ },
8021
+ {
8022
+ name: 'aptVersionId',
8023
+ kind: 'Scalar',
8024
+ required: false
8025
+ },
8026
+ {
8027
+ name: 'assocCaseRecordTypeName',
8028
+ kind: 'Scalar',
8029
+ required: false
8030
+ },
8031
+ {
8032
+ name: 'assocProgramName',
8033
+ kind: 'Scalar',
8034
+ required: false
8035
+ },
7937
8036
  {
7938
8037
  name: 'description',
7939
8038
  kind: 'Scalar',
@@ -7949,6 +8048,11 @@ const select$3 = function ActionPlanTemplateSelect() {
7949
8048
  kind: 'Scalar',
7950
8049
  required: false
7951
8050
  },
8051
+ {
8052
+ name: 'targetId',
8053
+ kind: 'Scalar',
8054
+ required: false
8055
+ },
7952
8056
  {
7953
8057
  name: 'templateItems',
7954
8058
  kind: 'Object',
@@ -7960,6 +8064,58 @@ const select$3 = function ActionPlanTemplateSelect() {
7960
8064
  };
7961
8065
  };
7962
8066
  function equals$2(existing, incoming) {
8067
+ const existing_aptType = existing.aptType;
8068
+ const incoming_aptType = incoming.aptType;
8069
+ // if at least one of these optionals is defined
8070
+ if (existing_aptType !== undefined || incoming_aptType !== undefined) {
8071
+ // if one of these is not defined we know the other is defined and therefore
8072
+ // not equal
8073
+ if (existing_aptType === undefined || incoming_aptType === undefined) {
8074
+ return false;
8075
+ }
8076
+ if (!(existing_aptType === incoming_aptType)) {
8077
+ return false;
8078
+ }
8079
+ }
8080
+ const existing_aptVersionId = existing.aptVersionId;
8081
+ const incoming_aptVersionId = incoming.aptVersionId;
8082
+ // if at least one of these optionals is defined
8083
+ if (existing_aptVersionId !== undefined || incoming_aptVersionId !== undefined) {
8084
+ // if one of these is not defined we know the other is defined and therefore
8085
+ // not equal
8086
+ if (existing_aptVersionId === undefined || incoming_aptVersionId === undefined) {
8087
+ return false;
8088
+ }
8089
+ if (!(existing_aptVersionId === incoming_aptVersionId)) {
8090
+ return false;
8091
+ }
8092
+ }
8093
+ const existing_assocCaseRecordTypeName = existing.assocCaseRecordTypeName;
8094
+ const incoming_assocCaseRecordTypeName = incoming.assocCaseRecordTypeName;
8095
+ // if at least one of these optionals is defined
8096
+ if (existing_assocCaseRecordTypeName !== undefined || incoming_assocCaseRecordTypeName !== undefined) {
8097
+ // if one of these is not defined we know the other is defined and therefore
8098
+ // not equal
8099
+ if (existing_assocCaseRecordTypeName === undefined || incoming_assocCaseRecordTypeName === undefined) {
8100
+ return false;
8101
+ }
8102
+ if (!(existing_assocCaseRecordTypeName === incoming_assocCaseRecordTypeName)) {
8103
+ return false;
8104
+ }
8105
+ }
8106
+ const existing_assocProgramName = existing.assocProgramName;
8107
+ const incoming_assocProgramName = incoming.assocProgramName;
8108
+ // if at least one of these optionals is defined
8109
+ if (existing_assocProgramName !== undefined || incoming_assocProgramName !== undefined) {
8110
+ // if one of these is not defined we know the other is defined and therefore
8111
+ // not equal
8112
+ if (existing_assocProgramName === undefined || incoming_assocProgramName === undefined) {
8113
+ return false;
8114
+ }
8115
+ if (!(existing_assocProgramName === incoming_assocProgramName)) {
8116
+ return false;
8117
+ }
8118
+ }
7963
8119
  const existing_description = existing.description;
7964
8120
  const incoming_description = incoming.description;
7965
8121
  // if at least one of these optionals is defined
@@ -7999,6 +8155,19 @@ function equals$2(existing, incoming) {
7999
8155
  return false;
8000
8156
  }
8001
8157
  }
8158
+ const existing_targetId = existing.targetId;
8159
+ const incoming_targetId = incoming.targetId;
8160
+ // if at least one of these optionals is defined
8161
+ if (existing_targetId !== undefined || incoming_targetId !== undefined) {
8162
+ // if one of these is not defined we know the other is defined and therefore
8163
+ // not equal
8164
+ if (existing_targetId === undefined || incoming_targetId === undefined) {
8165
+ return false;
8166
+ }
8167
+ if (!(existing_targetId === incoming_targetId)) {
8168
+ return false;
8169
+ }
8170
+ }
8002
8171
  const existing_templateItems = existing.templateItems;
8003
8172
  const incoming_templateItems = incoming.templateItems;
8004
8173
  // if at least one of these optionals is defined
@@ -1,6 +1,6 @@
1
1
  import { ActionPlanTemplateItem as ActionPlanTemplateItem_ActionPlanTemplateItem } from './ActionPlanTemplateItem';
2
2
  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';
3
- export declare const VERSION = "a9b7b7dd4af0f7fb60abe915f1b75126";
3
+ export declare const VERSION = "c8b590315fbee209b190d8d74f322b3b";
4
4
  export declare function validate(obj: any, path?: string): TypeError | null;
5
5
  export declare const RepresentationType: string;
6
6
  export declare function normalize(input: ActionPlanTemplate, existing: ActionPlanTemplateNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ActionPlanTemplateNormalized;
@@ -15,12 +15,22 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
15
15
  * (none)
16
16
  */
17
17
  export interface ActionPlanTemplateNormalized {
18
+ /** Type of the action plan template */
19
+ aptType?: string;
20
+ /** ID of the action plan template version */
21
+ aptVersionId?: string;
22
+ /** Name of the case record type to which action plan template is associated */
23
+ assocCaseRecordTypeName?: string;
24
+ /** Name of the program to which action plan template is associated */
25
+ assocProgramName?: string;
18
26
  /** Action plan template description */
19
27
  description?: string;
20
28
  /** ID of the action plan template */
21
29
  id?: string;
22
30
  /** Action plan template name */
23
31
  name?: string;
32
+ /** ID of the record to which action plan is to be linked */
33
+ targetId?: string;
24
34
  /** List of items in the action plan templates i.e tasks */
25
35
  templateItems?: Array<ActionPlanTemplateItem_ActionPlanTemplateItem>;
26
36
  }
@@ -31,8 +41,13 @@ export interface ActionPlanTemplateNormalized {
31
41
  * (none)
32
42
  */
33
43
  export interface ActionPlanTemplate {
44
+ aptType?: string;
45
+ aptVersionId?: string;
46
+ assocCaseRecordTypeName?: string;
47
+ assocProgramName?: string;
34
48
  description?: string;
35
49
  id?: string;
36
50
  name?: string;
51
+ targetId?: string;
37
52
  templateItems?: Array<ActionPlanTemplateItem_ActionPlanTemplateItem>;
38
53
  }
@@ -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 = "405c2ee418162df1428de92afa3ac88a";
2
+ export declare const VERSION = "3816f003ea6c9a084462f5e361862312";
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: ActionPlanTemplateItem, existing: ActionPlanTemplateItemNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ActionPlanTemplateItemNormalized;
@@ -24,6 +24,8 @@ export interface ActionPlanTemplateItemNormalized {
24
24
  isRequired?: string;
25
25
  /** Action plan template item object type */
26
26
  itemObjectType?: string;
27
+ /** Action plan template item prerequisites */
28
+ prerequisites?: Array<unknown>;
27
29
  /** Action plan template item priority */
28
30
  priority?: string;
29
31
  /** Action plan template item subject */
@@ -41,6 +43,7 @@ export interface ActionPlanTemplateItem {
41
43
  id?: string;
42
44
  isRequired?: string;
43
45
  itemObjectType?: string;
46
+ prerequisites?: Array<unknown>;
44
47
  priority?: string;
45
48
  subject?: string;
46
49
  }
@@ -1,5 +1,5 @@
1
1
  import { KeyMetadata as $64$luvio_engine_KeyMetadata, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Luvio as $64$luvio_engine_Luvio, IngestPath as $64$luvio_engine_IngestPath, Store as $64$luvio_engine_Store, BaseFragment as $64$luvio_engine_BaseFragment, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
2
- export declare const VERSION = "ce60fe41443cd6ac03404d1153559867";
2
+ export declare const VERSION = "d60c44c1e6c3976a0b3d975dcfb0b0d4";
3
3
  export declare function validate(obj: any, path?: string): TypeError | null;
4
4
  export declare const RepresentationType: string;
5
5
  export interface KeyParams extends $64$luvio_engine_KeyMetadata {
@@ -23,6 +23,8 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
23
23
  * id (string): id
24
24
  */
25
25
  export interface TaskNormalized {
26
+ /** Completed date of the task */
27
+ completedDate?: string;
26
28
  /** Created date of the task */
27
29
  createdDate?: string;
28
30
  /** Description of the task */
@@ -49,6 +51,7 @@ export interface TaskNormalized {
49
51
  * id (string): id
50
52
  */
51
53
  export interface Task {
54
+ completedDate?: string;
52
55
  createdDate?: string;
53
56
  description?: string;
54
57
  dueDate?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-industries-education",
3
- "version": "1.252.0",
3
+ "version": "1.256.0",
4
4
  "description": "Education Cloud related actions",
5
5
  "license": "MIT",
6
6
  "main": "dist/es/es2018/industries-education.js",
@@ -47,11 +47,11 @@
47
47
  "test:unit": "jest --config=./jest.config.js"
48
48
  },
49
49
  "dependencies": {
50
- "@salesforce/lds-bindings": "*"
50
+ "@salesforce/lds-bindings": "^1.256.0"
51
51
  },
52
52
  "devDependencies": {
53
- "@salesforce/lds-compiler-plugins": "*",
54
- "@salesforce/lds-karma": "*"
53
+ "@salesforce/lds-compiler-plugins": "^1.256.0",
54
+ "@salesforce/lds-karma": "^1.256.0"
55
55
  },
56
56
  "nx": {
57
57
  "targets": {
package/sfdc/index.js CHANGED
@@ -1116,12 +1116,19 @@ const createPreliminaryApplicationReferencesAdapterFactory = (luvio) => {
1116
1116
  };
1117
1117
  };
1118
1118
 
1119
- const VERSION$A = "ce60fe41443cd6ac03404d1153559867";
1119
+ const VERSION$A = "d60c44c1e6c3976a0b3d975dcfb0b0d4";
1120
1120
  function validate$P(obj, path = 'Task') {
1121
1121
  const v_error = (() => {
1122
1122
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1123
1123
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1124
1124
  }
1125
+ if (obj.completedDate !== undefined) {
1126
+ const obj_completedDate = obj.completedDate;
1127
+ const path_completedDate = path + '.completedDate';
1128
+ if (typeof obj_completedDate !== 'string') {
1129
+ return new TypeError('Expected "string" but received "' + typeof obj_completedDate + '" (at "' + path_completedDate + '")');
1130
+ }
1131
+ }
1125
1132
  if (obj.createdDate !== undefined) {
1126
1133
  const obj_createdDate = obj.createdDate;
1127
1134
  const path_createdDate = path + '.createdDate';
@@ -2509,7 +2516,7 @@ const getApplicationsAdapterFactory = (luvio) => function education__getApplicat
2509
2516
  buildCachedSnapshotCachePolicy$a, buildNetworkSnapshotCachePolicy$a);
2510
2517
  };
2511
2518
 
2512
- const VERSION$u = "405c2ee418162df1428de92afa3ac88a";
2519
+ const VERSION$u = "3816f003ea6c9a084462f5e361862312";
2513
2520
  function validate$D(obj, path = 'ActionPlanTemplateItem') {
2514
2521
  const v_error = (() => {
2515
2522
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -2550,6 +2557,20 @@ function validate$D(obj, path = 'ActionPlanTemplateItem') {
2550
2557
  return new TypeError('Expected "string" but received "' + typeof obj_itemObjectType + '" (at "' + path_itemObjectType + '")');
2551
2558
  }
2552
2559
  }
2560
+ if (obj.prerequisites !== undefined) {
2561
+ const obj_prerequisites = obj.prerequisites;
2562
+ const path_prerequisites = path + '.prerequisites';
2563
+ if (!ArrayIsArray(obj_prerequisites)) {
2564
+ return new TypeError('Expected "array" but received "' + typeof obj_prerequisites + '" (at "' + path_prerequisites + '")');
2565
+ }
2566
+ for (let i = 0; i < obj_prerequisites.length; i++) {
2567
+ const obj_prerequisites_item = obj_prerequisites[i];
2568
+ const path_prerequisites_item = path_prerequisites + '[' + i + ']';
2569
+ if (obj_prerequisites_item === undefined) {
2570
+ return new TypeError('Expected "defined" but received "' + typeof obj_prerequisites_item + '" (at "' + path_prerequisites_item + '")');
2571
+ }
2572
+ }
2573
+ }
2553
2574
  if (obj.priority !== undefined) {
2554
2575
  const obj_priority = obj.priority;
2555
2576
  const path_priority = path + '.priority';
@@ -2598,6 +2619,11 @@ const select$J = function ActionPlanTemplateItemSelect() {
2598
2619
  kind: 'Scalar',
2599
2620
  required: false
2600
2621
  },
2622
+ {
2623
+ name: 'prerequisites',
2624
+ kind: 'Object',
2625
+ // any
2626
+ },
2601
2627
  {
2602
2628
  name: 'priority',
2603
2629
  kind: 'Scalar',
@@ -2703,15 +2729,61 @@ function equals$s(existing, incoming) {
2703
2729
  return false;
2704
2730
  }
2705
2731
  }
2732
+ const existing_prerequisites = existing.prerequisites;
2733
+ const incoming_prerequisites = incoming.prerequisites;
2734
+ // if at least one of these optionals is defined
2735
+ if (existing_prerequisites !== undefined || incoming_prerequisites !== undefined) {
2736
+ // if one of these is not defined we know the other is defined and therefore
2737
+ // not equal
2738
+ if (existing_prerequisites === undefined || incoming_prerequisites === undefined) {
2739
+ return false;
2740
+ }
2741
+ const equals_prerequisites_items = equalsArray(existing_prerequisites, incoming_prerequisites, (existing_prerequisites_item, incoming_prerequisites_item) => {
2742
+ if (JSONStringify(incoming_prerequisites_item) !== JSONStringify(existing_prerequisites_item)) {
2743
+ return false;
2744
+ }
2745
+ });
2746
+ if (equals_prerequisites_items === false) {
2747
+ return false;
2748
+ }
2749
+ }
2706
2750
  return true;
2707
2751
  }
2708
2752
 
2709
- const VERSION$t = "a9b7b7dd4af0f7fb60abe915f1b75126";
2753
+ const VERSION$t = "c8b590315fbee209b190d8d74f322b3b";
2710
2754
  function validate$C(obj, path = 'ActionPlanTemplate') {
2711
2755
  const v_error = (() => {
2712
2756
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2713
2757
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
2714
2758
  }
2759
+ if (obj.aptType !== undefined) {
2760
+ const obj_aptType = obj.aptType;
2761
+ const path_aptType = path + '.aptType';
2762
+ if (typeof obj_aptType !== 'string') {
2763
+ return new TypeError('Expected "string" but received "' + typeof obj_aptType + '" (at "' + path_aptType + '")');
2764
+ }
2765
+ }
2766
+ if (obj.aptVersionId !== undefined) {
2767
+ const obj_aptVersionId = obj.aptVersionId;
2768
+ const path_aptVersionId = path + '.aptVersionId';
2769
+ if (typeof obj_aptVersionId !== 'string') {
2770
+ return new TypeError('Expected "string" but received "' + typeof obj_aptVersionId + '" (at "' + path_aptVersionId + '")');
2771
+ }
2772
+ }
2773
+ if (obj.assocCaseRecordTypeName !== undefined) {
2774
+ const obj_assocCaseRecordTypeName = obj.assocCaseRecordTypeName;
2775
+ const path_assocCaseRecordTypeName = path + '.assocCaseRecordTypeName';
2776
+ if (typeof obj_assocCaseRecordTypeName !== 'string') {
2777
+ return new TypeError('Expected "string" but received "' + typeof obj_assocCaseRecordTypeName + '" (at "' + path_assocCaseRecordTypeName + '")');
2778
+ }
2779
+ }
2780
+ if (obj.assocProgramName !== undefined) {
2781
+ const obj_assocProgramName = obj.assocProgramName;
2782
+ const path_assocProgramName = path + '.assocProgramName';
2783
+ if (typeof obj_assocProgramName !== 'string') {
2784
+ return new TypeError('Expected "string" but received "' + typeof obj_assocProgramName + '" (at "' + path_assocProgramName + '")');
2785
+ }
2786
+ }
2715
2787
  if (obj.description !== undefined) {
2716
2788
  const obj_description = obj.description;
2717
2789
  const path_description = path + '.description';
@@ -2733,6 +2805,13 @@ function validate$C(obj, path = 'ActionPlanTemplate') {
2733
2805
  return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
2734
2806
  }
2735
2807
  }
2808
+ if (obj.targetId !== undefined) {
2809
+ const obj_targetId = obj.targetId;
2810
+ const path_targetId = path + '.targetId';
2811
+ if (typeof obj_targetId !== 'string') {
2812
+ return new TypeError('Expected "string" but received "' + typeof obj_targetId + '" (at "' + path_targetId + '")');
2813
+ }
2814
+ }
2736
2815
  if (obj.templateItems !== undefined) {
2737
2816
  const obj_templateItems = obj.templateItems;
2738
2817
  const path_templateItems = path + '.templateItems';
@@ -2760,6 +2839,26 @@ const select$I = function ActionPlanTemplateSelect() {
2760
2839
  version: VERSION$t,
2761
2840
  private: [],
2762
2841
  selections: [
2842
+ {
2843
+ name: 'aptType',
2844
+ kind: 'Scalar',
2845
+ required: false
2846
+ },
2847
+ {
2848
+ name: 'aptVersionId',
2849
+ kind: 'Scalar',
2850
+ required: false
2851
+ },
2852
+ {
2853
+ name: 'assocCaseRecordTypeName',
2854
+ kind: 'Scalar',
2855
+ required: false
2856
+ },
2857
+ {
2858
+ name: 'assocProgramName',
2859
+ kind: 'Scalar',
2860
+ required: false
2861
+ },
2763
2862
  {
2764
2863
  name: 'description',
2765
2864
  kind: 'Scalar',
@@ -2775,6 +2874,11 @@ const select$I = function ActionPlanTemplateSelect() {
2775
2874
  kind: 'Scalar',
2776
2875
  required: false
2777
2876
  },
2877
+ {
2878
+ name: 'targetId',
2879
+ kind: 'Scalar',
2880
+ required: false
2881
+ },
2778
2882
  {
2779
2883
  name: 'templateItems',
2780
2884
  kind: 'Object',
@@ -2786,6 +2890,58 @@ const select$I = function ActionPlanTemplateSelect() {
2786
2890
  };
2787
2891
  };
2788
2892
  function equals$r(existing, incoming) {
2893
+ const existing_aptType = existing.aptType;
2894
+ const incoming_aptType = incoming.aptType;
2895
+ // if at least one of these optionals is defined
2896
+ if (existing_aptType !== undefined || incoming_aptType !== undefined) {
2897
+ // if one of these is not defined we know the other is defined and therefore
2898
+ // not equal
2899
+ if (existing_aptType === undefined || incoming_aptType === undefined) {
2900
+ return false;
2901
+ }
2902
+ if (!(existing_aptType === incoming_aptType)) {
2903
+ return false;
2904
+ }
2905
+ }
2906
+ const existing_aptVersionId = existing.aptVersionId;
2907
+ const incoming_aptVersionId = incoming.aptVersionId;
2908
+ // if at least one of these optionals is defined
2909
+ if (existing_aptVersionId !== undefined || incoming_aptVersionId !== undefined) {
2910
+ // if one of these is not defined we know the other is defined and therefore
2911
+ // not equal
2912
+ if (existing_aptVersionId === undefined || incoming_aptVersionId === undefined) {
2913
+ return false;
2914
+ }
2915
+ if (!(existing_aptVersionId === incoming_aptVersionId)) {
2916
+ return false;
2917
+ }
2918
+ }
2919
+ const existing_assocCaseRecordTypeName = existing.assocCaseRecordTypeName;
2920
+ const incoming_assocCaseRecordTypeName = incoming.assocCaseRecordTypeName;
2921
+ // if at least one of these optionals is defined
2922
+ if (existing_assocCaseRecordTypeName !== undefined || incoming_assocCaseRecordTypeName !== undefined) {
2923
+ // if one of these is not defined we know the other is defined and therefore
2924
+ // not equal
2925
+ if (existing_assocCaseRecordTypeName === undefined || incoming_assocCaseRecordTypeName === undefined) {
2926
+ return false;
2927
+ }
2928
+ if (!(existing_assocCaseRecordTypeName === incoming_assocCaseRecordTypeName)) {
2929
+ return false;
2930
+ }
2931
+ }
2932
+ const existing_assocProgramName = existing.assocProgramName;
2933
+ const incoming_assocProgramName = incoming.assocProgramName;
2934
+ // if at least one of these optionals is defined
2935
+ if (existing_assocProgramName !== undefined || incoming_assocProgramName !== undefined) {
2936
+ // if one of these is not defined we know the other is defined and therefore
2937
+ // not equal
2938
+ if (existing_assocProgramName === undefined || incoming_assocProgramName === undefined) {
2939
+ return false;
2940
+ }
2941
+ if (!(existing_assocProgramName === incoming_assocProgramName)) {
2942
+ return false;
2943
+ }
2944
+ }
2789
2945
  const existing_description = existing.description;
2790
2946
  const incoming_description = incoming.description;
2791
2947
  // if at least one of these optionals is defined
@@ -2825,6 +2981,19 @@ function equals$r(existing, incoming) {
2825
2981
  return false;
2826
2982
  }
2827
2983
  }
2984
+ const existing_targetId = existing.targetId;
2985
+ const incoming_targetId = incoming.targetId;
2986
+ // if at least one of these optionals is defined
2987
+ if (existing_targetId !== undefined || incoming_targetId !== undefined) {
2988
+ // if one of these is not defined we know the other is defined and therefore
2989
+ // not equal
2990
+ if (existing_targetId === undefined || incoming_targetId === undefined) {
2991
+ return false;
2992
+ }
2993
+ if (!(existing_targetId === incoming_targetId)) {
2994
+ return false;
2995
+ }
2996
+ }
2828
2997
  const existing_templateItems = existing.templateItems;
2829
2998
  const incoming_templateItems = incoming.templateItems;
2830
2999
  // if at least one of these optionals is defined
@@ -8678,4 +8847,4 @@ withDefaultLuvio((luvio) => {
8678
8847
  });
8679
8848
 
8680
8849
  export { createCarePlans, createPreliminaryApplicationReferences, createTask, getAcademicTerms, getAcademicTerms_imperative, getApplicationDetails, getApplicationDetails_imperative, getApplications, getApplications_imperative, getAptsTasksPlans, getAptsTasksPlans_imperative, getAvailableTimeSlots, getAvailableTimeSlots_imperative, getAvailableTopics, getAvailableTopics_imperative, getIndividualApplicationTask, getIndividualApplicationTask_imperative, getNewApplicationPreliminaryData, getNewApplicationPreliminaryData_imperative, getPersonPublicProfile, getPersonPublicProfile_imperative, getPicklistValues, getPicklistValues_imperative, getPreviewLearningProgramPlan, getPreviewLearningProgramPlan_imperative, getProgramTermApplicationTimelines, getProgramTermApplicationTimelines_imperative, getSuccessTeam, getSuccessTeam_imperative, postBenefitAssignment, postCreateLearning, postPublishLearningProgramPlan, updateLearning, updateTaskStatus };
8681
- // version: 1.252.0-eca5ba0ae
8850
+ // version: 1.256.0-fb019fbad
package/src/raml/api.raml CHANGED
@@ -133,6 +133,23 @@ types:
133
133
  description: Representation of the Action Plan Template.
134
134
  type: object
135
135
  properties:
136
+ aptType:
137
+ description: Type of the action plan template
138
+ type: string
139
+ required: false
140
+ aptVersionId:
141
+ description: ID of the action plan template version
142
+ type: string
143
+ required: false
144
+ assocCaseRecordTypeName:
145
+ description: Name of the case record type to which action plan template is
146
+ associated
147
+ type: string
148
+ required: false
149
+ assocProgramName:
150
+ description: Name of the program to which action plan template is associated
151
+ type: string
152
+ required: false
136
153
  description:
137
154
  description: Action plan template description
138
155
  type: string
@@ -145,6 +162,10 @@ types:
145
162
  description: Action plan template name
146
163
  type: string
147
164
  required: false
165
+ targetId:
166
+ description: ID of the record to which action plan is to be linked
167
+ type: string
168
+ required: false
148
169
  templateItems:
149
170
  description: List of items in the action plan templates i.e tasks
150
171
  type: array
@@ -175,6 +196,12 @@ types:
175
196
  description: Action plan template item object type
176
197
  type: string
177
198
  required: false
199
+ prerequisites:
200
+ description: Action plan template item prerequisites
201
+ type: array
202
+ required: false
203
+ items:
204
+ type: any #Hand-rolled due to @W-10034467 type: ActionPlanTemplateItem
178
205
  priority:
179
206
  description: Action plan template item priority
180
207
  type: string
@@ -2024,6 +2051,10 @@ types:
2024
2051
  description: Representation of the Task
2025
2052
  type: object
2026
2053
  properties:
2054
+ completedDate:
2055
+ description: Completed date of the task
2056
+ type: string
2057
+ required: false
2027
2058
  createdDate:
2028
2059
  description: Created date of the task
2029
2060
  type: string