@salesforce/lds-worker-api 1.332.0-dev19 → 1.332.0-dev20

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.
@@ -1128,4 +1128,4 @@ if (process.env.NODE_ENV !== 'production') {
1128
1128
  }
1129
1129
 
1130
1130
  export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToMerge, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
1131
- // version: 1.332.0-dev19-1633b242fb
1131
+ // version: 1.332.0-dev20-f65bc51b43
@@ -4265,7 +4265,7 @@ function withDefaultLuvio(callback) {
4265
4265
  }
4266
4266
  callbacks.push(callback);
4267
4267
  }
4268
- // version: 1.332.0-dev19-1633b242fb
4268
+ // version: 1.332.0-dev20-f65bc51b43
4269
4269
 
4270
4270
  // TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
4271
4271
  function instrumentAdapter$1(createFunction, _metadata) {
@@ -5213,7 +5213,7 @@ function createGraphQLWireAdapterConstructor(luvio, adapter, metadata, astResolv
5213
5213
  const { apiFamily, name } = metadata;
5214
5214
  return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
5215
5215
  }
5216
- // version: 1.332.0-dev19-1633b242fb
5216
+ // version: 1.332.0-dev20-f65bc51b43
5217
5217
 
5218
5218
  /**
5219
5219
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -29711,7 +29711,6 @@ const getKeywordSearchResults_ConfigPropertyMetadata$1 = [
29711
29711
  generateParamConfigMetadata$3('objectApiName', true, 1 /* QueryParameter */, 0 /* String */),
29712
29712
  generateParamConfigMetadata$3('q', true, 1 /* QueryParameter */, 0 /* String */),
29713
29713
  generateParamConfigMetadata$3('configurationName', false, 2 /* Body */, 0 /* String */),
29714
- generateParamConfigMetadata$3('dataCategories', false, 2 /* Body */, 4 /* Unsupported */, true),
29715
29714
  generateParamConfigMetadata$3('filters', false, 2 /* Body */, 4 /* Unsupported */, true),
29716
29715
  generateParamConfigMetadata$3('pageSize', false, 2 /* Body */, 3 /* Integer */),
29717
29716
  generateParamConfigMetadata$3('pageToken', false, 2 /* Body */, 0 /* String */),
