@salesforce/lds-adapters-analytics-wave 1.130.10 → 1.131.0-dev9

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.
@@ -1284,7 +1284,7 @@ function getTypeCacheKeys$H(luvio, input, fullPathFactory) {
1284
1284
  return rootKeySet;
1285
1285
  }
1286
1286
 
1287
- const VERSION$1K = "4d3f702e3c06c3ef1cfbf7b418f91cc4";
1287
+ const VERSION$1K = "8d6671abfda59d314a631ca61312f86c";
1288
1288
  function validate$2t(obj, path = 'MonthlyRelativeScheduleRepresentation') {
1289
1289
  const validateScheduleRepresentation_validateError = validate$2q(obj, path);
1290
1290
  if (validateScheduleRepresentation_validateError !== null) {
@@ -1294,15 +1294,19 @@ function validate$2t(obj, path = 'MonthlyRelativeScheduleRepresentation') {
1294
1294
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1295
1295
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1296
1296
  }
1297
- const obj_dayInWeek = obj.dayInWeek;
1298
- const path_dayInWeek = path + '.dayInWeek';
1299
- if (typeof obj_dayInWeek !== 'string') {
1300
- return new TypeError('Expected "string" but received "' + typeof obj_dayInWeek + '" (at "' + path_dayInWeek + '")');
1297
+ if (obj.dayInWeek !== undefined) {
1298
+ const obj_dayInWeek = obj.dayInWeek;
1299
+ const path_dayInWeek = path + '.dayInWeek';
1300
+ if (typeof obj_dayInWeek !== 'string') {
1301
+ return new TypeError('Expected "string" but received "' + typeof obj_dayInWeek + '" (at "' + path_dayInWeek + '")');
1302
+ }
1301
1303
  }
1302
- const obj_weekInMonth = obj.weekInMonth;
1303
- const path_weekInMonth = path + '.weekInMonth';
1304
- if (typeof obj_weekInMonth !== 'string') {
1305
- return new TypeError('Expected "string" but received "' + typeof obj_weekInMonth + '" (at "' + path_weekInMonth + '")');
1304
+ if (obj.weekInMonth !== undefined) {
1305
+ const obj_weekInMonth = obj.weekInMonth;
1306
+ const path_weekInMonth = path + '.weekInMonth';
1307
+ if (typeof obj_weekInMonth !== 'string') {
1308
+ return new TypeError('Expected "string" but received "' + typeof obj_weekInMonth + '" (at "' + path_weekInMonth + '")');
1309
+ }
1306
1310
  }
1307
1311
  })();
1308
1312
  return v_error === undefined ? null : v_error;
@@ -1324,11 +1328,13 @@ const select$2x = function MonthlyRelativeScheduleRepresentationSelect() {
1324
1328
  ...ScheduleRepresentationSelections,
1325
1329
  {
1326
1330
  name: 'dayInWeek',
1327
- kind: 'Scalar'
1331
+ kind: 'Scalar',
1332
+ required: false
1328
1333
  },
1329
1334
  {
1330
1335
  name: 'weekInMonth',
1331
- kind: 'Scalar'
1336
+ kind: 'Scalar',
1337
+ required: false
1332
1338
  }
1333
1339
  ]
1334
1340
  };
@@ -1339,13 +1345,29 @@ function equals$1H(existing, incoming) {
1339
1345
  }
1340
1346
  const existing_dayInWeek = existing.dayInWeek;
1341
1347
  const incoming_dayInWeek = incoming.dayInWeek;
1342
- if (!(existing_dayInWeek === incoming_dayInWeek)) {
1343
- return false;
1348
+ // if at least one of these optionals is defined
1349
+ if (existing_dayInWeek !== undefined || incoming_dayInWeek !== undefined) {
1350
+ // if one of these is not defined we know the other is defined and therefore
1351
+ // not equal
1352
+ if (existing_dayInWeek === undefined || incoming_dayInWeek === undefined) {
1353
+ return false;
1354
+ }
1355
+ if (!(existing_dayInWeek === incoming_dayInWeek)) {
1356
+ return false;
1357
+ }
1344
1358
  }
1345
1359
  const existing_weekInMonth = existing.weekInMonth;
1346
1360
  const incoming_weekInMonth = incoming.weekInMonth;
1347
- if (!(existing_weekInMonth === incoming_weekInMonth)) {
1348
- return false;
1361
+ // if at least one of these optionals is defined
1362
+ if (existing_weekInMonth !== undefined || incoming_weekInMonth !== undefined) {
1363
+ // if one of these is not defined we know the other is defined and therefore
1364
+ // not equal
1365
+ if (existing_weekInMonth === undefined || incoming_weekInMonth === undefined) {
1366
+ return false;
1367
+ }
1368
+ if (!(existing_weekInMonth === incoming_weekInMonth)) {
1369
+ return false;
1370
+ }
1349
1371
  }
1350
1372
  return true;
1351
1373
  }
@@ -1,6 +1,6 @@
1
1
  import { keyBuilder as ScheduleRepresentation_keyBuilder, ScheduleRepresentation as ScheduleRepresentation_ScheduleRepresentation } from './ScheduleRepresentation';
2
2
  import { Luvio as $64$luvio_engine_Luvio, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, 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';
3
- export declare const VERSION = "4d3f702e3c06c3ef1cfbf7b418f91cc4";
3
+ export declare const VERSION = "8d6671abfda59d314a631ca61312f86c";
4
4
  export declare function validate(obj: any, path?: string): TypeError | null;
5
5
  export declare const RepresentationType: string;
6
6
  export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: Parameters<typeof ScheduleRepresentation_keyBuilder>[1]): string;
@@ -21,9 +21,9 @@ export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: M
21
21
  */
22
22
  export interface MonthlyRelativeScheduleRepresentationNormalized extends ScheduleRepresentation_ScheduleRepresentation {
23
23
  /** Day within a week. */
24
- dayInWeek: string;
24
+ dayInWeek?: string;
25
25
  /** Week within a month. */
26
- weekInMonth: string;
26
+ weekInMonth?: string;
27
27
  }
28
28
  /**
29
29
  * Schedule which runs monthly on a relative day within the month.
@@ -32,7 +32,7 @@ export interface MonthlyRelativeScheduleRepresentationNormalized extends Schedul
32
32
  * id (string): assetId
33
33
  */
34
34
  export interface MonthlyRelativeScheduleRepresentation extends ScheduleRepresentation_ScheduleRepresentation {
35
- dayInWeek: string;
36
- weekInMonth: string;
35
+ dayInWeek?: string;
36
+ weekInMonth?: string;
37
37
  frequency: 'monthlyrelative';
38
38
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-analytics-wave",
3
- "version": "1.130.10",
3
+ "version": "1.131.0-dev9",
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",
@@ -59,11 +59,11 @@
59
59
  }
60
60
  },
61
61
  "dependencies": {
62
- "@salesforce/lds-bindings": "*"
62
+ "@salesforce/lds-bindings": "1.131.0-244.8"
63
63
  },
64
64
  "devDependencies": {
65
- "@salesforce/lds-compiler-plugins": "*",
66
- "@salesforce/lds-karma": "*"
65
+ "@salesforce/lds-compiler-plugins": "1.131.0-244.8",
66
+ "@salesforce/lds-karma": "1.131.0-244.8"
67
67
  },
68
68
  "volta": {
69
69
  "extends": "../../package.json"
package/sfdc/index.js CHANGED
@@ -5273,7 +5273,7 @@ function getTypeCacheKeys$H(luvio, input, fullPathFactory) {
5273
5273
  return rootKeySet;
5274
5274
  }
5275
5275
 
5276
- const VERSION$1o = "4d3f702e3c06c3ef1cfbf7b418f91cc4";
5276
+ const VERSION$1o = "8d6671abfda59d314a631ca61312f86c";
5277
5277
  function validate$25(obj, path = 'MonthlyRelativeScheduleRepresentation') {
5278
5278
  const validateScheduleRepresentation_validateError = validate$22(obj, path);
5279
5279
  if (validateScheduleRepresentation_validateError !== null) {
@@ -5283,15 +5283,19 @@ function validate$25(obj, path = 'MonthlyRelativeScheduleRepresentation') {
5283
5283
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
5284
5284
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
5285
5285
  }
5286
- const obj_dayInWeek = obj.dayInWeek;
5287
- const path_dayInWeek = path + '.dayInWeek';
5288
- if (typeof obj_dayInWeek !== 'string') {
5289
- return new TypeError('Expected "string" but received "' + typeof obj_dayInWeek + '" (at "' + path_dayInWeek + '")');
5286
+ if (obj.dayInWeek !== undefined) {
5287
+ const obj_dayInWeek = obj.dayInWeek;
5288
+ const path_dayInWeek = path + '.dayInWeek';
5289
+ if (typeof obj_dayInWeek !== 'string') {
5290
+ return new TypeError('Expected "string" but received "' + typeof obj_dayInWeek + '" (at "' + path_dayInWeek + '")');
5291
+ }
5290
5292
  }
5291
- const obj_weekInMonth = obj.weekInMonth;
5292
- const path_weekInMonth = path + '.weekInMonth';
5293
- if (typeof obj_weekInMonth !== 'string') {
5294
- return new TypeError('Expected "string" but received "' + typeof obj_weekInMonth + '" (at "' + path_weekInMonth + '")');
5293
+ if (obj.weekInMonth !== undefined) {
5294
+ const obj_weekInMonth = obj.weekInMonth;
5295
+ const path_weekInMonth = path + '.weekInMonth';
5296
+ if (typeof obj_weekInMonth !== 'string') {
5297
+ return new TypeError('Expected "string" but received "' + typeof obj_weekInMonth + '" (at "' + path_weekInMonth + '")');
5298
+ }
5295
5299
  }
5296
5300
  })();
5297
5301
  return v_error === undefined ? null : v_error;
@@ -5313,11 +5317,13 @@ const select$2c = function MonthlyRelativeScheduleRepresentationSelect() {
5313
5317
  ...ScheduleRepresentationSelections,
5314
5318
  {
5315
5319
  name: 'dayInWeek',
5316
- kind: 'Scalar'
5320
+ kind: 'Scalar',
5321
+ required: false
5317
5322
  },
5318
5323
  {
5319
5324
  name: 'weekInMonth',
5320
- kind: 'Scalar'
5325
+ kind: 'Scalar',
5326
+ required: false
5321
5327
  }
5322
5328
  ]
5323
5329
  };
@@ -5328,13 +5334,29 @@ function equals$1l(existing, incoming) {
5328
5334
  }
5329
5335
  const existing_dayInWeek = existing.dayInWeek;
5330
5336
  const incoming_dayInWeek = incoming.dayInWeek;
5331
- if (!(existing_dayInWeek === incoming_dayInWeek)) {
5332
- return false;
5337
+ // if at least one of these optionals is defined
5338
+ if (existing_dayInWeek !== undefined || incoming_dayInWeek !== undefined) {
5339
+ // if one of these is not defined we know the other is defined and therefore
5340
+ // not equal
5341
+ if (existing_dayInWeek === undefined || incoming_dayInWeek === undefined) {
5342
+ return false;
5343
+ }
5344
+ if (!(existing_dayInWeek === incoming_dayInWeek)) {
5345
+ return false;
5346
+ }
5333
5347
  }
5334
5348
  const existing_weekInMonth = existing.weekInMonth;
5335
5349
  const incoming_weekInMonth = incoming.weekInMonth;
5336
- if (!(existing_weekInMonth === incoming_weekInMonth)) {
5337
- return false;
5350
+ // if at least one of these optionals is defined
5351
+ if (existing_weekInMonth !== undefined || incoming_weekInMonth !== undefined) {
5352
+ // if one of these is not defined we know the other is defined and therefore
5353
+ // not equal
5354
+ if (existing_weekInMonth === undefined || incoming_weekInMonth === undefined) {
5355
+ return false;
5356
+ }
5357
+ if (!(existing_weekInMonth === incoming_weekInMonth)) {
5358
+ return false;
5359
+ }
5338
5360
  }
5339
5361
  return true;
5340
5362
  }
@@ -32338,4 +32360,4 @@ withDefaultLuvio((luvio) => {
32338
32360
  });
32339
32361
 
32340
32362
  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 };
32341
- // version: 1.130.10-b649bb8d1
32363
+ // version: 1.131.0-dev9-9940b321d
package/src/raml/api.raml CHANGED
@@ -2132,6 +2132,7 @@ types:
2132
2132
  dayInWeek:
2133
2133
  description: Day within a week.
2134
2134
  type: string
2135
+ required: false # TODO Hand-rolled W-8253396
2135
2136
  enum:
2136
2137
  - Friday
2137
2138
  - Monday
@@ -2140,9 +2141,11 @@ types:
2140
2141
  - Thursday
2141
2142
  - Tuesday
2142
2143
  - Wednesday
2144
+ - Day
2143
2145
  weekInMonth:
2144
2146
  description: Week within a month.
2145
2147
  type: string
2148
+ required: false # TODO Hand-rolled W-8253396
2146
2149
  enum:
2147
2150
  - First
2148
2151
  - Fourth