@salesforce/lds-adapters-platform-sharing 1.305.0 → 1.307.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.
@@ -2359,12 +2359,47 @@ const getAllSobjectsAdapterFactory = (luvio) => function sharing__getAllSobjects
2359
2359
  buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
2360
2360
  };
2361
2361
 
2362
- const VERSION$1 = "348a7399778e8986878f81df955a8eab";
2362
+ const VERSION$1 = "8f69c6b84d8d2d88af30e45bfe796380";
2363
2363
  function validate$1(obj, path = 'UserPermissionInfoRepresentation') {
2364
2364
  const v_error = (() => {
2365
2365
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2366
2366
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
2367
2367
  }
2368
+ const obj_parentApiName = obj.parentApiName;
2369
+ const path_parentApiName = path + '.parentApiName';
2370
+ if (typeof obj_parentApiName !== 'string') {
2371
+ return new TypeError('Expected "string" but received "' + typeof obj_parentApiName + '" (at "' + path_parentApiName + '")');
2372
+ }
2373
+ const obj_parentDescription = obj.parentDescription;
2374
+ const path_parentDescription = path + '.parentDescription';
2375
+ if (typeof obj_parentDescription !== 'string') {
2376
+ return new TypeError('Expected "string" but received "' + typeof obj_parentDescription + '" (at "' + path_parentDescription + '")');
2377
+ }
2378
+ const obj_parentHasActivationRequired = obj.parentHasActivationRequired;
2379
+ const path_parentHasActivationRequired = path + '.parentHasActivationRequired';
2380
+ if (typeof obj_parentHasActivationRequired !== 'boolean') {
2381
+ return new TypeError('Expected "boolean" but received "' + typeof obj_parentHasActivationRequired + '" (at "' + path_parentHasActivationRequired + '")');
2382
+ }
2383
+ const obj_parentId = obj.parentId;
2384
+ const path_parentId = path + '.parentId';
2385
+ if (typeof obj_parentId !== 'string') {
2386
+ return new TypeError('Expected "string" but received "' + typeof obj_parentId + '" (at "' + path_parentId + '")');
2387
+ }
2388
+ const obj_parentIsCustom = obj.parentIsCustom;
2389
+ const path_parentIsCustom = path + '.parentIsCustom';
2390
+ if (typeof obj_parentIsCustom !== 'boolean') {
2391
+ return new TypeError('Expected "boolean" but received "' + typeof obj_parentIsCustom + '" (at "' + path_parentIsCustom + '")');
2392
+ }
2393
+ const obj_parentLabel = obj.parentLabel;
2394
+ const path_parentLabel = path + '.parentLabel';
2395
+ if (typeof obj_parentLabel !== 'string') {
2396
+ return new TypeError('Expected "string" but received "' + typeof obj_parentLabel + '" (at "' + path_parentLabel + '")');
2397
+ }
2398
+ const obj_parentProfileLicense = obj.parentProfileLicense;
2399
+ const path_parentProfileLicense = path + '.parentProfileLicense';
2400
+ if (typeof obj_parentProfileLicense !== 'string') {
2401
+ return new TypeError('Expected "string" but received "' + typeof obj_parentProfileLicense + '" (at "' + path_parentProfileLicense + '")');
2402
+ }
2368
2403
  const obj_userPermApiName = obj.userPermApiName;
2369
2404
  const path_userPermApiName = path + '.userPermApiName';
2370
2405
  if (typeof obj_userPermApiName !== 'string') {
@@ -2389,6 +2424,34 @@ const select$2 = function UserPermissionInfoRepresentationSelect() {
2389
2424
  version: VERSION$1,
2390
2425
  private: [],
2391
2426
  selections: [
2427
+ {
2428
+ name: 'parentApiName',
2429
+ kind: 'Scalar'
2430
+ },
2431
+ {
2432
+ name: 'parentDescription',
2433
+ kind: 'Scalar'
2434
+ },
2435
+ {
2436
+ name: 'parentHasActivationRequired',
2437
+ kind: 'Scalar'
2438
+ },
2439
+ {
2440
+ name: 'parentId',
2441
+ kind: 'Scalar'
2442
+ },
2443
+ {
2444
+ name: 'parentIsCustom',
2445
+ kind: 'Scalar'
2446
+ },
2447
+ {
2448
+ name: 'parentLabel',
2449
+ kind: 'Scalar'
2450
+ },
2451
+ {
2452
+ name: 'parentProfileLicense',
2453
+ kind: 'Scalar'
2454
+ },
2392
2455
  {
2393
2456
  name: 'userPermApiName',
2394
2457
  kind: 'Scalar'
@@ -2405,6 +2468,41 @@ const select$2 = function UserPermissionInfoRepresentationSelect() {
2405
2468
  };
2406
2469
  };
2407
2470
  function equals$1(existing, incoming) {
2471
+ const existing_parentHasActivationRequired = existing.parentHasActivationRequired;
2472
+ const incoming_parentHasActivationRequired = incoming.parentHasActivationRequired;
2473
+ if (!(existing_parentHasActivationRequired === incoming_parentHasActivationRequired)) {
2474
+ return false;
2475
+ }
2476
+ const existing_parentIsCustom = existing.parentIsCustom;
2477
+ const incoming_parentIsCustom = incoming.parentIsCustom;
2478
+ if (!(existing_parentIsCustom === incoming_parentIsCustom)) {
2479
+ return false;
2480
+ }
2481
+ const existing_parentApiName = existing.parentApiName;
2482
+ const incoming_parentApiName = incoming.parentApiName;
2483
+ if (!(existing_parentApiName === incoming_parentApiName)) {
2484
+ return false;
2485
+ }
2486
+ const existing_parentDescription = existing.parentDescription;
2487
+ const incoming_parentDescription = incoming.parentDescription;
2488
+ if (!(existing_parentDescription === incoming_parentDescription)) {
2489
+ return false;
2490
+ }
2491
+ const existing_parentId = existing.parentId;
2492
+ const incoming_parentId = incoming.parentId;
2493
+ if (!(existing_parentId === incoming_parentId)) {
2494
+ return false;
2495
+ }
2496
+ const existing_parentLabel = existing.parentLabel;
2497
+ const incoming_parentLabel = incoming.parentLabel;
2498
+ if (!(existing_parentLabel === incoming_parentLabel)) {
2499
+ return false;
2500
+ }
2501
+ const existing_parentProfileLicense = existing.parentProfileLicense;
2502
+ const incoming_parentProfileLicense = incoming.parentProfileLicense;
2503
+ if (!(existing_parentProfileLicense === incoming_parentProfileLicense)) {
2504
+ return false;
2505
+ }
2408
2506
  const existing_userPermApiName = existing.userPermApiName;
2409
2507
  const incoming_userPermApiName = incoming.userPermApiName;
2410
2508
  if (!(existing_userPermApiName === incoming_userPermApiName)) {
@@ -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 = "348a7399778e8986878f81df955a8eab";
2
+ export declare const VERSION = "8f69c6b84d8d2d88af30e45bfe796380";
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: UserPermissionInfoRepresentation, existing: UserPermissionInfoRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): UserPermissionInfoRepresentationNormalized;
@@ -14,6 +14,20 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
14
14
  * (none)
15
15
  */
16
16
  export interface UserPermissionInfoRepresentationNormalized {
17
+ /** The user permission's parentApiName */
18
+ parentApiName: string;
19
+ /** The user permission's parentDescription */
20
+ parentDescription: string;
21
+ /** The user permission's parentHasActivationRequired */
22
+ parentHasActivationRequired: boolean;
23
+ /** The user permission's parentId */
24
+ parentId: string;
25
+ /** The user permission's parentIsCustom */
26
+ parentIsCustom: boolean;
27
+ /** The user permission's parentLabel */
28
+ parentLabel: string;
29
+ /** The user permission's parentProfileLicense */
30
+ parentProfileLicense: string;
17
31
  /** The user permission's apiName */
18
32
  userPermApiName: string;
19
33
  /** The user permission's description */
@@ -28,6 +42,13 @@ export interface UserPermissionInfoRepresentationNormalized {
28
42
  * (none)
29
43
  */
30
44
  export interface UserPermissionInfoRepresentation {
45
+ parentApiName: string;
46
+ parentDescription: string;
47
+ parentHasActivationRequired: boolean;
48
+ parentId: string;
49
+ parentIsCustom: boolean;
50
+ parentLabel: string;
51
+ parentProfileLicense: string;
31
52
  userPermApiName: string;
32
53
  userPermDescription: string;
33
54
  userPermLabel: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-platform-sharing",
3
- "version": "1.305.0",
3
+ "version": "1.307.0",
4
4
  "description": "Sharing",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "dist/es/es2018/platform-sharing.js",
@@ -40,10 +40,10 @@
40
40
  "test:unit": "jest"
41
41
  },
42
42
  "dependencies": {
43
- "@salesforce/lds-bindings": "^1.305.0"
43
+ "@salesforce/lds-bindings": "^1.307.0"
44
44
  },
45
45
  "devDependencies": {
46
- "@salesforce/lds-compiler-plugins": "^1.305.0"
46
+ "@salesforce/lds-compiler-plugins": "^1.307.0"
47
47
  },
48
48
  "nx": {
49
49
  "targets": {
package/sfdc/index.js CHANGED
@@ -2369,12 +2369,47 @@ const getPublicGroupShareDataAdapterFactory = (luvio) => function sharing__getPu
2369
2369
  buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
2370
2370
  };
2371
2371
 
2372
- const VERSION$1 = "348a7399778e8986878f81df955a8eab";
2372
+ const VERSION$1 = "8f69c6b84d8d2d88af30e45bfe796380";
2373
2373
  function validate$1(obj, path = 'UserPermissionInfoRepresentation') {
2374
2374
  const v_error = (() => {
2375
2375
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2376
2376
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
2377
2377
  }
2378
+ const obj_parentApiName = obj.parentApiName;
2379
+ const path_parentApiName = path + '.parentApiName';
2380
+ if (typeof obj_parentApiName !== 'string') {
2381
+ return new TypeError('Expected "string" but received "' + typeof obj_parentApiName + '" (at "' + path_parentApiName + '")');
2382
+ }
2383
+ const obj_parentDescription = obj.parentDescription;
2384
+ const path_parentDescription = path + '.parentDescription';
2385
+ if (typeof obj_parentDescription !== 'string') {
2386
+ return new TypeError('Expected "string" but received "' + typeof obj_parentDescription + '" (at "' + path_parentDescription + '")');
2387
+ }
2388
+ const obj_parentHasActivationRequired = obj.parentHasActivationRequired;
2389
+ const path_parentHasActivationRequired = path + '.parentHasActivationRequired';
2390
+ if (typeof obj_parentHasActivationRequired !== 'boolean') {
2391
+ return new TypeError('Expected "boolean" but received "' + typeof obj_parentHasActivationRequired + '" (at "' + path_parentHasActivationRequired + '")');
2392
+ }
2393
+ const obj_parentId = obj.parentId;
2394
+ const path_parentId = path + '.parentId';
2395
+ if (typeof obj_parentId !== 'string') {
2396
+ return new TypeError('Expected "string" but received "' + typeof obj_parentId + '" (at "' + path_parentId + '")');
2397
+ }
2398
+ const obj_parentIsCustom = obj.parentIsCustom;
2399
+ const path_parentIsCustom = path + '.parentIsCustom';
2400
+ if (typeof obj_parentIsCustom !== 'boolean') {
2401
+ return new TypeError('Expected "boolean" but received "' + typeof obj_parentIsCustom + '" (at "' + path_parentIsCustom + '")');
2402
+ }
2403
+ const obj_parentLabel = obj.parentLabel;
2404
+ const path_parentLabel = path + '.parentLabel';
2405
+ if (typeof obj_parentLabel !== 'string') {
2406
+ return new TypeError('Expected "string" but received "' + typeof obj_parentLabel + '" (at "' + path_parentLabel + '")');
2407
+ }
2408
+ const obj_parentProfileLicense = obj.parentProfileLicense;
2409
+ const path_parentProfileLicense = path + '.parentProfileLicense';
2410
+ if (typeof obj_parentProfileLicense !== 'string') {
2411
+ return new TypeError('Expected "string" but received "' + typeof obj_parentProfileLicense + '" (at "' + path_parentProfileLicense + '")');
2412
+ }
2378
2413
  const obj_userPermApiName = obj.userPermApiName;
2379
2414
  const path_userPermApiName = path + '.userPermApiName';
2380
2415
  if (typeof obj_userPermApiName !== 'string') {
@@ -2399,6 +2434,34 @@ const select$2 = function UserPermissionInfoRepresentationSelect() {
2399
2434
  version: VERSION$1,
2400
2435
  private: [],
2401
2436
  selections: [
2437
+ {
2438
+ name: 'parentApiName',
2439
+ kind: 'Scalar'
2440
+ },
2441
+ {
2442
+ name: 'parentDescription',
2443
+ kind: 'Scalar'
2444
+ },
2445
+ {
2446
+ name: 'parentHasActivationRequired',
2447
+ kind: 'Scalar'
2448
+ },
2449
+ {
2450
+ name: 'parentId',
2451
+ kind: 'Scalar'
2452
+ },
2453
+ {
2454
+ name: 'parentIsCustom',
2455
+ kind: 'Scalar'
2456
+ },
2457
+ {
2458
+ name: 'parentLabel',
2459
+ kind: 'Scalar'
2460
+ },
2461
+ {
2462
+ name: 'parentProfileLicense',
2463
+ kind: 'Scalar'
2464
+ },
2402
2465
  {
2403
2466
  name: 'userPermApiName',
2404
2467
  kind: 'Scalar'
@@ -2415,6 +2478,41 @@ const select$2 = function UserPermissionInfoRepresentationSelect() {
2415
2478
  };
2416
2479
  };
2417
2480
  function equals$1(existing, incoming) {
2481
+ const existing_parentHasActivationRequired = existing.parentHasActivationRequired;
2482
+ const incoming_parentHasActivationRequired = incoming.parentHasActivationRequired;
2483
+ if (!(existing_parentHasActivationRequired === incoming_parentHasActivationRequired)) {
2484
+ return false;
2485
+ }
2486
+ const existing_parentIsCustom = existing.parentIsCustom;
2487
+ const incoming_parentIsCustom = incoming.parentIsCustom;
2488
+ if (!(existing_parentIsCustom === incoming_parentIsCustom)) {
2489
+ return false;
2490
+ }
2491
+ const existing_parentApiName = existing.parentApiName;
2492
+ const incoming_parentApiName = incoming.parentApiName;
2493
+ if (!(existing_parentApiName === incoming_parentApiName)) {
2494
+ return false;
2495
+ }
2496
+ const existing_parentDescription = existing.parentDescription;
2497
+ const incoming_parentDescription = incoming.parentDescription;
2498
+ if (!(existing_parentDescription === incoming_parentDescription)) {
2499
+ return false;
2500
+ }
2501
+ const existing_parentId = existing.parentId;
2502
+ const incoming_parentId = incoming.parentId;
2503
+ if (!(existing_parentId === incoming_parentId)) {
2504
+ return false;
2505
+ }
2506
+ const existing_parentLabel = existing.parentLabel;
2507
+ const incoming_parentLabel = incoming.parentLabel;
2508
+ if (!(existing_parentLabel === incoming_parentLabel)) {
2509
+ return false;
2510
+ }
2511
+ const existing_parentProfileLicense = existing.parentProfileLicense;
2512
+ const incoming_parentProfileLicense = incoming.parentProfileLicense;
2513
+ if (!(existing_parentProfileLicense === incoming_parentProfileLicense)) {
2514
+ return false;
2515
+ }
2418
2516
  const existing_userPermApiName = existing.userPermApiName;
2419
2517
  const incoming_userPermApiName = incoming.userPermApiName;
2420
2518
  if (!(existing_userPermApiName === incoming_userPermApiName)) {
@@ -2729,4 +2827,4 @@ withDefaultLuvio((luvio) => {
2729
2827
  });
2730
2828
 
2731
2829
  export { getAllSobjects, getAllSobjects_imperative, getGroupsForUser, getGroupsForUser_imperative, getPublicGroupMembershipDetails, getPublicGroupMembershipDetails_imperative, getPublicGroupShareData, getPublicGroupShareData_imperative, getUserPermissions, getUserPermissions_imperative };
2732
- // version: 1.305.0-ec92f7304c
2830
+ // version: 1.307.0-1e4b921353
package/src/raml/api.raml CHANGED
@@ -689,6 +689,27 @@ types:
689
689
  UI
690
690
  type: object
691
691
  properties:
692
+ parentApiName:
693
+ description: The user permission's parentApiName
694
+ type: string
695
+ parentDescription:
696
+ description: The user permission's parentDescription
697
+ type: string
698
+ parentHasActivationRequired:
699
+ description: The user permission's parentHasActivationRequired
700
+ type: boolean
701
+ parentId:
702
+ description: The user permission's parentId
703
+ type: string
704
+ parentIsCustom:
705
+ description: The user permission's parentIsCustom
706
+ type: boolean
707
+ parentLabel:
708
+ description: The user permission's parentLabel
709
+ type: string
710
+ parentProfileLicense:
711
+ description: The user permission's parentProfileLicense
712
+ type: string
692
713
  userPermApiName:
693
714
  description: The user permission's apiName
694
715
  type: string