@salesforce/lds-adapters-industries-actionablelist 1.358.0 → 1.359.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.
@@ -498,7 +498,7 @@ function equals$j(existing, incoming) {
498
498
  return true;
499
499
  }
500
500
 
501
- const VERSION$i = "63348e0d2a5e8d3cf7f7ddc110bf6cf4";
501
+ const VERSION$i = "472194c74e6d2d229b81cfead0c0ae2a";
502
502
  function validate$q(obj, path = 'ActionableListDefinitionOutputRepresentation') {
503
503
  const v_error = (() => {
504
504
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -616,6 +616,34 @@ function validate$q(obj, path = 'ActionableListDefinitionOutputRepresentation')
616
616
  if (typeof obj_tcrmDatasetName !== 'string') {
617
617
  return new TypeError('Expected "string" but received "' + typeof obj_tcrmDatasetName + '" (at "' + path_tcrmDatasetName + '")');
618
618
  }
619
+ if (obj.type !== undefined) {
620
+ const obj_type = obj.type;
621
+ const path_type = path + '.type';
622
+ let obj_type_union0 = null;
623
+ const obj_type_union0_error = (() => {
624
+ if (typeof obj_type !== 'string') {
625
+ return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
626
+ }
627
+ })();
628
+ if (obj_type_union0_error != null) {
629
+ obj_type_union0 = obj_type_union0_error.message;
630
+ }
631
+ let obj_type_union1 = null;
632
+ const obj_type_union1_error = (() => {
633
+ if (obj_type !== null) {
634
+ return new TypeError('Expected "null" but received "' + typeof obj_type + '" (at "' + path_type + '")');
635
+ }
636
+ })();
637
+ if (obj_type_union1_error != null) {
638
+ obj_type_union1 = obj_type_union1_error.message;
639
+ }
640
+ if (obj_type_union0 && obj_type_union1) {
641
+ let message = 'Object doesn\'t match union (at "' + path_type + '")';
642
+ message += '\n' + obj_type_union0.split('\n').map((line) => '\t' + line).join('\n');
643
+ message += '\n' + obj_type_union1.split('\n').map((line) => '\t' + line).join('\n');
644
+ return new TypeError(message);
645
+ }
646
+ }
619
647
  })();
620
648
  return v_error === undefined ? null : v_error;
621
649
  }
@@ -670,6 +698,11 @@ const select$u = function ActionableListDefinitionOutputRepresentationSelect() {
670
698
  {
671
699
  name: 'tcrmDatasetName',
672
700
  kind: 'Scalar'
701
+ },
702
+ {
703
+ name: 'type',
704
+ kind: 'Scalar',
705
+ required: false
673
706
  }
674
707
  ]
675
708
  };
@@ -735,6 +768,19 @@ function equals$i(existing, incoming) {
735
768
  if (!(existing_tcrmDatasetId === incoming_tcrmDatasetId)) {
736
769
  return false;
737
770
  }
771
+ const existing_type = existing.type;
772
+ const incoming_type = incoming.type;
773
+ // if at least one of these optionals is defined
774
+ if (existing_type !== undefined || incoming_type !== undefined) {
775
+ // if one of these is not defined we know the other is defined and therefore
776
+ // not equal
777
+ if (existing_type === undefined || incoming_type === undefined) {
778
+ return false;
779
+ }
780
+ if (!(existing_type === incoming_type)) {
781
+ return false;
782
+ }
783
+ }
738
784
  return true;
739
785
  }
740
786
 
@@ -1007,6 +1053,13 @@ function validate$o(obj, path = 'ActionableListDefinitionCreateInputRepresentati
1007
1053
  if (typeof obj_objectName !== 'string') {
1008
1054
  return new TypeError('Expected "string" but received "' + typeof obj_objectName + '" (at "' + path_objectName + '")');
1009
1055
  }
1056
+ if (obj.type !== undefined) {
1057
+ const obj_type = obj.type;
1058
+ const path_type = path + '.type';
1059
+ if (typeof obj_type !== 'string') {
1060
+ return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
1061
+ }
1062
+ }
1010
1063
  })();
1011
1064
  return v_error === undefined ? null : v_error;
1012
1065
  }
