@salesforce/lds-worker-api 1.136.0 → 1.136.1

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.
@@ -761,4 +761,4 @@ if (process.env.NODE_ENV !== 'production') {
761
761
  }
762
762
 
763
763
  export { createPrimingSession, draftManager, draftQueue, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, setMetadataTTL, setUiApiRecordTTL, subscribeToAdapter };
764
- // version: 1.136.0-15ceb0ba0
764
+ // version: 1.136.1-304fdc9ae
@@ -0,0 +1,21 @@
1
+ export declare const instrumentation: {
2
+ instrumentAdapter(createFunction: Function, _metadata: any): Function;
3
+ };
4
+ export declare function instrumentAdapter(createFunction: Function, _metadata: any): Function;
5
+ export declare function incrementGetRecordNotifyChangeAllowCount(): void;
6
+ export declare function incrementGetRecordNotifyChangeDropCount(): void;
7
+ export declare function incrementNotifyRecordUpdateAvailableAllowCount(): void;
8
+ export declare function incrementNotifyRecordUpdateAvailableDropCount(): void;
9
+ export declare function refreshApiEvent(): void;
10
+ export declare function instrumentGraphqlAdapter(createFunction: Function, _metadata: any): Function;
11
+ export declare function setLdsAdaptersUiapiInstrumentation(_uiapiRegistration: any): void;
12
+ export declare function setLdsNetworkAdapterInstrumentation(_networkAdapterRegistration: any): void;
13
+ export declare function setupInstrumentation(_luvio: any, _store: any): void;
14
+ export declare function instrumentLuvio(_context: unknown): void;
15
+ export declare const REFRESH_UIAPI_KEY = "refreshUiApi";
16
+ export declare const METRIC_KEYS: {};
17
+ export declare const O11Y_NAMESPACE_LDS_MOBILE = "lds-mobile";
18
+ export declare const withInstrumentation: () => undefined;
19
+ export declare class MetricsReporter {
20
+ reportGraphqlQueryParseError(): void;
21
+ }
@@ -3670,7 +3670,7 @@ class Luvio {
3670
3670
  return this.environment.buildStructuredKey(namespace, representationName, idValues);
3671
3671
  }
3672
3672
  }
3673
- // engine version: 0.139.6-cfd5fd23
3673
+ // engine version: 0.140.0-601083d4
3674
3674
 
