@salesforce/lds-adapters-platform-sharing 1.279.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.
Files changed (49) hide show
  1. package/LICENSE.txt +82 -0
  2. package/dist/es/es2018/platform-sharing.js +1215 -0
  3. package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +62 -0
  4. package/dist/es/es2018/types/src/generated/adapters/getGroupsForUser.d.ts +30 -0
  5. package/dist/es/es2018/types/src/generated/adapters/getPublicGroupShareData.d.ts +31 -0
  6. package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +2 -0
  7. package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +5 -0
  8. package/dist/es/es2018/types/src/generated/resources/getSharingGroupsForUserByGroupTypeAndUserId.d.ts +20 -0
  9. package/dist/es/es2018/types/src/generated/resources/getSharingRecordAccessDetailByRecordIdAndUserId.d.ts +20 -0
  10. package/dist/es/es2018/types/src/generated/resources/getSharingRulesByEntityApiName.d.ts +18 -0
  11. package/dist/es/es2018/types/src/generated/resources/getSharingShareAccessLevels.d.ts +12 -0
  12. package/dist/es/es2018/types/src/generated/resources/getSharingShareAccessLevelsByObjectApiName.d.ts +15 -0
  13. package/dist/es/es2018/types/src/generated/resources/getSharingUserAccessLevelsByRecordId.d.ts +19 -0
  14. package/dist/es/es2018/types/src/generated/resources/getSharingUserOrGroupTypes.d.ts +12 -0
  15. package/dist/es/es2018/types/src/generated/resources/getSharingUsersOrGroups.d.ts +19 -0
  16. package/dist/es/es2018/types/src/generated/resources/postSharingPublicGroupsSummary.d.ts +19 -0
  17. package/dist/es/es2018/types/src/generated/types/AccessLevelFieldRepresentation.d.ts +37 -0
  18. package/dist/es/es2018/types/src/generated/types/AccessLevelRepresentation.d.ts +34 -0
  19. package/dist/es/es2018/types/src/generated/types/GroupCollectionRepresentation.d.ts +34 -0
  20. package/dist/es/es2018/types/src/generated/types/IncludedGroupsSharingRepresentation.d.ts +40 -0
  21. package/dist/es/es2018/types/src/generated/types/ListViewGroupSharingRepresentation.d.ts +31 -0
  22. package/dist/es/es2018/types/src/generated/types/PublicGroupRepresentation.d.ts +34 -0
  23. package/dist/es/es2018/types/src/generated/types/PublicGroupSummaryInputRepresentation.d.ts +40 -0
  24. package/dist/es/es2018/types/src/generated/types/PublicGroupSummaryRepresentation.d.ts +46 -0
  25. package/dist/es/es2018/types/src/generated/types/QueueRepresentation.d.ts +31 -0
  26. package/dist/es/es2018/types/src/generated/types/RecordAccessDetailRepresentation.d.ts +35 -0
  27. package/dist/es/es2018/types/src/generated/types/RecordUserAccessCollectionRepresentation.d.ts +41 -0
  28. package/dist/es/es2018/types/src/generated/types/RecordUserAccessRepresentation.d.ts +32 -0
  29. package/dist/es/es2018/types/src/generated/types/ReportAndDashboardFolderGroupSharingRepresentation.d.ts +43 -0
  30. package/dist/es/es2018/types/src/generated/types/ShareAccessLevelRepresentation.d.ts +40 -0
  31. package/dist/es/es2018/types/src/generated/types/ShareRelationshipArrayRepresentation.d.ts +29 -0
  32. package/dist/es/es2018/types/src/generated/types/ShareRelationshipCollectionRepresentation.d.ts +29 -0
  33. package/dist/es/es2018/types/src/generated/types/ShareRelationshipRepresentation.d.ts +34 -0
  34. package/dist/es/es2018/types/src/generated/types/SharingReasonRepresentation.d.ts +41 -0
  35. package/dist/es/es2018/types/src/generated/types/SharingRuleCollectionRepresentation.d.ts +29 -0
  36. package/dist/es/es2018/types/src/generated/types/SharingRuleRepresentation.d.ts +57 -0
  37. package/dist/es/es2018/types/src/generated/types/SharingRulesCriteriaGroupSharingRepresentation.d.ts +37 -0
  38. package/dist/es/es2018/types/src/generated/types/SharingRulesOwnerGroupSharingRepresentation.d.ts +37 -0
  39. package/dist/es/es2018/types/src/generated/types/SupportedObjectListRepresentation.d.ts +28 -0
  40. package/dist/es/es2018/types/src/generated/types/UserOrGroupRepresentation.d.ts +31 -0
  41. package/dist/es/es2018/types/src/generated/types/UserOrGroupTypeRepresentation.d.ts +34 -0
  42. package/dist/es/es2018/types/src/generated/types/UserOrGroupTypesCollectionRepresentation.d.ts +29 -0
  43. package/dist/es/es2018/types/src/generated/types/UsersOrGroupsCollectionRepresentation.d.ts +29 -0
  44. package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +32 -0
  45. package/package.json +66 -0
  46. package/sfdc/index.d.ts +1 -0
  47. package/sfdc/index.js +1261 -0
  48. package/src/raml/api.raml +689 -0
  49. package/src/raml/luvio.raml +39 -0
