@salesforce/lds-adapters-platform-named-credential 1.329.1 → 1.330.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.
|
@@ -1005,7 +1005,7 @@ const getOAuthCredentialAuthUrlAdapterFactory = (luvio) => {
|
|
|
1005
1005
|
};
|
|
1006
1006
|
};
|
|
1007
1007
|
|
|
1008
|
-
const VERSION$3 = "
|
|
1008
|
+
const VERSION$3 = "8273df0ef3d3fc086107b780cd8d0cb8";
|
|
1009
1009
|
function validate$3(obj, path = 'ExternalCredentialPrincipalRepresentation') {
|
|
1010
1010
|
const v_error = (() => {
|
|
1011
1011
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -1018,8 +1018,29 @@ function validate$3(obj, path = 'ExternalCredentialPrincipalRepresentation') {
|
|
|
1018
1018
|
}
|
|
1019
1019
|
const obj_principalName = obj.principalName;
|
|
1020
1020
|
const path_principalName = path + '.principalName';
|
|
1021
|
-
|
|
1022
|
-
|
|
1021
|
+
let obj_principalName_union0 = null;
|
|
1022
|
+
const obj_principalName_union0_error = (() => {
|
|
1023
|
+
if (typeof obj_principalName !== 'string') {
|
|
1024
|
+
return new TypeError('Expected "string" but received "' + typeof obj_principalName + '" (at "' + path_principalName + '")');
|
|
1025
|
+
}
|
|
1026
|
+
})();
|
|
1027
|
+
if (obj_principalName_union0_error != null) {
|
|
1028
|
+
obj_principalName_union0 = obj_principalName_union0_error.message;
|
|
1029
|
+
}
|
|
1030
|
+
let obj_principalName_union1 = null;
|
|
1031
|
+
const obj_principalName_union1_error = (() => {
|
|
1032
|
+
if (obj_principalName !== null) {
|
|
1033
|
+
return new TypeError('Expected "null" but received "' + typeof obj_principalName + '" (at "' + path_principalName + '")');
|
|
1034
|
+
}
|
|
1035
|
+
})();
|
|
1036
|
+
if (obj_principalName_union1_error != null) {
|
|
1037
|
+
obj_principalName_union1 = obj_principalName_union1_error.message;
|
|
1038
|
+
}
|
|
1039
|
+
if (obj_principalName_union0 && obj_principalName_union1) {
|
|
1040
|
+
let message = 'Object doesn\'t match union (at "' + path_principalName + '")';
|
|
1041
|
+
message += '\n' + obj_principalName_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1042
|
+
message += '\n' + obj_principalName_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1043
|
+
return new TypeError(message);
|
|
1023
1044
|
}
|
|
1024
1045
|
const obj_principalType = obj.principalType;
|
|
1025
1046
|
const path_principalType = path + '.principalType';
|
|
@@ -1056,16 +1077,16 @@ function equals$3(existing, incoming) {
|
|
|
1056
1077
|
if (!(existing_authenticationStatus === incoming_authenticationStatus)) {
|
|
1057
1078
|
return false;
|
|
1058
1079
|
}
|
|
1059
|
-
const existing_principalName = existing.principalName;
|
|
1060
|
-
const incoming_principalName = incoming.principalName;
|
|
1061
|
-
if (!(existing_principalName === incoming_principalName)) {
|
|
1062
|
-
return false;
|
|
1063
|
-
}
|
|
1064
1080
|
const existing_principalType = existing.principalType;
|
|
1065
1081
|
const incoming_principalType = incoming.principalType;
|
|
1066
1082
|
if (!(existing_principalType === incoming_principalType)) {
|
|
1067
1083
|
return false;
|
|
1068
1084
|
}
|
|
1085
|
+
const existing_principalName = existing.principalName;
|
|
1086
|
+
const incoming_principalName = incoming.principalName;
|
|
1087
|
+
if (!(existing_principalName === incoming_principalName)) {
|
|
1088
|
+
return false;
|
|
1089
|
+
}
|
|
1069
1090
|
return true;
|
|
1070
1091
|
}
|
|
1071
1092
|
|
package/dist/es/es2018/types/src/generated/types/ExternalCredentialPrincipalRepresentation.d.ts
CHANGED
|
@@ -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 = "8273df0ef3d3fc086107b780cd8d0cb8";
|
|
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: ExternalCredentialPrincipalRepresentation, existing: ExternalCredentialPrincipalRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ExternalCredentialPrincipalRepresentationNormalized;
|
|
@@ -17,7 +17,7 @@ export interface ExternalCredentialPrincipalRepresentationNormalized {
|
|
|
17
17
|
/** Authentication Status for credentials */
|
|
18
18
|
authenticationStatus: string;
|
|
19
19
|
/** Principal name */
|
|
20
|
-
principalName: string;
|
|
20
|
+
principalName: string | null;
|
|
21
21
|
/** Principal Type. It's either NamedPrincipal or PerUser */
|
|
22
22
|
principalType: string;
|
|
23
23
|
}
|
|
@@ -29,6 +29,6 @@ export interface ExternalCredentialPrincipalRepresentationNormalized {
|
|
|
29
29
|
*/
|
|
30
30
|
export interface ExternalCredentialPrincipalRepresentation {
|
|
31
31
|
authenticationStatus: string;
|
|
32
|
-
principalName: string;
|
|
32
|
+
principalName: string | null;
|
|
33
33
|
principalType: string;
|
|
34
34
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-platform-named-credential",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.330.0",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "Named Credential APIs",
|
|
6
6
|
"main": "dist/es/es2018/platform-named-credential.js",
|
|
@@ -44,11 +44,11 @@
|
|
|
44
44
|
"test:unit": "jest --config=./jest.config.js"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@salesforce/lds-bindings": "^1.
|
|
47
|
+
"@salesforce/lds-bindings": "^1.330.0"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@salesforce/lds-compiler-plugins": "^1.
|
|
51
|
-
"@salesforce/lds-karma": "^1.
|
|
50
|
+
"@salesforce/lds-compiler-plugins": "^1.330.0",
|
|
51
|
+
"@salesforce/lds-karma": "^1.330.0"
|
|
52
52
|
},
|
|
53
53
|
"nx": {
|
|
54
54
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -686,7 +686,7 @@ const getCredentialAdapterFactory = (luvio) => function namedCredential__getCred
|
|
|
686
686
|
buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
|
|
687
687
|
};
|
|
688
688
|
|
|
689
|
-
const VERSION$4 = "
|
|
689
|
+
const VERSION$4 = "8273df0ef3d3fc086107b780cd8d0cb8";
|
|
690
690
|
function validate$5(obj, path = 'ExternalCredentialPrincipalRepresentation') {
|
|
691
691
|
const v_error = (() => {
|
|
692
692
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -699,8 +699,29 @@ function validate$5(obj, path = 'ExternalCredentialPrincipalRepresentation') {
|
|
|
699
699
|
}
|
|
700
700
|
const obj_principalName = obj.principalName;
|
|
701
701
|
const path_principalName = path + '.principalName';
|
|
702
|
-
|
|
703
|
-
|
|
702
|
+
let obj_principalName_union0 = null;
|
|
703
|
+
const obj_principalName_union0_error = (() => {
|
|
704
|
+
if (typeof obj_principalName !== 'string') {
|
|
705
|
+
return new TypeError('Expected "string" but received "' + typeof obj_principalName + '" (at "' + path_principalName + '")');
|
|
706
|
+
}
|
|
707
|
+
})();
|
|
708
|
+
if (obj_principalName_union0_error != null) {
|
|
709
|
+
obj_principalName_union0 = obj_principalName_union0_error.message;
|
|
710
|
+
}
|
|
711
|
+
let obj_principalName_union1 = null;
|
|
712
|
+
const obj_principalName_union1_error = (() => {
|
|
713
|
+
if (obj_principalName !== null) {
|
|
714
|
+
return new TypeError('Expected "null" but received "' + typeof obj_principalName + '" (at "' + path_principalName + '")');
|
|
715
|
+
}
|
|
716
|
+
})();
|
|
717
|
+
if (obj_principalName_union1_error != null) {
|
|
718
|
+
obj_principalName_union1 = obj_principalName_union1_error.message;
|
|
719
|
+
}
|
|
720
|
+
if (obj_principalName_union0 && obj_principalName_union1) {
|
|
721
|
+
let message = 'Object doesn\'t match union (at "' + path_principalName + '")';
|
|
722
|
+
message += '\n' + obj_principalName_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
723
|
+
message += '\n' + obj_principalName_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
724
|
+
return new TypeError(message);
|
|
704
725
|
}
|
|
705
726
|
const obj_principalType = obj.principalType;
|
|
706
727
|
const path_principalType = path + '.principalType';
|
|
@@ -737,16 +758,16 @@ function equals$4(existing, incoming) {
|
|
|
737
758
|
if (!(existing_authenticationStatus === incoming_authenticationStatus)) {
|
|
738
759
|
return false;
|
|
739
760
|
}
|
|
740
|
-
const existing_principalName = existing.principalName;
|
|
741
|
-
const incoming_principalName = incoming.principalName;
|
|
742
|
-
if (!(existing_principalName === incoming_principalName)) {
|
|
743
|
-
return false;
|
|
744
|
-
}
|
|
745
761
|
const existing_principalType = existing.principalType;
|
|
746
762
|
const incoming_principalType = incoming.principalType;
|
|
747
763
|
if (!(existing_principalType === incoming_principalType)) {
|
|
748
764
|
return false;
|
|
749
765
|
}
|
|
766
|
+
const existing_principalName = existing.principalName;
|
|
767
|
+
const incoming_principalName = incoming.principalName;
|
|
768
|
+
if (!(existing_principalName === incoming_principalName)) {
|
|
769
|
+
return false;
|
|
770
|
+
}
|
|
750
771
|
return true;
|
|
751
772
|
}
|
|
752
773
|
|
|
@@ -1579,4 +1600,4 @@ withDefaultLuvio((luvio) => {
|
|
|
1579
1600
|
});
|
|
1580
1601
|
|
|
1581
1602
|
export { createCredential, deleteCredential, getCredential, getCredential_imperative, getExternalCredentials, getExternalCredentials_imperative, getOAuthCredentialAuthUrl, updateCredential };
|
|
1582
|
-
// version: 1.
|
|
1603
|
+
// version: 1.330.0-8c4e36b1fc
|
package/src/raml/api.raml
CHANGED