3675
3675
  /**
3676
3676
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -3797,7 +3797,7 @@ function withDefaultLuvio(callback) {
3797
3797
  }
3798
3798
  callbacks.push(callback);
3799
3799
  }
3800
- // version: 1.136.0-15ceb0ba0
3800
+ // version: 1.136.1-304fdc9ae
3801
3801
 
3802
3802
  // TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
3803
3803
  function instrumentAdapter$1(createFunction, _metadata) {
@@ -15221,7 +15221,7 @@ function parseAndVisit(source) {
15221
15221
  updateReferenceMapWithKnownKey(ast, luvioDocumentNode);
15222
15222
  return luvioDocumentNode;
15223
15223
  }
15224
- // version: 1.136.0-15ceb0ba0
15224
+ // version: 1.136.1-304fdc9ae
15225
15225
 
15226
15226
  function unwrap(data) {
15227
15227
  // The lwc-luvio bindings import a function from lwc called "unwrap".
@@ -16134,7 +16134,7 @@ function createGraphQLWireAdapterConstructor(luvio, adapter, metadata, astResolv
16134
16134
  const { apiFamily, name } = metadata;
16135
16135
  return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
16136
16136
  }
16137
- // version: 1.136.0-15ceb0ba0
16137
+ // version: 1.136.1-304fdc9ae
16138
16138
 
16139
16139
  /**
16140
16140
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -16217,7 +16217,7 @@ var FragmentReadResultState;
16217
16217
  ({
16218
16218
  state: FragmentReadResultState.Missing,
16219
16219
  });
16220
- // engine version: 0.139.6-cfd5fd23
16220
+ // engine version: 0.140.0-601083d4
16221
16221
 
16222
16222
  const { keys: ObjectKeys$3, create: ObjectCreate$3 } = Object;
16223
16223
 
@@ -43901,7 +43901,7 @@ withDefaultLuvio((luvio) => {
43901
43901
  dropFunction: instrumentation$2.notifyRecordUpdateAvailableDropped,
43902
43902
  });
43903
43903
  });
43904
- // version: 1.136.0-00f6ce321
43904
+ // version: 1.136.1-91bdcb94e
43905
43905
 
43906
43906
  var caseSensitiveUserId = '005B0000000GR4OIAW';
43907
43907
 
@@ -59512,7 +59512,7 @@ register({
59512
59512
  id: '@salesforce/lds-network-adapter',
59513
59513
  instrument: instrument$1,
59514
59514
  });
59515
- // version: 1.136.0-15ceb0ba0
59515
+ // version: 1.136.1-304fdc9ae
59516
59516
 
59517
59517
  const { create: create$2, keys: keys$2 } = Object;
59518
59518
  const { stringify: stringify$1, parse: parse$1 } = JSON;
@@ -73931,7 +73931,7 @@ register({
73931
73931
  configuration: { ...configurationForGraphQLAdapters },
73932
73932
  instrument,
73933
73933
  });
73934
- // version: 1.136.0-00f6ce321
73934
+ // version: 1.136.1-91bdcb94e
73935
73935
 
73936
73936
  // On core the unstable adapters are re-exported with different names,
73937
73937
 
@@ -76042,7 +76042,7 @@ withDefaultLuvio((luvio) => {
76042
76042
  unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
76043
76043
  graphQLImperative = ldsAdapter;
76044
76044
  });
76045
- // version: 1.136.0-00f6ce321
76045
+ // version: 1.136.1-91bdcb94e
76046
76046
 
76047
76047
  var gqlApi = /*#__PURE__*/Object.freeze({
76048
76048
  __proto__: null,
@@ -76734,4 +76734,4 @@ const { luvio } = getRuntime();
76734
76734
  setDefaultLuvio({ luvio });
76735
76735
 
76736
76736
  export { createPrimingSession, draftManager, draftQueue, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, registerReportObserver, setMetadataTTL, setUiApiRecordTTL, subscribeToAdapter };
76737
- // version: 1.136.0-15ceb0ba0
76737
+ // version: 1.136.1-304fdc9ae
@@ -0,0 +1,18 @@
1
+ import type { IdleDetector, Activity } from 'o11y/dist/modules/o11y/client/interfaces';
2
+ export declare const idleDetector: IdleDetector;
3
+ export declare const activity: Partial<Activity>;
4
+ type MetricsTags = Record<string, number | string | boolean>;
5
+ declare function startActivity(_name: string): Activity;
6
+ export declare const mockInstrumentation: {
7
+ startActivity: typeof startActivity;
8
+ error: () => void;
9
+ trackValue: (_operation: string, _value: number, _hasError?: boolean, _tags?: MetricsTags) => void;
10
+ incrementCounter: (_operation: string, _increment?: number, _hasError?: boolean, _tags?: MetricsTags) => void;
11
+ };
12
+ export declare const getInstrumentation: () => {
13
+ startActivity: typeof startActivity;
14
+ error: () => void;
15
+ trackValue: (_operation: string, _value: number, _hasError?: boolean, _tags?: MetricsTags) => void;
16
+ incrementCounter: (_operation: string, _increment?: number, _hasError?: boolean, _tags?: MetricsTags) => void;
17
+ };
18
+ export {};
@@ -0,0 +1,21 @@
1
+ export declare const instrumentation: {
2
+ instrumentAdapter(createFunction: Function, _metadata: any): Function;
3
+ };
4
+ export declare function instrumentAdapter(createFunction: Function, _metadata: any): Function;
5
+ export declare function incrementGetRecordNotifyChangeAllowCount(): void;
6
+ export declare function incrementGetRecordNotifyChangeDropCount(): void;
7
+ export declare function incrementNotifyRecordUpdateAvailableAllowCount(): void;
8
+ export declare function incrementNotifyRecordUpdateAvailableDropCount(): void;
9
+ export declare function refreshApiEvent(): void;
10
+ export declare function instrumentGraphqlAdapter(createFunction: Function, _metadata: any): Function;
11
+ export declare function setLdsAdaptersUiapiInstrumentation(_uiapiRegistration: any): void;
12
+ export declare function setLdsNetworkAdapterInstrumentation(_networkAdapterRegistration: any): void;
13
+ export declare function setupInstrumentation(_luvio: any, _store: any): void;
14
+ export declare function instrumentLuvio(_context: unknown): void;
15
+ export declare const REFRESH_UIAPI_KEY = "refreshUiApi";
16
+ export declare const METRIC_KEYS: {};
17
+ export declare const O11Y_NAMESPACE_LDS_MOBILE = "lds-mobile";
18
+ export declare const withInstrumentation: () => undefined;
19
+ export declare class MetricsReporter {
20
+ reportGraphqlQueryParseError(): void;
21
+ }
@@ -3676,7 +3676,7 @@
3676
3676
  return this.environment.buildStructuredKey(namespace, representationName, idValues);
3677
3677
  }
3678
3678
  }
3679
- // engine version: 0.139.6-cfd5fd23
3679
+ // engine version: 0.140.0-601083d4
3680
3680
 
