@salesforce/lds-adapters-service-ecm 1.344.0 → 1.346.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.
@@ -93,7 +93,7 @@ function createLink(ref) {
93
93
  };
94
94
  }
95
95
 
96
- function validate$r(obj, path = 'AgentActionInputRepresentation') {
96
+ function validate$s(obj, path = 'AgentActionInputRepresentation') {
97
97
  const v_error = (() => {
98
98
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
99
99
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -214,7 +214,7 @@ function validate$r(obj, path = 'AgentActionInputRepresentation') {
214
214
  return v_error === undefined ? null : v_error;
215
215
  }
216
216
 
217
- function validate$q(obj, path = 'KnowledgeArticleInputRepresentation') {
217
+ function validate$r(obj, path = 'KnowledgeArticleInputRepresentation') {
218
218
  const v_error = (() => {
219
219
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
220
220
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -307,7 +307,7 @@ function validate$q(obj, path = 'KnowledgeArticleInputRepresentation') {
307
307
  return v_error === undefined ? null : v_error;
308
308
  }
309
309
 
310
- function validate$p(obj, path = 'CatalogItemAttributeInputRepresentation') {
310
+ function validate$q(obj, path = 'CatalogItemAttributeInputRepresentation') {
311
311
  const v_error = (() => {
312
312
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
313
313
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -680,6 +680,141 @@ function validate$p(obj, path = 'CatalogItemAttributeInputRepresentation') {
680
680
  return v_error === undefined ? null : v_error;
681
681
  }
682
682
 
683
+ function validate$p(obj, path = 'SectionInputRepresentation') {
684
+ const v_error = (() => {
685
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
686
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
687
+ }
688
+ if (obj.attributes !== undefined) {
689
+ const obj_attributes = obj.attributes;
690
+ const path_attributes = path + '.attributes';
691
+ if (!ArrayIsArray(obj_attributes)) {
692
+ return new TypeError('Expected "array" but received "' + typeof obj_attributes + '" (at "' + path_attributes + '")');
693
+ }
694
+ for (let i = 0; i < obj_attributes.length; i++) {
695
+ const obj_attributes_item = obj_attributes[i];
696
+ const path_attributes_item = path_attributes + '[' + i + ']';
697
+ if (obj_attributes_item === undefined) {
698
+ return new TypeError('Expected "defined" but received "' + typeof obj_attributes_item + '" (at "' + path_attributes_item + '")');
699
+ }
700
+ }
701
+ }
702
+ if (obj.description !== undefined) {
703
+ const obj_description = obj.description;
704
+ const path_description = path + '.description';
705
+ let obj_description_union0 = null;
706
+ const obj_description_union0_error = (() => {
707
+ if (typeof obj_description !== 'string') {
708
+ return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
709
+ }
710
+ })();
711
+ if (obj_description_union0_error != null) {
712
+ obj_description_union0 = obj_description_union0_error.message;
713
+ }
714
+ let obj_description_union1 = null;
715
+ const obj_description_union1_error = (() => {
716
+ if (obj_description !== null) {
717
+ return new TypeError('Expected "null" but received "' + typeof obj_description + '" (at "' + path_description + '")');
718
+ }
719
+ })();
720
+ if (obj_description_union1_error != null) {
721
+ obj_description_union1 = obj_description_union1_error.message;
722
+ }
723
+ if (obj_description_union0 && obj_description_union1) {
724
+ let message = 'Object doesn\'t match union (at "' + path_description + '")';
725
+ message += '\n' + obj_description_union0.split('\n').map((line) => '\t' + line).join('\n');
726
+ message += '\n' + obj_description_union1.split('\n').map((line) => '\t' + line).join('\n');
727
+ return new TypeError(message);
728
+ }
729
+ }
730
+ if (obj.id !== undefined) {
731
+ const obj_id = obj.id;
732
+ const path_id = path + '.id';
733
+ let obj_id_union0 = null;
734
+ const obj_id_union0_error = (() => {
735
+ if (typeof obj_id !== 'string') {
736
+ return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
737
+ }
738
+ })();
739
+ if (obj_id_union0_error != null) {
740
+ obj_id_union0 = obj_id_union0_error.message;
741
+ }
742
+ let obj_id_union1 = null;
743
+ const obj_id_union1_error = (() => {
744
+ if (obj_id !== null) {
745
+ return new TypeError('Expected "null" but received "' + typeof obj_id + '" (at "' + path_id + '")');
746
+ }
747
+ })();
748
+ if (obj_id_union1_error != null) {
749
+ obj_id_union1 = obj_id_union1_error.message;
750
+ }
751
+ if (obj_id_union0 && obj_id_union1) {
752
+ let message = 'Object doesn\'t match union (at "' + path_id + '")';
753
+ message += '\n' + obj_id_union0.split('\n').map((line) => '\t' + line).join('\n');
754
+ message += '\n' + obj_id_union1.split('\n').map((line) => '\t' + line).join('\n');
755
+ return new TypeError(message);
756
+ }
757
+ }
758
+ if (obj.name !== undefined) {
759
+ const obj_name = obj.name;
760
+ const path_name = path + '.name';
761
+ let obj_name_union0 = null;
762
+ const obj_name_union0_error = (() => {
763
+ if (typeof obj_name !== 'string') {
764
+ return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
765
+ }
766
+ })();
767
+ if (obj_name_union0_error != null) {
768
+ obj_name_union0 = obj_name_union0_error.message;
769
+ }
770
+ let obj_name_union1 = null;
771
+ const obj_name_union1_error = (() => {
772
+ if (obj_name !== null) {
773
+ return new TypeError('Expected "null" but received "' + typeof obj_name + '" (at "' + path_name + '")');
774
+ }
775
+ })();
776
+ if (obj_name_union1_error != null) {
777
+ obj_name_union1 = obj_name_union1_error.message;
778
+ }
779
+ if (obj_name_union0 && obj_name_union1) {
780
+ let message = 'Object doesn\'t match union (at "' + path_name + '")';
781
+ message += '\n' + obj_name_union0.split('\n').map((line) => '\t' + line).join('\n');
782
+ message += '\n' + obj_name_union1.split('\n').map((line) => '\t' + line).join('\n');
783
+ return new TypeError(message);
784
+ }
785
+ }
786
+ if (obj.operationType !== undefined) {
787
+ const obj_operationType = obj.operationType;
788
+ const path_operationType = path + '.operationType';
789
+ let obj_operationType_union0 = null;
790
+ const obj_operationType_union0_error = (() => {
791
+ if (typeof obj_operationType !== 'string') {
792
+ return new TypeError('Expected "string" but received "' + typeof obj_operationType + '" (at "' + path_operationType + '")');
793
+ }
794
+ })();
795
+ if (obj_operationType_union0_error != null) {
796
+ obj_operationType_union0 = obj_operationType_union0_error.message;
797
+ }
798
+ let obj_operationType_union1 = null;
799
+ const obj_operationType_union1_error = (() => {
800
+ if (obj_operationType !== null) {
801
+ return new TypeError('Expected "null" but received "' + typeof obj_operationType + '" (at "' + path_operationType + '")');
802
+ }
803
+ })();
804
+ if (obj_operationType_union1_error != null) {
805
+ obj_operationType_union1 = obj_operationType_union1_error.message;
806
+ }
807
+ if (obj_operationType_union0 && obj_operationType_union1) {
808
+ let message = 'Object doesn\'t match union (at "' + path_operationType + '")';
809
+ message += '\n' + obj_operationType_union0.split('\n').map((line) => '\t' + line).join('\n');
810
+ message += '\n' + obj_operationType_union1.split('\n').map((line) => '\t' + line).join('\n');
811
+ return new TypeError(message);
812
+ }
813
+ }
814
+ })();
815
+ return v_error === undefined ? null : v_error;
816
+ }
817
+
683
818
  function validate$o(obj, path = 'EligibilityRulesInputRepresentation') {
684
819
  const v_error = (() => {
685
820
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -3880,7 +4015,7 @@ function equals$4(existing, incoming) {
3880
4015
  }
3881
4016
 
3882
4017
  const TTL$3 = 6000;
3883
- const VERSION$3 = "efbda596097be82303366398479b8fa4";
4018
+ const VERSION$3 = "9cce3c8a5131820b99e02e05c1d95d43";
3884
4019
  function validate$7(obj, path = 'CatalogItemOutputRepresentation') {
3885
4020
  const v_error = (() => {
3886
4021
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -4394,6 +4529,44 @@ function validate$7(obj, path = 'CatalogItemOutputRepresentation') {
4394
4529
  return new TypeError(message);
4395
4530
  }
4396
4531
  }
4532
+ if (obj.sections !== undefined) {
4533
+ const obj_sections = obj.sections;
4534
+ const path_sections = path + '.sections';
4535
+ if (!ArrayIsArray(obj_sections)) {
4536
+ return new TypeError('Expected "array" but received "' + typeof obj_sections + '" (at "' + path_sections + '")');
4537
+ }
4538
+ for (let i = 0; i < obj_sections.length; i++) {
4539
+ const obj_sections_item = obj_sections[i];
4540
+ const path_sections_item = path_sections + '[' + i + ']';
4541
+ let obj_sections_item_union0 = null;
4542
+ const obj_sections_item_union0_error = (() => {
4543
+ const referencepath_sections_itemValidationError = validate$8(obj_sections_item, path_sections_item);
4544
+ if (referencepath_sections_itemValidationError !== null) {
4545
+ let message = 'Object doesn\'t match SectionOutputRepresentation (at "' + path_sections_item + '")\n';
4546
+ message += referencepath_sections_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
4547
+ return new TypeError(message);
4548
+ }
4549
+ })();
4550
+ if (obj_sections_item_union0_error != null) {
4551
+ obj_sections_item_union0 = obj_sections_item_union0_error.message;
4552
+ }
4553
+ let obj_sections_item_union1 = null;
4554
+ const obj_sections_item_union1_error = (() => {
4555
+ if (obj_sections_item !== null) {
4556
+ return new TypeError('Expected "null" but received "' + typeof obj_sections_item + '" (at "' + path_sections_item + '")');
4557
+ }
4558
+ })();
4559
+ if (obj_sections_item_union1_error != null) {
4560
+ obj_sections_item_union1 = obj_sections_item_union1_error.message;
4561
+ }
4562
+ if (obj_sections_item_union0 && obj_sections_item_union1) {
4563
+ let message = 'Object doesn\'t match union (at "' + path_sections_item + '")';
4564
+ message += '\n' + obj_sections_item_union0.split('\n').map((line) => '\t' + line).join('\n');
4565
+ message += '\n' + obj_sections_item_union1.split('\n').map((line) => '\t' + line).join('\n');
4566
+ return new TypeError(message);
4567
+ }
4568
+ }
4569
+ }
4397
4570
  if (obj.targetObject !== undefined) {
4398
4571
  const obj_targetObject = obj.targetObject;
4399
4572
  const path_targetObject = path + '.targetObject';
@@ -4583,6 +4756,14 @@ const select$9 = function CatalogItemOutputRepresentationSelect() {
4583
4756
  selections: SectionOutputRepresentation__selections,
4584
4757
  required: false
4585
4758
  },
4759
+ {
4760
+ name: 'sections',
4761
+ kind: 'Object',
4762
+ nullable: true,
4763
+ plural: true,
4764
+ selections: SectionOutputRepresentation__selections,
4765
+ required: false
4766
+ },
4586
4767
  {
4587
4768
  name: 'targetObject',
4588
4769
  kind: 'Scalar',
@@ -4849,6 +5030,27 @@ function equals$3(existing, incoming) {
4849
5030
  return false;
4850
5031
  }
4851
5032
  }
5033
+ const existing_sections = existing.sections;
5034
+ const incoming_sections = incoming.sections;
5035
+ // if at least one of these optionals is defined
5036
+ if (existing_sections !== undefined || incoming_sections !== undefined) {
5037
+ // if one of these is not defined we know the other is defined and therefore
5038
+ // not equal
5039
+ if (existing_sections === undefined || incoming_sections === undefined) {
5040
+ return false;
5041
+ }
5042
+ const equals_sections_items = equalsArray(existing_sections, incoming_sections, (existing_sections_item, incoming_sections_item) => {
5043
+ if (!(existing_sections_item === incoming_sections_item
5044
+ || (existing_sections_item != null &&
5045
+ incoming_sections_item != null &&
5046
+ equals$4(existing_sections_item, incoming_sections_item)))) {
5047
+ return false;
5048
+ }
5049
+ });
5050
+ if (equals_sections_items === false) {
5051
+ return false;
5052
+ }
5053
+ }
4852
5054
  const existing_targetObject = existing.targetObject;
4853
5055
  const incoming_targetObject = incoming.targetObject;
4854
5056
  // if at least one of these optionals is defined
@@ -4941,6 +5143,7 @@ const createCatalogItem_ConfigPropertyMetadata = [
4941
5143
  generateParamConfigMetadata('agentAction', false, 2 /* Body */, 4 /* Unsupported */),
4942
5144
  generateParamConfigMetadata('associatedArticles', false, 2 /* Body */, 4 /* Unsupported */, true),
4943
5145
  generateParamConfigMetadata('attributes', false, 2 /* Body */, 4 /* Unsupported */, true),
5146
+ generateParamConfigMetadata('sections', false, 2 /* Body */, 4 /* Unsupported */, true),
4944
5147
  generateParamConfigMetadata('contextDefinitionDevNameOrId', false, 2 /* Body */, 4 /* Unsupported */),
4945
5148
  generateParamConfigMetadata('description', false, 2 /* Body */, 4 /* Unsupported */),
4946
5149
  generateParamConfigMetadata('displayUrl', false, 2 /* Body */, 4 /* Unsupported */),
@@ -4960,7 +5163,7 @@ const createResourceParams$5 = /*#__PURE__*/ createResourceParams$6(createCatalo
4960
5163
  function typeCheckConfig$5(untrustedConfig) {
4961
5164
  const config = {};
4962
5165
  const untrustedConfig_agentAction = untrustedConfig.agentAction;
4963
- const referenceAgentActionInputRepresentationValidationError = validate$r(untrustedConfig_agentAction);
5166
+ const referenceAgentActionInputRepresentationValidationError = validate$s(untrustedConfig_agentAction);
4964
5167
  if (referenceAgentActionInputRepresentationValidationError === null) {
4965
5168
  config.agentAction = untrustedConfig_agentAction;
4966
5169
  }
@@ -4972,7 +5175,7 @@ function typeCheckConfig$5(untrustedConfig) {
4972
5175
  const untrustedConfig_associatedArticles_array = [];
4973
5176
  for (let i = 0, arrayLength = untrustedConfig_associatedArticles.length; i < arrayLength; i++) {
4974
5177
  const untrustedConfig_associatedArticles_item = untrustedConfig_associatedArticles[i];
4975
- const referenceKnowledgeArticleInputRepresentationValidationError = validate$q(untrustedConfig_associatedArticles_item);
5178
+ const referenceKnowledgeArticleInputRepresentationValidationError = validate$r(untrustedConfig_associatedArticles_item);
4976
5179
  if (referenceKnowledgeArticleInputRepresentationValidationError === null) {
4977
5180
  untrustedConfig_associatedArticles_array.push(untrustedConfig_associatedArticles_item);
4978
5181
  }
@@ -4987,7 +5190,7 @@ function typeCheckConfig$5(untrustedConfig) {
4987
5190
  const untrustedConfig_attributes_array = [];
4988
5191
  for (let i = 0, arrayLength = untrustedConfig_attributes.length; i < arrayLength; i++) {
4989
5192
  const untrustedConfig_attributes_item = untrustedConfig_attributes[i];
4990
- const referenceCatalogItemAttributeInputRepresentationValidationError = validate$p(untrustedConfig_attributes_item);
5193
+ const referenceCatalogItemAttributeInputRepresentationValidationError = validate$q(untrustedConfig_attributes_item);
4991
5194
  if (referenceCatalogItemAttributeInputRepresentationValidationError === null) {
4992
5195
  untrustedConfig_attributes_array.push(untrustedConfig_attributes_item);
4993
5196
  }
@@ -4997,6 +5200,21 @@ function typeCheckConfig$5(untrustedConfig) {
4997
5200
  }
4998
5201
  config.attributes = untrustedConfig_attributes_array;
4999
5202
  }
5203
+ const untrustedConfig_sections = untrustedConfig.sections;
5204
+ if (ArrayIsArray$1(untrustedConfig_sections)) {
5205
+ const untrustedConfig_sections_array = [];
5206
+ for (let i = 0, arrayLength = untrustedConfig_sections.length; i < arrayLength; i++) {
5207
+ const untrustedConfig_sections_item = untrustedConfig_sections[i];
5208
+ const referenceSectionInputRepresentationValidationError = validate$p(untrustedConfig_sections_item);
5209
+ if (referenceSectionInputRepresentationValidationError === null) {
5210
+ untrustedConfig_sections_array.push(untrustedConfig_sections_item);
5211
+ }
5212
+ if (untrustedConfig_sections_item === null) {
5213
+ untrustedConfig_sections_array.push(untrustedConfig_sections_item);
5214
+ }
5215
+ }
5216
+ config.sections = untrustedConfig_sections_array;
5217
+ }
5000
5218
  const untrustedConfig_contextDefinitionDevNameOrId = untrustedConfig.contextDefinitionDevNameOrId;
5001
5219
  if (typeof untrustedConfig_contextDefinitionDevNameOrId === 'string') {
5002
5220
  config.contextDefinitionDevNameOrId = untrustedConfig_contextDefinitionDevNameOrId;
@@ -5350,6 +5568,7 @@ const updateCatalogItem_ConfigPropertyMetadata = [
5350
5568
  generateParamConfigMetadata('productId', false, 2 /* Body */, 4 /* Unsupported */),
5351
5569
  generateParamConfigMetadata('associatedArticles', false, 2 /* Body */, 4 /* Unsupported */, true),
5352
5570
  generateParamConfigMetadata('attributes', false, 2 /* Body */, 4 /* Unsupported */, true),
5571
+ generateParamConfigMetadata('sections', false, 2 /* Body */, 4 /* Unsupported */, true),
5353
5572
  generateParamConfigMetadata('contextDefinitionDevNameOrId', false, 2 /* Body */, 4 /* Unsupported */),
5354
5573
  generateParamConfigMetadata('description', false, 2 /* Body */, 4 /* Unsupported */),
5355
5574
  generateParamConfigMetadata('displayUrl', false, 2 /* Body */, 4 /* Unsupported */),
@@ -5370,7 +5589,7 @@ function typeCheckConfig$3(untrustedConfig) {
5370
5589
  const config = {};
5371
5590
  typeCheckConfig$6(untrustedConfig, config, updateCatalogItem_ConfigPropertyMetadata);
5372
5591
  const untrustedConfig_agentAction = untrustedConfig.agentAction;
5373
- const referenceAgentActionInputRepresentationValidationError = validate$r(untrustedConfig_agentAction);
5592
+ const referenceAgentActionInputRepresentationValidationError = validate$s(untrustedConfig_agentAction);
5374
5593
  if (referenceAgentActionInputRepresentationValidationError === null) {
5375
5594
  config.agentAction = untrustedConfig_agentAction;
5376
5595
  }
@@ -5389,7 +5608,7 @@ function typeCheckConfig$3(untrustedConfig) {
5389
5608
  const untrustedConfig_associatedArticles_array = [];
5390
5609
  for (let i = 0, arrayLength = untrustedConfig_associatedArticles.length; i < arrayLength; i++) {
5391
5610
  const untrustedConfig_associatedArticles_item = untrustedConfig_associatedArticles[i];
5392
- const referenceKnowledgeArticleInputRepresentationValidationError = validate$q(untrustedConfig_associatedArticles_item);
5611
+ const referenceKnowledgeArticleInputRepresentationValidationError = validate$r(untrustedConfig_associatedArticles_item);
5393
5612
  if (referenceKnowledgeArticleInputRepresentationValidationError === null) {
5394
5613
  untrustedConfig_associatedArticles_array.push(untrustedConfig_associatedArticles_item);
5395
5614
  }
@@ -5404,7 +5623,7 @@ function typeCheckConfig$3(untrustedConfig) {
5404
5623
  const untrustedConfig_attributes_array = [];
5405
5624
  for (let i = 0, arrayLength = untrustedConfig_attributes.length; i < arrayLength; i++) {
5406
5625
  const untrustedConfig_attributes_item = untrustedConfig_attributes[i];
5407
- const referenceCatalogItemAttributeInputRepresentationValidationError = validate$p(untrustedConfig_attributes_item);
5626
+ const referenceCatalogItemAttributeInputRepresentationValidationError = validate$q(untrustedConfig_attributes_item);
5408
5627
  if (referenceCatalogItemAttributeInputRepresentationValidationError === null) {
5409
5628
  untrustedConfig_attributes_array.push(untrustedConfig_attributes_item);
5410
5629
  }
@@ -5414,6 +5633,21 @@ function typeCheckConfig$3(untrustedConfig) {
5414
5633
  }
5415
5634
  config.attributes = untrustedConfig_attributes_array;
5416
5635
  }
5636
+ const untrustedConfig_sections = untrustedConfig.sections;
5637
+ if (ArrayIsArray$1(untrustedConfig_sections)) {
5638
+ const untrustedConfig_sections_array = [];
5639
+ for (let i = 0, arrayLength = untrustedConfig_sections.length; i < arrayLength; i++) {
5640
+ const untrustedConfig_sections_item = untrustedConfig_sections[i];
5641
+ const referenceSectionInputRepresentationValidationError = validate$p(untrustedConfig_sections_item);
5642
+ if (referenceSectionInputRepresentationValidationError === null) {
5643
+ untrustedConfig_sections_array.push(untrustedConfig_sections_item);
5644
+ }
5645
+ if (untrustedConfig_sections_item === null) {
5646
+ untrustedConfig_sections_array.push(untrustedConfig_sections_item);
5647
+ }
5648
+ }
5649
+ config.sections = untrustedConfig_sections_array;
5650
+ }
5417
5651
  const untrustedConfig_contextDefinitionDevNameOrId = untrustedConfig.contextDefinitionDevNameOrId;
5418
5652
  if (typeof untrustedConfig_contextDefinitionDevNameOrId === 'string') {
5419
5653
  config.contextDefinitionDevNameOrId = untrustedConfig_contextDefinitionDevNameOrId;
@@ -3,6 +3,7 @@ import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as ada
3
3
  import { AgentActionInputRepresentation as types_AgentActionInputRepresentation_AgentActionInputRepresentation } from '../types/AgentActionInputRepresentation';
4
4
  import { KnowledgeArticleInputRepresentation as types_KnowledgeArticleInputRepresentation_KnowledgeArticleInputRepresentation } from '../types/KnowledgeArticleInputRepresentation';
5
5
  import { CatalogItemAttributeInputRepresentation as types_CatalogItemAttributeInputRepresentation_CatalogItemAttributeInputRepresentation } from '../types/CatalogItemAttributeInputRepresentation';
6
+ import { SectionInputRepresentation as types_SectionInputRepresentation_SectionInputRepresentation } from '../types/SectionInputRepresentation';
6
7
  import { EligibilityRulesInputRepresentation as types_EligibilityRulesInputRepresentation_EligibilityRulesInputRepresentation } from '../types/EligibilityRulesInputRepresentation';
7
8
  import { FulfillmentFlowInputRepresentation as types_FulfillmentFlowInputRepresentation_FulfillmentFlowInputRepresentation } from '../types/FulfillmentFlowInputRepresentation';
8
9
  import { IntakeFormInputRepresentation as types_IntakeFormInputRepresentation_IntakeFormInputRepresentation } from '../types/IntakeFormInputRepresentation';
@@ -18,6 +19,7 @@ export interface CreateCatalogItemConfig {
18
19
  agentAction?: types_AgentActionInputRepresentation_AgentActionInputRepresentation | null;
19
20
  associatedArticles?: Array<types_KnowledgeArticleInputRepresentation_KnowledgeArticleInputRepresentation | null>;
20
21
  attributes?: Array<types_CatalogItemAttributeInputRepresentation_CatalogItemAttributeInputRepresentation | null>;
22
+ sections?: Array<types_SectionInputRepresentation_SectionInputRepresentation | null>;
21
23
  contextDefinitionDevNameOrId?: string | null;
22
24
  description?: string | null;
23
25
  displayUrl?: string | null;
@@ -3,6 +3,7 @@ import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as ada
3
3
  import { AgentActionInputRepresentation as types_AgentActionInputRepresentation_AgentActionInputRepresentation } from '../types/AgentActionInputRepresentation';
4
4
  import { KnowledgeArticleInputRepresentation as types_KnowledgeArticleInputRepresentation_KnowledgeArticleInputRepresentation } from '../types/KnowledgeArticleInputRepresentation';
5
5
  import { CatalogItemAttributeInputRepresentation as types_CatalogItemAttributeInputRepresentation_CatalogItemAttributeInputRepresentation } from '../types/CatalogItemAttributeInputRepresentation';
6
+ import { SectionInputRepresentation as types_SectionInputRepresentation_SectionInputRepresentation } from '../types/SectionInputRepresentation';
6
7
  import { EligibilityRulesInputRepresentation as types_EligibilityRulesInputRepresentation_EligibilityRulesInputRepresentation } from '../types/EligibilityRulesInputRepresentation';
7
8
  import { FulfillmentFlowInputRepresentation as types_FulfillmentFlowInputRepresentation_FulfillmentFlowInputRepresentation } from '../types/FulfillmentFlowInputRepresentation';
8
9
  import { IntakeFormInputRepresentation as types_IntakeFormInputRepresentation_IntakeFormInputRepresentation } from '../types/IntakeFormInputRepresentation';
@@ -20,6 +21,7 @@ export interface UpdateCatalogItemConfig {
20
21
  productId?: string | null;
21
22
  associatedArticles?: Array<types_KnowledgeArticleInputRepresentation_KnowledgeArticleInputRepresentation | null>;
22
23
  attributes?: Array<types_CatalogItemAttributeInputRepresentation_CatalogItemAttributeInputRepresentation | null>;
24
+ sections?: Array<types_SectionInputRepresentation_SectionInputRepresentation | null>;
23
25
  contextDefinitionDevNameOrId?: string | null;
24
26
  description?: string | null;
25
27
  displayUrl?: string | null;
@@ -1,6 +1,7 @@
1
1
  import { AgentActionInputRepresentation as types_AgentActionInputRepresentation_AgentActionInputRepresentation } from '../types/AgentActionInputRepresentation';
2
2
  import { KnowledgeArticleInputRepresentation as types_KnowledgeArticleInputRepresentation_KnowledgeArticleInputRepresentation } from '../types/KnowledgeArticleInputRepresentation';
3
3
  import { CatalogItemAttributeInputRepresentation as types_CatalogItemAttributeInputRepresentation_CatalogItemAttributeInputRepresentation } from '../types/CatalogItemAttributeInputRepresentation';
4
+ import { SectionInputRepresentation as types_SectionInputRepresentation_SectionInputRepresentation } from '../types/SectionInputRepresentation';
4
5
  import { EligibilityRulesInputRepresentation as types_EligibilityRulesInputRepresentation_EligibilityRulesInputRepresentation } from '../types/EligibilityRulesInputRepresentation';
5
6
  import { FulfillmentFlowInputRepresentation as types_FulfillmentFlowInputRepresentation_FulfillmentFlowInputRepresentation } from '../types/FulfillmentFlowInputRepresentation';
6
7
  import { IntakeFormInputRepresentation as types_IntakeFormInputRepresentation_IntakeFormInputRepresentation } from '../types/IntakeFormInputRepresentation';
@@ -18,6 +19,7 @@ export interface ResourceRequestConfig {
18
19
  productId?: string | null;
19
20
  associatedArticles?: Array<types_KnowledgeArticleInputRepresentation_KnowledgeArticleInputRepresentation | null>;
20
21
  attributes?: Array<types_CatalogItemAttributeInputRepresentation_CatalogItemAttributeInputRepresentation | null>;
22
+ sections?: Array<types_SectionInputRepresentation_SectionInputRepresentation | null>;
21
23
  contextDefinitionDevNameOrId?: string | null;
22
24
  description?: string | null;
23
25
  displayUrl?: string | null;
@@ -1,6 +1,7 @@
1
1
  import { AgentActionInputRepresentation as types_AgentActionInputRepresentation_AgentActionInputRepresentation } from '../types/AgentActionInputRepresentation';
2
2
  import { KnowledgeArticleInputRepresentation as types_KnowledgeArticleInputRepresentation_KnowledgeArticleInputRepresentation } from '../types/KnowledgeArticleInputRepresentation';
3
3
  import { CatalogItemAttributeInputRepresentation as types_CatalogItemAttributeInputRepresentation_CatalogItemAttributeInputRepresentation } from '../types/CatalogItemAttributeInputRepresentation';
4
+ import { SectionInputRepresentation as types_SectionInputRepresentation_SectionInputRepresentation } from '../types/SectionInputRepresentation';
4
5
  import { EligibilityRulesInputRepresentation as types_EligibilityRulesInputRepresentation_EligibilityRulesInputRepresentation } from '../types/EligibilityRulesInputRepresentation';
5
6
  import { FulfillmentFlowInputRepresentation as types_FulfillmentFlowInputRepresentation_FulfillmentFlowInputRepresentation } from '../types/FulfillmentFlowInputRepresentation';
6
7
  import { IntakeFormInputRepresentation as types_IntakeFormInputRepresentation_IntakeFormInputRepresentation } from '../types/IntakeFormInputRepresentation';
@@ -14,6 +15,7 @@ export interface ResourceRequestConfig {
14
15
  agentAction?: types_AgentActionInputRepresentation_AgentActionInputRepresentation | null;
15
16
  associatedArticles?: Array<types_KnowledgeArticleInputRepresentation_KnowledgeArticleInputRepresentation | null>;
16
17
  attributes?: Array<types_CatalogItemAttributeInputRepresentation_CatalogItemAttributeInputRepresentation | null>;
18
+ sections?: Array<types_SectionInputRepresentation_SectionInputRepresentation | null>;
17
19
  contextDefinitionDevNameOrId?: string | null;
18
20
  description?: string | null;
19
21
  displayUrl?: string | null;
@@ -7,8 +7,9 @@ import { IntakeFormInputRepresentation as IntakeFormInputRepresentation_IntakeFo
7
7
  import { IntegrationDefInputRepresentation as IntegrationDefInputRepresentation_IntegrationDefInputRepresentation } from './IntegrationDefInputRepresentation';
8
8
  import { PreprocessorInputRepresentation as PreprocessorInputRepresentation_PreprocessorInputRepresentation } from './PreprocessorInputRepresentation';
9
9
  import { ProductRequestCreateInputRepresentation as ProductRequestCreateInputRepresentation_ProductRequestCreateInputRepresentation } from './ProductRequestCreateInputRepresentation';
10
+ import { SectionInputRepresentation as SectionInputRepresentation_SectionInputRepresentation } from './SectionInputRepresentation';
10
11
  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';
11
- export declare const VERSION = "6c4eda123b451760140c3488d221ab4d";
12
+ export declare const VERSION = "5300adef33d2824e13bbc06f52da0cca";
12
13
  export declare function validate(obj: any, path?: string): TypeError | null;
13
14
  export declare const RepresentationType: string;
14
15
  export declare function normalize(input: CatalogItemCreateInputRepresentation, existing: CatalogItemCreateInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CatalogItemCreateInputRepresentationNormalized;
@@ -51,6 +52,8 @@ export interface CatalogItemCreateInputRepresentationNormalized {
51
52
  preProcessors?: Array<PreprocessorInputRepresentation_PreprocessorInputRepresentation | null>;
52
53
  /** ProductRequests */
53
54
  productRequests?: Array<ProductRequestCreateInputRepresentation_ProductRequestCreateInputRepresentation | null>;
55
+ /** Section List */
56
+ sections?: Array<SectionInputRepresentation_SectionInputRepresentation | null>;
54
57
  /** TargetObject */
55
58
  targetObject: string | null;
56
59
  /** UsedFor */
@@ -77,6 +80,7 @@ export interface CatalogItemCreateInputRepresentation {
77
80
  name?: string | null;
78
81
  preProcessors?: Array<PreprocessorInputRepresentation_PreprocessorInputRepresentation | null>;
79
82
  productRequests?: Array<ProductRequestCreateInputRepresentation_ProductRequestCreateInputRepresentation | null>;
83
+ sections?: Array<SectionInputRepresentation_SectionInputRepresentation | null>;
80
84
  targetObject: string | null;
81
85
  usedFor?: string | null;
82
86
  }
@@ -9,7 +9,7 @@ import { ProductRequestOutputRepresentation as ProductRequestOutputRepresentatio
9
9
  import { SectionOutputRepresentation as SectionOutputRepresentation_SectionOutputRepresentation } from './SectionOutputRepresentation';
10
10
  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, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
11
11
  export declare const TTL = 6000;
12
- export declare const VERSION = "efbda596097be82303366398479b8fa4";
12
+ export declare const VERSION = "9cce3c8a5131820b99e02e05c1d95d43";
13
13
  export declare function validate(obj: any, path?: string): TypeError | null;
14
14
  export declare const RepresentationType: string;
15
15
  export interface KeyParams extends $64$luvio_engine_KeyMetadata {
@@ -63,8 +63,10 @@ export interface CatalogItemOutputRepresentationNormalized {
63
63
  productId?: string | null;
64
64
  /** ProductRequests */
65
65
  productRequests?: Array<ProductRequestOutputRepresentation_ProductRequestOutputRepresentation | null>;
66
- /** Attributes */
66
+ /** Section */
67
67
  section?: SectionOutputRepresentation_SectionOutputRepresentation | null;
68
+ /** Sections */
69
+ sections?: Array<SectionOutputRepresentation_SectionOutputRepresentation | null>;
68
70
  /** Target Object */
69
71
  targetObject?: string | null;
70
72
  /** usedFor of the Catalog Item */
@@ -93,6 +95,7 @@ export interface CatalogItemOutputRepresentation {
93
95
  productId?: string | null;
94
96
  productRequests?: Array<ProductRequestOutputRepresentation_ProductRequestOutputRepresentation | null>;
95
97
  section?: SectionOutputRepresentation_SectionOutputRepresentation | null;
98
+ sections?: Array<SectionOutputRepresentation_SectionOutputRepresentation | null>;
96
99
  targetObject?: string | null;
97
100
  usedFor?: string | null;
98
101
  }
@@ -7,8 +7,9 @@ import { IntakeFormInputRepresentation as IntakeFormInputRepresentation_IntakeFo
7
7
  import { IntegrationDefInputRepresentation as IntegrationDefInputRepresentation_IntegrationDefInputRepresentation } from './IntegrationDefInputRepresentation';
8
8
  import { PreprocessorInputRepresentation as PreprocessorInputRepresentation_PreprocessorInputRepresentation } from './PreprocessorInputRepresentation';
9
9
  import { ProductRequestCreateInputRepresentation as ProductRequestCreateInputRepresentation_ProductRequestCreateInputRepresentation } from './ProductRequestCreateInputRepresentation';
10
+ import { SectionInputRepresentation as SectionInputRepresentation_SectionInputRepresentation } from './SectionInputRepresentation';
10
11
  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';
11
- export declare const VERSION = "8dcbd8785277bacf2497dce77265c64f";
12
+ export declare const VERSION = "f46b69fa26d21cd3f4939ebd5f0baf46";
12
13
  export declare function validate(obj: any, path?: string): TypeError | null;
13
14
  export declare const RepresentationType: string;
14
15
  export declare function normalize(input: CatalogItemUpdateInputRepresentation, existing: CatalogItemUpdateInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CatalogItemUpdateInputRepresentationNormalized;
@@ -53,6 +54,8 @@ export interface CatalogItemUpdateInputRepresentationNormalized {
53
54
  productId?: string | null;
54
55
  /** ProductRequests */
55
56
  productRequests?: Array<ProductRequestCreateInputRepresentation_ProductRequestCreateInputRepresentation | null>;
57
+ /** Section List */
58
+ sections?: Array<SectionInputRepresentation_SectionInputRepresentation | null>;
56
59
  /** Target Object */
57
60
  targetObject?: string | null;
58
61
  /** UsedFor */
@@ -80,6 +83,7 @@ export interface CatalogItemUpdateInputRepresentation {
80
83
  preProcessors?: Array<PreprocessorInputRepresentation_PreprocessorInputRepresentation | null>;
81
84
  productId?: string | null;
82
85
  productRequests?: Array<ProductRequestCreateInputRepresentation_ProductRequestCreateInputRepresentation | null>;
86
+ sections?: Array<SectionInputRepresentation_SectionInputRepresentation | null>;
83
87
  targetObject?: string | null;
84
88
  usedFor?: string | null;
85
89
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-service-ecm",
3
- "version": "1.344.0",
3
+ "version": "1.346.0",
4
4
  "description": "Service Automation Request",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "dist/es/es2018/service-ecm.js",
@@ -40,10 +40,10 @@
40
40
  "test:unit": "jest"
41
41
  },
42
42
  "dependencies": {
43
- "@salesforce/lds-bindings": "^1.344.0"
43
+ "@salesforce/lds-bindings": "^1.346.0"
44
44
  },
45
45
  "devDependencies": {
46
- "@salesforce/lds-compiler-plugins": "^1.344.0"
46
+ "@salesforce/lds-compiler-plugins": "^1.346.0"
47
47
  },
48
48
  "nx": {
49
49
  "targets": {
package/sfdc/index.js CHANGED
@@ -103,7 +103,7 @@ function createLink(ref) {
103
103
  };
104
104
  }
105
105
 
106
- function validate$r(obj, path = 'AgentActionInputRepresentation') {
106
+ function validate$s(obj, path = 'AgentActionInputRepresentation') {
107
107
  const v_error = (() => {
108
108
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
109
109
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -224,7 +224,7 @@ function validate$r(obj, path = 'AgentActionInputRepresentation') {
224
224
  return v_error === undefined ? null : v_error;
225
225
  }
226
226
 
227
- function validate$q(obj, path = 'KnowledgeArticleInputRepresentation') {
227
+ function validate$r(obj, path = 'KnowledgeArticleInputRepresentation') {
228
228
  const v_error = (() => {
229
229
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
230
230
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -317,7 +317,7 @@ function validate$q(obj, path = 'KnowledgeArticleInputRepresentation') {
317
317
  return v_error === undefined ? null : v_error;
318
318
  }
319
319
 
320
- function validate$p(obj, path = 'CatalogItemAttributeInputRepresentation') {
320
+ function validate$q(obj, path = 'CatalogItemAttributeInputRepresentation') {
321
321
  const v_error = (() => {
322
322
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
323
323
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -690,6 +690,141 @@ function validate$p(obj, path = 'CatalogItemAttributeInputRepresentation') {
690
690
  return v_error === undefined ? null : v_error;
691
691
  }
692
692
 
693
+ function validate$p(obj, path = 'SectionInputRepresentation') {
694
+ const v_error = (() => {
695
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
696
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
697
+ }
698
+ if (obj.attributes !== undefined) {
699
+ const obj_attributes = obj.attributes;
700
+ const path_attributes = path + '.attributes';
701
+ if (!ArrayIsArray(obj_attributes)) {
702
+ return new TypeError('Expected "array" but received "' + typeof obj_attributes + '" (at "' + path_attributes + '")');
703
+ }
704
+ for (let i = 0; i < obj_attributes.length; i++) {
705
+ const obj_attributes_item = obj_attributes[i];
706
+ const path_attributes_item = path_attributes + '[' + i + ']';
707
+ if (obj_attributes_item === undefined) {
708
+ return new TypeError('Expected "defined" but received "' + typeof obj_attributes_item + '" (at "' + path_attributes_item + '")');
709
+ }
710
+ }
711
+ }
712
+ if (obj.description !== undefined) {
713
+ const obj_description = obj.description;
714
+ const path_description = path + '.description';
715
+ let obj_description_union0 = null;
716
+ const obj_description_union0_error = (() => {
717
+ if (typeof obj_description !== 'string') {
718
+ return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
719
+ }
720
+ })();
721
+ if (obj_description_union0_error != null) {
722
+ obj_description_union0 = obj_description_union0_error.message;
723
+ }
724
+ let obj_description_union1 = null;
725
+ const obj_description_union1_error = (() => {
726
+ if (obj_description !== null) {
727
+ return new TypeError('Expected "null" but received "' + typeof obj_description + '" (at "' + path_description + '")');
728
+ }
729
+ })();
730
+ if (obj_description_union1_error != null) {
731
+ obj_description_union1 = obj_description_union1_error.message;
732
+ }
733
+ if (obj_description_union0 && obj_description_union1) {
734
+ let message = 'Object doesn\'t match union (at "' + path_description + '")';
735
+ message += '\n' + obj_description_union0.split('\n').map((line) => '\t' + line).join('\n');
736
+ message += '\n' + obj_description_union1.split('\n').map((line) => '\t' + line).join('\n');
737
+ return new TypeError(message);
738
+ }
739
+ }
740
+ if (obj.id !== undefined) {
741
+ const obj_id = obj.id;
742
+ const path_id = path + '.id';
743
+ let obj_id_union0 = null;
744
+ const obj_id_union0_error = (() => {
745
+ if (typeof obj_id !== 'string') {
746
+ return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
747
+ }
748
+ })();
749
+ if (obj_id_union0_error != null) {
750
+ obj_id_union0 = obj_id_union0_error.message;
751
+ }
752
+ let obj_id_union1 = null;
753
+ const obj_id_union1_error = (() => {
754
+ if (obj_id !== null) {
755
+ return new TypeError('Expected "null" but received "' + typeof obj_id + '" (at "' + path_id + '")');
756
+ }
757
+ })();
758
+ if (obj_id_union1_error != null) {
759
+ obj_id_union1 = obj_id_union1_error.message;
760
+ }
761
+ if (obj_id_union0 && obj_id_union1) {
762
+ let message = 'Object doesn\'t match union (at "' + path_id + '")';
763
+ message += '\n' + obj_id_union0.split('\n').map((line) => '\t' + line).join('\n');
764
+ message += '\n' + obj_id_union1.split('\n').map((line) => '\t' + line).join('\n');
765
+ return new TypeError(message);
766
+ }
767
+ }
768
+ if (obj.name !== undefined) {
769
+ const obj_name = obj.name;
770
+ const path_name = path + '.name';
771
+ let obj_name_union0 = null;
772
+ const obj_name_union0_error = (() => {
773
+ if (typeof obj_name !== 'string') {
774
+ return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
775
+ }
776
+ })();
777
+ if (obj_name_union0_error != null) {
778
+ obj_name_union0 = obj_name_union0_error.message;
779
+ }
780
+ let obj_name_union1 = null;
781
+ const obj_name_union1_error = (() => {
782
+ if (obj_name !== null) {
783
+ return new TypeError('Expected "null" but received "' + typeof obj_name + '" (at "' + path_name + '")');
784
+ }
785
+ })();
786
+ if (obj_name_union1_error != null) {
787
+ obj_name_union1 = obj_name_union1_error.message;
788
+ }
789
+ if (obj_name_union0 && obj_name_union1) {
790
+ let message = 'Object doesn\'t match union (at "' + path_name + '")';
791
+ message += '\n' + obj_name_union0.split('\n').map((line) => '\t' + line).join('\n');
792
+ message += '\n' + obj_name_union1.split('\n').map((line) => '\t' + line).join('\n');
793
+ return new TypeError(message);
794
+ }
795
+ }
796
+ if (obj.operationType !== undefined) {
797
+ const obj_operationType = obj.operationType;
798
+ const path_operationType = path + '.operationType';
799
+ let obj_operationType_union0 = null;
800
+ const obj_operationType_union0_error = (() => {
801
+ if (typeof obj_operationType !== 'string') {
802
+ return new TypeError('Expected "string" but received "' + typeof obj_operationType + '" (at "' + path_operationType + '")');
803
+ }
804
+ })();
805
+ if (obj_operationType_union0_error != null) {
806
+ obj_operationType_union0 = obj_operationType_union0_error.message;
807
+ }
808
+ let obj_operationType_union1 = null;
809
+ const obj_operationType_union1_error = (() => {
810
+ if (obj_operationType !== null) {
811
+ return new TypeError('Expected "null" but received "' + typeof obj_operationType + '" (at "' + path_operationType + '")');
812
+ }
813
+ })();
814
+ if (obj_operationType_union1_error != null) {
815
+ obj_operationType_union1 = obj_operationType_union1_error.message;
816
+ }
817
+ if (obj_operationType_union0 && obj_operationType_union1) {
818
+ let message = 'Object doesn\'t match union (at "' + path_operationType + '")';
819
+ message += '\n' + obj_operationType_union0.split('\n').map((line) => '\t' + line).join('\n');
820
+ message += '\n' + obj_operationType_union1.split('\n').map((line) => '\t' + line).join('\n');
821
+ return new TypeError(message);
822
+ }
823
+ }
824
+ })();
825
+ return v_error === undefined ? null : v_error;
826
+ }
827
+
693
828
  function validate$o(obj, path = 'EligibilityRulesInputRepresentation') {
694
829
  const v_error = (() => {
695
830
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -3890,7 +4025,7 @@ function equals$4(existing, incoming) {
3890
4025
  }
3891
4026
 
3892
4027
  const TTL$3 = 6000;
3893
- const VERSION$3 = "efbda596097be82303366398479b8fa4";
4028
+ const VERSION$3 = "9cce3c8a5131820b99e02e05c1d95d43";
3894
4029
  function validate$7(obj, path = 'CatalogItemOutputRepresentation') {
3895
4030
  const v_error = (() => {
3896
4031
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -4404,6 +4539,44 @@ function validate$7(obj, path = 'CatalogItemOutputRepresentation') {
4404
4539
  return new TypeError(message);
4405
4540
  }
4406
4541
  }
4542
+ if (obj.sections !== undefined) {
4543
+ const obj_sections = obj.sections;
4544
+ const path_sections = path + '.sections';
4545
+ if (!ArrayIsArray(obj_sections)) {
4546
+ return new TypeError('Expected "array" but received "' + typeof obj_sections + '" (at "' + path_sections + '")');
4547
+ }
4548
+ for (let i = 0; i < obj_sections.length; i++) {
4549
+ const obj_sections_item = obj_sections[i];
4550
+ const path_sections_item = path_sections + '[' + i + ']';
4551
+ let obj_sections_item_union0 = null;
4552
+ const obj_sections_item_union0_error = (() => {
4553
+ const referencepath_sections_itemValidationError = validate$8(obj_sections_item, path_sections_item);
4554
+ if (referencepath_sections_itemValidationError !== null) {
4555
+ let message = 'Object doesn\'t match SectionOutputRepresentation (at "' + path_sections_item + '")\n';
4556
+ message += referencepath_sections_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
4557
+ return new TypeError(message);
4558
+ }
4559
+ })();
4560
+ if (obj_sections_item_union0_error != null) {
4561
+ obj_sections_item_union0 = obj_sections_item_union0_error.message;
4562
+ }
4563
+ let obj_sections_item_union1 = null;
4564
+ const obj_sections_item_union1_error = (() => {
4565
+ if (obj_sections_item !== null) {
4566
+ return new TypeError('Expected "null" but received "' + typeof obj_sections_item + '" (at "' + path_sections_item + '")');
4567
+ }
4568
+ })();
4569
+ if (obj_sections_item_union1_error != null) {
4570
+ obj_sections_item_union1 = obj_sections_item_union1_error.message;
4571
+ }
4572
+ if (obj_sections_item_union0 && obj_sections_item_union1) {
4573
+ let message = 'Object doesn\'t match union (at "' + path_sections_item + '")';
4574
+ message += '\n' + obj_sections_item_union0.split('\n').map((line) => '\t' + line).join('\n');
4575
+ message += '\n' + obj_sections_item_union1.split('\n').map((line) => '\t' + line).join('\n');
4576
+ return new TypeError(message);
4577
+ }
4578
+ }
4579
+ }
4407
4580
  if (obj.targetObject !== undefined) {
4408
4581
  const obj_targetObject = obj.targetObject;
4409
4582
  const path_targetObject = path + '.targetObject';
@@ -4593,6 +4766,14 @@ const select$9 = function CatalogItemOutputRepresentationSelect() {
4593
4766
  selections: SectionOutputRepresentation__selections,
4594
4767
  required: false
4595
4768
  },
4769
+ {
4770
+ name: 'sections',
4771
+ kind: 'Object',
4772
+ nullable: true,
4773
+ plural: true,
4774
+ selections: SectionOutputRepresentation__selections,
4775
+ required: false
4776
+ },
4596
4777
  {
4597
4778
  name: 'targetObject',
4598
4779
  kind: 'Scalar',
@@ -4859,6 +5040,27 @@ function equals$3(existing, incoming) {
4859
5040
  return false;
4860
5041
  }
4861
5042
  }
5043
+ const existing_sections = existing.sections;
5044
+ const incoming_sections = incoming.sections;
5045
+ // if at least one of these optionals is defined
5046
+ if (existing_sections !== undefined || incoming_sections !== undefined) {
5047
+ // if one of these is not defined we know the other is defined and therefore
5048
+ // not equal
5049
+ if (existing_sections === undefined || incoming_sections === undefined) {
5050
+ return false;
5051
+ }
5052
+ const equals_sections_items = equalsArray(existing_sections, incoming_sections, (existing_sections_item, incoming_sections_item) => {
5053
+ if (!(existing_sections_item === incoming_sections_item
5054
+ || (existing_sections_item != null &&
5055
+ incoming_sections_item != null &&
5056
+ equals$4(existing_sections_item, incoming_sections_item)))) {
5057
+ return false;
5058
+ }
5059
+ });
5060
+ if (equals_sections_items === false) {
5061
+ return false;
5062
+ }
5063
+ }
4862
5064
  const existing_targetObject = existing.targetObject;
4863
5065
  const incoming_targetObject = incoming.targetObject;
4864
5066
  // if at least one of these optionals is defined
@@ -4951,6 +5153,7 @@ const createCatalogItem_ConfigPropertyMetadata = [
4951
5153
  generateParamConfigMetadata('agentAction', false, 2 /* Body */, 4 /* Unsupported */),
4952
5154
  generateParamConfigMetadata('associatedArticles', false, 2 /* Body */, 4 /* Unsupported */, true),
4953
5155
  generateParamConfigMetadata('attributes', false, 2 /* Body */, 4 /* Unsupported */, true),
5156
+ generateParamConfigMetadata('sections', false, 2 /* Body */, 4 /* Unsupported */, true),
4954
5157
  generateParamConfigMetadata('contextDefinitionDevNameOrId', false, 2 /* Body */, 4 /* Unsupported */),
4955
5158
  generateParamConfigMetadata('description', false, 2 /* Body */, 4 /* Unsupported */),
4956
5159
  generateParamConfigMetadata('displayUrl', false, 2 /* Body */, 4 /* Unsupported */),
@@ -4970,7 +5173,7 @@ const createResourceParams$5 = /*#__PURE__*/ createResourceParams$6(createCatalo
4970
5173
  function typeCheckConfig$5(untrustedConfig) {
4971
5174
  const config = {};
4972
5175
  const untrustedConfig_agentAction = untrustedConfig.agentAction;
4973
- const referenceAgentActionInputRepresentationValidationError = validate$r(untrustedConfig_agentAction);
5176
+ const referenceAgentActionInputRepresentationValidationError = validate$s(untrustedConfig_agentAction);
4974
5177
  if (referenceAgentActionInputRepresentationValidationError === null) {
4975
5178
  config.agentAction = untrustedConfig_agentAction;
4976
5179
  }
@@ -4982,7 +5185,7 @@ function typeCheckConfig$5(untrustedConfig) {
4982
5185
  const untrustedConfig_associatedArticles_array = [];
4983
5186
  for (let i = 0, arrayLength = untrustedConfig_associatedArticles.length; i < arrayLength; i++) {
4984
5187
  const untrustedConfig_associatedArticles_item = untrustedConfig_associatedArticles[i];
4985
- const referenceKnowledgeArticleInputRepresentationValidationError = validate$q(untrustedConfig_associatedArticles_item);
5188
+ const referenceKnowledgeArticleInputRepresentationValidationError = validate$r(untrustedConfig_associatedArticles_item);
4986
5189
  if (referenceKnowledgeArticleInputRepresentationValidationError === null) {
4987
5190
  untrustedConfig_associatedArticles_array.push(untrustedConfig_associatedArticles_item);
4988
5191
  }
@@ -4997,7 +5200,7 @@ function typeCheckConfig$5(untrustedConfig) {
4997
5200
  const untrustedConfig_attributes_array = [];
4998
5201
  for (let i = 0, arrayLength = untrustedConfig_attributes.length; i < arrayLength; i++) {
4999
5202
  const untrustedConfig_attributes_item = untrustedConfig_attributes[i];
5000
- const referenceCatalogItemAttributeInputRepresentationValidationError = validate$p(untrustedConfig_attributes_item);
5203
+ const referenceCatalogItemAttributeInputRepresentationValidationError = validate$q(untrustedConfig_attributes_item);
5001
5204
  if (referenceCatalogItemAttributeInputRepresentationValidationError === null) {
5002
5205
  untrustedConfig_attributes_array.push(untrustedConfig_attributes_item);
5003
5206
  }
@@ -5007,6 +5210,21 @@ function typeCheckConfig$5(untrustedConfig) {
5007
5210
  }
5008
5211
  config.attributes = untrustedConfig_attributes_array;
5009
5212
  }
5213
+ const untrustedConfig_sections = untrustedConfig.sections;
5214
+ if (ArrayIsArray$1(untrustedConfig_sections)) {
5215
+ const untrustedConfig_sections_array = [];
5216
+ for (let i = 0, arrayLength = untrustedConfig_sections.length; i < arrayLength; i++) {
5217
+ const untrustedConfig_sections_item = untrustedConfig_sections[i];
5218
+ const referenceSectionInputRepresentationValidationError = validate$p(untrustedConfig_sections_item);
5219
+ if (referenceSectionInputRepresentationValidationError === null) {
5220
+ untrustedConfig_sections_array.push(untrustedConfig_sections_item);
5221
+ }
5222
+ if (untrustedConfig_sections_item === null) {
5223
+ untrustedConfig_sections_array.push(untrustedConfig_sections_item);
5224
+ }
5225
+ }
5226
+ config.sections = untrustedConfig_sections_array;
5227
+ }
5010
5228
  const untrustedConfig_contextDefinitionDevNameOrId = untrustedConfig.contextDefinitionDevNameOrId;
5011
5229
  if (typeof untrustedConfig_contextDefinitionDevNameOrId === 'string') {
5012
5230
  config.contextDefinitionDevNameOrId = untrustedConfig_contextDefinitionDevNameOrId;
@@ -5898,6 +6116,7 @@ const updateCatalogItem_ConfigPropertyMetadata = [
5898
6116
  generateParamConfigMetadata('productId', false, 2 /* Body */, 4 /* Unsupported */),
5899
6117
  generateParamConfigMetadata('associatedArticles', false, 2 /* Body */, 4 /* Unsupported */, true),
5900
6118
  generateParamConfigMetadata('attributes', false, 2 /* Body */, 4 /* Unsupported */, true),
6119
+ generateParamConfigMetadata('sections', false, 2 /* Body */, 4 /* Unsupported */, true),
5901
6120
  generateParamConfigMetadata('contextDefinitionDevNameOrId', false, 2 /* Body */, 4 /* Unsupported */),
5902
6121
  generateParamConfigMetadata('description', false, 2 /* Body */, 4 /* Unsupported */),
5903
6122
  generateParamConfigMetadata('displayUrl', false, 2 /* Body */, 4 /* Unsupported */),
@@ -5918,7 +6137,7 @@ function typeCheckConfig$1(untrustedConfig) {
5918
6137
  const config = {};
5919
6138
  typeCheckConfig$6(untrustedConfig, config, updateCatalogItem_ConfigPropertyMetadata);
5920
6139
  const untrustedConfig_agentAction = untrustedConfig.agentAction;
5921
- const referenceAgentActionInputRepresentationValidationError = validate$r(untrustedConfig_agentAction);
6140
+ const referenceAgentActionInputRepresentationValidationError = validate$s(untrustedConfig_agentAction);
5922
6141
  if (referenceAgentActionInputRepresentationValidationError === null) {
5923
6142
  config.agentAction = untrustedConfig_agentAction;
5924
6143
  }
@@ -5937,7 +6156,7 @@ function typeCheckConfig$1(untrustedConfig) {
5937
6156
  const untrustedConfig_associatedArticles_array = [];
5938
6157
  for (let i = 0, arrayLength = untrustedConfig_associatedArticles.length; i < arrayLength; i++) {
5939
6158
  const untrustedConfig_associatedArticles_item = untrustedConfig_associatedArticles[i];
5940
- const referenceKnowledgeArticleInputRepresentationValidationError = validate$q(untrustedConfig_associatedArticles_item);
6159
+ const referenceKnowledgeArticleInputRepresentationValidationError = validate$r(untrustedConfig_associatedArticles_item);
5941
6160
  if (referenceKnowledgeArticleInputRepresentationValidationError === null) {
5942
6161
  untrustedConfig_associatedArticles_array.push(untrustedConfig_associatedArticles_item);
5943
6162
  }
@@ -5952,7 +6171,7 @@ function typeCheckConfig$1(untrustedConfig) {
5952
6171
  const untrustedConfig_attributes_array = [];
5953
6172
  for (let i = 0, arrayLength = untrustedConfig_attributes.length; i < arrayLength; i++) {
5954
6173
  const untrustedConfig_attributes_item = untrustedConfig_attributes[i];
5955
- const referenceCatalogItemAttributeInputRepresentationValidationError = validate$p(untrustedConfig_attributes_item);
6174
+ const referenceCatalogItemAttributeInputRepresentationValidationError = validate$q(untrustedConfig_attributes_item);
5956
6175
  if (referenceCatalogItemAttributeInputRepresentationValidationError === null) {
5957
6176
  untrustedConfig_attributes_array.push(untrustedConfig_attributes_item);
5958
6177
  }
@@ -5962,6 +6181,21 @@ function typeCheckConfig$1(untrustedConfig) {
5962
6181
  }
5963
6182
  config.attributes = untrustedConfig_attributes_array;
5964
6183
  }
6184
+ const untrustedConfig_sections = untrustedConfig.sections;
6185
+ if (ArrayIsArray$1(untrustedConfig_sections)) {
6186
+ const untrustedConfig_sections_array = [];
6187
+ for (let i = 0, arrayLength = untrustedConfig_sections.length; i < arrayLength; i++) {
6188
+ const untrustedConfig_sections_item = untrustedConfig_sections[i];
6189
+ const referenceSectionInputRepresentationValidationError = validate$p(untrustedConfig_sections_item);
6190
+ if (referenceSectionInputRepresentationValidationError === null) {
6191
+ untrustedConfig_sections_array.push(untrustedConfig_sections_item);
6192
+ }
6193
+ if (untrustedConfig_sections_item === null) {
6194
+ untrustedConfig_sections_array.push(untrustedConfig_sections_item);
6195
+ }
6196
+ }
6197
+ config.sections = untrustedConfig_sections_array;
6198
+ }
5965
6199
  const untrustedConfig_contextDefinitionDevNameOrId = untrustedConfig.contextDefinitionDevNameOrId;
5966
6200
  if (typeof untrustedConfig_contextDefinitionDevNameOrId === 'string') {
5967
6201
  config.contextDefinitionDevNameOrId = untrustedConfig_contextDefinitionDevNameOrId;
@@ -6414,4 +6648,4 @@ withDefaultLuvio((luvio) => {
6414
6648
  });
6415
6649
 
6416
6650
  export { createCatalogItem, generateOmniScript, getAllServiceAutomationDep, getAllServiceAutomationDep_imperative, getCatalogItem, getCatalogItem_imperative, updateCatalogItem, updateEpcCategories };
6417
- // version: 1.344.0-455da7ef74
6651
+ // version: 1.346.0-1b813009ec
package/src/raml/api.raml CHANGED
@@ -130,6 +130,7 @@ types:
130
130
  - Percentage
131
131
  - Picklist
132
132
  - Text
133
+ - File
133
134
  defaultValue:
134
135
  required: false
135
136
  description: Attribute Default Value
@@ -209,6 +210,7 @@ types:
209
210
  - Percentage
210
211
  - Picklist
211
212
  - Text
213
+ - File
212
214
  defaultValue:
213
215
  required: false
214
216
  description: Attribute Default Value
@@ -277,6 +279,12 @@ types:
277
279
  type: array
278
280
  items:
279
281
  type: CatalogItemAttributeInputRepresentation | nil
282
+ sections:
283
+ required: false
284
+ description: Section List
285
+ type: array
286
+ items:
287
+ type: SectionInputRepresentation | nil
280
288
  contextDefinitionDevNameOrId:
281
289
  required: false
282
290
  description: Context Definition Id
@@ -357,8 +365,14 @@ types:
357
365
  type: AssociatedArticleOutputRepresentation | nil
358
366
  section:
359
367
  required: false
360
- description: Attributes
368
+ description: Section
361
369
  type: SectionOutputRepresentation | nil
370
+ sections:
371
+ required: false
372
+ description: Sections
373
+ type: array
374
+ items:
375
+ type: SectionOutputRepresentation | nil
362
376
  catalogItemId:
363
377
  required: true
364
378
  description: Id of the Catalog Item
@@ -456,6 +470,12 @@ types:
456
470
  type: array
457
471
  items:
458
472
  type: CatalogItemAttributeInputRepresentation | nil
473
+ sections:
474
+ required: false
475
+ description: Section List
476
+ type: array
477
+ items:
478
+ type: SectionInputRepresentation | nil
459
479
  contextDefinitionDevNameOrId:
460
480
  required: false
461
481
  description: Context Definition Id