@salesforce/lds-adapters-analytics-wave 1.239.0 → 1.241.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.
@@ -20543,8 +20543,11 @@ function validate$N(obj, path = 'RecipeCollectionRepresentation') {
20543
20543
  for (let i = 0; i < obj_recipes.length; i++) {
20544
20544
  const obj_recipes_item = obj_recipes[i];
20545
20545
  const path_recipes_item = path_recipes + '[' + i + ']';
20546
- if (typeof obj_recipes_item !== 'object') {
20547
- return new TypeError('Expected "object" but received "' + typeof obj_recipes_item + '" (at "' + path_recipes_item + '")');
20546
+ const referencepath_recipes_itemValidationError = validate$21(obj_recipes_item, path_recipes_item);
20547
+ if (referencepath_recipes_itemValidationError !== null) {
20548
+ let message = 'Object doesn\'t match RecipeRepresentation (at "' + path_recipes_item + '")\n';
20549
+ message += referencepath_recipes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
20550
+ return new TypeError(message);
20548
20551
  }
20549
20552
  }
20550
20553
  if (obj.totalSize !== undefined) {
@@ -20585,22 +20588,6 @@ function validate$N(obj, path = 'RecipeCollectionRepresentation') {
20585
20588
  }
20586
20589
  const RepresentationType$b = 'RecipeCollectionRepresentation';
20587
20590
  function normalize$b(input, existing, path, luvio, store, timestamp) {
20588
- const input_recipes = input.recipes;
20589
- const input_recipes_id = path.fullPath + '__recipes';
20590
- for (let i = 0; i < input_recipes.length; i++) {
20591
- const input_recipes_item = input_recipes[i];
20592
- let input_recipes_item_id = input_recipes_id + '__' + i;
20593
- input_recipes[i] = ingest$B(input_recipes_item, {
20594
- fullPath: input_recipes_item_id,
20595
- propertyName: i,
20596
- parent: {
20597
- data: input,
20598
- key: path.fullPath,
20599
- existing: existing,
20600
- },
20601
- ttl: path.ttl
20602
- }, luvio, store, timestamp);
20603
- }
20604
20591
  return input;
20605
20592
  }
20606
20593
  const select$P = function RecipeCollectionRepresentationSelect() {
@@ -20608,63 +20595,13 @@ const select$P = function RecipeCollectionRepresentationSelect() {
20608
20595
  kind: 'Fragment',
20609
20596
  version: VERSION$y,
20610
20597
  private: [],
20611
- selections: [
20612
- {
20613
- name: 'nextPageUrl',
20614
- kind: 'Scalar'
20615
- },
20616
- {
20617
- name: 'recipes',
20618
- kind: 'Link',
20619
- plural: true,
20620
- fragment: select$21()
20621
- },
20622
- {
20623
- name: 'totalSize',
20624
- kind: 'Scalar',
20625
- required: false
20626
- },
20627
- {
20628
- name: 'url',
20629
- kind: 'Scalar'
20630
- }
20631
- ]
20598
+ opaque: true
20632
20599
  };
20633
20600
  };
20634
20601
  function equals$y(existing, incoming) {
20635
- const existing_url = existing.url;
20636
- const incoming_url = incoming.url;
20637
- if (!(existing_url === incoming_url)) {
20638
- return false;
20639
- }
20640
- const existing_nextPageUrl = existing.nextPageUrl;
20641
- const incoming_nextPageUrl = incoming.nextPageUrl;
20642
- if (!(existing_nextPageUrl === incoming_nextPageUrl)) {
20643
- return false;
20644
- }
20645
- const existing_recipes = existing.recipes;
20646
- const incoming_recipes = incoming.recipes;
20647
- const equals_recipes_items = equalsArray(existing_recipes, incoming_recipes, (existing_recipes_item, incoming_recipes_item) => {
20648
- if (!(existing_recipes_item.__ref === incoming_recipes_item.__ref)) {
20649
- return false;
20650
- }
20651
- });
20652
- if (equals_recipes_items === false) {
20602
+ if (JSONStringify(incoming) !== JSONStringify(existing)) {
20653
20603
  return false;
20654
20604
  }
20655
- const existing_totalSize = existing.totalSize;
20656
- const incoming_totalSize = incoming.totalSize;
20657
- // if at least one of these optionals is defined
20658
- if (existing_totalSize !== undefined || incoming_totalSize !== undefined) {
20659
- // if one of these is not defined we know the other is defined and therefore
20660
- // not equal
20661
- if (existing_totalSize === undefined || incoming_totalSize === undefined) {
20662
- return false;
20663
- }
20664
- if (!(existing_totalSize === incoming_totalSize)) {
20665
- return false;
20666
- }
20667
- }
20668
20605
  return true;
20669
20606
  }
20670
20607
  const ingest$b = function RecipeCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
@@ -20687,10 +20624,6 @@ function getTypeCacheKeys$b(rootKeySet, luvio, input, fullPathFactory) {
20687
20624
  representationName: RepresentationType$b,
20688
20625
  mergeable: false
20689
20626
  });
20690
- const input_recipes_length = input.recipes.length;
20691
- for (let i = 0; i < input_recipes_length; i++) {
20692
- getTypeCacheKeys$B(rootKeySet, luvio, input.recipes[i]);
20693
- }
20694
20627
  }
20695
20628
 
20696
20629
  function select$O(luvio, params) {
@@ -1,23 +1,14 @@
1
- import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, ResourceIngest as $64$luvio_engine_ResourceIngest, FragmentSelection as $64$luvio_engine_FragmentSelection, LinkSelection as $64$luvio_engine_LinkSelection, StoreLink as $64$luvio_engine_StoreLink, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
2
1
  import { RecipeRepresentation as RecipeRepresentation_RecipeRepresentation } from './RecipeRepresentation';
2
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, BaseFragment as $64$luvio_engine_BaseFragment, ResourceIngest as $64$luvio_engine_ResourceIngest, StoreLink as $64$luvio_engine_StoreLink, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
3
3
  export declare const TTL = 300;
4
4
  export declare const VERSION = "470c4c5d11eee9562cd6eb62d302ad9d";
5
5
  export declare function validate(obj: any, path?: string): TypeError | null;
6
6
  export declare const RepresentationType: string;
7
7
  export declare function normalize(input: RecipeCollectionRepresentation, existing: RecipeCollectionRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): RecipeCollectionRepresentationNormalized;
8
- export interface DynamicIngestParams {
9
- recipes: $64$luvio_engine_ResourceIngest;
10
- }
11
- export declare function dynamicNormalize(ingestParams: DynamicIngestParams): (input: RecipeCollectionRepresentation, existing: RecipeCollectionRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number) => RecipeCollectionRepresentationNormalized;
12
- export declare const select: () => $64$luvio_engine_FragmentSelection;
13
- export interface DynamicSelectParams {
14
- recipes?: $64$luvio_engine_LinkSelection;
15
- }
16
- export declare const dynamicSelect: (params: DynamicSelectParams) => $64$luvio_engine_FragmentSelection;
8
+ export declare const select: () => $64$luvio_engine_BaseFragment;
17
9
  export declare function equals(existing: RecipeCollectionRepresentationNormalized, incoming: RecipeCollectionRepresentationNormalized): boolean;
18
10
  export declare const ingest: $64$luvio_engine_ResourceIngest;
19
11
  export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: RecipeCollectionRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
20
- export declare function dynamicIngest(ingestParams: DynamicIngestParams): $64$luvio_engine_ResourceIngest;
21
12
  /**
22
13
  * A collection of Data Prep recipes.
23
14
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-analytics-wave",
3
- "version": "1.239.0",
3
+ "version": "1.241.0",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "The Einstein Analytics family of APIs",
6
6
  "main": "dist/es/es2018/analytics-wave.js",
package/sfdc/index.js CHANGED
@@ -21629,8 +21629,11 @@ function validate$L(obj, path = 'RecipeCollectionRepresentation') {
21629
21629
  for (let i = 0; i < obj_recipes.length; i++) {
21630
21630
  const obj_recipes_item = obj_recipes[i];
21631
21631
  const path_recipes_item = path_recipes + '[' + i + ']';
21632
- if (typeof obj_recipes_item !== 'object') {
21633
- return new TypeError('Expected "object" but received "' + typeof obj_recipes_item + '" (at "' + path_recipes_item + '")');
21632
+ const referencepath_recipes_itemValidationError = validate$22(obj_recipes_item, path_recipes_item);
21633
+ if (referencepath_recipes_itemValidationError !== null) {
21634
+ let message = 'Object doesn\'t match RecipeRepresentation (at "' + path_recipes_item + '")\n';
21635
+ message += referencepath_recipes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
21636
+ return new TypeError(message);
21634
21637
  }
21635
21638
  }
21636
21639
  if (obj.totalSize !== undefined) {
@@ -21671,22 +21674,6 @@ function validate$L(obj, path = 'RecipeCollectionRepresentation') {
21671
21674
  }
21672
21675
  const RepresentationType$a = 'RecipeCollectionRepresentation';
21673
21676
  function normalize$a(input, existing, path, luvio, store, timestamp) {
21674
- const input_recipes = input.recipes;
21675
- const input_recipes_id = path.fullPath + '__recipes';
21676
- for (let i = 0; i < input_recipes.length; i++) {
21677
- const input_recipes_item = input_recipes[i];
21678
- let input_recipes_item_id = input_recipes_id + '__' + i;
21679
- input_recipes[i] = ingest$C(input_recipes_item, {
21680
- fullPath: input_recipes_item_id,
21681
- propertyName: i,
21682
- parent: {
21683
- data: input,
21684
- key: path.fullPath,
21685
- existing: existing,
21686
- },
21687
- ttl: path.ttl
21688
- }, luvio, store, timestamp);
21689
- }
21690
21677
  return input;
21691
21678
  }
21692
21679
  const select$T = function RecipeCollectionRepresentationSelect() {
@@ -21694,63 +21681,13 @@ const select$T = function RecipeCollectionRepresentationSelect() {
21694
21681
  kind: 'Fragment',
21695
21682
  version: VERSION$v,
21696
21683
  private: [],
21697
- selections: [
21698
- {
21699
- name: 'nextPageUrl',
21700
- kind: 'Scalar'
21701
- },
21702
- {
21703
- name: 'recipes',
21704
- kind: 'Link',
21705
- plural: true,
21706
- fragment: select$26()
21707
- },
21708
- {
21709
- name: 'totalSize',
21710
- kind: 'Scalar',
21711
- required: false
21712
- },
21713
- {
21714
- name: 'url',
21715
- kind: 'Scalar'
21716
- }
21717
- ]
21684
+ opaque: true
21718
21685
  };
21719
21686
  };
21720
21687
  function equals$v(existing, incoming) {
21721
- const existing_url = existing.url;
21722
- const incoming_url = incoming.url;
21723
- if (!(existing_url === incoming_url)) {
21724
- return false;
21725
- }
21726
- const existing_nextPageUrl = existing.nextPageUrl;
21727
- const incoming_nextPageUrl = incoming.nextPageUrl;
21728
- if (!(existing_nextPageUrl === incoming_nextPageUrl)) {
21729
- return false;
21730
- }
21731
- const existing_recipes = existing.recipes;
21732
- const incoming_recipes = incoming.recipes;
21733
- const equals_recipes_items = equalsArray(existing_recipes, incoming_recipes, (existing_recipes_item, incoming_recipes_item) => {
21734
- if (!(existing_recipes_item.__ref === incoming_recipes_item.__ref)) {
21735
- return false;
21736
- }
21737
- });
21738
- if (equals_recipes_items === false) {
21688
+ if (JSONStringify(incoming) !== JSONStringify(existing)) {
21739
21689
  return false;
21740
21690
  }
21741
- const existing_totalSize = existing.totalSize;
21742
- const incoming_totalSize = incoming.totalSize;
21743
- // if at least one of these optionals is defined
21744
- if (existing_totalSize !== undefined || incoming_totalSize !== undefined) {
21745
- // if one of these is not defined we know the other is defined and therefore
21746
- // not equal
21747
- if (existing_totalSize === undefined || incoming_totalSize === undefined) {
21748
- return false;
21749
- }
21750
- if (!(existing_totalSize === incoming_totalSize)) {
21751
- return false;
21752
- }
21753
- }
21754
21691
  return true;
21755
21692
  }
21756
21693
  const ingest$a = function RecipeCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
@@ -21773,10 +21710,6 @@ function getTypeCacheKeys$a(rootKeySet, luvio, input, fullPathFactory) {
21773
21710
  representationName: RepresentationType$a,
21774
21711
  mergeable: false
21775
21712
  });
21776
- const input_recipes_length = input.recipes.length;
21777
- for (let i = 0; i < input_recipes_length; i++) {
21778
- getTypeCacheKeys$C(rootKeySet, luvio, input.recipes[i]);
21779
- }
21780
21713
  }
21781
21714
 
21782
21715
  function select$S(luvio, params) {
@@ -30310,4 +30243,4 @@ withDefaultLuvio((luvio) => {
30310
30243
  });
30311
30244
 
30312
30245
  export { createDataConnector, createDataflowJob, createDataset, createDatasetVersion, createReplicatedDataset, deleteDataConnector, deleteDataset, deleteRecipe, deleteReplicatedDataset, executeQuery, executeQuery_imperative, getActions, getActions_imperative, getAnalyticsLimits, getAnalyticsLimits_imperative, getDataConnector, getDataConnectorNotifyChange, getDataConnectorSourceFields, getDataConnectorSourceFieldsNotifyChange, getDataConnectorSourceFields_imperative, getDataConnectorSourceObject, getDataConnectorSourceObjectDataPreviewWithFields, getDataConnectorSourceObjectDataPreviewWithFields_imperative, getDataConnectorSourceObjectNotifyChange, getDataConnectorSourceObject_imperative, getDataConnectorSourceObjects, getDataConnectorSourceObjects_imperative, getDataConnectorStatus, getDataConnectorStatus_imperative, getDataConnectorTypes, getDataConnectorTypes_imperative, getDataConnector_imperative, getDataConnectors, getDataConnectors_imperative, getDataflowJob, getDataflowJobNode, getDataflowJobNodeNotifyChange, getDataflowJobNode_imperative, getDataflowJobNodes, getDataflowJobNodes_imperative, getDataflowJobNotifyChange, getDataflowJob_imperative, getDataflowJobs, getDataflowJobs_imperative, getDataflows, getDataflows_imperative, getDataset, getDatasetNotifyChange, getDatasetVersion, getDatasetVersionNotifyChange, getDatasetVersion_imperative, getDatasetVersions, getDatasetVersions_imperative, getDataset_imperative, getDatasets, getDatasets_imperative, getDependencies, getDependencies_imperative, getRecipe, getRecipeNotification, getRecipeNotificationNotifyChange, getRecipeNotification_imperative, getRecipeNotifyChange, getRecipe_imperative, getRecipes, getRecipes_imperative, getReplicatedDataset, getReplicatedDatasetNotifyChange, getReplicatedDataset_imperative, getReplicatedDatasets, getReplicatedDatasets_imperative, getReplicatedFields, getReplicatedFieldsNotifyChange, getReplicatedFields_imperative, getSchedule, getScheduleNotifyChange, getSchedule_imperative, getSecurityCoverageDatasetVersion, getSecurityCoverageDatasetVersion_imperative, getWaveFolders, getWaveFolders_imperative, getWaveTemplate, getWaveTemplateConfig, getWaveTemplateConfigNotifyChange, getWaveTemplateConfig_imperative, getWaveTemplateNotifyChange, getWaveTemplateReleaseNotes, getWaveTemplateReleaseNotesNotifyChange, getWaveTemplateReleaseNotes_imperative, getWaveTemplate_imperative, getWaveTemplates, getWaveTemplates_imperative, getXmd, getXmd_imperative, ingestDataConnector, updateDataConnector, updateDataflowJob, updateDataset, updateDatasetVersion, updateRecipe, updateRecipeNotification, updateReplicatedDataset, updateReplicatedFields, updateSchedule, updateXmd, validateWaveTemplate };
30313
- // version: 1.239.0-7d2be7b39
30246
+ // version: 1.241.0-b1c9bf601
@@ -36,6 +36,7 @@ types:
36
36
  DatasetCoverageRepresentation:
37
37
  (luvio.ttl): 300
38
38
  RecipeCollectionRepresentation:
39
+ (luvio.opaque): true
39
40
  (luvio.ttl): 300
40
41
  RecipeNotificationRepresentation:
41
42
  (luvio.ttl): 5000