3681
3681
  /**
3682
3682
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -3803,7 +3803,7 @@
3803
3803
  }
3804
3804
  callbacks.push(callback);
3805
3805
  }
3806
- // version: 1.136.0-15ceb0ba0
3806
+ // version: 1.136.1-304fdc9ae
3807
3807
 
3808
3808
  // TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
3809
3809
  function instrumentAdapter$1(createFunction, _metadata) {
@@ -15227,7 +15227,7 @@
15227
15227
  updateReferenceMapWithKnownKey(ast, luvioDocumentNode);
15228
15228
  return luvioDocumentNode;
15229
15229
  }
15230
- // version: 1.136.0-15ceb0ba0
15230
+ // version: 1.136.1-304fdc9ae
15231
15231
 
15232
15232
  function unwrap(data) {
15233
15233
  // The lwc-luvio bindings import a function from lwc called "unwrap".
@@ -16140,7 +16140,7 @@
16140
16140
  const { apiFamily, name } = metadata;
16141
16141
  return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
16142
16142
  }
16143
- // version: 1.136.0-15ceb0ba0
16143
+ // version: 1.136.1-304fdc9ae
16144
16144
 
16145
16145
  /**
16146
16146
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -16223,7 +16223,7 @@
16223
16223
  ({
16224
16224
  state: FragmentReadResultState.Missing,
16225
16225
  });
16226
- // engine version: 0.139.6-cfd5fd23
16226
+ // engine version: 0.140.0-601083d4
16227
16227
 
16228
16228
  const { keys: ObjectKeys$3, create: ObjectCreate$3 } = Object;
16229
16229
 
@@ -43907,7 +43907,7 @@
43907
43907
  dropFunction: instrumentation$2.notifyRecordUpdateAvailableDropped,
43908
43908
  });
43909
43909
  });
43910
- // version: 1.136.0-00f6ce321
43910
+ // version: 1.136.1-91bdcb94e
43911
43911
 
43912
43912
  var caseSensitiveUserId = '005B0000000GR4OIAW';
43913
43913
 
@@ -59518,7 +59518,7 @@
59518
59518
  id: '@salesforce/lds-network-adapter',
59519
59519
  instrument: instrument$1,
59520
59520
  });
59521
- // version: 1.136.0-15ceb0ba0
59521
+ // version: 1.136.1-304fdc9ae
59522
59522
 
59523
59523
  const { create: create$2, keys: keys$2 } = Object;
59524
59524
  const { stringify: stringify$1, parse: parse$1 } = JSON;
@@ -73937,7 +73937,7 @@
73937
73937
  configuration: { ...configurationForGraphQLAdapters },
73938
73938
  instrument,
73939
73939
  });
73940
- // version: 1.136.0-00f6ce321
73940
+ // version: 1.136.1-91bdcb94e
73941
73941
 
73942
73942
  // On core the unstable adapters are re-exported with different names,
73943
73943
 
@@ -76048,7 +76048,7 @@
76048
76048
  unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
76049
76049
  graphQLImperative = ldsAdapter;
76050
76050
  });
76051
- // version: 1.136.0-00f6ce321
76051
+ // version: 1.136.1-91bdcb94e
76052
76052
 
76053
76053
  var gqlApi = /*#__PURE__*/Object.freeze({
76054
76054
  __proto__: null,
@@ -76757,4 +76757,4 @@
76757
76757
  Object.defineProperty(exports, '__esModule', { value: true });
76758
76758
 
76759
76759
  }));
76760
- // version: 1.136.0-15ceb0ba0
76760
+ // version: 1.136.1-304fdc9ae
@@ -0,0 +1,18 @@
1
+ import type { IdleDetector, Activity } from 'o11y/dist/modules/o11y/client/interfaces';
2
+ export declare const idleDetector: IdleDetector;
3
+ export declare const activity: Partial<Activity>;
4
+ type MetricsTags = Record<string, number | string | boolean>;
5
+ declare function startActivity(_name: string): Activity;
6
+ export declare const mockInstrumentation: {
7
+ startActivity: typeof startActivity;
8
+ error: () => void;
9
+ trackValue: (_operation: string, _value: number, _hasError?: boolean, _tags?: MetricsTags) => void;
10
+ incrementCounter: (_operation: string, _increment?: number, _hasError?: boolean, _tags?: MetricsTags) => void;
11
+ };
12
+ export declare const getInstrumentation: () => {
13
+ startActivity: typeof startActivity;
14
+ error: () => void;
15
+ trackValue: (_operation: string, _value: number, _hasError?: boolean, _tags?: MetricsTags) => void;
16
+ incrementCounter: (_operation: string, _increment?: number, _hasError?: boolean, _tags?: MetricsTags) => void;
17
+ };
18
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-worker-api",
3
- "version": "1.136.0",
3
+ "version": "1.136.1",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "",
6
6
  "main": "dist/standalone/es/lds-worker-api.js",