@salesforce/lds-adapters-platform-files 0.1.0-dev1

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 (45) hide show
  1. package/LICENSE.txt +82 -0
  2. package/dist/es/es2018/platform-files.js +5240 -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/createContentDocFromContentBody.d.ts +34 -0
  5. package/dist/es/es2018/types/src/generated/adapters/getFilePreview.d.ts +31 -0
  6. package/dist/es/es2018/types/src/generated/adapters/getFilePreviewCommunity.d.ts +32 -0
  7. package/dist/es/es2018/types/src/generated/adapters/getFileUploadConfig.d.ts +26 -0
  8. package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +4 -0
  9. package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +8 -0
  10. package/dist/es/es2018/types/src/generated/resources/getConnectCommunitiesFilesPreviewsByCommunityIdAndFileIdAndPreviewFormat.d.ts +22 -0
  11. package/dist/es/es2018/types/src/generated/resources/getConnectFileUploadConfig.d.ts +12 -0
  12. package/dist/es/es2018/types/src/generated/resources/getConnectFilesPreviewsByFileIdAndPreviewFormat.d.ts +21 -0
  13. package/dist/es/es2018/types/src/generated/resources/postConnectFilesUsersByUserId.d.ts +33 -0
  14. package/dist/es/es2018/types/src/generated/types/ContentHubPermissionTypeRepresentation.d.ts +31 -0
  15. package/dist/es/es2018/types/src/generated/types/ContentHubProviderTypeRepresentation.d.ts +31 -0
  16. package/dist/es/es2018/types/src/generated/types/ContentHubRepositoryAuthenticationRepresentation.d.ts +34 -0
  17. package/dist/es/es2018/types/src/generated/types/ContentHubRepositoryFeaturesRepresentation.d.ts +31 -0
  18. package/dist/es/es2018/types/src/generated/types/ContentHubRepositoryRepresentation.d.ts +76 -0
  19. package/dist/es/es2018/types/src/generated/types/ExternalFilePermissionInformationRepresentation.d.ts +42 -0
  20. package/dist/es/es2018/types/src/generated/types/FileAssetRepresentation.d.ts +49 -0
  21. package/dist/es/es2018/types/src/generated/types/FileDetailRepresentation.d.ts +190 -0
  22. package/dist/es/es2018/types/src/generated/types/FileInputRepresentation.d.ts +82 -0
  23. package/dist/es/es2018/types/src/generated/types/FilePreviewRepresentation.d.ts +42 -0
  24. package/dist/es/es2018/types/src/generated/types/FilePreviewUrlRepresentation.d.ts +31 -0
  25. package/dist/es/es2018/types/src/generated/types/FileUploadConfigRepresentation.d.ts +38 -0
  26. package/dist/es/es2018/types/src/generated/types/ModerationFlagItemRepresentation.d.ts +43 -0
  27. package/dist/es/es2018/types/src/generated/types/ModerationFlagsCollectionRepresentation.d.ts +44 -0
  28. package/dist/es/es2018/types/src/generated/types/ModerationFlagsRepresentation.d.ts +42 -0
  29. package/dist/es/es2018/types/src/generated/types/MotifRepresentation.d.ts +40 -0
  30. package/dist/es/es2018/types/src/generated/types/OutOfOfficeRepresentation.d.ts +28 -0
  31. package/dist/es/es2018/types/src/generated/types/PhotoRepresentation.d.ts +46 -0
  32. package/dist/es/es2018/types/src/generated/types/ReferenceRepresentation.d.ts +31 -0
  33. package/dist/es/es2018/types/src/generated/types/RepositoryGroupSummaryRepresentation.d.ts +43 -0
  34. package/dist/es/es2018/types/src/generated/types/ReputationLevelRepresentation.d.ts +34 -0
  35. package/dist/es/es2018/types/src/generated/types/ReputationRepresentation.d.ts +35 -0
  36. package/dist/es/es2018/types/src/generated/types/TopicCollectionRepresentation.d.ts +35 -0
  37. package/dist/es/es2018/types/src/generated/types/TopicImagesRepresentation.d.ts +31 -0
  38. package/dist/es/es2018/types/src/generated/types/TopicRepresentation.d.ts +53 -0
  39. package/dist/es/es2018/types/src/generated/types/UserSummaryRepresentation.d.ts +87 -0
  40. package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +32 -0
  41. package/package.json +66 -0
  42. package/sfdc/index.d.ts +1 -0
  43. package/sfdc/index.js +5300 -0
  44. package/src/raml/api.raml +1011 -0
  45. package/src/raml/luvio.raml +37 -0
