@salesforce/lds-adapters-service-ecm 1.352.0 → 1.353.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,38 +8157,42 @@ const generateOmniScriptAdapterFactory = (luvio) => {
|
|
|
8157
8157
|
};
|
|
8158
8158
|
};
|
|
8159
8159
|
|
|
8160
|
-
const VERSION = "
|
|
8160
|
+
const VERSION = "020769bb32c4238c08752b8964785e8f";
|
|
8161
8161
|
function validate(obj, path = 'ServiceRequestGetOutputRepresentation') {
|
|
8162
8162
|
const v_error = (() => {
|
|
8163
8163
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
8164
8164
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
8165
8165
|
}
|
|
8166
|
-
|
|
8167
|
-
|
|
8168
|
-
|
|
8169
|
-
|
|
8170
|
-
|
|
8171
|
-
|
|
8172
|
-
|
|
8173
|
-
|
|
8174
|
-
|
|
8175
|
-
|
|
8176
|
-
|
|
8177
|
-
|
|
8166
|
+
if (obj.anchor !== undefined) {
|
|
8167
|
+
const obj_anchor = obj.anchor;
|
|
8168
|
+
const path_anchor = path + '.anchor';
|
|
8169
|
+
if (typeof obj_anchor !== 'object' || ArrayIsArray(obj_anchor) || obj_anchor === null) {
|
|
8170
|
+
return new TypeError('Expected "object" but received "' + typeof obj_anchor + '" (at "' + path_anchor + '")');
|
|
8171
|
+
}
|
|
8172
|
+
const obj_anchor_keys = ObjectKeys(obj_anchor);
|
|
8173
|
+
for (let i = 0; i < obj_anchor_keys.length; i++) {
|
|
8174
|
+
const key = obj_anchor_keys[i];
|
|
8175
|
+
const obj_anchor_prop = obj_anchor[key];
|
|
8176
|
+
const path_anchor_prop = path_anchor + '["' + key + '"]';
|
|
8177
|
+
if (obj_anchor_prop === undefined) {
|
|
8178
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_anchor_prop + '" (at "' + path_anchor_prop + '")');
|
|
8179
|
+
}
|
|
8178
8180
|
}
|
|
8179
8181
|
}
|
|
8180
|
-
|
|
8181
|
-
|
|
8182
|
-
|
|
8183
|
-
|
|
8184
|
-
|
|
8185
|
-
|
|
8186
|
-
|
|
8187
|
-
|
|
8188
|
-
|
|
8189
|
-
|
|
8190
|
-
|
|
8191
|
-
|
|
8182
|
+
if (obj.customAttributes !== undefined) {
|
|
8183
|
+
const obj_customAttributes = obj.customAttributes;
|
|
8184
|
+
const path_customAttributes = path + '.customAttributes';
|
|
8185
|
+
if (typeof obj_customAttributes !== 'object' || ArrayIsArray(obj_customAttributes) || obj_customAttributes === null) {
|
|
8186
|
+
return new TypeError('Expected "object" but received "' + typeof obj_customAttributes + '" (at "' + path_customAttributes + '")');
|
|
8187
|
+
}
|
|
8188
|
+
const obj_customAttributes_keys = ObjectKeys(obj_customAttributes);
|
|
8189
|
+
for (let i = 0; i < obj_customAttributes_keys.length; i++) {
|
|
8190
|
+
const key = obj_customAttributes_keys[i];
|
|
8191
|
+
const obj_customAttributes_prop = obj_customAttributes[key];
|
|
8192
|
+
const path_customAttributes_prop = path_customAttributes + '["' + key + '"]';
|
|
8193
|
+
if (obj_customAttributes_prop === undefined) {
|
|
8194
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_customAttributes_prop + '" (at "' + path_customAttributes_prop + '")');
|
|
8195
|
+
}
|
|
8192
8196
|
}
|
|
8193
8197
|
}
|
|
8194
8198
|
})();
|
|
@@ -8203,23 +8207,56 @@ const select$1 = function ServiceRequestGetOutputRepresentationSelect() {
|
|
|
8203
8207
|
kind: 'Fragment',
|
|
8204
8208
|
version: VERSION,
|
|
8205
8209
|
private: [],
|
|
8206
|
-
selections: [
|
|
8210
|
+
selections: [
|
|
8211
|
+
{
|
|
8212
|
+
name: 'anchor',
|
|
8213
|
+
kind: 'Object',
|
|
8214
|
+
// any
|
|
8215
|
+
},
|
|
8216
|
+
{
|
|
8217
|
+
name: 'customAttributes',
|
|
8218
|
+
kind: 'Object',
|
|
8219
|
+
// any
|
|
8220
|
+
}
|
|
8221
|
+
]
|
|
8207
8222
|
};
|
|
8208
8223
|
};
|
|
8209
8224
|
function equals(existing, incoming) {
|
|
8210
8225
|
const existing_anchor = existing.anchor;
|
|
8211
8226
|
const incoming_anchor = incoming.anchor;
|
|
8212
|
-
|
|
8213
|
-
|
|
8214
|
-
|
|
8215
|
-
|
|
8227
|
+
// if at least one of these optionals is defined
|
|
8228
|
+
if (existing_anchor !== undefined || incoming_anchor !== undefined) {
|
|
8229
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
8230
|
+
// not equal
|
|
8231
|
+
if (existing_anchor === undefined || incoming_anchor === undefined) {
|
|
8232
|
+
return false;
|
|
8233
|
+
}
|
|
8234
|
+
const equals_anchor_props = equalsObject(existing_anchor, incoming_anchor, (existing_anchor_prop, incoming_anchor_prop) => {
|
|
8235
|
+
if (JSONStringify(incoming_anchor_prop) !== JSONStringify(existing_anchor_prop)) {
|
|
8236
|
+
return false;
|
|
8237
|
+
}
|
|
8238
|
+
});
|
|
8239
|
+
if (equals_anchor_props === false) {
|
|
8240
|
+
return false;
|
|
8241
|
+
}
|
|
8216
8242
|
}
|
|
8217
8243
|
const existing_customAttributes = existing.customAttributes;
|
|
8218
8244
|
const incoming_customAttributes = incoming.customAttributes;
|
|
8219
|
-
|
|
8220
|
-
|
|
8221
|
-
|
|
8222
|
-
|
|
8245
|
+
// if at least one of these optionals is defined
|
|
8246
|
+
if (existing_customAttributes !== undefined || incoming_customAttributes !== undefined) {
|
|
8247
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
8248
|
+
// not equal
|
|
8249
|
+
if (existing_customAttributes === undefined || incoming_customAttributes === undefined) {
|
|
8250
|
+
return false;
|
|
8251
|
+
}
|
|
8252
|
+
const equals_customAttributes_props = equalsObject(existing_customAttributes, incoming_customAttributes, (existing_customAttributes_prop, incoming_customAttributes_prop) => {
|
|
8253
|
+
if (JSONStringify(incoming_customAttributes_prop) !== JSONStringify(existing_customAttributes_prop)) {
|
|
8254
|
+
return false;
|
|
8255
|
+
}
|
|
8256
|
+
});
|
|
8257
|
+
if (equals_customAttributes_props === false) {
|
|
8258
|
+
return false;
|
|
8259
|
+
}
|
|
8223
8260
|
}
|
|
8224
8261
|
return true;
|
|
8225
8262
|
}
|
|
@@ -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 = "020769bb32c4238c08752b8964785e8f";
|
|
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;
|
|
@@ -15,12 +15,12 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
|
|
|
15
15
|
*/
|
|
16
16
|
export interface ServiceRequestGetOutputRepresentationNormalized {
|
|
17
17
|
/** Anchor object list */
|
|
18
|
-
anchor
|
|
19
|
-
[key: string]:
|
|
18
|
+
anchor?: {
|
|
19
|
+
[key: string]: unknown;
|
|
20
20
|
};
|
|
21
21
|
/** Custom Attributes list */
|
|
22
|
-
customAttributes
|
|
23
|
-
[key: string]:
|
|
22
|
+
customAttributes?: {
|
|
23
|
+
[key: string]: unknown;
|
|
24
24
|
};
|
|
25
25
|
}
|
|
26
26
|
/**
|
|
@@ -30,10 +30,10 @@ export interface ServiceRequestGetOutputRepresentationNormalized {
|
|
|
30
30
|
* (none)
|
|
31
31
|
*/
|
|
32
32
|
export interface ServiceRequestGetOutputRepresentation {
|
|
33
|
-
anchor
|
|
34
|
-
[key: string]:
|
|
33
|
+
anchor?: {
|
|
34
|
+
[key: string]: unknown;
|
|
35
35
|
};
|
|
36
|
-
customAttributes
|
|
37
|
-
[key: string]:
|
|
36
|
+
customAttributes?: {
|
|
37
|
+
[key: string]: unknown;
|
|
38
38
|
};
|
|
39
39
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-service-ecm",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.353.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.353.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@salesforce/lds-compiler-plugins": "^1.
|
|
46
|
+
"@salesforce/lds-compiler-plugins": "^1.353.0"
|
|
47
47
|
},
|
|
48
48
|
"nx": {
|
|
49
49
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -7642,38 +7642,42 @@ 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 = "020769bb32c4238c08752b8964785e8f";
|
|
7646
7646
|
function validate$3(obj, path = 'ServiceRequestGetOutputRepresentation') {
|
|
7647
7647
|
const v_error = (() => {
|
|
7648
7648
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
7649
7649
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
7650
7650
|
}
|
|
7651
|
-
|
|
7652
|
-
|
|
7653
|
-
|
|
7654
|
-
|
|
7655
|
-
|
|
7656
|
-
|
|
7657
|
-
|
|
7658
|
-
|
|
7659
|
-
|
|
7660
|
-
|
|
7661
|
-
|
|
7662
|
-
|
|
7651
|
+
if (obj.anchor !== undefined) {
|
|
7652
|
+
const obj_anchor = obj.anchor;
|
|
7653
|
+
const path_anchor = path + '.anchor';
|
|
7654
|
+
if (typeof obj_anchor !== 'object' || ArrayIsArray(obj_anchor) || obj_anchor === null) {
|
|
7655
|
+
return new TypeError('Expected "object" but received "' + typeof obj_anchor + '" (at "' + path_anchor + '")');
|
|
7656
|
+
}
|
|
7657
|
+
const obj_anchor_keys = ObjectKeys(obj_anchor);
|
|
7658
|
+
for (let i = 0; i < obj_anchor_keys.length; i++) {
|
|
7659
|
+
const key = obj_anchor_keys[i];
|
|
7660
|
+
const obj_anchor_prop = obj_anchor[key];
|
|
7661
|
+
const path_anchor_prop = path_anchor + '["' + key + '"]';
|
|
7662
|
+
if (obj_anchor_prop === undefined) {
|
|
7663
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_anchor_prop + '" (at "' + path_anchor_prop + '")');
|
|
7664
|
+
}
|
|
7663
7665
|
}
|
|
7664
7666
|
}
|
|
7665
|
-
|
|
7666
|
-
|
|
7667
|
-
|
|
7668
|
-
|
|
7669
|
-
|
|
7670
|
-
|
|
7671
|
-
|
|
7672
|
-
|
|
7673
|
-
|
|
7674
|
-
|
|
7675
|
-
|
|
7676
|
-
|
|
7667
|
+
if (obj.customAttributes !== undefined) {
|
|
7668
|
+
const obj_customAttributes = obj.customAttributes;
|
|
7669
|
+
const path_customAttributes = path + '.customAttributes';
|
|
7670
|
+
if (typeof obj_customAttributes !== 'object' || ArrayIsArray(obj_customAttributes) || obj_customAttributes === null) {
|
|
7671
|
+
return new TypeError('Expected "object" but received "' + typeof obj_customAttributes + '" (at "' + path_customAttributes + '")');
|
|
7672
|
+
}
|
|
7673
|
+
const obj_customAttributes_keys = ObjectKeys(obj_customAttributes);
|
|
7674
|
+
for (let i = 0; i < obj_customAttributes_keys.length; i++) {
|
|
7675
|
+
const key = obj_customAttributes_keys[i];
|
|
7676
|
+
const obj_customAttributes_prop = obj_customAttributes[key];
|
|
7677
|
+
const path_customAttributes_prop = path_customAttributes + '["' + key + '"]';
|
|
7678
|
+
if (obj_customAttributes_prop === undefined) {
|
|
7679
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_customAttributes_prop + '" (at "' + path_customAttributes_prop + '")');
|
|
7680
|
+
}
|
|
7677
7681
|
}
|
|
7678
7682
|
}
|
|
7679
7683
|
})();
|
|
@@ -7688,23 +7692,56 @@ const select$4 = function ServiceRequestGetOutputRepresentationSelect() {
|
|
|
7688
7692
|
kind: 'Fragment',
|
|
7689
7693
|
version: VERSION$1,
|
|
7690
7694
|
private: [],
|
|
7691
|
-
selections: [
|
|
7695
|
+
selections: [
|
|
7696
|
+
{
|
|
7697
|
+
name: 'anchor',
|
|
7698
|
+
kind: 'Object',
|
|
7699
|
+
// any
|
|
7700
|
+
},
|
|
7701
|
+
{
|
|
7702
|
+
name: 'customAttributes',
|
|
7703
|
+
kind: 'Object',
|
|
7704
|
+
// any
|
|
7705
|
+
}
|
|
7706
|
+
]
|
|
7692
7707
|
};
|
|
7693
7708
|
};
|
|
7694
7709
|
function equals$1(existing, incoming) {
|
|
7695
7710
|
const existing_anchor = existing.anchor;
|
|
7696
7711
|
const incoming_anchor = incoming.anchor;
|
|
7697
|
-
|
|
7698
|
-
|
|
7699
|
-
|
|
7700
|
-
|
|
7712
|
+
// if at least one of these optionals is defined
|
|
7713
|
+
if (existing_anchor !== undefined || incoming_anchor !== undefined) {
|
|
7714
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
7715
|
+
// not equal
|
|
7716
|
+
if (existing_anchor === undefined || incoming_anchor === undefined) {
|
|
7717
|
+
return false;
|
|
7718
|
+
}
|
|
7719
|
+
const equals_anchor_props = equalsObject(existing_anchor, incoming_anchor, (existing_anchor_prop, incoming_anchor_prop) => {
|
|
7720
|
+
if (JSONStringify(incoming_anchor_prop) !== JSONStringify(existing_anchor_prop)) {
|
|
7721
|
+
return false;
|
|
7722
|
+
}
|
|
7723
|
+
});
|
|
7724
|
+
if (equals_anchor_props === false) {
|
|
7725
|
+
return false;
|
|
7726
|
+
}
|
|
7701
7727
|
}
|
|
7702
7728
|
const existing_customAttributes = existing.customAttributes;
|
|
7703
7729
|
const incoming_customAttributes = incoming.customAttributes;
|
|
7704
|
-
|
|
7705
|
-
|
|
7706
|
-
|
|
7707
|
-
|
|
7730
|
+
// if at least one of these optionals is defined
|
|
7731
|
+
if (existing_customAttributes !== undefined || incoming_customAttributes !== undefined) {
|
|
7732
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
7733
|
+
// not equal
|
|
7734
|
+
if (existing_customAttributes === undefined || incoming_customAttributes === undefined) {
|
|
7735
|
+
return false;
|
|
7736
|
+
}
|
|
7737
|
+
const equals_customAttributes_props = equalsObject(existing_customAttributes, incoming_customAttributes, (existing_customAttributes_prop, incoming_customAttributes_prop) => {
|
|
7738
|
+
if (JSONStringify(incoming_customAttributes_prop) !== JSONStringify(existing_customAttributes_prop)) {
|
|
7739
|
+
return false;
|
|
7740
|
+
}
|
|
7741
|
+
});
|
|
7742
|
+
if (equals_customAttributes_props === false) {
|
|
7743
|
+
return false;
|
|
7744
|
+
}
|
|
7708
7745
|
}
|
|
7709
7746
|
return true;
|
|
7710
7747
|
}
|
|
@@ -8454,4 +8491,4 @@ withDefaultLuvio((luvio) => {
|
|
|
8454
8491
|
});
|
|
8455
8492
|
|
|
8456
8493
|
export { createCatalogItem, generateOmniScript, getAgentActions, getAgentActions_imperative, getAllServiceAutomationDep, getAllServiceAutomationDep_imperative, getCatalogItem, getCatalogItem_imperative, getServiceRequest, getServiceRequest_imperative, updateCatalogItem, updateEpcCategories };
|
|
8457
|
-
// version: 1.
|
|
8494
|
+
// version: 1.353.0-330d59cfcb
|
package/src/raml/api.raml
CHANGED
|
@@ -1230,17 +1230,19 @@ types:
|
|
|
1230
1230
|
type: object
|
|
1231
1231
|
properties:
|
|
1232
1232
|
anchor:
|
|
1233
|
+
required: false
|
|
1233
1234
|
description: Anchor object list
|
|
1234
1235
|
type: object
|
|
1235
1236
|
properties:
|
|
1236
1237
|
//:
|
|
1237
|
-
type:
|
|
1238
|
+
type: any
|
|
1238
1239
|
customAttributes:
|
|
1240
|
+
required: false
|
|
1239
1241
|
description: Custom Attributes list
|
|
1240
1242
|
type: object
|
|
1241
1243
|
properties:
|
|
1242
1244
|
//:
|
|
1243
|
-
type:
|
|
1245
|
+
type: any
|
|
1244
1246
|
AgentActionAttributeOutputRepresentation:
|
|
1245
1247
|
description: Output representation for an Agent Action Attribute
|
|
1246
1248
|
type: object
|