@@ -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 = "243e12be989fcda3679af043fa6e1dbe";
2
+ export declare const VERSION = "8eff51e526510eaa24a6a5193e02f57f";
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: ActionableListDefinitionCreateInputRepresentation, existing: ActionableListDefinitionCreateInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ActionableListDefinitionCreateInputRepresentationNormalized;
@@ -22,6 +22,8 @@ export interface ActionableListDefinitionCreateInputRepresentationNormalized {
22
22
  label: string;
23
23
  /** Set anchor entity for create actionable list definition */
24
24
  objectName: string;
25
+ /** The type of the actionable list that can be created from the actionable list definition. */
26
+ type?: string;
25
27
  }
26
28
  /**
27
29
  * Input representation for create actionable list definition API
@@ -34,4 +36,5 @@ export interface ActionableListDefinitionCreateInputRepresentation {
34
36
  developerName: string;
35
37
  label: string;
36
38
  objectName: string;
39
+ type?: string;
37
40
  }
@@ -2,7 +2,7 @@ import { ALDDatasetColumnOutputRepresentation as ALDDatasetColumnOutputRepresent
2
2
  import { ALDMemberStatusOutputRepresentation as ALDMemberStatusOutputRepresentation_ALDMemberStatusOutputRepresentation } from './ALDMemberStatusOutputRepresentation';
3
3
  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';
4
4
  export declare const TTL = 100;
5
- export declare const VERSION = "63348e0d2a5e8d3cf7f7ddc110bf6cf4";
5
+ export declare const VERSION = "472194c74e6d2d229b81cfead0c0ae2a";
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: ActionableListDefinitionOutputRepresentation, existing: ActionableListDefinitionOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ActionableListDefinitionOutputRepresentationNormalized;
@@ -37,6 +37,8 @@ export interface ActionableListDefinitionOutputRepresentationNormalized {
37
37
  tcrmDatasetId: string | null;
38
38
  /** TCRM dataset name of dataset created on tcrm side */
39
39
  tcrmDatasetName: string;
40
+ /** The type of the actionable list that can be created from the actionable list definition. */
41
+ type?: string | null;
40
42
  }
