@salesforce/lds-adapters-platform-sharing 1.319.0 → 1.321.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.
- package/dist/es/es2018/platform-sharing.js +58 -2
- package/dist/es/es2018/types/src/generated/types/SharingRulesCriteriaGroupSharingRepresentation.d.ts +7 -1
- package/dist/es/es2018/types/src/generated/types/SharingRulesOwnerGroupSharingRepresentation.d.ts +7 -1
- package/package.json +3 -3
- package/sfdc/index.js +59 -3
- package/src/raml/api.raml +12 -0
|
@@ -1617,7 +1617,7 @@ function equals$7(existing, incoming) {
|
|
|
1617
1617
|
return true;
|
|
1618
1618
|
}
|
|
1619
1619
|
|
|
1620
|
-
const VERSION$6 = "
|
|
1620
|
+
const VERSION$6 = "c1fd46badd6b7d74d5d487367b066f42";
|
|
1621
1621
|
function validate$6(obj, path = 'SharingRulesCriteriaGroupSharingRepresentation') {
|
|
1622
1622
|
const v_error = (() => {
|
|
1623
1623
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -1643,6 +1643,16 @@ function validate$6(obj, path = 'SharingRulesCriteriaGroupSharingRepresentation'
|
|
|
1643
1643
|
if (typeof obj_label !== 'string') {
|
|
1644
1644
|
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
1645
1645
|
}
|
|
1646
|
+
const obj_objectAPIName = obj.objectAPIName;
|
|
1647
|
+
const path_objectAPIName = path + '.objectAPIName';
|
|
1648
|
+
if (typeof obj_objectAPIName !== 'string') {
|
|
1649
|
+
return new TypeError('Expected "string" but received "' + typeof obj_objectAPIName + '" (at "' + path_objectAPIName + '")');
|
|
1650
|
+
}
|
|
1651
|
+
const obj_objectName = obj.objectName;
|
|
1652
|
+
const path_objectName = path + '.objectName';
|
|
1653
|
+
if (typeof obj_objectName !== 'string') {
|
|
1654
|
+
return new TypeError('Expected "string" but received "' + typeof obj_objectName + '" (at "' + path_objectName + '")');
|
|
1655
|
+
}
|
|
1646
1656
|
})();
|
|
1647
1657
|
return v_error === undefined ? null : v_error;
|
|
1648
1658
|
}
|
|
@@ -1667,6 +1677,14 @@ const select$9 = function SharingRulesCriteriaGroupSharingRepresentationSelect()
|
|
|
1667
1677
|
{
|
|
1668
1678
|
name: 'label',
|
|
1669
1679
|
kind: 'Scalar'
|
|
1680
|
+
},
|
|
1681
|
+
{
|
|
1682
|
+
name: 'objectAPIName',
|
|
1683
|
+
kind: 'Scalar'
|
|
1684
|
+
},
|
|
1685
|
+
{
|
|
1686
|
+
name: 'objectName',
|
|
1687
|
+
kind: 'Scalar'
|
|
1670
1688
|
}
|
|
1671
1689
|
]
|
|
1672
1690
|
};
|
|
@@ -1692,10 +1710,20 @@ function equals$6(existing, incoming) {
|
|
|
1692
1710
|
if (!(existing_label === incoming_label)) {
|
|
1693
1711
|
return false;
|
|
1694
1712
|
}
|
|
1713
|
+
const existing_objectAPIName = existing.objectAPIName;
|
|
1714
|
+
const incoming_objectAPIName = incoming.objectAPIName;
|
|
1715
|
+
if (!(existing_objectAPIName === incoming_objectAPIName)) {
|
|
1716
|
+
return false;
|
|
1717
|
+
}
|
|
1718
|
+
const existing_objectName = existing.objectName;
|
|
1719
|
+
const incoming_objectName = incoming.objectName;
|
|
1720
|
+
if (!(existing_objectName === incoming_objectName)) {
|
|
1721
|
+
return false;
|
|
1722
|
+
}
|
|
1695
1723
|
return true;
|
|
1696
1724
|
}
|
|
1697
1725
|
|
|
1698
|
-
const VERSION$5 = "
|
|
1726
|
+
const VERSION$5 = "f880257a24b8878ee52c03288b208b67";
|
|
1699
1727
|
function validate$5(obj, path = 'SharingRulesOwnerGroupSharingRepresentation') {
|
|
1700
1728
|
const v_error = (() => {
|
|
1701
1729
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -1716,6 +1744,16 @@ function validate$5(obj, path = 'SharingRulesOwnerGroupSharingRepresentation') {
|
|
|
1716
1744
|
if (typeof obj_label !== 'string') {
|
|
1717
1745
|
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
1718
1746
|
}
|
|
1747
|
+
const obj_objectAPIName = obj.objectAPIName;
|
|
1748
|
+
const path_objectAPIName = path + '.objectAPIName';
|
|
1749
|
+
if (typeof obj_objectAPIName !== 'string') {
|
|
1750
|
+
return new TypeError('Expected "string" but received "' + typeof obj_objectAPIName + '" (at "' + path_objectAPIName + '")');
|
|
1751
|
+
}
|
|
1752
|
+
const obj_objectName = obj.objectName;
|
|
1753
|
+
const path_objectName = path + '.objectName';
|
|
1754
|
+
if (typeof obj_objectName !== 'string') {
|
|
1755
|
+
return new TypeError('Expected "string" but received "' + typeof obj_objectName + '" (at "' + path_objectName + '")');
|
|
1756
|
+
}
|
|
1719
1757
|
const obj_sharedFrom = obj.sharedFrom;
|
|
1720
1758
|
const path_sharedFrom = path + '.sharedFrom';
|
|
1721
1759
|
if (typeof obj_sharedFrom !== 'string') {
|
|
@@ -1742,6 +1780,14 @@ const select$8 = function SharingRulesOwnerGroupSharingRepresentationSelect() {
|
|
|
1742
1780
|
name: 'label',
|
|
1743
1781
|
kind: 'Scalar'
|
|
1744
1782
|
},
|
|
1783
|
+
{
|
|
1784
|
+
name: 'objectAPIName',
|
|
1785
|
+
kind: 'Scalar'
|
|
1786
|
+
},
|
|
1787
|
+
{
|
|
1788
|
+
name: 'objectName',
|
|
1789
|
+
kind: 'Scalar'
|
|
1790
|
+
},
|
|
1745
1791
|
{
|
|
1746
1792
|
name: 'sharedFrom',
|
|
1747
1793
|
kind: 'Scalar'
|
|
@@ -1765,6 +1811,16 @@ function equals$5(existing, incoming) {
|
|
|
1765
1811
|
if (!(existing_label === incoming_label)) {
|
|
1766
1812
|
return false;
|
|
1767
1813
|
}
|
|
1814
|
+
const existing_objectAPIName = existing.objectAPIName;
|
|
1815
|
+
const incoming_objectAPIName = incoming.objectAPIName;
|
|
1816
|
+
if (!(existing_objectAPIName === incoming_objectAPIName)) {
|
|
1817
|
+
return false;
|
|
1818
|
+
}
|
|
1819
|
+
const existing_objectName = existing.objectName;
|
|
1820
|
+
const incoming_objectName = incoming.objectName;
|
|
1821
|
+
if (!(existing_objectName === incoming_objectName)) {
|
|
1822
|
+
return false;
|
|
1823
|
+
}
|
|
1768
1824
|
const existing_sharedFrom = existing.sharedFrom;
|
|
1769
1825
|
const incoming_sharedFrom = incoming.sharedFrom;
|
|
1770
1826
|
if (!(existing_sharedFrom === incoming_sharedFrom)) {
|
package/dist/es/es2018/types/src/generated/types/SharingRulesCriteriaGroupSharingRepresentation.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 = "c1fd46badd6b7d74d5d487367b066f42";
|
|
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: SharingRulesCriteriaGroupSharingRepresentation, existing: SharingRulesCriteriaGroupSharingRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): SharingRulesCriteriaGroupSharingRepresentationNormalized;
|
|
@@ -22,6 +22,10 @@ export interface SharingRulesCriteriaGroupSharingRepresentationNormalized {
|
|
|
22
22
|
developerName: string;
|
|
23
23
|
/** Criteria Sharing Rule label. */
|
|
24
24
|
label: string;
|
|
25
|
+
/** Criteria Sharing Rule accessLevel. */
|
|
26
|
+
objectAPIName: string;
|
|
27
|
+
/** Criteria Sharing Rule accessLevel. */
|
|
28
|
+
objectName: string;
|
|
25
29
|
}
|
|
26
30
|
/**
|
|
27
31
|
* Output representation of criteria based sharing rules shared with public group.
|
|
@@ -34,4 +38,6 @@ export interface SharingRulesCriteriaGroupSharingRepresentation {
|
|
|
34
38
|
criteria: string;
|
|
35
39
|
developerName: string;
|
|
36
40
|
label: string;
|
|
41
|
+
objectAPIName: string;
|
|
42
|
+
objectName: string;
|
|
37
43
|
}
|
package/dist/es/es2018/types/src/generated/types/SharingRulesOwnerGroupSharingRepresentation.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 = "f880257a24b8878ee52c03288b208b67";
|
|
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: SharingRulesOwnerGroupSharingRepresentation, existing: SharingRulesOwnerGroupSharingRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): SharingRulesOwnerGroupSharingRepresentationNormalized;
|
|
@@ -20,6 +20,10 @@ export interface SharingRulesOwnerGroupSharingRepresentationNormalized {
|
|
|
20
20
|
developerName: string;
|
|
21
21
|
/** Owner Sharing Rule label. */
|
|
22
22
|
label: string;
|
|
23
|
+
/** Object API Name. */
|
|
24
|
+
objectAPIName: string;
|
|
25
|
+
/** Object Name. */
|
|
26
|
+
objectName: string;
|
|
23
27
|
/** Owner Sharing Rule shared from group. */
|
|
24
28
|
sharedFrom: string;
|
|
25
29
|
}
|
|
@@ -33,5 +37,7 @@ export interface SharingRulesOwnerGroupSharingRepresentation {
|
|
|
33
37
|
accessLevel: string;
|
|
34
38
|
developerName: string;
|
|
35
39
|
label: string;
|
|
40
|
+
objectAPIName: string;
|
|
41
|
+
objectName: string;
|
|
36
42
|
sharedFrom: string;
|
|
37
43
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-platform-sharing",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.321.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.
|
|
43
|
+
"@salesforce/lds-bindings": "^1.321.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@salesforce/lds-compiler-plugins": "^1.
|
|
46
|
+
"@salesforce/lds-compiler-plugins": "^1.321.0"
|
|
47
47
|
},
|
|
48
48
|
"nx": {
|
|
49
49
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -1939,7 +1939,7 @@ function equals$5(existing, incoming) {
|
|
|
1939
1939
|
return true;
|
|
1940
1940
|
}
|
|
1941
1941
|
|
|
1942
|
-
const VERSION$4 = "
|
|
1942
|
+
const VERSION$4 = "c1fd46badd6b7d74d5d487367b066f42";
|
|
1943
1943
|
function validate$4(obj, path = 'SharingRulesCriteriaGroupSharingRepresentation') {
|
|
1944
1944
|
const v_error = (() => {
|
|
1945
1945
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -1965,6 +1965,16 @@ function validate$4(obj, path = 'SharingRulesCriteriaGroupSharingRepresentation'
|
|
|
1965
1965
|
if (typeof obj_label !== 'string') {
|
|
1966
1966
|
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
1967
1967
|
}
|
|
1968
|
+
const obj_objectAPIName = obj.objectAPIName;
|
|
1969
|
+
const path_objectAPIName = path + '.objectAPIName';
|
|
1970
|
+
if (typeof obj_objectAPIName !== 'string') {
|
|
1971
|
+
return new TypeError('Expected "string" but received "' + typeof obj_objectAPIName + '" (at "' + path_objectAPIName + '")');
|
|
1972
|
+
}
|
|
1973
|
+
const obj_objectName = obj.objectName;
|
|
1974
|
+
const path_objectName = path + '.objectName';
|
|
1975
|
+
if (typeof obj_objectName !== 'string') {
|
|
1976
|
+
return new TypeError('Expected "string" but received "' + typeof obj_objectName + '" (at "' + path_objectName + '")');
|
|
1977
|
+
}
|
|
1968
1978
|
})();
|
|
1969
1979
|
return v_error === undefined ? null : v_error;
|
|
1970
1980
|
}
|
|
@@ -1989,6 +1999,14 @@ const select$6 = function SharingRulesCriteriaGroupSharingRepresentationSelect()
|
|
|
1989
1999
|
{
|
|
1990
2000
|
name: 'label',
|
|
1991
2001
|
kind: 'Scalar'
|
|
2002
|
+
},
|
|
2003
|
+
{
|
|
2004
|
+
name: 'objectAPIName',
|
|
2005
|
+
kind: 'Scalar'
|
|
2006
|
+
},
|
|
2007
|
+
{
|
|
2008
|
+
name: 'objectName',
|
|
2009
|
+
kind: 'Scalar'
|
|
1992
2010
|
}
|
|
1993
2011
|
]
|
|
1994
2012
|
};
|
|
@@ -2014,10 +2032,20 @@ function equals$4(existing, incoming) {
|
|
|
2014
2032
|
if (!(existing_label === incoming_label)) {
|
|
2015
2033
|
return false;
|
|
2016
2034
|
}
|
|
2035
|
+
const existing_objectAPIName = existing.objectAPIName;
|
|
2036
|
+
const incoming_objectAPIName = incoming.objectAPIName;
|
|
2037
|
+
if (!(existing_objectAPIName === incoming_objectAPIName)) {
|
|
2038
|
+
return false;
|
|
2039
|
+
}
|
|
2040
|
+
const existing_objectName = existing.objectName;
|
|
2041
|
+
const incoming_objectName = incoming.objectName;
|
|
2042
|
+
if (!(existing_objectName === incoming_objectName)) {
|
|
2043
|
+
return false;
|
|
2044
|
+
}
|
|
2017
2045
|
return true;
|
|
2018
2046
|
}
|
|
2019
2047
|
|
|
2020
|
-
const VERSION$3 = "
|
|
2048
|
+
const VERSION$3 = "f880257a24b8878ee52c03288b208b67";
|
|
2021
2049
|
function validate$3(obj, path = 'SharingRulesOwnerGroupSharingRepresentation') {
|
|
2022
2050
|
const v_error = (() => {
|
|
2023
2051
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -2038,6 +2066,16 @@ function validate$3(obj, path = 'SharingRulesOwnerGroupSharingRepresentation') {
|
|
|
2038
2066
|
if (typeof obj_label !== 'string') {
|
|
2039
2067
|
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
2040
2068
|
}
|
|
2069
|
+
const obj_objectAPIName = obj.objectAPIName;
|
|
2070
|
+
const path_objectAPIName = path + '.objectAPIName';
|
|
2071
|
+
if (typeof obj_objectAPIName !== 'string') {
|
|
2072
|
+
return new TypeError('Expected "string" but received "' + typeof obj_objectAPIName + '" (at "' + path_objectAPIName + '")');
|
|
2073
|
+
}
|
|
2074
|
+
const obj_objectName = obj.objectName;
|
|
2075
|
+
const path_objectName = path + '.objectName';
|
|
2076
|
+
if (typeof obj_objectName !== 'string') {
|
|
2077
|
+
return new TypeError('Expected "string" but received "' + typeof obj_objectName + '" (at "' + path_objectName + '")');
|
|
2078
|
+
}
|
|
2041
2079
|
const obj_sharedFrom = obj.sharedFrom;
|
|
2042
2080
|
const path_sharedFrom = path + '.sharedFrom';
|
|
2043
2081
|
if (typeof obj_sharedFrom !== 'string') {
|
|
@@ -2064,6 +2102,14 @@ const select$5 = function SharingRulesOwnerGroupSharingRepresentationSelect() {
|
|
|
2064
2102
|
name: 'label',
|
|
2065
2103
|
kind: 'Scalar'
|
|
2066
2104
|
},
|
|
2105
|
+
{
|
|
2106
|
+
name: 'objectAPIName',
|
|
2107
|
+
kind: 'Scalar'
|
|
2108
|
+
},
|
|
2109
|
+
{
|
|
2110
|
+
name: 'objectName',
|
|
2111
|
+
kind: 'Scalar'
|
|
2112
|
+
},
|
|
2067
2113
|
{
|
|
2068
2114
|
name: 'sharedFrom',
|
|
2069
2115
|
kind: 'Scalar'
|
|
@@ -2087,6 +2133,16 @@ function equals$3(existing, incoming) {
|
|
|
2087
2133
|
if (!(existing_label === incoming_label)) {
|
|
2088
2134
|
return false;
|
|
2089
2135
|
}
|
|
2136
|
+
const existing_objectAPIName = existing.objectAPIName;
|
|
2137
|
+
const incoming_objectAPIName = incoming.objectAPIName;
|
|
2138
|
+
if (!(existing_objectAPIName === incoming_objectAPIName)) {
|
|
2139
|
+
return false;
|
|
2140
|
+
}
|
|
2141
|
+
const existing_objectName = existing.objectName;
|
|
2142
|
+
const incoming_objectName = incoming.objectName;
|
|
2143
|
+
if (!(existing_objectName === incoming_objectName)) {
|
|
2144
|
+
return false;
|
|
2145
|
+
}
|
|
2090
2146
|
const existing_sharedFrom = existing.sharedFrom;
|
|
2091
2147
|
const incoming_sharedFrom = incoming.sharedFrom;
|
|
2092
2148
|
if (!(existing_sharedFrom === incoming_sharedFrom)) {
|
|
@@ -2937,4 +2993,4 @@ withDefaultLuvio((luvio) => {
|
|
|
2937
2993
|
});
|
|
2938
2994
|
|
|
2939
2995
|
export { getAllSobjects, getAllSobjects_imperative, getGroupsForUser, getGroupsForUser_imperative, getPublicGroupMembershipDetails, getPublicGroupMembershipDetails_imperative, getPublicGroupShareData, getPublicGroupShareData_imperative, getUserPermissions, getUserPermissions_imperative };
|
|
2940
|
-
// version: 1.
|
|
2996
|
+
// version: 1.321.0-40847d67a8
|
package/src/raml/api.raml
CHANGED
|
@@ -558,6 +558,12 @@ types:
|
|
|
558
558
|
label:
|
|
559
559
|
description: Criteria Sharing Rule label.
|
|
560
560
|
type: string
|
|
561
|
+
objectAPIName:
|
|
562
|
+
description: Criteria Sharing Rule accessLevel.
|
|
563
|
+
type: string
|
|
564
|
+
objectName:
|
|
565
|
+
description: Criteria Sharing Rule accessLevel.
|
|
566
|
+
type: string
|
|
561
567
|
SharingRulesOwnerGroupSharingRepresentation:
|
|
562
568
|
description: Output representation of owner based sharing rules shared with public
|
|
563
569
|
group.
|
|
@@ -575,6 +581,12 @@ types:
|
|
|
575
581
|
sharedFrom:
|
|
576
582
|
description: Owner Sharing Rule shared from group.
|
|
577
583
|
type: string
|
|
584
|
+
objectAPIName:
|
|
585
|
+
description: Object API Name.
|
|
586
|
+
type: string
|
|
587
|
+
objectName:
|
|
588
|
+
description: Object Name.
|
|
589
|
+
type: string
|
|
578
590
|
SobjectOutputSharingRepresentation:
|
|
579
591
|
description: Output representation of sobject to be used for Selection
|
|
580
592
|
type: object
|