@salesforce/lds-adapters-industries-sustainability-reference-data-v2 1.214.2 → 1.216.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.
- package/dist/es/es2018/industries-sustainability-reference-data-v2.js +14 -34
- package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/adapters/getEntityVersion.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/adapters/uploadEntityVersion.d.ts +1 -1
- package/package.json +1 -1
- package/sfdc/index.js +15 -35
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* For full license text, see the LICENSE.txt file
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$1,
|
|
7
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$1, typeCheckConfig as typeCheckConfig$2, StoreKeyMap, createResourceParams as createResourceParams$2 } from '@luvio/engine';
|
|
8
8
|
|
|
9
9
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
10
10
|
const { keys: ObjectKeys, create: ObjectCreate } = Object;
|
|
@@ -48,10 +48,13 @@ const snapshotRefreshOptions = {
|
|
|
48
48
|
},
|
|
49
49
|
}
|
|
50
50
|
};
|
|
51
|
-
function generateParamConfigMetadata(name, required, coerceFn) {
|
|
51
|
+
function generateParamConfigMetadata(name, required, resourceType, typeCheckShape, isArrayShape = false, coerceFn) {
|
|
52
52
|
return {
|
|
53
53
|
name,
|
|
54
54
|
required,
|
|
55
|
+
resourceType,
|
|
56
|
+
typeCheckShape,
|
|
57
|
+
isArrayShape,
|
|
55
58
|
coerceFn,
|
|
56
59
|
};
|
|
57
60
|
}
|
|
@@ -326,37 +329,21 @@ function createResourceRequest$1(config) {
|
|
|
326
329
|
|
|
327
330
|
const adapterName$1 = 'getEntityVersion';
|
|
328
331
|
const getEntityVersion_ConfigPropertyMetadata = [
|
|
329
|
-
generateParamConfigMetadata('entitySection', true),
|
|
330
|
-
generateParamConfigMetadata('referenceDataSource', true),
|
|
331
|
-
generateParamConfigMetadata('loadType', false),
|
|
332
|
-
generateParamConfigMetadata('order', false),
|
|
333
|
-
generateParamConfigMetadata('size', false),
|
|
332
|
+
generateParamConfigMetadata('entitySection', true, 0 /* UrlParameter */, 0 /* String */),
|
|
333
|
+
generateParamConfigMetadata('referenceDataSource', true, 0 /* UrlParameter */, 0 /* String */),
|
|
334
|
+
generateParamConfigMetadata('loadType', false, 1 /* QueryParameter */, 0 /* String */),
|
|
335
|
+
generateParamConfigMetadata('order', false, 1 /* QueryParameter */, 0 /* String */),
|
|
336
|
+
generateParamConfigMetadata('size', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
334
337
|
];
|
|
335
338
|
const getEntityVersion_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getEntityVersion_ConfigPropertyMetadata);
|
|
336
|
-
|
|
337
|
-
const resourceParams = {
|
|
338
|
-
urlParams: {
|
|
339
|
-
entitySection: config.entitySection, referenceDataSource: config.referenceDataSource
|
|
340
|
-
},
|
|
341
|
-
queryParams: {
|
|
342
|
-
loadType: config.loadType, order: config.order, size: config.size
|
|
343
|
-
}
|
|
344
|
-
};
|
|
345
|
-
return resourceParams;
|
|
346
|
-
}
|
|
339
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$2(getEntityVersion_ConfigPropertyMetadata);
|
|
347
340
|
function keyBuilder$1(luvio, config) {
|
|
348
341
|
const resourceParams = createResourceParams$1(config);
|
|
349
342
|
return keyBuilder$2(luvio, resourceParams);
|
|
350
343
|
}
|
|
351
344
|
function typeCheckConfig$1(untrustedConfig) {
|
|
352
345
|
const config = {};
|
|
353
|
-
|
|
354
|
-
entitySection: 0 /* String */,
|
|
355
|
-
referenceDataSource: 0 /* String */,
|
|
356
|
-
loadType: 0 /* String */,
|
|
357
|
-
order: 0 /* String */,
|
|
358
|
-
size: 3 /* Integer */,
|
|
359
|
-
});
|
|
346
|
+
typeCheckConfig$2(untrustedConfig, config, getEntityVersion_ConfigPropertyMetadata);
|
|
360
347
|
return config;
|
|
361
348
|
}
|
|
362
349
|
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
@@ -591,17 +578,10 @@ function createResourceRequest(config) {
|
|
|
591
578
|
|
|
592
579
|
const adapterName = 'uploadEntityVersion';
|
|
593
580
|
const uploadEntityVersion_ConfigPropertyMetadata = [
|
|
594
|
-
generateParamConfigMetadata('uploadEntityInput', true),
|
|
581
|
+
generateParamConfigMetadata('uploadEntityInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
595
582
|
];
|
|
596
583
|
const uploadEntityVersion_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, uploadEntityVersion_ConfigPropertyMetadata);
|
|
597
|
-
|
|
598
|
-
const resourceParams = {
|
|
599
|
-
body: {
|
|
600
|
-
uploadEntityInput: config.uploadEntityInput
|
|
601
|
-
}
|
|
602
|
-
};
|
|
603
|
-
return resourceParams;
|
|
604
|
-
}
|
|
584
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$2(uploadEntityVersion_ConfigPropertyMetadata);
|
|
605
585
|
function typeCheckConfig(untrustedConfig) {
|
|
606
586
|
const config = {};
|
|
607
587
|
const untrustedConfig_uploadEntityInput = untrustedConfig.uploadEntityInput;
|
|
@@ -57,6 +57,6 @@ export declare const snapshotRefreshOptions: {
|
|
|
57
57
|
export declare function stableJSONStringify(node: any): string | undefined;
|
|
58
58
|
export declare function getFetchResponseStatusText(status: number): string;
|
|
59
59
|
export declare function isUnfulfilledSnapshot<T, U>(snapshot: $64$luvio_engine_Snapshot<T, U>): snapshot is $64$luvio_engine_UnfulfilledSnapshot<T, U>;
|
|
60
|
-
export declare function generateParamConfigMetadata(name: string, required: boolean, coerceFn?: (v: unknown) => unknown): $64$luvio_engine_AdapterConfigMetadata;
|
|
60
|
+
export declare function generateParamConfigMetadata(name: string, required: boolean, resourceType: $64$luvio_engine_AdapterConfigMetadata['resourceType'], typeCheckShape: $64$luvio_engine_AdapterConfigMetadata['typeCheckShape'], isArrayShape?: boolean, coerceFn?: (v: unknown) => unknown): $64$luvio_engine_AdapterConfigMetadata;
|
|
61
61
|
export declare function buildAdapterValidationConfig(displayName: string, paramsMeta: $64$luvio_engine_AdapterConfigMetadata[]): AdapterValidationConfig;
|
|
62
62
|
export declare const keyPrefix = "sustainability-reference-data-v2";
|
|
@@ -12,7 +12,7 @@ export interface GetEntityVersionConfig {
|
|
|
12
12
|
order?: string;
|
|
13
13
|
size?: number;
|
|
14
14
|
}
|
|
15
|
-
export declare
|
|
15
|
+
export declare const createResourceParams: (config: GetEntityVersionConfig) => resources_getConnectSustainabilityReferenceDataV2EntitySectionDataSourceVersionByEntitySectionAndReferenceDataSource_ResourceRequestConfig;
|
|
16
16
|
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetEntityVersionConfig): string;
|
|
17
17
|
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetEntityVersionConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
18
18
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetEntityVersionConfig>): adapter$45$utils_Untrusted<GetEntityVersionConfig>;
|
|
@@ -9,7 +9,7 @@ export declare const uploadEntityVersion_ConfigPropertyNames: adapter$45$utils_A
|
|
|
9
9
|
export interface UploadEntityVersionConfig {
|
|
10
10
|
uploadEntityInput: types_UploadEntityVersionInputRepresentation_UploadEntityVersionInputRepresentation;
|
|
11
11
|
}
|
|
12
|
-
export declare
|
|
12
|
+
export declare const createResourceParams: (config: UploadEntityVersionConfig) => resources_putConnectSustainabilityReferenceDataV2EntityVersionUpload_ResourceRequestConfig;
|
|
13
13
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<UploadEntityVersionConfig>): adapter$45$utils_Untrusted<UploadEntityVersionConfig>;
|
|
14
14
|
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): UploadEntityVersionConfig | null;
|
|
15
15
|
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: UploadEntityVersionConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<import("@luvio/engine").FulfilledSnapshot<types_UploadEntityVersionOutputRepresentation_UploadEntityVersionOutputRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_UploadEntityVersionOutputRepresentation_UploadEntityVersionOutputRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_UploadEntityVersionOutputRepresentation_UploadEntityVersionOutputRepresentation, any>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-industries-sustainability-reference-data-v2",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.216.0",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "sustainability-reference-data-v2",
|
|
6
6
|
"main": "dist/es/es2018/industries-sustainability-reference-data-v2.js",
|
package/sfdc/index.js
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
/* proxy-compat-disable */
|
|
15
15
|
import { createInstrumentedAdapter, createLDSAdapter, createWireAdapterConstructor, createImperativeAdapter } from 'force/ldsBindings';
|
|
16
16
|
import { withDefaultLuvio } from 'force/ldsEngine';
|
|
17
|
-
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$1,
|
|
17
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$1, typeCheckConfig as typeCheckConfig$2, StoreKeyMap, createResourceParams as createResourceParams$2 } from 'force/luvioEngine';
|
|
18
18
|
|
|
19
19
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
20
20
|
const { keys: ObjectKeys, create: ObjectCreate } = Object;
|
|
@@ -58,10 +58,13 @@ const snapshotRefreshOptions = {
|
|
|
58
58
|
},
|
|
59
59
|
}
|
|
60
60
|
};
|
|
61
|
-
function generateParamConfigMetadata(name, required, coerceFn) {
|
|
61
|
+
function generateParamConfigMetadata(name, required, resourceType, typeCheckShape, isArrayShape = false, coerceFn) {
|
|
62
62
|
return {
|
|
63
63
|
name,
|
|
64
64
|
required,
|
|
65
|
+
resourceType,
|
|
66
|
+
typeCheckShape,
|
|
67
|
+
isArrayShape,
|
|
65
68
|
coerceFn,
|
|
66
69
|
};
|
|
67
70
|
}
|
|
@@ -336,37 +339,21 @@ function createResourceRequest$1(config) {
|
|
|
336
339
|
|
|
337
340
|
const adapterName$1 = 'getEntityVersion';
|
|
338
341
|
const getEntityVersion_ConfigPropertyMetadata = [
|
|
339
|
-
generateParamConfigMetadata('entitySection', true),
|
|
340
|
-
generateParamConfigMetadata('referenceDataSource', true),
|
|
341
|
-
generateParamConfigMetadata('loadType', false),
|
|
342
|
-
generateParamConfigMetadata('order', false),
|
|
343
|
-
generateParamConfigMetadata('size', false),
|
|
342
|
+
generateParamConfigMetadata('entitySection', true, 0 /* UrlParameter */, 0 /* String */),
|
|
343
|
+
generateParamConfigMetadata('referenceDataSource', true, 0 /* UrlParameter */, 0 /* String */),
|
|
344
|
+
generateParamConfigMetadata('loadType', false, 1 /* QueryParameter */, 0 /* String */),
|
|
345
|
+
generateParamConfigMetadata('order', false, 1 /* QueryParameter */, 0 /* String */),
|
|
346
|
+
generateParamConfigMetadata('size', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
344
347
|
];
|
|
345
348
|
const getEntityVersion_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getEntityVersion_ConfigPropertyMetadata);
|
|
346
|
-
|
|
347
|
-
const resourceParams = {
|
|
348
|
-
urlParams: {
|
|
349
|
-
entitySection: config.entitySection, referenceDataSource: config.referenceDataSource
|
|
350
|
-
},
|
|
351
|
-
queryParams: {
|
|
352
|
-
loadType: config.loadType, order: config.order, size: config.size
|
|
353
|
-
}
|
|
354
|
-
};
|
|
355
|
-
return resourceParams;
|
|
356
|
-
}
|
|
349
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$2(getEntityVersion_ConfigPropertyMetadata);
|
|
357
350
|
function keyBuilder$1(luvio, config) {
|
|
358
351
|
const resourceParams = createResourceParams$1(config);
|
|
359
352
|
return keyBuilder$2(luvio, resourceParams);
|
|
360
353
|
}
|
|
361
354
|
function typeCheckConfig$1(untrustedConfig) {
|
|
362
355
|
const config = {};
|
|
363
|
-
|
|
364
|
-
entitySection: 0 /* String */,
|
|
365
|
-
referenceDataSource: 0 /* String */,
|
|
366
|
-
loadType: 0 /* String */,
|
|
367
|
-
order: 0 /* String */,
|
|
368
|
-
size: 3 /* Integer */,
|
|
369
|
-
});
|
|
356
|
+
typeCheckConfig$2(untrustedConfig, config, getEntityVersion_ConfigPropertyMetadata);
|
|
370
357
|
return config;
|
|
371
358
|
}
|
|
372
359
|
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
@@ -601,17 +588,10 @@ function createResourceRequest(config) {
|
|
|
601
588
|
|
|
602
589
|
const adapterName = 'uploadEntityVersion';
|
|
603
590
|
const uploadEntityVersion_ConfigPropertyMetadata = [
|
|
604
|
-
generateParamConfigMetadata('uploadEntityInput', true),
|
|
591
|
+
generateParamConfigMetadata('uploadEntityInput', true, 2 /* Body */, 4 /* Unsupported */),
|
|
605
592
|
];
|
|
606
593
|
const uploadEntityVersion_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, uploadEntityVersion_ConfigPropertyMetadata);
|
|
607
|
-
|
|
608
|
-
const resourceParams = {
|
|
609
|
-
body: {
|
|
610
|
-
uploadEntityInput: config.uploadEntityInput
|
|
611
|
-
}
|
|
612
|
-
};
|
|
613
|
-
return resourceParams;
|
|
614
|
-
}
|
|
594
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$2(uploadEntityVersion_ConfigPropertyMetadata);
|
|
615
595
|
function typeCheckConfig(untrustedConfig) {
|
|
616
596
|
const config = {};
|
|
617
597
|
const untrustedConfig_uploadEntityInput = untrustedConfig.uploadEntityInput;
|
|
@@ -692,4 +672,4 @@ withDefaultLuvio((luvio) => {
|
|
|
692
672
|
});
|
|
693
673
|
|
|
694
674
|
export { getEntityVersion, getEntityVersion_imperative, uploadEntityVersion };
|
|
695
|
-
// version: 1.
|
|
675
|
+
// version: 1.216.0-1d57d45fe
|