@@ -0,0 +1,31 @@
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 = "633d578339f4557687a261d77c1b3ab5";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: UserOrGroupRepresentation, existing: UserOrGroupRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): UserOrGroupRepresentationNormalized;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: UserOrGroupRepresentationNormalized, incoming: UserOrGroupRepresentationNormalized): boolean;
8
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
9
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: UserOrGroupRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * Representation of user or group with whom an object can be shared.
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface UserOrGroupRepresentationNormalized {
17
+ /** Id of a user or group. */
18
+ id: string;
19
+ /** Name of a user or group. */
20
+ name: string;
21
+ }
22
+ /**
23
+ * Representation of user or group with whom an object can be shared.
24
+ *
25
+ * Keys:
26
+ * (none)
27
+ */
28
+ export interface UserOrGroupRepresentation {
29
+ id: string;
30
+ name: string;
31
+ }
@@ -0,0 +1,34 @@
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 = "c320954400f5f0b72c01ec9bfcbc1a09";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: UserOrGroupTypeRepresentation, existing: UserOrGroupTypeRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): UserOrGroupTypeRepresentationNormalized;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: UserOrGroupTypeRepresentationNormalized, incoming: UserOrGroupTypeRepresentationNormalized): boolean;
8
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
9
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: UserOrGroupTypeRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * Representation of an instance of a folder share recipient.
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface UserOrGroupTypeRepresentationNormalized {
17
+ /** The label of the user or group type. */
18
+ label: string;
19
+ /** The sharing model of user or group type */
20
+ sharingModelType: string;
21
+ /** The user or group type. */
22
+ userOrGroupType: string;
23
+ }
24
+ /**
25
+ * Representation of an instance of a folder share recipient.
26
+ *
27
+ * Keys:
28
+ * (none)
29
+ */
30
+ export interface UserOrGroupTypeRepresentation {
31
+ label: string;
32
+ sharingModelType: string;
33
+ userOrGroupType: string;
34
+ }
@@ -0,0 +1,29 @@
1
+ import { UserOrGroupTypeRepresentation as UserOrGroupTypeRepresentation_UserOrGroupTypeRepresentation } from './UserOrGroupTypeRepresentation';
2
+ 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';
3
+ export declare const VERSION = "2e9eff5b9277dddb589db831dc38d731";
4
+ export declare function validate(obj: any, path?: string): TypeError | null;
5
+ export declare const RepresentationType: string;
6
+ export declare function normalize(input: UserOrGroupTypesCollectionRepresentation, existing: UserOrGroupTypesCollectionRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): UserOrGroupTypesCollectionRepresentationNormalized;
7
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
8
+ export declare function equals(existing: UserOrGroupTypesCollectionRepresentationNormalized, incoming: UserOrGroupTypesCollectionRepresentationNormalized): boolean;
9
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
10
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: UserOrGroupTypesCollectionRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
+ /**
12
+ * Representation of a collection of user or group types.
13
+ *
14
+ * Keys:
15
+ * (none)
16
+ */
17
+ export interface UserOrGroupTypesCollectionRepresentationNormalized {
18
+ /** The list of user or group types. */
19
+ userOrGroupTypes: Array<UserOrGroupTypeRepresentation_UserOrGroupTypeRepresentation>;
20
+ }
21
+ /**
22
+ * Representation of a collection of user or group types.
23
+ *
24
+ * Keys:
25
+ * (none)
26
+ */
27
+ export interface UserOrGroupTypesCollectionRepresentation {
28
+ userOrGroupTypes: Array<UserOrGroupTypeRepresentation_UserOrGroupTypeRepresentation>;
29
+ }
@@ -0,0 +1,29 @@
1
+ import { UserOrGroupRepresentation as UserOrGroupRepresentation_UserOrGroupRepresentation } from './UserOrGroupRepresentation';
2
+ 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';
3
+ export declare const VERSION = "7f863b87a0c295fc271d3eeb0a2f9565";
4
+ export declare function validate(obj: any, path?: string): TypeError | null;
5
+ export declare const RepresentationType: string;
6
+ export declare function normalize(input: UsersOrGroupsCollectionRepresentation, existing: UsersOrGroupsCollectionRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): UsersOrGroupsCollectionRepresentationNormalized;
7
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
8
+ export declare function equals(existing: UsersOrGroupsCollectionRepresentationNormalized, incoming: UsersOrGroupsCollectionRepresentationNormalized): boolean;
9
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
10
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: UsersOrGroupsCollectionRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
+ /**
12
+ * Representation of a collection of users and/or groups.
13
+ *
14
+ * Keys:
15
+ * (none)
16
+ */
17
+ export interface UsersOrGroupsCollectionRepresentationNormalized {
18
+ /** The list of users and/or groups. */
19
+ usersOrGroups: Array<UserOrGroupRepresentation_UserOrGroupRepresentation>;
20
+ }
21
+ /**
22
+ * Representation of a collection of users and/or groups.
23
+ *
24
+ * Keys:
25
+ * (none)
26
+ */
27
+ export interface UsersOrGroupsCollectionRepresentation {
28
+ usersOrGroups: Array<UserOrGroupRepresentation_UserOrGroupRepresentation>;
29
+ }
@@ -0,0 +1,32 @@
1
+ import { NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
2
+ export declare const ObjectKeys: {
3
+ (o: object): string[];
4
+ (o: {}): string[];
5
+ }, ObjectCreate: {
6
+ (o: object | null): any;
7
+ (o: object | null, properties: PropertyDescriptorMap & ThisType<any>): any;
8
+ }, ObjectAssign: {
9
+ <T extends {}, U>(target: T, source: U): T & U;
10
+ <T_1 extends {}, U_1, V>(target: T_1, source1: U_1, source2: V): T_1 & U_1 & V;
11
+ <T_2 extends {}, U_2, V_1, W>(target: T_2, source1: U_2, source2: V_1, source3: W): T_2 & U_2 & V_1 & W;
12
+ (target: object, ...sources: any[]): any;
13
+ };
14
+ export declare const ArrayIsArray: (arg: any) => arg is any[];
15
+ export declare const JSONStringify: {
16
+ (value: any, replacer?: ((this: any, key: string, value: any) => any) | undefined, space?: string | number | undefined): string;
17
+ (value: any, replacer?: (string | number)[] | null | undefined, space?: string | number | undefined): string;
18
+ };
19
+ type AllowedPrimitives = boolean | string | number | Date | null;
20
+ type Value<T> = T extends AllowedPrimitives ? T : RecursivePartial<T>;
21
+ export type RecursivePartial<T> = null | {
22
+ [P in keyof T]?: T[P] extends Array<infer U> ? Array<Value<U>> | null : Value<T[P]> | null;
23
+ };
24
+ export declare function equalsArray<U, V extends U[]>(a: V, b: V, equalsItem: (itemA: U, itemB: U) => boolean | void): boolean;
25
+ export declare function equalsObject<U, V extends {
26
+ [key: string]: U;
27
+ }>(a: V, b: V, equalsProp: (propA: U, propB: U) => boolean | void): boolean;
28
+ export declare function createLink(ref: string | $64$luvio_engine_NormalizedKeyMetadata): {
29
+ __ref: string;
30
+ };
31
+ export declare function assignMetadataLink(entry: any, metadataKey: string | $64$luvio_engine_NormalizedKeyMetadata): void;
32
+ export {};
package/package.json ADDED
@@ -0,0 +1,66 @@
1
+ {
2
+ "name": "@salesforce/lds-adapters-platform-sharing",
3
+ "version": "1.279.0",
4
+ "description": "Sharing",
5
+ "license": "SEE LICENSE IN LICENSE.txt",
6
+ "main": "dist/es/es2018/platform-sharing.js",
7
+ "module": "dist/es/es2018/platform-sharing.js",
8
+ "types": "dist/es/es2018/types/src/generated/artifacts/main.d.ts",
9
+ "files": [
10
+ "dist",
11
+ "sfdc",
12
+ "src/raml/*"
13
+ ],
14
+ "exports": {
15
+ ".": {
16
+ "types": "./dist/es/es2018/types/src/generated/artifacts/main.d.ts",
17
+ "import": "./dist/es/es2018/platform-sharing.js",
18
+ "require": "./dist/es/es2018/platform-sharing.js"
19
+ },
20
+ "./sfdc": {
21
+ "types": "./sfdc/index.d.ts",
22
+ "import": "./sfdc/index.js",
23
+ "default": "./sfdc/index.js"
24
+ }
25
+ },
26
+ "sfdc": {
27
+ "namespace": "lightning",
28
+ "module": "platformSharingApi"
29
+ },
30
+ "contributors": [
31
+ "tanuja.gupta@salesforce.com"
32
+ ],
33
+ "scripts": {
34
+ "build": "yarn build:services",
35
+ "build:raml": "luvio generate src/raml/luvio.raml src/generated -p '../lds-compiler-plugins'",
36
+ "build:services": "rollup --bundleConfigAsCjs --config rollup.config.js",
37
+ "clean": "rm -rf dist sfdc src/generated",
38
+ "release:core": "../../scripts/release/core.js --adapter=lds-adapters-platform-sharing",
39
+ "release:corejar": "yarn build && ../core-build/scripts/core.js --adapter=lds-adapters-platform-sharing",
40
+ "test:unit": "jest"
41
+ },
42
+ "dependencies": {
43
+ "@salesforce/lds-bindings": "^1.279.0"
44
+ },
45
+ "devDependencies": {
46
+ "@salesforce/lds-compiler-plugins": "^1.279.0"
47
+ },
48
+ "nx": {
49
+ "targets": {
50
+ "build": {
51
+ "outputs": [
52
+ "{projectRoot}/dist",
53
+ "{projectRoot}/sfdc"
54
+ ]
55
+ },
56
+ "build:raml": {
57
+ "outputs": [
58
+ "{projectRoot}/src/generated"
59
+ ]
60
+ }
61
+ }
62
+ },
63
+ "volta": {
64
+ "extends": "../../package.json"
65
+ }
66
+ }
@@ -0,0 +1 @@
1
+ export * from '../dist/es/es2018/types/src/generated/artifacts/sfdc';