@@ -0,0 +1,46 @@
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 = "04f9649781446a4380f18667d5951641";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: PhotoRepresentation, existing: PhotoRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): PhotoRepresentationNormalized;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: PhotoRepresentationNormalized, incoming: PhotoRepresentationNormalized): 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: PhotoRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * A profile photo for a user, group, or record.
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface PhotoRepresentationNormalized {
17
+ /** URL to image data in a large format. Delivered in a URL that does not require authentication but will expire after 30 days. */
18
+ fullEmailPhotoUrl: string;
19
+ /** URL to image data in a large format. Requires an authenticated connection. */
20
+ largePhotoUrl: string;
21
+ /** URL to image data in a medium format. Requires an authenticated connection. */
22
+ mediumPhotoUrl: string;
23
+ /** String that can be used as a version check for photos. Photos can be cached until this value changes. */
24
+ photoVersionId: string | null;
25
+ /** URL to image data in a small format. Requires an authenticated connection. */
26
+ smallPhotoUrl: string;
27
+ /** URL to image data in a small format. Delivered in a URL that does not require authentication but will expire after 30 days. */
28
+ standardEmailPhotoUrl: string;
29
+ /** URL to this photo's content. */
30
+ url: string;
31
+ }
32
+ /**
33
+ * A profile photo for a user, group, or record.
34
+ *
35
+ * Keys:
36
+ * (none)
37
+ */
38
+ export interface PhotoRepresentation {
39
+ fullEmailPhotoUrl: string;
40
+ largePhotoUrl: string;
41
+ mediumPhotoUrl: string;
42
+ photoVersionId: string | null;
43
+ smallPhotoUrl: string;
44
+ standardEmailPhotoUrl: string;
45
+ url: string;
46
+ }
@@ -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 = "0c0c85c97f540c4a8883d7fa795e7e0e";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: ReferenceRepresentation, existing: ReferenceRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ReferenceRepresentationNormalized;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: ReferenceRepresentationNormalized, incoming: ReferenceRepresentationNormalized): 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: ReferenceRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * A reference to another record in the organization without including all of the information about that record.
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface ReferenceRepresentationNormalized {
17
+ /** The ID of the object being referenced, which could be an 18-character ID or some other string identifier. */
18
+ id: string;
19
+ /** URL to the resource endpoint. */
20
+ url: string;
21
+ }
22
+ /**
23
+ * A reference to another record in the organization without including all of the information about that record.
24
+ *
25
+ * Keys:
26
+ * (none)
27
+ */
28
+ export interface ReferenceRepresentation {
29
+ id: string;
30
+ url: string;
31
+ }
@@ -0,0 +1,43 @@
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 = "6258b354c4a672a25f319b56e2444396";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: RepositoryGroupSummaryRepresentation, existing: RepositoryGroupSummaryRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): RepositoryGroupSummaryRepresentationNormalized;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: RepositoryGroupSummaryRepresentationNormalized, incoming: RepositoryGroupSummaryRepresentationNormalized): 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: RepositoryGroupSummaryRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * Detail description of a group entry.
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface RepositoryGroupSummaryRepresentationNormalized {
17
+ /** Domain of the directory entry. */
18
+ domain: string;
19
+ /** Email of the directory entry. */
20
+ email: string;
21
+ /** The type of group */
22
+ groupType: string;
23
+ /** Identifier of the directory entry. */
24
+ id: string;
25
+ /** The name of group */
26
+ name: string;
27
+ /** Type of directory entry. */
28
+ type: string;
29
+ }
30
+ /**
31
+ * Detail description of a group entry.
32
+ *
33
+ * Keys:
34
+ * (none)
35
+ */
36
+ export interface RepositoryGroupSummaryRepresentation {
37
+ domain: string;
38
+ email: string;
39
+ groupType: string;
40
+ id: string;
41
+ name: string;
42
+ type: string;
43
+ }
@@ -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 = "b95277d84efb4e17fd50b8682527adaf";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: ReputationLevelRepresentation, existing: ReputationLevelRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ReputationLevelRepresentationNormalized;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: ReputationLevelRepresentationNormalized, incoming: ReputationLevelRepresentationNormalized): 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: ReputationLevelRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * Reputation level for a network member or network.
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface ReputationLevelRepresentationNormalized {
17
+ /** The reputation level image URL. */
18
+ levelImageUrl: string;
19
+ /** The name of the reputation level. */
20
+ levelName: string;
21
+ /** The reputation level number is the numerical rank of the reputation level, starting with 1 for the lowest number of points and increasing by reputation point ranges defined by the administrator. */
22
+ levelNumber: number;
23
+ }
24
+ /**
25
+ * Reputation level for a network member or network.
26
+ *
27
+ * Keys:
28
+ * (none)
29
+ */
30
+ export interface ReputationLevelRepresentation {
31
+ levelImageUrl: string;
32
+ levelName: string;
33
+ levelNumber: number;
34
+ }
@@ -0,0 +1,35 @@
1
+ import { ReputationLevelRepresentation as ReputationLevelRepresentation_ReputationLevelRepresentation } from './ReputationLevelRepresentation';
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 = "f176d65dfc0ee669db9c0f1a1d25d53b";
4
+ export declare function validate(obj: any, path?: string): TypeError | null;
5
+ export declare const RepresentationType: string;
6
+ export declare function normalize(input: ReputationRepresentation, existing: ReputationRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ReputationRepresentationNormalized;
7
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
8
+ export declare function equals(existing: ReputationRepresentationNormalized, incoming: ReputationRepresentationNormalized): 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: ReputationRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
+ /**
12
+ * The network member's reputation.
13
+ *
14
+ * Keys:
15
+ * (none)
16
+ */
17
+ export interface ReputationRepresentationNormalized {
18
+ /** Reputation Level. */
19
+ reputationLevel: ReputationLevelRepresentation_ReputationLevelRepresentation;
20
+ /** The reputation points of a network member earned from events and actions performed in the community. */
21
+ reputationPoints: number;
22
+ /** An endpoint URL that can be used to access a network member's reputation points. */
23
+ url: string;
24
+ }
25
+ /**
26
+ * The network member's reputation.
27
+ *
28
+ * Keys:
29
+ * (none)
30
+ */
31
+ export interface ReputationRepresentation {
32
+ reputationLevel: ReputationLevelRepresentation_ReputationLevelRepresentation;
33
+ reputationPoints: number;
34
+ url: string;
35
+ }
@@ -0,0 +1,35 @@
1
+ import { TopicRepresentation as TopicRepresentation_TopicRepresentation } from './TopicRepresentation';
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 = "c049f45670ae38f19bfc0c1ee3406cb7";
4
+ export declare function validate(obj: any, path?: string): TypeError | null;
5
+ export declare const RepresentationType: string;
6
+ export declare function normalize(input: TopicCollectionRepresentation, existing: TopicCollectionRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): TopicCollectionRepresentationNormalized;
7
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
8
+ export declare function equals(existing: TopicCollectionRepresentationNormalized, incoming: TopicCollectionRepresentationNormalized): 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: TopicCollectionRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
+ /**
12
+ * Used to return a list of topics.
13
+ *
14
+ * Keys:
15
+ * (none)
16
+ */
17
+ export interface TopicCollectionRepresentationNormalized {
18
+ /** URL to the current page of topics. */
19
+ currentPageUrl: string | null;
20
+ /** URL to the next page of topics. */
21
+ nextPageUrl: string | null;
22
+ /** List of topics. */
23
+ topics: Array<TopicRepresentation_TopicRepresentation | null>;
24
+ }
25
+ /**
26
+ * Used to return a list of topics.
27
+ *
28
+ * Keys:
29
+ * (none)
30
+ */
31
+ export interface TopicCollectionRepresentation {
32
+ currentPageUrl: string | null;
33
+ nextPageUrl: string | null;
34
+ topics: Array<TopicRepresentation_TopicRepresentation | null>;
35
+ }
@@ -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 = "2ec7dbb6937db8bdecf67aaf4acfef8a";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: TopicImagesRepresentation, existing: TopicImagesRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): TopicImagesRepresentationNormalized;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: TopicImagesRepresentationNormalized, incoming: TopicImagesRepresentationNormalized): 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: TopicImagesRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * Topic Images associated with a Topic
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface TopicImagesRepresentationNormalized {
17
+ /** URL to the Topic Cover Image. */
18
+ coverImageUrl: string;
19
+ /** URL to the Topic Featured Image. */
20
+ featuredImageUrl: string;
21
+ }
22
+ /**
23
+ * Topic Images associated with a Topic
24
+ *
25
+ * Keys:
26
+ * (none)
27
+ */
28
+ export interface TopicImagesRepresentation {
29
+ coverImageUrl: string;
30
+ featuredImageUrl: string;
31
+ }
@@ -0,0 +1,53 @@
1
+ import { TopicImagesRepresentation as TopicImagesRepresentation_TopicImagesRepresentation } from './TopicImagesRepresentation';
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 = "91f896632ce2d1bea235d203c1bdcf26";
4
+ export declare function validate(obj: any, path?: string): TypeError | null;
5
+ export declare const RepresentationType: string;
6
+ export declare function normalize(input: TopicRepresentation, existing: TopicRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): TopicRepresentationNormalized;
7
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
8
+ export declare function equals(existing: TopicRepresentationNormalized, incoming: TopicRepresentationNormalized): 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: TopicRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
+ /**
12
+ * A Chatter topic, either hashtag (v66.0 and earlier) or new topic (v66.0 and later).
13
+ *
14
+ * Keys:
15
+ * (none)
16
+ */
17
+ export interface TopicRepresentationNormalized {
18
+ /** ISO8601 date string, for example, 2011-02-25T18:24:31.000Z. */
19
+ createdDate: string;
20
+ /** Description of the topic. */
21
+ description: string;
22
+ /** 18-character ID of the topic. */
23
+ id: string;
24
+ /** Topic images for the topic. */
25
+ images: TopicImagesRepresentation_TopicImagesRepresentation;
26
+ /** if Topic is currently being deleted. */
27
+ isBeingDeleted: boolean;
28
+ /** Name of the topic. */
29
+ name: string;
30
+ /** Non-localized name of the topic. */
31
+ nonLocalizedName: string;
32
+ /** Number of people talking about this topic over the last two months, based on factors such as topic additions and comments on posts with the topic. */
33
+ talkingAbout: number;
34
+ /** URL to the Connect resource for the topic. */
35
+ url: string;
36
+ }
37
+ /**
38
+ * A Chatter topic, either hashtag (v66.0 and earlier) or new topic (v66.0 and later).
39
+ *
40
+ * Keys:
41
+ * (none)
42
+ */
43
+ export interface TopicRepresentation {
44
+ createdDate: string;
45
+ description: string;
46
+ id: string;
47
+ images: TopicImagesRepresentation_TopicImagesRepresentation;
48
+ isBeingDeleted: boolean;
49
+ name: string;
50
+ nonLocalizedName: string;
51
+ talkingAbout: number;
52
+ url: string;
53
+ }
@@ -0,0 +1,87 @@
1
+ import { MotifRepresentation as MotifRepresentation_MotifRepresentation } from './MotifRepresentation';
2
+ import { ReferenceRepresentation as ReferenceRepresentation_ReferenceRepresentation } from './ReferenceRepresentation';
3
+ import { OutOfOfficeRepresentation as OutOfOfficeRepresentation_OutOfOfficeRepresentation } from './OutOfOfficeRepresentation';
4
+ import { PhotoRepresentation as PhotoRepresentation_PhotoRepresentation } from './PhotoRepresentation';
5
+ import { ReputationRepresentation as ReputationRepresentation_ReputationRepresentation } from './ReputationRepresentation';
6
+ 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';
7
+ export declare const VERSION = "a902c1345fece0b23591fc79dea8e8b0";
8
+ export declare function validate(obj: any, path?: string): TypeError | null;
9
+ export declare const RepresentationType: string;
10
+ export declare function normalize(input: UserSummaryRepresentation, existing: UserSummaryRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): UserSummaryRepresentationNormalized;
11
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
12
+ export declare function equals(existing: UserSummaryRepresentationNormalized, incoming: UserSummaryRepresentationNormalized): boolean;
13
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
14
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: UserSummaryRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
15
+ /**
16
+ * Basic details of a user in the organization.
17
+ *
18
+ * Keys:
19
+ * (none)
20
+ */
21
+ export interface UserSummaryRepresentationNormalized {
22
+ /** An additional label (if any) for the user, e.g. "Customer", "Partner", or "Acme Corporation". */
23
+ additionalLabel: string | null;
24
+ /** Community Nickname. */
25
+ communityNickname?: string;
26
+ /** Name of the company. */
27
+ companyName: string;
28
+ /** Display Name or Community Nickname. */
29
+ displayName: string;
30
+ /** User's first name. */
31
+ firstName: string;
32
+ /** 18-char ID of this record. */
33
+ id: string;
34
+ /** true if user is active, false otherwise. */
35
+ isActive: boolean;
36
+ /** true if the user is in the community used in the request. false otherwise. */
37
+ isInThisCommunity: boolean;
38
+ /** User's last name. */
39
+ lastName: string;
40
+ /** Small, medium, and large icons indicating the record's type. */
41
+ motif: MotifRepresentation_MotifRepresentation;
42
+ /** If the logged-in user is following this user, this contains information about the subscription, else returns null. */
43
+ mySubscription: ReferenceRepresentation_ReferenceRepresentation | null;
44
+ /** Locale-based concatenation of first and last names. */
45
+ name: string;
46
+ /** An additional label (if any) for the user for out of office status */
47
+ outOfOffice: OutOfOfficeRepresentation_OutOfOfficeRepresentation;
48
+ /** Information about the user's photo. */
49
+ photo: PhotoRepresentation_PhotoRepresentation;
50
+ /** The user's reputation in the community, which is determined by the number of points they earn from events and actions performed in the community. */
51
+ reputation: ReputationRepresentation_ReputationRepresentation | null;
52
+ /** Title of the user. */
53
+ title: string | null;
54
+ /** A fixed type name for this object that can be checked to determine the shape of a payload. */
55
+ type: string | null;
56
+ /** URL to the Connect resource for this object. */
57
+ url: string;
58
+ /** Type of user. Valid values are: ChatterGuest—User is a Chatter customer in an external group; Guest—Unauthenticated users; Internal—User is a standard organization member Portal—User is a Customer Portal User, a communities user, and so on; System—User is Chatter Expert or a system user. */
59
+ userType: string;
60
+ }
61
+ /**
62
+ * Basic details of a user in the organization.
63
+ *
64
+ * Keys:
65
+ * (none)
66
+ */
67
+ export interface UserSummaryRepresentation {
68
+ additionalLabel: string | null;
69
+ communityNickname?: string;
70
+ companyName: string;
71
+ displayName: string;
72
+ firstName: string;
73
+ id: string;
74
+ isActive: boolean;
75
+ isInThisCommunity: boolean;
76
+ lastName: string;
77
+ motif: MotifRepresentation_MotifRepresentation;
78
+ mySubscription: ReferenceRepresentation_ReferenceRepresentation | null;
79
+ name: string;
80
+ outOfOffice: OutOfOfficeRepresentation_OutOfOfficeRepresentation;
81
+ photo: PhotoRepresentation_PhotoRepresentation;
82
+ reputation: ReputationRepresentation_ReputationRepresentation | null;
83
+ title: string | null;
84
+ type: string | null;
85
+ url: string;
86
+ userType: string;
87
+ }
@@ -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-files",
3
+ "version": "0.1.0-dev1",
4
+ "description": "A collection of adapters used for Salesforce files, based on chatter-connect-api",
5
+ "license": "SEE LICENSE IN LICENSE.txt",
6
+ "main": "dist/es/es2018/platform-files.js",
7
+ "module": "dist/es/es2018/platform-files.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-files.js",
18
+ "require": "./dist/es/es2018/platform-files.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": "platformFilesApi"
29
+ },
30
+ "contributors": [
31
+ "tstokes@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-files",
39
+ "release:corejar": "yarn build && ../core-build/scripts/core.js --adapter=lds-adapters-platform-files",
40
+ "test:unit": "jest"
41
+ },
42
+ "dependencies": {
43
+ "@salesforce/lds-bindings": "^0.1.0-dev1"
44
+ },
45
+ "devDependencies": {
46
+ "@salesforce/lds-compiler-plugins": "^0.1.0-dev1"
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';