41
43
  /**
42
44
  * Output representation of single object for get actionable list definition API
@@ -55,4 +57,5 @@ export interface ActionableListDefinitionOutputRepresentation {
55
57
  status: string;
56
58
  tcrmDatasetId: string | null;
57
59
  tcrmDatasetName: string;
60
+ type?: string | null;
58
61
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-industries-actionablelist",
3
- "version": "1.358.0",
3
+ "version": "1.359.0",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "Wire adapter for actionable list connect APIs",
6
6
  "main": "dist/es/es2018/industries-actionablelist.js",
@@ -42,11 +42,11 @@
42
42
  "test": "nx build:karma && karma start --single-run"
43
43
  },
44
44
  "dependencies": {
45
- "@salesforce/lds-bindings": "^1.358.0"
45
+ "@salesforce/lds-bindings": "^1.359.0"
46
46
  },
47
47
  "devDependencies": {
48
- "@salesforce/lds-compiler-plugins": "^1.358.0",
49
- "@salesforce/lds-karma": "^1.358.0"
48
+ "@salesforce/lds-compiler-plugins": "^1.359.0",
49
+ "@salesforce/lds-karma": "^1.359.0"
50
50
  },
51
51
  "nx": {
52
52
  "targets": {
package/sfdc/index.js CHANGED
@@ -225,6 +225,13 @@ function validate$s(obj, path = 'ActionableListDefinitionCreateInputRepresentati
225
225
  if (typeof obj_objectName !== 'string') {
226
226
  return new TypeError('Expected "string" but received "' + typeof obj_objectName + '" (at "' + path_objectName + '")');
227
227
  }
228
+ if (obj.type !== undefined) {
229
+ const obj_type = obj.type;
230
+ const path_type = path + '.type';
231
+ if (typeof obj_type !== 'string') {
232
+ return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
233
+ }
234
+ }
228
235
  })();
229
236
  return v_error === undefined ? null : v_error;
230
237
  }
@@ -560,7 +567,7 @@ function equals$j(existing, incoming) {
560
567
  return true;
561
568
  }
562
569
 
563
- const VERSION$i = "63348e0d2a5e8d3cf7f7ddc110bf6cf4";
570
+ const VERSION$i = "472194c74e6d2d229b81cfead0c0ae2a";
564
571
  function validate$p(obj, path = 'ActionableListDefinitionOutputRepresentation') {
565
572
  const v_error = (() => {
566
573
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -678,6 +685,34 @@ function validate$p(obj, path = 'ActionableListDefinitionOutputRepresentation')
678
685
  if (typeof obj_tcrmDatasetName !== 'string') {
679
686
  return new TypeError('Expected "string" but received "' + typeof obj_tcrmDatasetName + '" (at "' + path_tcrmDatasetName + '")');
680
687
  }
688
+ if (obj.type !== undefined) {
689
+ const obj_type = obj.type;
690
+ const path_type = path + '.type';
691
+ let obj_type_union0 = null;
692
+ const obj_type_union0_error = (() => {
693
+ if (typeof obj_type !== 'string') {
694
+ return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
695
+ }
696
+ })();
697
+ if (obj_type_union0_error != null) {
698
+ obj_type_union0 = obj_type_union0_error.message;
699
+ }
700
+ let obj_type_union1 = null;
701
+ const obj_type_union1_error = (() => {
702
+ if (obj_type !== null) {
703
+ return new TypeError('Expected "null" but received "' + typeof obj_type + '" (at "' + path_type + '")');
704
+ }
705
+ })();
706
+ if (obj_type_union1_error != null) {
707
+ obj_type_union1 = obj_type_union1_error.message;
708
+ }
709
+ if (obj_type_union0 && obj_type_union1) {
710
+ let message = 'Object doesn\'t match union (at "' + path_type + '")';
711
+ message += '\n' + obj_type_union0.split('\n').map((line) => '\t' + line).join('\n');
712
+ message += '\n' + obj_type_union1.split('\n').map((line) => '\t' + line).join('\n');
713
+ return new TypeError(message);
714
+ }
715
+ }
681
716
  })();
682
717
  return v_error === undefined ? null : v_error;
683
718
  }
@@ -732,6 +767,11 @@ const select$u = function ActionableListDefinitionOutputRepresentationSelect() {
732
767
  {
733
768
  name: 'tcrmDatasetName',
734
769
  kind: 'Scalar'
770
+ },
771
+ {
772
+ name: 'type',
773
+ kind: 'Scalar',
774
+ required: false
735
775
  }
736
776
  ]
737
777
  };
@@ -797,6 +837,19 @@ function equals$i(existing, incoming) {
797
837
  if (!(existing_tcrmDatasetId === incoming_tcrmDatasetId)) {
798
838
  return false;
799
839
  }
840
+ const existing_type = existing.type;
841
+ const incoming_type = incoming.type;
842
+ // if at least one of these optionals is defined
843
+ if (existing_type !== undefined || incoming_type !== undefined) {
844
+ // if one of these is not defined we know the other is defined and therefore
845
+ // not equal
846
+ if (existing_type === undefined || incoming_type === undefined) {
847
+ return false;
848
+ }
849
+ if (!(existing_type === incoming_type)) {
850
+ return false;
851
+ }
852
+ }
800
853
  return true;
801
854
  }
802
855
 
@@ -5872,4 +5925,4 @@ withDefaultLuvio((luvio) => {
5872
5925
  });
5873
5926
 
5874
5927
  export { createActionableListDefinition, createBulkActionPlans, deleteFilterTemplate, getActionableListDatasetInfo, getActionableListDatasetInfo_imperative, getActionableListDefinitions, getActionableListDefinitions_imperative, getActionableListMembers, getActionableListMembers_imperative, getDatasetColumnValues, getDatasetColumnValues_imperative, getFilterTemplate, getFilterTemplateNotifyChange, getFilterTemplate_imperative, getFilterTemplatesForListDefinition, getFilterTemplatesForListDefinition_imperative, upsertActionableList, upsertActionableListDatasetColumnUser, upsertActionableListFilterTemplate, upsertActionableListRefreshFilter };
5875
- // version: 1.358.0-abc73971a1
5928
+ // version: 1.359.0-0fa7873931
package/src/raml/api.raml CHANGED
@@ -96,6 +96,10 @@ types:
96
96
  objectName:
97
97
  description: Set anchor entity for create actionable list definition
98
98
  type: string
99
+ type:
100
+ description: The type of the actionable list that can be created from the actionable list definition.
101
+ type: string
102
+ required: false
99
103
  ActionableListDefinitionCreateOutputRepresentation:
100
104
  description: Output representation for create actionable list definition API
101
105
  type: object
@@ -157,6 +161,10 @@ types:
157
161
  tcrmDatasetName:
158
162
  description: TCRM dataset name of dataset created on tcrm side
159
163
  type: string
164
+ type:
165
+ description: The type of the actionable list that can be created from the actionable list definition.
166
+ type: string | nil
167
+ required: false
160
168
  ActionableListDefinitionStatusOutputRepresentation:
161
169
  description: Output representation to display the status of an API request
162
170
  type: object