@salesforce/lds-adapters-industries-nlpservice
Advanced tools
Comparing version 1.229.0-dev1 to 1.229.0-dev2
@@ -10,3 +10,3 @@ /** | ||
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype; | ||
const { keys: ObjectKeys, create: ObjectCreate } = Object; | ||
const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object; | ||
const { isArray: ArrayIsArray$1 } = Array; | ||
@@ -35,3 +35,3 @@ /** | ||
const supported = required.concat(optional); | ||
if (ObjectKeys(config).some(key => !supported.includes(key))) { | ||
if (ObjectKeys$1(config).some(key => !supported.includes(key))) { | ||
throw new TypeError(`adapter ${displayName} configuration supports only ${supported.sort().join(', ')}`); | ||
@@ -76,2 +76,3 @@ } | ||
const { keys: ObjectKeys, create: ObjectCreate, assign: ObjectAssign } = Object; | ||
const { isArray: ArrayIsArray } = Array; | ||
@@ -85,2 +86,39 @@ const { stringify: JSONStringify } = JSON; | ||
function validate$4(obj, path = 'NullableAdditionalParametersInputMap') { | ||
const v_error = (() => { | ||
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) { | ||
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")'); | ||
} | ||
const obj_keys = ObjectKeys(obj); | ||
for (let i = 0; i < obj_keys.length; i++) { | ||
const key = obj_keys[i]; | ||
const obj_prop = obj[key]; | ||
const path_prop = path + '["' + key + '"]'; | ||
if (obj_prop === undefined) { | ||
return new TypeError('Expected "defined" but received "' + typeof obj_prop + '" (at "' + path_prop + '")'); | ||
} | ||
} | ||
})(); | ||
return v_error === undefined ? null : v_error; | ||
} | ||
function validate$3(obj, path = 'AdditionalParametersInputMap') { | ||
const v_error = (() => { | ||
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) { | ||
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")'); | ||
} | ||
if (obj.additionalParameters !== undefined) { | ||
const obj_additionalParameters = obj.additionalParameters; | ||
const path_additionalParameters = path + '.additionalParameters'; | ||
const referencepath_additionalParametersValidationError = validate$4(obj_additionalParameters, path_additionalParameters); | ||
if (referencepath_additionalParametersValidationError !== null) { | ||
let message = 'Object doesn\'t match NullableAdditionalParametersInputMap (at "' + path_additionalParameters + '")\n'; | ||
message += referencepath_additionalParametersValidationError.message.split('\n').map((line) => '\t' + line).join('\n'); | ||
return new TypeError(message); | ||
} | ||
} | ||
})(); | ||
return v_error === undefined ? null : v_error; | ||
} | ||
function validate$2(obj, path = 'AINaturalLangProcessResultInputRepresentation') { | ||
@@ -91,2 +129,12 @@ const v_error = (() => { | ||
} | ||
if (obj.additionalParameters !== undefined) { | ||
const obj_additionalParameters = obj.additionalParameters; | ||
const path_additionalParameters = path + '.additionalParameters'; | ||
const referencepath_additionalParametersValidationError = validate$3(obj_additionalParameters, path_additionalParameters); | ||
if (referencepath_additionalParametersValidationError !== null) { | ||
let message = 'Object doesn\'t match AdditionalParametersInputMap (at "' + path_additionalParameters + '")\n'; | ||
message += referencepath_additionalParametersValidationError.message.split('\n').map((line) => '\t' + line).join('\n'); | ||
return new TypeError(message); | ||
} | ||
} | ||
if (obj.query !== undefined) { | ||
@@ -93,0 +141,0 @@ const obj_query = obj.query; |
@@ -0,3 +1,4 @@ | ||
import { AdditionalParametersInputMap as AdditionalParametersInputMap_AdditionalParametersInputMap } from './AdditionalParametersInputMap'; | ||
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine'; | ||
export declare const VERSION = "03c3a2a041972ab9bf12b287f2cfe595"; | ||
export declare const VERSION = "0c058aa70c964e5f9c52617324bc03da"; | ||
export declare function validate(obj: any, path?: string): TypeError | null; | ||
@@ -17,2 +18,4 @@ export declare const RepresentationType: string; | ||
export interface AINaturalLangProcessResultInputRepresentationNormalized { | ||
/** Additional Parameters */ | ||
additionalParameters?: AdditionalParametersInputMap_AdditionalParametersInputMap; | ||
/** Query */ | ||
@@ -30,4 +33,5 @@ query?: string; | ||
export interface AINaturalLangProcessResultInputRepresentation { | ||
additionalParameters?: AdditionalParametersInputMap_AdditionalParametersInputMap; | ||
query?: string; | ||
serviceType?: string; | ||
} |
{ | ||
"name": "@salesforce/lds-adapters-industries-nlpservice", | ||
"version": "1.229.0-dev1", | ||
"version": "1.229.0-dev2", | ||
"description": "Ai Natural Language Processing Service", | ||
@@ -46,7 +46,7 @@ "license": "SEE LICENSE IN LICENSE.txt", | ||
"dependencies": { | ||
"@salesforce/lds-bindings": "1.229.0-dev1" | ||
"@salesforce/lds-bindings": "1.229.0-dev2" | ||
}, | ||
"devDependencies": { | ||
"@salesforce/lds-compiler-plugins": "1.229.0-dev1", | ||
"@salesforce/lds-karma": "1.229.0-dev1" | ||
"@salesforce/lds-compiler-plugins": "1.229.0-dev2", | ||
"@salesforce/lds-karma": "1.229.0-dev2" | ||
}, | ||
@@ -53,0 +53,0 @@ "nx": { |
@@ -20,3 +20,3 @@ /** | ||
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype; | ||
const { keys: ObjectKeys, create: ObjectCreate } = Object; | ||
const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object; | ||
const { isArray: ArrayIsArray$1 } = Array; | ||
@@ -45,3 +45,3 @@ /** | ||
const supported = required.concat(optional); | ||
if (ObjectKeys(config).some(key => !supported.includes(key))) { | ||
if (ObjectKeys$1(config).some(key => !supported.includes(key))) { | ||
throw new TypeError(`adapter ${displayName} configuration supports only ${supported.sort().join(', ')}`); | ||
@@ -86,2 +86,3 @@ } | ||
const { keys: ObjectKeys, create: ObjectCreate, assign: ObjectAssign } = Object; | ||
const { isArray: ArrayIsArray } = Array; | ||
@@ -95,2 +96,39 @@ const { stringify: JSONStringify } = JSON; | ||
function validate$4(obj, path = 'NullableAdditionalParametersInputMap') { | ||
const v_error = (() => { | ||
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) { | ||
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")'); | ||
} | ||
const obj_keys = ObjectKeys(obj); | ||
for (let i = 0; i < obj_keys.length; i++) { | ||
const key = obj_keys[i]; | ||
const obj_prop = obj[key]; | ||
const path_prop = path + '["' + key + '"]'; | ||
if (obj_prop === undefined) { | ||
return new TypeError('Expected "defined" but received "' + typeof obj_prop + '" (at "' + path_prop + '")'); | ||
} | ||
} | ||
})(); | ||
return v_error === undefined ? null : v_error; | ||
} | ||
function validate$3(obj, path = 'AdditionalParametersInputMap') { | ||
const v_error = (() => { | ||
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) { | ||
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")'); | ||
} | ||
if (obj.additionalParameters !== undefined) { | ||
const obj_additionalParameters = obj.additionalParameters; | ||
const path_additionalParameters = path + '.additionalParameters'; | ||
const referencepath_additionalParametersValidationError = validate$4(obj_additionalParameters, path_additionalParameters); | ||
if (referencepath_additionalParametersValidationError !== null) { | ||
let message = 'Object doesn\'t match NullableAdditionalParametersInputMap (at "' + path_additionalParameters + '")\n'; | ||
message += referencepath_additionalParametersValidationError.message.split('\n').map((line) => '\t' + line).join('\n'); | ||
return new TypeError(message); | ||
} | ||
} | ||
})(); | ||
return v_error === undefined ? null : v_error; | ||
} | ||
function validate$2(obj, path = 'AINaturalLangProcessResultInputRepresentation') { | ||
@@ -101,2 +139,12 @@ const v_error = (() => { | ||
} | ||
if (obj.additionalParameters !== undefined) { | ||
const obj_additionalParameters = obj.additionalParameters; | ||
const path_additionalParameters = path + '.additionalParameters'; | ||
const referencepath_additionalParametersValidationError = validate$3(obj_additionalParameters, path_additionalParameters); | ||
if (referencepath_additionalParametersValidationError !== null) { | ||
let message = 'Object doesn\'t match AdditionalParametersInputMap (at "' + path_additionalParameters + '")\n'; | ||
message += referencepath_additionalParametersValidationError.message.split('\n').map((line) => '\t' + line).join('\n'); | ||
return new TypeError(message); | ||
} | ||
} | ||
if (obj.query !== undefined) { | ||
@@ -577,2 +625,2 @@ const obj_query = obj.query; | ||
export { createAINaturalLangProcessResult, getAINaturalLangProcessResultsBySourceId, getAINaturalLangProcessResultsBySourceId_imperative }; | ||
// version: 1.229.0-dev1-5b6d3db67 | ||
// version: 1.229.0-dev2-696fe5026 |
Sorry, the diff of this file is not supported yet
117412
28
1823
+ Added@salesforce/lds-bindings@1.229.0-dev2(transitive)
+ Added@salesforce/lds-graphql-parser@1.229.0-dev2(transitive)
- Removed@salesforce/lds-bindings@1.229.0-dev1(transitive)
- Removed@salesforce/lds-graphql-parser@1.229.0-dev1(transitive)