@@ -29726,18 +29725,6 @@ function keyBuilder$a$2(luvio, config) {
29726
29725
  function typeCheckConfig$c$1(untrustedConfig) {
29727
29726
  const config = {};
29728
29727
  typeCheckConfig$18(untrustedConfig, config, getKeywordSearchResults_ConfigPropertyMetadata$1);
29729
- const untrustedConfig_dataCategories = untrustedConfig.dataCategories;
29730
- if (ArrayIsArray$1$1(untrustedConfig_dataCategories)) {
29731
- const untrustedConfig_dataCategories_array = [];
29732
- for (let i = 0, arrayLength = untrustedConfig_dataCategories.length; i < arrayLength; i++) {
29733
- const untrustedConfig_dataCategories_item = untrustedConfig_dataCategories[i];
29734
- const referenceSearchDataCategoryInputRepresentationValidationError = validate$n(untrustedConfig_dataCategories_item);
29735
- if (referenceSearchDataCategoryInputRepresentationValidationError === null) {
29736
- untrustedConfig_dataCategories_array.push(untrustedConfig_dataCategories_item);
29737
- }
29738
- }
29739
- config.dataCategories = untrustedConfig_dataCategories_array;
29740
- }
29741
29728
  const untrustedConfig_filters = untrustedConfig.filters;
29742
29729
  if (ArrayIsArray$1$1(untrustedConfig_filters)) {
29743
29730
  const untrustedConfig_filters_array = [];
@@ -29956,7 +29943,7 @@ function createResourceRequest$e$1(config) {
29956
29943
  method: 'post',
29957
29944
  body: config.body,
29958
29945
  urlParams: {},
29959
- queryParams: {},
29946
+ queryParams: config.queryParams,
29960
29947
  headers,
29961
29948
  priority: 'normal',
29962
29949
  };
@@ -29965,7 +29952,8 @@ function createResourceRequest$e$1(config) {
29965
29952
  const adapterName$7$1 = 'executeBatchRecordOperations';
29966
29953
  const executeBatchRecordOperations_ConfigPropertyMetadata = [
29967
29954
  generateParamConfigMetadata$3('allOrNone', true, 2, 1, false),
29968
- generateParamConfigMetadata$3('operations', true, 2, 4, true), // Required, BodyParam, Unsupported(Object type), array
29955
+ generateParamConfigMetadata$3('operations', true, 2, 4, true),
29956
+ generateParamConfigMetadata$3('useDefaultRule', false, 1, 1, false), // Not Requred, QueryParam, Boolean, single
29969
29957
  ];
29970
29958
  const executeBatchRecordOperations_ConfigPropertyNames =
29971
29959
  /*#__PURE__*/ buildAdapterValidationConfig$3(adapterName$7$1, executeBatchRecordOperations_ConfigPropertyMetadata);
@@ -30001,6 +29989,11 @@ function batchUpdateRecordsTypeCheckConfig(untrustedConfig) {
30001
29989
  if (untrustedConfigAllOrNone !== undefined && typeof untrustedConfigAllOrNone === 'boolean') {
30002
29990
  config.allOrNone = untrustedConfigAllOrNone;
30003
29991
  }
29992
+ const untrustedConfiguseDefaultRule = untrustedConfig.useDefaultRule;
29993
+ if (untrustedConfiguseDefaultRule !== undefined &&
29994
+ typeof untrustedConfiguseDefaultRule === 'boolean') {
29995
+ config.useDefaultRule = untrustedConfiguseDefaultRule;
29996
+ }
30004
29997
  return config;
30005
29998
  }
30006
29999
  function validateAdapterConfig$a$1(untrustedConfig, configPropertyNames) {
@@ -33863,7 +33856,7 @@ withDefaultLuvio((luvio) => {
33863
33856
  throttle(60, 60000, setupNotifyAllListRecordUpdateAvailable(luvio));
33864
33857
  throttle(60, 60000, setupNotifyAllListInfoSummaryUpdateAvailable(luvio));
33865
33858
  });
33866
- // version: 1.332.0-dev19-d7ba00c6cd
33859
+ // version: 1.332.0-dev20-8600de247a
33867
33860
 
33868
33861
  /**
33869
33862
  * Returns true if the value acts like a Promise, i.e. has a "then" function,
@@ -92895,7 +92888,7 @@ register$1({
92895
92888
  id: '@salesforce/lds-network-adapter',
92896
92889
  instrument: instrument$2,
92897
92890
  });
92898
- // version: 1.332.0-dev19-1633b242fb
92891
+ // version: 1.332.0-dev20-f65bc51b43
92899
92892
 
92900
92893
  const { create: create$2, keys: keys$2 } = Object;
92901
92894
  const { stringify, parse } = JSON;
@@ -116768,7 +116761,7 @@ register$1({
116768
116761
  configuration: { ...configurationForGraphQLAdapters$1 },
116769
116762
  instrument: instrument$1,
116770
116763
  });
116771
- // version: 1.332.0-dev19-d7ba00c6cd
116764
+ // version: 1.332.0-dev20-8600de247a
116772
116765
 
116773
116766
  // On core the unstable adapters are re-exported with different names,
116774
116767
  // we want to match them here.
@@ -116920,7 +116913,7 @@ withDefaultLuvio((luvio) => {
116920
116913
  unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
116921
116914
  graphQLImperative = ldsAdapter;
116922
116915
  });
116923
- // version: 1.332.0-dev19-d7ba00c6cd
116916
+ // version: 1.332.0-dev20-8600de247a
116924
116917
 
116925
116918
  var gqlApi = /*#__PURE__*/Object.freeze({
116926
116919
  __proto__: null,
@@ -117712,7 +117705,7 @@ const callbacks$1 = [];
117712
117705
  function register(r) {
117713
117706
  callbacks$1.forEach((callback) => callback(r));
117714
117707
  }
117715
- // version: 1.332.0-dev19-1633b242fb
117708
+ // version: 1.332.0-dev20-f65bc51b43
117716
117709
 
117717
117710
  /**
117718
117711
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -118775,4 +118768,4 @@ const { luvio } = getRuntime();
118775
118768
  setDefaultLuvio({ luvio });
118776
118769
 
118777
118770
  export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToMerge, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, registerReportObserver, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
118778
- // version: 1.332.0-dev19-1633b242fb
118771
+ // version: 1.332.0-dev20-f65bc51b43
@@ -4271,7 +4271,7 @@
4271
4271
  }
4272
4272
  callbacks.push(callback);
4273
4273
  }
4274
- // version: 1.332.0-dev19-1633b242fb
4274
+ // version: 1.332.0-dev20-f65bc51b43
4275
4275
 
4276
4276
  // TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
4277
4277
  function instrumentAdapter$1(createFunction, _metadata) {
@@ -5219,7 +5219,7 @@
5219
5219
  const { apiFamily, name } = metadata;
5220
5220
  return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
5221
5221
  }
5222
- // version: 1.332.0-dev19-1633b242fb
5222
+ // version: 1.332.0-dev20-f65bc51b43
5223
5223
 
5224
5224
  /**
5225
5225
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -29717,7 +29717,6 @@
29717
29717
  generateParamConfigMetadata$3('objectApiName', true, 1 /* QueryParameter */, 0 /* String */),
29718
29718
  generateParamConfigMetadata$3('q', true, 1 /* QueryParameter */, 0 /* String */),
29719
29719
  generateParamConfigMetadata$3('configurationName', false, 2 /* Body */, 0 /* String */),
29720
- generateParamConfigMetadata$3('dataCategories', false, 2 /* Body */, 4 /* Unsupported */, true),
29721
29720
  generateParamConfigMetadata$3('filters', false, 2 /* Body */, 4 /* Unsupported */, true),
29722
29721
  generateParamConfigMetadata$3('pageSize', false, 2 /* Body */, 3 /* Integer */),
29723
29722
  generateParamConfigMetadata$3('pageToken', false, 2 /* Body */, 0 /* String */),
@@ -29732,18 +29731,6 @@
29732
29731
  function typeCheckConfig$c$1(untrustedConfig) {
29733
29732
  const config = {};
29734
29733
  typeCheckConfig$18(untrustedConfig, config, getKeywordSearchResults_ConfigPropertyMetadata$1);
29735
- const untrustedConfig_dataCategories = untrustedConfig.dataCategories;
29736
- if (ArrayIsArray$1$1(untrustedConfig_dataCategories)) {
29737
- const untrustedConfig_dataCategories_array = [];
29738
- for (let i = 0, arrayLength = untrustedConfig_dataCategories.length; i < arrayLength; i++) {
29739
- const untrustedConfig_dataCategories_item = untrustedConfig_dataCategories[i];
29740
- const referenceSearchDataCategoryInputRepresentationValidationError = validate$n(untrustedConfig_dataCategories_item);
29741
- if (referenceSearchDataCategoryInputRepresentationValidationError === null) {
29742
- untrustedConfig_dataCategories_array.push(untrustedConfig_dataCategories_item);
29743
- }
29744
- }
29745
- config.dataCategories = untrustedConfig_dataCategories_array;
29746
- }
29747
29734
  const untrustedConfig_filters = untrustedConfig.filters;
29748
29735
  if (ArrayIsArray$1$1(untrustedConfig_filters)) {
29749
29736
  const untrustedConfig_filters_array = [];
@@ -29962,7 +29949,7 @@
29962
29949
  method: 'post',
29963
29950
  body: config.body,
29964
29951
  urlParams: {},
29965
- queryParams: {},
29952
+ queryParams: config.queryParams,
29966
29953
  headers,
29967
29954
  priority: 'normal',
29968
29955
  };
@@ -29971,7 +29958,8 @@
29971
29958
  const adapterName$7$1 = 'executeBatchRecordOperations';
29972
29959
  const executeBatchRecordOperations_ConfigPropertyMetadata = [
29973
29960
  generateParamConfigMetadata$3('allOrNone', true, 2, 1, false),
29974
- generateParamConfigMetadata$3('operations', true, 2, 4, true), // Required, BodyParam, Unsupported(Object type), array
29961
+ generateParamConfigMetadata$3('operations', true, 2, 4, true),
29962
+ generateParamConfigMetadata$3('useDefaultRule', false, 1, 1, false), // Not Requred, QueryParam, Boolean, single
29975
29963
  ];
29976
29964
  const executeBatchRecordOperations_ConfigPropertyNames =
29977
29965
  /*#__PURE__*/ buildAdapterValidationConfig$3(adapterName$7$1, executeBatchRecordOperations_ConfigPropertyMetadata);
@@ -30007,6 +29995,11 @@
30007
29995
  if (untrustedConfigAllOrNone !== undefined && typeof untrustedConfigAllOrNone === 'boolean') {
30008
29996
  config.allOrNone = untrustedConfigAllOrNone;
30009
29997
  }
29998
+ const untrustedConfiguseDefaultRule = untrustedConfig.useDefaultRule;
29999
+ if (untrustedConfiguseDefaultRule !== undefined &&
30000
+ typeof untrustedConfiguseDefaultRule === 'boolean') {
30001
+ config.useDefaultRule = untrustedConfiguseDefaultRule;
30002
+ }
30010
30003
  return config;
30011
30004
  }
30012
30005
  function validateAdapterConfig$a$1(untrustedConfig, configPropertyNames) {
@@ -33869,7 +33862,7 @@
33869
33862
  throttle(60, 60000, setupNotifyAllListRecordUpdateAvailable(luvio));
33870
33863
  throttle(60, 60000, setupNotifyAllListInfoSummaryUpdateAvailable(luvio));
33871
33864
  });
33872
- // version: 1.332.0-dev19-d7ba00c6cd
33865
+ // version: 1.332.0-dev20-8600de247a
33873
33866
 
33874
33867
  /**
33875
33868
  * Returns true if the value acts like a Promise, i.e. has a "then" function,
@@ -92901,7 +92894,7 @@
92901
92894
  id: '@salesforce/lds-network-adapter',
92902
92895
  instrument: instrument$2,
92903
92896
  });
92904
- // version: 1.332.0-dev19-1633b242fb
92897
+ // version: 1.332.0-dev20-f65bc51b43
92905
92898
 
92906
92899
  const { create: create$2, keys: keys$2 } = Object;
92907
92900
  const { stringify, parse } = JSON;
@@ -116774,7 +116767,7 @@
116774
116767
  configuration: { ...configurationForGraphQLAdapters$1 },
116775
116768
  instrument: instrument$1,
116776
116769
  });
116777
- // version: 1.332.0-dev19-d7ba00c6cd
116770
+ // version: 1.332.0-dev20-8600de247a
116778
116771
 
116779
116772
  // On core the unstable adapters are re-exported with different names,
116780
116773
  // we want to match them here.
@@ -116926,7 +116919,7 @@
116926
116919
  unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
116927
116920
  graphQLImperative = ldsAdapter;
116928
116921
  });
116929
- // version: 1.332.0-dev19-d7ba00c6cd
116922
+ // version: 1.332.0-dev20-8600de247a
116930
116923
 
116931
116924
  var gqlApi = /*#__PURE__*/Object.freeze({
116932
116925
  __proto__: null,
@@ -117718,7 +117711,7 @@
117718
117711
  function register(r) {
117719
117712
  callbacks$1.forEach((callback) => callback(r));
117720
117713
  }
117721
- // version: 1.332.0-dev19-1633b242fb
117714
+ // version: 1.332.0-dev20-f65bc51b43
117722
117715
 
117723
117716
  /**
117724
117717
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -118800,4 +118793,4 @@
118800
118793
  exports.subscribeToAdapter = subscribeToAdapter;
118801
118794
 
118802
118795
  }));
118803
- // version: 1.332.0-dev19-1633b242fb
118796
+ // version: 1.332.0-dev20-f65bc51b43
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-worker-api",
3
- "version": "1.332.0-dev19",
3
+ "version": "1.332.0-dev20",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "",
6
6
  "main": "dist/standalone/es/lds-worker-api.js",
@@ -35,14 +35,14 @@
35
35
  },
36
36
  "devDependencies": {
37
37
  "@oat-sa/rollup-plugin-wildcard-external": "^1.0.0",
38
- "@salesforce/lds-adapters-graphql": "^1.332.0-dev19",
39
- "@salesforce/lds-adapters-uiapi": "^1.332.0-dev19",
40
- "@salesforce/lds-default-luvio": "^1.332.0-dev19",
41
- "@salesforce/lds-drafts": "^1.332.0-dev19",
42
- "@salesforce/lds-graphql-parser": "^1.332.0-dev19",
43
- "@salesforce/lds-luvio-engine": "^1.332.0-dev19",
44
- "@salesforce/lds-runtime-mobile": "^1.332.0-dev19",
45
- "@salesforce/nimbus-plugin-lds": "^1.332.0-dev19",
38
+ "@salesforce/lds-adapters-graphql": "^1.332.0-dev20",
39
+ "@salesforce/lds-adapters-uiapi": "^1.332.0-dev20",
40
+ "@salesforce/lds-default-luvio": "^1.332.0-dev20",
41
+ "@salesforce/lds-drafts": "^1.332.0-dev20",
42
+ "@salesforce/lds-graphql-parser": "^1.332.0-dev20",
43
+ "@salesforce/lds-luvio-engine": "^1.332.0-dev20",
44
+ "@salesforce/lds-runtime-mobile": "^1.332.0-dev20",
45
+ "@salesforce/nimbus-plugin-lds": "^1.332.0-dev20",
46
46
  "ajv": "^8.11.0",
47
47
  "glob": "^7.1.5",
48
48
  "nimbus-types": "^2.0.0-alpha1",