@salesforce/lds-adapters-platform-named-credential 1.342.0 → 1.343.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.
@@ -790,10 +790,12 @@ function validate$5(obj, path = 'OAuthCredentialAuthUrlInputRepresentation') {
790
790
  if (typeof obj_principalType !== 'string') {
791
791
  return new TypeError('Expected "string" but received "' + typeof obj_principalType + '" (at "' + path_principalType + '")');
792
792
  }
793
- const obj_returnUrl = obj.returnUrl;
794
- const path_returnUrl = path + '.returnUrl';
795
- if (typeof obj_returnUrl !== 'string') {
796
- return new TypeError('Expected "string" but received "' + typeof obj_returnUrl + '" (at "' + path_returnUrl + '")');
793
+ if (obj.returnUrl !== undefined) {
794
+ const obj_returnUrl = obj.returnUrl;
795
+ const path_returnUrl = path + '.returnUrl';
796
+ if (typeof obj_returnUrl !== 'string') {
797
+ return new TypeError('Expected "string" but received "' + typeof obj_returnUrl + '" (at "' + path_returnUrl + '")');
798
+ }
797
799
  }
798
800
  })();
799
801
  return v_error === undefined ? null : v_error;
@@ -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 = "ae3cff49f7858fe6262942c88d380d25";
2
+ export declare const VERSION = "444ca68d08be7087a9dd742387f2c866";
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: OAuthCredentialAuthUrlInputRepresentation, existing: OAuthCredentialAuthUrlInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): OAuthCredentialAuthUrlInputRepresentationNormalized;
@@ -18,10 +18,10 @@ export interface OAuthCredentialAuthUrlInputRepresentationNormalized {
18
18
  externalCredential: string;
19
19
  /** Principal Name of principals */
20
20
  principalName: string;
21
- /** Principal Type of principals. Allowed values are NamedPrincipal or PerUser */
21
+ /** Principal Type of principals. Allowed values are NamedPrincipal, PerUserPrincipal, or GlobalNamedPrincipal */
22
22
  principalType: string;
23
23
  /** optional return url to be applied to the authentication url */
24
- returnUrl: string;
24
+ returnUrl?: string;
25
25
  }
26
26
  /**
27
27
  * OAuth authentication flow input representation
@@ -33,5 +33,5 @@ export interface OAuthCredentialAuthUrlInputRepresentation {
33
33
  externalCredential: string;
34
34
  principalName: string;
35
35
  principalType: string;
36
- returnUrl: string;
36
+ returnUrl?: string;
37
37
  }
@@ -29,7 +29,7 @@ export interface OAuthCredentialAuthUrlRepresentationNormalized {
29
29
  externalCredential: string;
30
30
  /** Credential principal name */
31
31
  principalName: string;
32
- /** Credential principal type. It's either NamedPrincipal or PerUserPrincipal */
32
+ /** Credential principal type. It's either NamedPrincipal,PerUserPrincipal, or GlobalNamedPrincipal */
33
33
  principalType: string;
34
34
  }
35
35
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-platform-named-credential",
3
- "version": "1.342.0",
3
+ "version": "1.343.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.342.0"
47
+ "@salesforce/lds-bindings": "^1.343.0"
48
48
  },
49
49
  "devDependencies": {
50
- "@salesforce/lds-compiler-plugins": "^1.342.0",
51
- "@salesforce/lds-karma": "^1.342.0"
50
+ "@salesforce/lds-compiler-plugins": "^1.343.0",
51
+ "@salesforce/lds-karma": "^1.343.0"
52
52
  },
53
53
  "nx": {
54
54
  "targets": {
package/sfdc/index.js CHANGED
@@ -1241,10 +1241,12 @@ function validate$1(obj, path = 'OAuthCredentialAuthUrlInputRepresentation') {
1241
1241
  if (typeof obj_principalType !== 'string') {
1242
1242
  return new TypeError('Expected "string" but received "' + typeof obj_principalType + '" (at "' + path_principalType + '")');
1243
1243
  }
1244
- const obj_returnUrl = obj.returnUrl;
1245
- const path_returnUrl = path + '.returnUrl';
1246
- if (typeof obj_returnUrl !== 'string') {
1247
- return new TypeError('Expected "string" but received "' + typeof obj_returnUrl + '" (at "' + path_returnUrl + '")');
1244
+ if (obj.returnUrl !== undefined) {
1245
+ const obj_returnUrl = obj.returnUrl;
1246
+ const path_returnUrl = path + '.returnUrl';
1247
+ if (typeof obj_returnUrl !== 'string') {
1248
+ return new TypeError('Expected "string" but received "' + typeof obj_returnUrl + '" (at "' + path_returnUrl + '")');
1249
+ }
1248
1250
  }
1249
1251
  })();
1250
1252
  return v_error === undefined ? null : v_error;
@@ -1600,4 +1602,4 @@ withDefaultLuvio((luvio) => {
1600
1602
  });
1601
1603
 
1602
1604
  export { createCredential, deleteCredential, getCredential, getCredential_imperative, getExternalCredentials, getExternalCredentials_imperative, getOAuthCredentialAuthUrl, updateCredential };
1603
- // version: 1.342.0-f478af8b93
1605
+ // version: 1.343.0-823df4356c
package/src/raml/api.raml CHANGED
@@ -244,14 +244,16 @@ types:
244
244
  description: Principal Name of principals
245
245
  type: string
246
246
  principalType:
247
- description: Principal Type of principals. Allowed values are NamedPrincipal
248
- or PerUser
247
+ description: Principal Type of principals. Allowed values are NamedPrincipal,
248
+ PerUserPrincipal, or GlobalNamedPrincipal
249
249
  type: string
250
250
  enum:
251
251
  - NamedPrincipal
252
252
  - PerUserPrincipal
253
+ - GlobalNamedPrincipal
253
254
  returnUrl:
254
255
  description: optional return url to be applied to the authentication url
256
+ required: false
255
257
  type: string
256
258
  OAuthCredentialAuthUrlRepresentation:
257
259
  description: Output representation for OAuth authentication url for a User's Credential
@@ -267,11 +269,13 @@ types:
267
269
  description: Credential principal name
268
270
  type: string
269
271
  principalType:
270
- description: Credential principal type. It's either NamedPrincipal or PerUserPrincipal
272
+ description: Credential principal type. It's either NamedPrincipal,PerUserPrincipal,
273
+ or GlobalNamedPrincipal
271
274
  type: string
272
275
  enum:
273
276
  - NamedPrincipal
274
277
  - PerUserPrincipal
278
+ - GlobalNamedPrincipal
275
279
  # TODO Hand-Rolled due to issue #28 in Generated RAML Gaps (https://salesforce.quip.com/NxVhAkxL6RTW#dGQACAMmFgP)
276
280
  OAuthCredentialAuthUrlInputRepresentationWrapper:
277
281
  description: Wrapper for OAuthCredentialAuthUrlInputRepresentation