@salesforce/lds-adapters-industries-nlpservice 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-nlpservice.js +11 -30
- package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/adapters/createAINaturalLangProcessResult.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/adapters/getAINaturalLangProcessResultsBySourceId.d.ts +1 -1
- package/package.json +1 -1
- package/sfdc/index.js +12 -31
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* For full license text, see the LICENSE.txt file
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$1,
|
|
7
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$2, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$1, typeCheckConfig as typeCheckConfig$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
|
}
|
|
@@ -269,17 +272,10 @@ function createResourceRequest$1(config) {
|
|
|
269
272
|
|
|
270
273
|
const adapterName$1 = 'createAINaturalLangProcessResult';
|
|
271
274
|
const createAINaturalLangProcessResult_ConfigPropertyMetadata = [
|
|
272
|
-
generateParamConfigMetadata('aiNaturalLangProcessResultInputParam', true),
|
|
275
|
+
generateParamConfigMetadata('aiNaturalLangProcessResultInputParam', true, 2 /* Body */, 4 /* Unsupported */),
|
|
273
276
|
];
|
|
274
277
|
const createAINaturalLangProcessResult_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, createAINaturalLangProcessResult_ConfigPropertyMetadata);
|
|
275
|
-
|
|
276
|
-
const resourceParams = {
|
|
277
|
-
body: {
|
|
278
|
-
aiNaturalLangProcessResultInputParam: config.aiNaturalLangProcessResultInputParam
|
|
279
|
-
}
|
|
280
|
-
};
|
|
281
|
-
return resourceParams;
|
|
282
|
-
}
|
|
278
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$2(createAINaturalLangProcessResult_ConfigPropertyMetadata);
|
|
283
279
|
function typeCheckConfig$1(untrustedConfig) {
|
|
284
280
|
const config = {};
|
|
285
281
|
const untrustedConfig_aiNaturalLangProcessResultInputParam = untrustedConfig.aiNaturalLangProcessResultInputParam;
|
|
@@ -450,33 +446,18 @@ function createResourceRequest(config) {
|
|
|
450
446
|
|
|
451
447
|
const adapterName = 'getAINaturalLangProcessResultsBySourceId';
|
|
452
448
|
const getAINaturalLangProcessResultsBySourceId_ConfigPropertyMetadata = [
|
|
453
|
-
generateParamConfigMetadata('sourceRecordId', true),
|
|
454
|
-
generateParamConfigMetadata('serviceTypes', false),
|
|
449
|
+
generateParamConfigMetadata('sourceRecordId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
450
|
+
generateParamConfigMetadata('serviceTypes', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
455
451
|
];
|
|
456
452
|
const getAINaturalLangProcessResultsBySourceId_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getAINaturalLangProcessResultsBySourceId_ConfigPropertyMetadata);
|
|
457
|
-
|
|
458
|
-
const resourceParams = {
|
|
459
|
-
urlParams: {
|
|
460
|
-
sourceRecordId: config.sourceRecordId
|
|
461
|
-
},
|
|
462
|
-
queryParams: {
|
|
463
|
-
serviceTypes: config.serviceTypes
|
|
464
|
-
}
|
|
465
|
-
};
|
|
466
|
-
return resourceParams;
|
|
467
|
-
}
|
|
453
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$2(getAINaturalLangProcessResultsBySourceId_ConfigPropertyMetadata);
|
|
468
454
|
function keyBuilder(luvio, config) {
|
|
469
455
|
const resourceParams = createResourceParams(config);
|
|
470
456
|
return keyBuilder$1(luvio, resourceParams);
|
|
471
457
|
}
|
|
472
458
|
function typeCheckConfig(untrustedConfig) {
|
|
473
459
|
const config = {};
|
|
474
|
-
|
|
475
|
-
sourceRecordId: 0 /* String */,
|
|
476
|
-
});
|
|
477
|
-
typeCheckArrayOfScalars(untrustedConfig, config, {
|
|
478
|
-
serviceTypes: 0 /* String */,
|
|
479
|
-
});
|
|
460
|
+
typeCheckConfig$2(untrustedConfig, config, getAINaturalLangProcessResultsBySourceId_ConfigPropertyMetadata);
|
|
480
461
|
return config;
|
|
481
462
|
}
|
|
482
463
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -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 = "NlpService";
|
|
@@ -9,7 +9,7 @@ export declare const createAINaturalLangProcessResult_ConfigPropertyNames: adapt
|
|
|
9
9
|
export interface CreateAINaturalLangProcessResultConfig {
|
|
10
10
|
aiNaturalLangProcessResultInputParam: types_AINaturalLangProcessResultInputRepresentation_AINaturalLangProcessResultInputRepresentation;
|
|
11
11
|
}
|
|
12
|
-
export declare
|
|
12
|
+
export declare const createResourceParams: (config: CreateAINaturalLangProcessResultConfig) => resources_postConnectNlpServiceAiNaturalLangProcessResults_ResourceRequestConfig;
|
|
13
13
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<CreateAINaturalLangProcessResultConfig>): adapter$45$utils_Untrusted<CreateAINaturalLangProcessResultConfig>;
|
|
14
14
|
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): CreateAINaturalLangProcessResultConfig | null;
|
|
15
15
|
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: CreateAINaturalLangProcessResultConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<import("@luvio/engine").FulfilledSnapshot<types_AINaturalLangProcessResultRepresentation_AINaturalLangProcessResultRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_AINaturalLangProcessResultRepresentation_AINaturalLangProcessResultRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_AINaturalLangProcessResultRepresentation_AINaturalLangProcessResultRepresentation, any>>;
|
package/dist/es/es2018/types/src/generated/adapters/getAINaturalLangProcessResultsBySourceId.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export interface GetAINaturalLangProcessResultsBySourceIdConfig {
|
|
|
9
9
|
sourceRecordId: string;
|
|
10
10
|
serviceTypes?: Array<string>;
|
|
11
11
|
}
|
|
12
|
-
export declare
|
|
12
|
+
export declare const createResourceParams: (config: GetAINaturalLangProcessResultsBySourceIdConfig) => resources_getConnectNlpServiceAiNaturalLangProcessResultsSourceRecordsBySourceRecordId_ResourceRequestConfig;
|
|
13
13
|
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetAINaturalLangProcessResultsBySourceIdConfig): string;
|
|
14
14
|
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetAINaturalLangProcessResultsBySourceIdConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
15
15
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetAINaturalLangProcessResultsBySourceIdConfig>): adapter$45$utils_Untrusted<GetAINaturalLangProcessResultsBySourceIdConfig>;
|
package/package.json
CHANGED
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, StoreKeyMap, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$1,
|
|
17
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$2, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$1, typeCheckConfig as typeCheckConfig$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
|
}
|
|
@@ -279,17 +282,10 @@ function createResourceRequest$1(config) {
|
|
|
279
282
|
|
|
280
283
|
const adapterName$1 = 'createAINaturalLangProcessResult';
|
|
281
284
|
const createAINaturalLangProcessResult_ConfigPropertyMetadata = [
|
|
282
|
-
generateParamConfigMetadata('aiNaturalLangProcessResultInputParam', true),
|
|
285
|
+
generateParamConfigMetadata('aiNaturalLangProcessResultInputParam', true, 2 /* Body */, 4 /* Unsupported */),
|
|
283
286
|
];
|
|
284
287
|
const createAINaturalLangProcessResult_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, createAINaturalLangProcessResult_ConfigPropertyMetadata);
|
|
285
|
-
|
|
286
|
-
const resourceParams = {
|
|
287
|
-
body: {
|
|
288
|
-
aiNaturalLangProcessResultInputParam: config.aiNaturalLangProcessResultInputParam
|
|
289
|
-
}
|
|
290
|
-
};
|
|
291
|
-
return resourceParams;
|
|
292
|
-
}
|
|
288
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$2(createAINaturalLangProcessResult_ConfigPropertyMetadata);
|
|
293
289
|
function typeCheckConfig$1(untrustedConfig) {
|
|
294
290
|
const config = {};
|
|
295
291
|
const untrustedConfig_aiNaturalLangProcessResultInputParam = untrustedConfig.aiNaturalLangProcessResultInputParam;
|
|
@@ -460,33 +456,18 @@ function createResourceRequest(config) {
|
|
|
460
456
|
|
|
461
457
|
const adapterName = 'getAINaturalLangProcessResultsBySourceId';
|
|
462
458
|
const getAINaturalLangProcessResultsBySourceId_ConfigPropertyMetadata = [
|
|
463
|
-
generateParamConfigMetadata('sourceRecordId', true),
|
|
464
|
-
generateParamConfigMetadata('serviceTypes', false),
|
|
459
|
+
generateParamConfigMetadata('sourceRecordId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
460
|
+
generateParamConfigMetadata('serviceTypes', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
465
461
|
];
|
|
466
462
|
const getAINaturalLangProcessResultsBySourceId_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getAINaturalLangProcessResultsBySourceId_ConfigPropertyMetadata);
|
|
467
|
-
|
|
468
|
-
const resourceParams = {
|
|
469
|
-
urlParams: {
|
|
470
|
-
sourceRecordId: config.sourceRecordId
|
|
471
|
-
},
|
|
472
|
-
queryParams: {
|
|
473
|
-
serviceTypes: config.serviceTypes
|
|
474
|
-
}
|
|
475
|
-
};
|
|
476
|
-
return resourceParams;
|
|
477
|
-
}
|
|
463
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$2(getAINaturalLangProcessResultsBySourceId_ConfigPropertyMetadata);
|
|
478
464
|
function keyBuilder(luvio, config) {
|
|
479
465
|
const resourceParams = createResourceParams(config);
|
|
480
466
|
return keyBuilder$1(luvio, resourceParams);
|
|
481
467
|
}
|
|
482
468
|
function typeCheckConfig(untrustedConfig) {
|
|
483
469
|
const config = {};
|
|
484
|
-
|
|
485
|
-
sourceRecordId: 0 /* String */,
|
|
486
|
-
});
|
|
487
|
-
typeCheckArrayOfScalars(untrustedConfig, config, {
|
|
488
|
-
serviceTypes: 0 /* String */,
|
|
489
|
-
});
|
|
470
|
+
typeCheckConfig$2(untrustedConfig, config, getAINaturalLangProcessResultsBySourceId_ConfigPropertyMetadata);
|
|
490
471
|
return config;
|
|
491
472
|
}
|
|
492
473
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -588,4 +569,4 @@ withDefaultLuvio((luvio) => {
|
|
|
588
569
|
});
|
|
589
570
|
|
|
590
571
|
export { createAINaturalLangProcessResult, getAINaturalLangProcessResultsBySourceId, getAINaturalLangProcessResultsBySourceId_imperative };
|
|
591
|
-
// version: 1.
|
|
572
|
+
// version: 1.216.0-1d57d45fe
|