@salesforce/lds-adapters-service-ecm 1.354.0-dev1 → 1.355.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.
|
@@ -8157,7 +8157,7 @@ const generateOmniScriptAdapterFactory = (luvio) => {
|
|
|
8157
8157
|
};
|
|
8158
8158
|
};
|
|
8159
8159
|
|
|
8160
|
-
const VERSION = "
|
|
8160
|
+
const VERSION = "4f891f8b58d8bba310f23859c6c0bb4d";
|
|
8161
8161
|
function validate(obj, path = 'ServiceRequestGetOutputRepresentation') {
|
|
8162
8162
|
const v_error = (() => {
|
|
8163
8163
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -8195,6 +8195,22 @@ function validate(obj, path = 'ServiceRequestGetOutputRepresentation') {
|
|
|
8195
8195
|
}
|
|
8196
8196
|
}
|
|
8197
8197
|
}
|
|
8198
|
+
if (obj.productAttributes !== undefined) {
|
|
8199
|
+
const obj_productAttributes = obj.productAttributes;
|
|
8200
|
+
const path_productAttributes = path + '.productAttributes';
|
|
8201
|
+
if (typeof obj_productAttributes !== 'object' || ArrayIsArray(obj_productAttributes) || obj_productAttributes === null) {
|
|
8202
|
+
return new TypeError('Expected "object" but received "' + typeof obj_productAttributes + '" (at "' + path_productAttributes + '")');
|
|
8203
|
+
}
|
|
8204
|
+
const obj_productAttributes_keys = ObjectKeys(obj_productAttributes);
|
|
8205
|
+
for (let i = 0; i < obj_productAttributes_keys.length; i++) {
|
|
8206
|
+
const key = obj_productAttributes_keys[i];
|
|
8207
|
+
const obj_productAttributes_prop = obj_productAttributes[key];
|
|
8208
|
+
const path_productAttributes_prop = path_productAttributes + '["' + key + '"]';
|
|
8209
|
+
if (obj_productAttributes_prop === undefined) {
|
|
8210
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_productAttributes_prop + '" (at "' + path_productAttributes_prop + '")');
|
|
8211
|
+
}
|
|
8212
|
+
}
|
|
8213
|
+
}
|
|
8198
8214
|
})();
|
|
8199
8215
|
return v_error === undefined ? null : v_error;
|
|
8200
8216
|
}
|
|
@@ -8217,6 +8233,11 @@ const select$1 = function ServiceRequestGetOutputRepresentationSelect() {
|
|
|
8217
8233
|
name: 'customAttributes',
|
|
8218
8234
|
kind: 'Object',
|
|
8219
8235
|
// any
|
|
8236
|
+
},
|
|
8237
|
+
{
|
|
8238
|
+
name: 'productAttributes',
|
|
8239
|
+
kind: 'Object',
|
|
8240
|
+
// any
|
|
8220
8241
|
}
|
|
8221
8242
|
]
|
|
8222
8243
|
};
|
|
@@ -8258,6 +8279,24 @@ function equals(existing, incoming) {
|
|
|
8258
8279
|
return false;
|
|
8259
8280
|
}
|
|
8260
8281
|
}
|
|
8282
|
+
const existing_productAttributes = existing.productAttributes;
|
|
8283
|
+
const incoming_productAttributes = incoming.productAttributes;
|
|
8284
|
+
// if at least one of these optionals is defined
|
|
8285
|
+
if (existing_productAttributes !== undefined || incoming_productAttributes !== undefined) {
|
|
8286
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
8287
|
+
// not equal
|
|
8288
|
+
if (existing_productAttributes === undefined || incoming_productAttributes === undefined) {
|
|
8289
|
+
return false;
|
|
8290
|
+
}
|
|
8291
|
+
const equals_productAttributes_props = equalsObject(existing_productAttributes, incoming_productAttributes, (existing_productAttributes_prop, incoming_productAttributes_prop) => {
|
|
8292
|
+
if (JSONStringify(incoming_productAttributes_prop) !== JSONStringify(existing_productAttributes_prop)) {
|
|
8293
|
+
return false;
|
|
8294
|
+
}
|
|
8295
|
+
});
|
|
8296
|
+
if (equals_productAttributes_props === false) {
|
|
8297
|
+
return false;
|
|
8298
|
+
}
|
|
8299
|
+
}
|
|
8261
8300
|
return true;
|
|
8262
8301
|
}
|
|
8263
8302
|
const ingest = function ServiceRequestGetOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
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';
|
|
2
|
-
export declare const VERSION = "
|
|
2
|
+
export declare const VERSION = "4f891f8b58d8bba310f23859c6c0bb4d";
|
|
3
3
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
4
|
export declare const RepresentationType: string;
|
|
5
5
|
export declare function normalize(input: ServiceRequestGetOutputRepresentation, existing: ServiceRequestGetOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ServiceRequestGetOutputRepresentationNormalized;
|
|
@@ -22,6 +22,10 @@ export interface ServiceRequestGetOutputRepresentationNormalized {
|
|
|
22
22
|
customAttributes?: {
|
|
23
23
|
[key: string]: unknown;
|
|
24
24
|
};
|
|
25
|
+
/** Product object list */
|
|
26
|
+
productAttributes?: {
|
|
27
|
+
[key: string]: unknown;
|
|
28
|
+
};
|
|
25
29
|
}
|
|
26
30
|
/**
|
|
27
31
|
* Service Request Get Output Representation
|
|
@@ -36,4 +40,7 @@ export interface ServiceRequestGetOutputRepresentation {
|
|
|
36
40
|
customAttributes?: {
|
|
37
41
|
[key: string]: unknown;
|
|
38
42
|
};
|
|
43
|
+
productAttributes?: {
|
|
44
|
+
[key: string]: unknown;
|
|
45
|
+
};
|
|
39
46
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-service-ecm",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.355.0",
|
|
4
4
|
"description": "Service Automation Request",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "dist/es/es2018/service-ecm.js",
|
|
@@ -40,10 +40,10 @@
|
|
|
40
40
|
"test:unit": "jest"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@salesforce/lds-bindings": "^1.
|
|
43
|
+
"@salesforce/lds-bindings": "^1.355.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@salesforce/lds-compiler-plugins": "^1.
|
|
46
|
+
"@salesforce/lds-compiler-plugins": "^1.355.0"
|
|
47
47
|
},
|
|
48
48
|
"nx": {
|
|
49
49
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -7642,7 +7642,7 @@ const getCatalogItemAdapterFactory = (luvio) => function ecm__getCatalogItem(unt
|
|
|
7642
7642
|
buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
|
|
7643
7643
|
};
|
|
7644
7644
|
|
|
7645
|
-
const VERSION$1 = "
|
|
7645
|
+
const VERSION$1 = "4f891f8b58d8bba310f23859c6c0bb4d";
|
|
7646
7646
|
function validate$3(obj, path = 'ServiceRequestGetOutputRepresentation') {
|
|
7647
7647
|
const v_error = (() => {
|
|
7648
7648
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -7680,6 +7680,22 @@ function validate$3(obj, path = 'ServiceRequestGetOutputRepresentation') {
|
|
|
7680
7680
|
}
|
|
7681
7681
|
}
|
|
7682
7682
|
}
|
|
7683
|
+
if (obj.productAttributes !== undefined) {
|
|
7684
|
+
const obj_productAttributes = obj.productAttributes;
|
|
7685
|
+
const path_productAttributes = path + '.productAttributes';
|
|
7686
|
+
if (typeof obj_productAttributes !== 'object' || ArrayIsArray(obj_productAttributes) || obj_productAttributes === null) {
|
|
7687
|
+
return new TypeError('Expected "object" but received "' + typeof obj_productAttributes + '" (at "' + path_productAttributes + '")');
|
|
7688
|
+
}
|
|
7689
|
+
const obj_productAttributes_keys = ObjectKeys(obj_productAttributes);
|
|
7690
|
+
for (let i = 0; i < obj_productAttributes_keys.length; i++) {
|
|
7691
|
+
const key = obj_productAttributes_keys[i];
|
|
7692
|
+
const obj_productAttributes_prop = obj_productAttributes[key];
|
|
7693
|
+
const path_productAttributes_prop = path_productAttributes + '["' + key + '"]';
|
|
7694
|
+
if (obj_productAttributes_prop === undefined) {
|
|
7695
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_productAttributes_prop + '" (at "' + path_productAttributes_prop + '")');
|
|
7696
|
+
}
|
|
7697
|
+
}
|
|
7698
|
+
}
|
|
7683
7699
|
})();
|
|
7684
7700
|
return v_error === undefined ? null : v_error;
|
|
7685
7701
|
}
|
|
@@ -7702,6 +7718,11 @@ const select$4 = function ServiceRequestGetOutputRepresentationSelect() {
|
|
|
7702
7718
|
name: 'customAttributes',
|
|
7703
7719
|
kind: 'Object',
|
|
7704
7720
|
// any
|
|
7721
|
+
},
|
|
7722
|
+
{
|
|
7723
|
+
name: 'productAttributes',
|
|
7724
|
+
kind: 'Object',
|
|
7725
|
+
// any
|
|
7705
7726
|
}
|
|
7706
7727
|
]
|
|
7707
7728
|
};
|
|
@@ -7743,6 +7764,24 @@ function equals$1(existing, incoming) {
|
|
|
7743
7764
|
return false;
|
|
7744
7765
|
}
|
|
7745
7766
|
}
|
|
7767
|
+
const existing_productAttributes = existing.productAttributes;
|
|
7768
|
+
const incoming_productAttributes = incoming.productAttributes;
|
|
7769
|
+
// if at least one of these optionals is defined
|
|
7770
|
+
if (existing_productAttributes !== undefined || incoming_productAttributes !== undefined) {
|
|
7771
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
7772
|
+
// not equal
|
|
7773
|
+
if (existing_productAttributes === undefined || incoming_productAttributes === undefined) {
|
|
7774
|
+
return false;
|
|
7775
|
+
}
|
|
7776
|
+
const equals_productAttributes_props = equalsObject(existing_productAttributes, incoming_productAttributes, (existing_productAttributes_prop, incoming_productAttributes_prop) => {
|
|
7777
|
+
if (JSONStringify(incoming_productAttributes_prop) !== JSONStringify(existing_productAttributes_prop)) {
|
|
7778
|
+
return false;
|
|
7779
|
+
}
|
|
7780
|
+
});
|
|
7781
|
+
if (equals_productAttributes_props === false) {
|
|
7782
|
+
return false;
|
|
7783
|
+
}
|
|
7784
|
+
}
|
|
7746
7785
|
return true;
|
|
7747
7786
|
}
|
|
7748
7787
|
const ingest$1 = function ServiceRequestGetOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
@@ -8491,4 +8530,4 @@ withDefaultLuvio((luvio) => {
|
|
|
8491
8530
|
});
|
|
8492
8531
|
|
|
8493
8532
|
export { createCatalogItem, generateOmniScript, getAgentActions, getAgentActions_imperative, getAllServiceAutomationDep, getAllServiceAutomationDep_imperative, getCatalogItem, getCatalogItem_imperative, getServiceRequest, getServiceRequest_imperative, updateCatalogItem, updateEpcCategories };
|
|
8494
|
-
// version: 1.
|
|
8533
|
+
// version: 1.355.0-df8576becd
|
package/src/raml/api.raml
CHANGED
|
@@ -1243,6 +1243,13 @@ types:
|
|
|
1243
1243
|
properties:
|
|
1244
1244
|
//:
|
|
1245
1245
|
type: any
|
|
1246
|
+
productAttributes:
|
|
1247
|
+
required: false
|
|
1248
|
+
description: Product object list
|
|
1249
|
+
type: object
|
|
1250
|
+
properties:
|
|
1251
|
+
//:
|
|
1252
|
+
type: any
|
|
1246
1253
|
AgentActionAttributeOutputRepresentation:
|
|
1247
1254
|
description: Output representation for an Agent Action Attribute
|
|
1248
1255
|
type: object
|