@salesforce/lds-adapters-cdp-byoc 1.354.0-dev3 → 1.354.0-dev5
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.
|
@@ -73,6 +73,7 @@ const keyPrefix = 'byoc';
|
|
|
73
73
|
|
|
74
74
|
const { keys: ObjectKeys, create: ObjectCreate, assign: ObjectAssign } = Object;
|
|
75
75
|
const { isArray: ArrayIsArray } = Array;
|
|
76
|
+
const { stringify: JSONStringify } = JSON;
|
|
76
77
|
function equalsArray(a, b, equalsItem) {
|
|
77
78
|
const aLength = a.length;
|
|
78
79
|
const bLength = b.length;
|
|
@@ -175,7 +176,7 @@ function equals$2(existing, incoming) {
|
|
|
175
176
|
return true;
|
|
176
177
|
}
|
|
177
178
|
|
|
178
|
-
const VERSION$1 = "
|
|
179
|
+
const VERSION$1 = "3a8185ac626c1463f8bf0540517ef2e2";
|
|
179
180
|
function validate$1(obj, path = 'CustomCodeDeploymentRepresentation') {
|
|
180
181
|
const v_error = (() => {
|
|
181
182
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -294,8 +295,8 @@ function validate$1(obj, path = 'CustomCodeDeploymentRepresentation') {
|
|
|
294
295
|
const key = obj_parameters_keys[i];
|
|
295
296
|
const obj_parameters_prop = obj_parameters[key];
|
|
296
297
|
const path_parameters_prop = path_parameters + '["' + key + '"]';
|
|
297
|
-
if (
|
|
298
|
-
return new TypeError('Expected "
|
|
298
|
+
if (obj_parameters_prop === undefined) {
|
|
299
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_parameters_prop + '" (at "' + path_parameters_prop + '")');
|
|
299
300
|
}
|
|
300
301
|
}
|
|
301
302
|
const obj_status = obj.status;
|
|
@@ -410,8 +411,8 @@ const select$5 = function CustomCodeDeploymentRepresentationSelect() {
|
|
|
410
411
|
},
|
|
411
412
|
{
|
|
412
413
|
name: 'parameters',
|
|
413
|
-
kind: '
|
|
414
|
-
|
|
414
|
+
kind: 'Object',
|
|
415
|
+
// any
|
|
415
416
|
},
|
|
416
417
|
{
|
|
417
418
|
name: 'status',
|
|
@@ -572,7 +573,7 @@ function equals$1(existing, incoming) {
|
|
|
572
573
|
const existing_parameters = existing.parameters;
|
|
573
574
|
const incoming_parameters = incoming.parameters;
|
|
574
575
|
const equals_parameters_props = equalsObject(existing_parameters, incoming_parameters, (existing_parameters_prop, incoming_parameters_prop) => {
|
|
575
|
-
if (
|
|
576
|
+
if (JSONStringify(incoming_parameters_prop) !== JSONStringify(existing_parameters_prop)) {
|
|
576
577
|
return false;
|
|
577
578
|
}
|
|
578
579
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CdpUserRepresentation as CdpUserRepresentation_CdpUserRepresentation } from './CdpUserRepresentation';
|
|
2
2
|
import { KeyMetadata as $64$luvio_engine_KeyMetadata, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Luvio as $64$luvio_engine_Luvio, IngestPath as $64$luvio_engine_IngestPath, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
|
|
3
|
-
export declare const VERSION = "
|
|
3
|
+
export declare const VERSION = "3a8185ac626c1463f8bf0540517ef2e2";
|
|
4
4
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
5
|
export declare const RepresentationType: string;
|
|
6
6
|
export interface KeyParams extends $64$luvio_engine_KeyMetadata {
|
|
@@ -58,7 +58,7 @@ export interface CustomCodeDeploymentRepresentationNormalized {
|
|
|
58
58
|
namespace?: string;
|
|
59
59
|
/** Parameters of custom code deployment */
|
|
60
60
|
parameters: {
|
|
61
|
-
[key: string]:
|
|
61
|
+
[key: string]: unknown;
|
|
62
62
|
};
|
|
63
63
|
/** Sync status of the custom code deployment */
|
|
64
64
|
status: string;
|
|
@@ -91,7 +91,7 @@ export interface CustomCodeDeploymentRepresentation {
|
|
|
91
91
|
name: string;
|
|
92
92
|
namespace?: string;
|
|
93
93
|
parameters: {
|
|
94
|
-
[key: string]:
|
|
94
|
+
[key: string]: unknown;
|
|
95
95
|
};
|
|
96
96
|
status: string;
|
|
97
97
|
url: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-cdp-byoc",
|
|
3
|
-
"version": "1.354.0-
|
|
3
|
+
"version": "1.354.0-dev5",
|
|
4
4
|
"description": "Used to connect to the CDP BYOC service in core and off-core",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "dist/es/es2018/cdp-byoc.js",
|
|
@@ -40,10 +40,10 @@
|
|
|
40
40
|
"test:unit": "jest"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@salesforce/lds-bindings": "^1.354.0-
|
|
43
|
+
"@salesforce/lds-bindings": "^1.354.0-dev5"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@salesforce/lds-compiler-plugins": "^1.354.0-
|
|
46
|
+
"@salesforce/lds-compiler-plugins": "^1.354.0-dev5"
|
|
47
47
|
},
|
|
48
48
|
"nx": {
|
|
49
49
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -83,6 +83,7 @@ const keyPrefix = 'byoc';
|
|
|
83
83
|
|
|
84
84
|
const { keys: ObjectKeys, create: ObjectCreate, assign: ObjectAssign } = Object;
|
|
85
85
|
const { isArray: ArrayIsArray } = Array;
|
|
86
|
+
const { stringify: JSONStringify } = JSON;
|
|
86
87
|
function equalsArray(a, b, equalsItem) {
|
|
87
88
|
const aLength = a.length;
|
|
88
89
|
const bLength = b.length;
|
|
@@ -185,7 +186,7 @@ function equals$2(existing, incoming) {
|
|
|
185
186
|
return true;
|
|
186
187
|
}
|
|
187
188
|
|
|
188
|
-
const VERSION$1 = "
|
|
189
|
+
const VERSION$1 = "3a8185ac626c1463f8bf0540517ef2e2";
|
|
189
190
|
function validate$1(obj, path = 'CustomCodeDeploymentRepresentation') {
|
|
190
191
|
const v_error = (() => {
|
|
191
192
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -304,8 +305,8 @@ function validate$1(obj, path = 'CustomCodeDeploymentRepresentation') {
|
|
|
304
305
|
const key = obj_parameters_keys[i];
|
|
305
306
|
const obj_parameters_prop = obj_parameters[key];
|
|
306
307
|
const path_parameters_prop = path_parameters + '["' + key + '"]';
|
|
307
|
-
if (
|
|
308
|
-
return new TypeError('Expected "
|
|
308
|
+
if (obj_parameters_prop === undefined) {
|
|
309
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_parameters_prop + '" (at "' + path_parameters_prop + '")');
|
|
309
310
|
}
|
|
310
311
|
}
|
|
311
312
|
const obj_status = obj.status;
|
|
@@ -420,8 +421,8 @@ const select$5 = function CustomCodeDeploymentRepresentationSelect() {
|
|
|
420
421
|
},
|
|
421
422
|
{
|
|
422
423
|
name: 'parameters',
|
|
423
|
-
kind: '
|
|
424
|
-
|
|
424
|
+
kind: 'Object',
|
|
425
|
+
// any
|
|
425
426
|
},
|
|
426
427
|
{
|
|
427
428
|
name: 'status',
|
|
@@ -582,7 +583,7 @@ function equals$1(existing, incoming) {
|
|
|
582
583
|
const existing_parameters = existing.parameters;
|
|
583
584
|
const incoming_parameters = incoming.parameters;
|
|
584
585
|
const equals_parameters_props = equalsObject(existing_parameters, incoming_parameters, (existing_parameters_prop, incoming_parameters_prop) => {
|
|
585
|
-
if (
|
|
586
|
+
if (JSONStringify(incoming_parameters_prop) !== JSONStringify(existing_parameters_prop)) {
|
|
586
587
|
return false;
|
|
587
588
|
}
|
|
588
589
|
});
|
|
@@ -1405,4 +1406,4 @@ withDefaultLuvio((luvio) => {
|
|
|
1405
1406
|
});
|
|
1406
1407
|
|
|
1407
1408
|
export { createCustomCodeDeployment, deleteCustomCodeDeployment, getCustomCodeDeployment, getCustomCodeDeploymentNotifyChange, getCustomCodeDeployment_imperative, getCustomCodeDeployments, getCustomCodeDeployments_imperative, updateCustomCodeDeployment };
|
|
1408
|
-
// version: 1.354.0-
|
|
1409
|
+
// version: 1.354.0-dev5-6dd38ead4a
|
package/src/raml/api.raml
CHANGED
|
@@ -186,7 +186,8 @@ types:
|
|
|
186
186
|
type: object
|
|
187
187
|
properties:
|
|
188
188
|
//:
|
|
189
|
-
type
|
|
189
|
+
# Hand rolled as we are using the Object type in Java which can refer to any data class
|
|
190
|
+
type: any
|
|
190
191
|
status:
|
|
191
192
|
description: Sync status of the custom code deployment
|
|
192
193
|
type: string
|