@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,62 @@
1
+ import { Adapter as $64$luvio_engine_Adapter, Snapshot as $64$luvio_engine_Snapshot, UnfulfilledSnapshot as $64$luvio_engine_UnfulfilledSnapshot, AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata } from '@luvio/engine';
2
+ export declare const ObjectPrototypeHasOwnProperty: (v: PropertyKey) => boolean;
3
+ declare const ObjectKeys: {
4
+ (o: object): string[];
5
+ (o: {}): string[];
6
+ }, ObjectCreate: {
7
+ (o: object | null): any;
8
+ (o: object | null, properties: PropertyDescriptorMap & ThisType<any>): any;
9
+ };
10
+ export { ObjectCreate, ObjectKeys };
11
+ export declare const ArrayIsArray: (arg: any) => arg is any[];
12
+ export declare const ArrayPrototypePush: (...items: any[]) => number;
13
+ export interface AdapterValidationConfig {
14
+ displayName: string;
15
+ parameters: {
16
+ required: string[];
17
+ optional: string[];
18
+ unsupported?: string[];
19
+ };
20
+ }
21
+ /**
22
+ * Validates an adapter config is well-formed.
23
+ * @param config The config to validate.
24
+ * @param adapter The adapter validation configuration.
25
+ * @param oneOf The keys the config must contain at least one of.
26
+ * @throws A TypeError if config doesn't satisfy the adapter's config validation.
27
+ */
28
+ export declare function validateConfig<T>(config: Untrusted<T>, adapter: AdapterValidationConfig, oneOf?: string[]): void;
29
+ export declare function untrustedIsObject<Base>(untrusted: unknown): untrusted is Untrusted<Base>;
30
+ export type UncoercedConfiguration<Base, Options extends {
31
+ [key in keyof Base]?: any;
32
+ }> = {
33
+ [Key in keyof Base]?: Base[Key] | Options[Key];
34
+ };
35
+ export type Untrusted<Base> = Partial<Base>;
36
+ export declare function areRequiredParametersPresent<T>(config: any, configPropertyNames: AdapterValidationConfig): config is T;
37
+ export declare function refreshable<C, D, R>(adapter: $64$luvio_engine_Adapter<C, D>, resolve: (config: unknown) => Promise<$64$luvio_engine_Snapshot<R>>): $64$luvio_engine_Adapter<C, D>;
38
+ export declare const SNAPSHOT_STATE_FULFILLED = "Fulfilled";
39
+ export declare const SNAPSHOT_STATE_UNFULFILLED = "Unfulfilled";
40
+ export declare const snapshotRefreshOptions: {
41
+ overrides: {
42
+ headers: {
43
+ 'Cache-Control': string;
44
+ };
45
+ };
46
+ };
47
+ /**
48
+ * A deterministic JSON stringify implementation. Heavily adapted from https://github.com/epoberezkin/fast-json-stable-stringify.
49
+ * This is needed because insertion order for JSON.stringify(object) affects output:
50
+ * JSON.stringify({a: 1, b: 2})
51
+ * "{"a":1,"b":2}"
52
+ * JSON.stringify({b: 2, a: 1})
53
+ * "{"b":2,"a":1}"
54
+ * @param data Data to be JSON-stringified.
55
+ * @returns JSON.stringified value with consistent ordering of keys.
56
+ */
57
+ export declare function stableJSONStringify(node: any): string | undefined;
58
+ export declare function getFetchResponseStatusText(status: number): string;
59
+ export declare function isUnfulfilledSnapshot<T, U>(snapshot: $64$luvio_engine_Snapshot<T, U>): snapshot is $64$luvio_engine_UnfulfilledSnapshot<T, U>;
60
+ export declare function generateParamConfigMetadata(name: string, required: boolean, resourceType: $64$luvio_engine_AdapterConfigMetadata['resourceType'], typeCheckShape: $64$luvio_engine_AdapterConfigMetadata['typeCheckShape'], isArrayShape?: boolean, coerceFn?: (v: unknown) => unknown): $64$luvio_engine_AdapterConfigMetadata;
61
+ export declare function buildAdapterValidationConfig(displayName: string, paramsMeta: $64$luvio_engine_AdapterConfigMetadata[]): AdapterValidationConfig;
62
+ export declare const keyPrefix = "files";
@@ -0,0 +1,34 @@
1
+ import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
2
+ import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig } from './adapter-utils';
3
+ import { ResourceRequestConfig as resources_postConnectFilesUsersByUserId_ResourceRequestConfig } from '../resources/postConnectFilesUsersByUserId';
4
+ import { FileDetailRepresentation as types_FileDetailRepresentation_FileDetailRepresentation } from '../types/FileDetailRepresentation';
5
+ export declare const adapterName = "createContentDocFromContentBody";
6
+ export declare const createContentDocFromContentBody_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
7
+ export declare const createContentDocFromContentBody_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
8
+ export interface CreateContentDocFromContentBodyConfig {
9
+ userId: string;
10
+ contentBodyId: string;
11
+ contentModifiedDate?: string;
12
+ desc?: string;
13
+ fieldName?: string;
14
+ fieldValue?: string;
15
+ firstPublishLocationId?: string;
16
+ includeExternalFilePermissionsInfo?: boolean;
17
+ isInMyFileSync?: boolean;
18
+ isMajorVersion?: boolean;
19
+ networkId: string;
20
+ parentFolderId?: string;
21
+ pathOnClient: string;
22
+ repositoryFileId?: string;
23
+ repositoryFileUri?: string;
24
+ repositoryId?: string;
25
+ reuseReference?: boolean;
26
+ sharingOption?: string;
27
+ sharingPrivacy?: string;
28
+ title: string;
29
+ }
30
+ export declare const createResourceParams: (config: CreateContentDocFromContentBodyConfig) => resources_postConnectFilesUsersByUserId_ResourceRequestConfig;
31
+ export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<CreateContentDocFromContentBodyConfig>): adapter$45$utils_Untrusted<CreateContentDocFromContentBodyConfig>;
32
+ export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): CreateContentDocFromContentBodyConfig | null;
33
+ export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: CreateContentDocFromContentBodyConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<import("@luvio/engine").FulfilledSnapshot<types_FileDetailRepresentation_FileDetailRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_FileDetailRepresentation_FileDetailRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_FileDetailRepresentation_FileDetailRepresentation, any>>;
34
+ export declare const createContentDocFromContentBodyAdapterFactory: $64$luvio_engine_AdapterFactory<CreateContentDocFromContentBodyConfig, types_FileDetailRepresentation_FileDetailRepresentation>;
@@ -0,0 +1,31 @@
1
+ import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Fragment as $64$luvio_engine_Fragment, Snapshot as $64$luvio_engine_Snapshot, FetchResponse as $64$luvio_engine_FetchResponse, ErrorResponse as $64$luvio_engine_ErrorResponse, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, CoercedAdapterRequestContext as $64$luvio_engine_CoercedAdapterRequestContext, StoreLookup as $64$luvio_engine_StoreLookup, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
2
+ import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig } from './adapter-utils';
3
+ import { ResourceRequestConfig as resources_getConnectFilesPreviewsByFileIdAndPreviewFormat_ResourceRequestConfig } from '../resources/getConnectFilesPreviewsByFileIdAndPreviewFormat';
4
+ import { FilePreviewRepresentation as types_FilePreviewRepresentation_FilePreviewRepresentation } from '../types/FilePreviewRepresentation';
5
+ export declare const adapterName = "getFilePreview";
6
+ export declare const getFilePreview_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
7
+ export declare const getFilePreview_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
8
+ export interface GetFilePreviewConfig {
9
+ fileId: string;
10
+ previewFormat: string;
11
+ endPageNumber?: number;
12
+ startPageNumber?: number;
13
+ versionNumber?: number;
14
+ }
15
+ export declare const createResourceParams: (config: GetFilePreviewConfig) => resources_getConnectFilesPreviewsByFileIdAndPreviewFormat_ResourceRequestConfig;
16
+ export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetFilePreviewConfig): string;
17
+ export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetFilePreviewConfig): $64$luvio_engine_NormalizedKeyMetadata;
18
+ export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetFilePreviewConfig>): adapter$45$utils_Untrusted<GetFilePreviewConfig>;
19
+ export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): GetFilePreviewConfig | null;
20
+ export declare function adapterFragment(luvio: $64$luvio_engine_Luvio, config: GetFilePreviewConfig): $64$luvio_engine_Fragment;
21
+ export declare function buildCachedSnapshot(luvio: $64$luvio_engine_Luvio, config: GetFilePreviewConfig): $64$luvio_engine_Snapshot<types_FilePreviewRepresentation_FilePreviewRepresentation, any>;
22
+ export declare function onFetchResponseSuccess(luvio: $64$luvio_engine_Luvio, config: GetFilePreviewConfig, resourceParams: resources_getConnectFilesPreviewsByFileIdAndPreviewFormat_ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_FilePreviewRepresentation_FilePreviewRepresentation>): Promise<import("@luvio/engine").FulfilledSnapshot<types_FilePreviewRepresentation_FilePreviewRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_FilePreviewRepresentation_FilePreviewRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_FilePreviewRepresentation_FilePreviewRepresentation, any>>;
23
+ export declare function onFetchResponseError(luvio: $64$luvio_engine_Luvio, config: GetFilePreviewConfig, resourceParams: resources_getConnectFilesPreviewsByFileIdAndPreviewFormat_ResourceRequestConfig, response: $64$luvio_engine_ErrorResponse): Promise<import("@luvio/engine").ErrorSnapshot>;
24
+ export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: GetFilePreviewConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<$64$luvio_engine_Snapshot<types_FilePreviewRepresentation_FilePreviewRepresentation, any>>;
25
+ export type BuildSnapshotContext = {
26
+ luvio: $64$luvio_engine_Luvio;
27
+ config: GetFilePreviewConfig;
28
+ };
29
+ export declare function buildNetworkSnapshotCachePolicy(context: BuildSnapshotContext, coercedAdapterRequestContext: $64$luvio_engine_CoercedAdapterRequestContext): Promise<$64$luvio_engine_Snapshot<types_FilePreviewRepresentation_FilePreviewRepresentation, any>>;
30
+ export declare function buildCachedSnapshotCachePolicy(context: BuildSnapshotContext, storeLookup: $64$luvio_engine_StoreLookup<types_FilePreviewRepresentation_FilePreviewRepresentation>): $64$luvio_engine_Snapshot<types_FilePreviewRepresentation_FilePreviewRepresentation, any>;
31
+ export declare const getFilePreviewAdapterFactory: $64$luvio_engine_AdapterFactory<GetFilePreviewConfig, types_FilePreviewRepresentation_FilePreviewRepresentation>;
@@ -0,0 +1,32 @@
1
+ import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Fragment as $64$luvio_engine_Fragment, Snapshot as $64$luvio_engine_Snapshot, FetchResponse as $64$luvio_engine_FetchResponse, ErrorResponse as $64$luvio_engine_ErrorResponse, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, CoercedAdapterRequestContext as $64$luvio_engine_CoercedAdapterRequestContext, StoreLookup as $64$luvio_engine_StoreLookup, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
2
+ import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig } from './adapter-utils';
3
+ import { ResourceRequestConfig as resources_getConnectCommunitiesFilesPreviewsByCommunityIdAndFileIdAndPreviewFormat_ResourceRequestConfig } from '../resources/getConnectCommunitiesFilesPreviewsByCommunityIdAndFileIdAndPreviewFormat';
4
+ import { FilePreviewRepresentation as types_FilePreviewRepresentation_FilePreviewRepresentation } from '../types/FilePreviewRepresentation';
5
+ export declare const adapterName = "getFilePreviewCommunity";
6
+ export declare const getFilePreviewCommunity_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
7
+ export declare const getFilePreviewCommunity_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
8
+ export interface GetFilePreviewCommunityConfig {
9
+ communityId: string;
10
+ fileId: string;
11
+ previewFormat: string;
12
+ endPageNumber?: number;
13
+ startPageNumber?: number;
14
+ versionNumber?: number;
15
+ }
16
+ export declare const createResourceParams: (config: GetFilePreviewCommunityConfig) => resources_getConnectCommunitiesFilesPreviewsByCommunityIdAndFileIdAndPreviewFormat_ResourceRequestConfig;
17
+ export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetFilePreviewCommunityConfig): string;
18
+ export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetFilePreviewCommunityConfig): $64$luvio_engine_NormalizedKeyMetadata;
19
+ export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetFilePreviewCommunityConfig>): adapter$45$utils_Untrusted<GetFilePreviewCommunityConfig>;
20
+ export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): GetFilePreviewCommunityConfig | null;
21
+ export declare function adapterFragment(luvio: $64$luvio_engine_Luvio, config: GetFilePreviewCommunityConfig): $64$luvio_engine_Fragment;
22
+ export declare function buildCachedSnapshot(luvio: $64$luvio_engine_Luvio, config: GetFilePreviewCommunityConfig): $64$luvio_engine_Snapshot<types_FilePreviewRepresentation_FilePreviewRepresentation, any>;
23
+ export declare function onFetchResponseSuccess(luvio: $64$luvio_engine_Luvio, config: GetFilePreviewCommunityConfig, resourceParams: resources_getConnectCommunitiesFilesPreviewsByCommunityIdAndFileIdAndPreviewFormat_ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_FilePreviewRepresentation_FilePreviewRepresentation>): Promise<import("@luvio/engine").FulfilledSnapshot<types_FilePreviewRepresentation_FilePreviewRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_FilePreviewRepresentation_FilePreviewRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_FilePreviewRepresentation_FilePreviewRepresentation, any>>;
24
+ export declare function onFetchResponseError(luvio: $64$luvio_engine_Luvio, config: GetFilePreviewCommunityConfig, resourceParams: resources_getConnectCommunitiesFilesPreviewsByCommunityIdAndFileIdAndPreviewFormat_ResourceRequestConfig, response: $64$luvio_engine_ErrorResponse): Promise<import("@luvio/engine").ErrorSnapshot>;
25
+ export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: GetFilePreviewCommunityConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<$64$luvio_engine_Snapshot<types_FilePreviewRepresentation_FilePreviewRepresentation, any>>;
26
+ export type BuildSnapshotContext = {
27
+ luvio: $64$luvio_engine_Luvio;
28
+ config: GetFilePreviewCommunityConfig;
29
+ };
30
+ export declare function buildNetworkSnapshotCachePolicy(context: BuildSnapshotContext, coercedAdapterRequestContext: $64$luvio_engine_CoercedAdapterRequestContext): Promise<$64$luvio_engine_Snapshot<types_FilePreviewRepresentation_FilePreviewRepresentation, any>>;
31
+ export declare function buildCachedSnapshotCachePolicy(context: BuildSnapshotContext, storeLookup: $64$luvio_engine_StoreLookup<types_FilePreviewRepresentation_FilePreviewRepresentation>): $64$luvio_engine_Snapshot<types_FilePreviewRepresentation_FilePreviewRepresentation, any>;
32
+ export declare const getFilePreviewCommunityAdapterFactory: $64$luvio_engine_AdapterFactory<GetFilePreviewCommunityConfig, types_FilePreviewRepresentation_FilePreviewRepresentation>;
@@ -0,0 +1,26 @@
1
+ import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Fragment as $64$luvio_engine_Fragment, Snapshot as $64$luvio_engine_Snapshot, FetchResponse as $64$luvio_engine_FetchResponse, ErrorResponse as $64$luvio_engine_ErrorResponse, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, CoercedAdapterRequestContext as $64$luvio_engine_CoercedAdapterRequestContext, StoreLookup as $64$luvio_engine_StoreLookup, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
2
+ import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig } from './adapter-utils';
3
+ import { ResourceRequestConfig as resources_getConnectFileUploadConfig_ResourceRequestConfig } from '../resources/getConnectFileUploadConfig';
4
+ import { FileUploadConfigRepresentation as types_FileUploadConfigRepresentation_FileUploadConfigRepresentation } from '../types/FileUploadConfigRepresentation';
5
+ export declare const adapterName = "getFileUploadConfig";
6
+ export declare const getFileUploadConfig_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
7
+ export declare const getFileUploadConfig_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
8
+ export interface GetFileUploadConfigConfig {
9
+ }
10
+ export declare const createResourceParams: (config: GetFileUploadConfigConfig) => resources_getConnectFileUploadConfig_ResourceRequestConfig;
11
+ export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetFileUploadConfigConfig): string;
12
+ export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetFileUploadConfigConfig): $64$luvio_engine_NormalizedKeyMetadata;
13
+ export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetFileUploadConfigConfig>): adapter$45$utils_Untrusted<GetFileUploadConfigConfig>;
14
+ export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): GetFileUploadConfigConfig | null;
15
+ export declare function adapterFragment(luvio: $64$luvio_engine_Luvio, config: GetFileUploadConfigConfig): $64$luvio_engine_Fragment;
16
+ export declare function buildCachedSnapshot(luvio: $64$luvio_engine_Luvio, config: GetFileUploadConfigConfig): $64$luvio_engine_Snapshot<types_FileUploadConfigRepresentation_FileUploadConfigRepresentation, any>;
17
+ export declare function onFetchResponseSuccess(luvio: $64$luvio_engine_Luvio, config: GetFileUploadConfigConfig, resourceParams: resources_getConnectFileUploadConfig_ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_FileUploadConfigRepresentation_FileUploadConfigRepresentation>): Promise<import("@luvio/engine").FulfilledSnapshot<types_FileUploadConfigRepresentation_FileUploadConfigRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_FileUploadConfigRepresentation_FileUploadConfigRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_FileUploadConfigRepresentation_FileUploadConfigRepresentation, any>>;
18
+ export declare function onFetchResponseError(luvio: $64$luvio_engine_Luvio, config: GetFileUploadConfigConfig, resourceParams: resources_getConnectFileUploadConfig_ResourceRequestConfig, response: $64$luvio_engine_ErrorResponse): Promise<import("@luvio/engine").ErrorSnapshot>;
19
+ export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: GetFileUploadConfigConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<$64$luvio_engine_Snapshot<types_FileUploadConfigRepresentation_FileUploadConfigRepresentation, any>>;
20
+ export type BuildSnapshotContext = {
21
+ luvio: $64$luvio_engine_Luvio;
22
+ config: GetFileUploadConfigConfig;
23
+ };
24
+ export declare function buildNetworkSnapshotCachePolicy(context: BuildSnapshotContext, coercedAdapterRequestContext: $64$luvio_engine_CoercedAdapterRequestContext): Promise<$64$luvio_engine_Snapshot<types_FileUploadConfigRepresentation_FileUploadConfigRepresentation, any>>;
25
+ export declare function buildCachedSnapshotCachePolicy(context: BuildSnapshotContext, storeLookup: $64$luvio_engine_StoreLookup<types_FileUploadConfigRepresentation_FileUploadConfigRepresentation>): $64$luvio_engine_Snapshot<types_FileUploadConfigRepresentation_FileUploadConfigRepresentation, any>;
26
+ export declare const getFileUploadConfigAdapterFactory: $64$luvio_engine_AdapterFactory<GetFileUploadConfigConfig, types_FileUploadConfigRepresentation_FileUploadConfigRepresentation>;
@@ -0,0 +1,4 @@
1
+ export { getFileUploadConfigAdapterFactory } from '../adapters/getFileUploadConfig';
2
+ export { createContentDocFromContentBodyAdapterFactory } from '../adapters/createContentDocFromContentBody';
3
+ export { getFilePreviewCommunityAdapterFactory } from '../adapters/getFilePreviewCommunity';
4
+ export { getFilePreviewAdapterFactory } from '../adapters/getFilePreview';
@@ -0,0 +1,8 @@
1
+ declare let createContentDocFromContentBody: any;
2
+ declare let getFilePreview: any;
3
+ declare let getFilePreviewCommunity: any;
4
+ declare let getFileUploadConfig: any;
5
+ declare let getFilePreview_imperative: any;
6
+ declare let getFilePreviewCommunity_imperative: any;
7
+ declare let getFileUploadConfig_imperative: any;
8
+ export { createContentDocFromContentBody, getFilePreview, getFilePreviewCommunity, getFileUploadConfig, getFilePreview_imperative, getFilePreviewCommunity_imperative, getFileUploadConfig_imperative, };
@@ -0,0 +1,22 @@
1
+ import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, FetchResponse as $64$luvio_engine_FetchResponse, SnapshotRefresh as $64$luvio_engine_SnapshotRefresh, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ErrorResponse as $64$luvio_engine_ErrorResponse, ErrorSnapshot as $64$luvio_engine_ErrorSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
2
+ import { FilePreviewRepresentation as types_FilePreviewRepresentation_FilePreviewRepresentation } from '../types/FilePreviewRepresentation';
3
+ export interface ResourceRequestConfig {
4
+ urlParams: {
5
+ communityId: string;
6
+ fileId: string;
7
+ previewFormat: string;
8
+ };
9
+ queryParams: {
10
+ endPageNumber?: number;
11
+ startPageNumber?: number;
12
+ versionNumber?: number;
13
+ };
14
+ }
15
+ export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
16
+ export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
17
+ export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
18
+ export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_FilePreviewRepresentation_FilePreviewRepresentation): void;
19
+ export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_FilePreviewRepresentation_FilePreviewRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_FilePreviewRepresentation_FilePreviewRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_FilePreviewRepresentation_FilePreviewRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_FilePreviewRepresentation_FilePreviewRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_FilePreviewRepresentation_FilePreviewRepresentation, any>;
20
+ export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_FilePreviewRepresentation_FilePreviewRepresentation>): $64$luvio_engine_ErrorSnapshot;
21
+ export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
22
+ export default createResourceRequest;
@@ -0,0 +1,12 @@
1
+ import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, FetchResponse as $64$luvio_engine_FetchResponse, SnapshotRefresh as $64$luvio_engine_SnapshotRefresh, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ErrorResponse as $64$luvio_engine_ErrorResponse, ErrorSnapshot as $64$luvio_engine_ErrorSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
2
+ import { FileUploadConfigRepresentation as types_FileUploadConfigRepresentation_FileUploadConfigRepresentation } from '../types/FileUploadConfigRepresentation';
3
+ export interface ResourceRequestConfig {
4
+ }
5
+ export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
6
+ export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
7
+ export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
8
+ export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_FileUploadConfigRepresentation_FileUploadConfigRepresentation): void;
9
+ export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_FileUploadConfigRepresentation_FileUploadConfigRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_FileUploadConfigRepresentation_FileUploadConfigRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_FileUploadConfigRepresentation_FileUploadConfigRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_FileUploadConfigRepresentation_FileUploadConfigRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_FileUploadConfigRepresentation_FileUploadConfigRepresentation, any>;
10
+ export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_FileUploadConfigRepresentation_FileUploadConfigRepresentation>): $64$luvio_engine_ErrorSnapshot;
11
+ export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
12
+ export default createResourceRequest;
@@ -0,0 +1,21 @@
1
+ import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, FetchResponse as $64$luvio_engine_FetchResponse, SnapshotRefresh as $64$luvio_engine_SnapshotRefresh, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ErrorResponse as $64$luvio_engine_ErrorResponse, ErrorSnapshot as $64$luvio_engine_ErrorSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
2
+ import { FilePreviewRepresentation as types_FilePreviewRepresentation_FilePreviewRepresentation } from '../types/FilePreviewRepresentation';
3
+ export interface ResourceRequestConfig {
4
+ urlParams: {
5
+ fileId: string;
6
+ previewFormat: string;
7
+ };
8
+ queryParams: {
9
+ endPageNumber?: number;
10
+ startPageNumber?: number;
11
+ versionNumber?: number;
12
+ };
13
+ }
14
+ export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
15
+ export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
16
+ export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
17
+ export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_FilePreviewRepresentation_FilePreviewRepresentation): void;
18
+ export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_FilePreviewRepresentation_FilePreviewRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_FilePreviewRepresentation_FilePreviewRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_FilePreviewRepresentation_FilePreviewRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_FilePreviewRepresentation_FilePreviewRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_FilePreviewRepresentation_FilePreviewRepresentation, any>;
19
+ export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_FilePreviewRepresentation_FilePreviewRepresentation>): $64$luvio_engine_ErrorSnapshot;
20
+ export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
21
+ export default createResourceRequest;
@@ -0,0 +1,33 @@
1
+ import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, FetchResponse as $64$luvio_engine_FetchResponse, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
2
+ import { FileDetailRepresentation as types_FileDetailRepresentation_FileDetailRepresentation } from '../types/FileDetailRepresentation';
3
+ export interface ResourceRequestConfig {
4
+ urlParams: {
5
+ userId: string;
6
+ };
7
+ body: {
8
+ contentBodyId: string;
9
+ contentModifiedDate?: string;
10
+ desc?: string;
11
+ fieldName?: string;
12
+ fieldValue?: string;
13
+ firstPublishLocationId?: string;
14
+ includeExternalFilePermissionsInfo?: boolean;
15
+ isInMyFileSync?: boolean;
16
+ isMajorVersion?: boolean;
17
+ networkId: string;
18
+ parentFolderId?: string;
19
+ pathOnClient: string;
20
+ repositoryFileId?: string;
21
+ repositoryFileUri?: string;
22
+ repositoryId?: string;
23
+ reuseReference?: boolean;
24
+ sharingOption?: string;
25
+ sharingPrivacy?: string;
26
+ title: string;
27
+ };
28
+ }
29
+ export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
30
+ export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_FileDetailRepresentation_FileDetailRepresentation): void;
31
+ export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_FileDetailRepresentation_FileDetailRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_FileDetailRepresentation_FileDetailRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_FileDetailRepresentation_FileDetailRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_FileDetailRepresentation_FileDetailRepresentation, any>;
32
+ export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
33
+ export default createResourceRequest;
@@ -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 = "24b4f4dd2754010fe3991590a16b4503";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: ContentHubPermissionTypeRepresentation, existing: ContentHubPermissionTypeRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ContentHubPermissionTypeRepresentationNormalized;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: ContentHubPermissionTypeRepresentationNormalized, incoming: ContentHubPermissionTypeRepresentationNormalized): 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: ContentHubPermissionTypeRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * Description of a permission type.
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface ContentHubPermissionTypeRepresentationNormalized {
17
+ /** The internal id of the permission type in the external repository. */
18
+ id: string;
19
+ /** The label as returned by the external repository. */
20
+ label: string;
21
+ }
22
+ /**
23
+ * Description of a permission type.
24
+ *
25
+ * Keys:
26
+ * (none)
27
+ */
28
+ export interface ContentHubPermissionTypeRepresentation {
29
+ id: string;
30
+ label: string;
31
+ }
@@ -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 = "646fd171ffd555ff1aa0bca29f4112d0";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: ContentHubProviderTypeRepresentation, existing: ContentHubProviderTypeRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ContentHubProviderTypeRepresentationNormalized;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: ContentHubProviderTypeRepresentationNormalized, incoming: ContentHubProviderTypeRepresentationNormalized): 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: ContentHubProviderTypeRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * Description of the type of a Content Hub repository.
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface ContentHubProviderTypeRepresentationNormalized {
17
+ /** The provider type localized label. */
18
+ label: string;
19
+ /** One of: ContentHubBox, ContentHubGDrive, ContentHubSharepointOffice365, ContentHubSharepoint, ContentHubSharepointOneDrive, SimpleURL. */
20
+ type: string;
21
+ }
22
+ /**
23
+ * Description of the type of a Content Hub repository.
24
+ *
25
+ * Keys:
26
+ * (none)
27
+ */
28
+ export interface ContentHubProviderTypeRepresentation {
29
+ label: string;
30
+ type: 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 = "1544350e7c5b999113ef125ff9c46f64";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: ContentHubRepositoryAuthenticationRepresentation, existing: ContentHubRepositoryAuthenticationRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ContentHubRepositoryAuthenticationRepresentationNormalized;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: ContentHubRepositoryAuthenticationRepresentationNormalized, incoming: ContentHubRepositoryAuthenticationRepresentationNormalized): 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: ContentHubRepositoryAuthenticationRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * Authentication information related to a repository.
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface ContentHubRepositoryAuthenticationRepresentationNormalized {
17
+ /** - When authentication protocol is OAuth, the URL to use to start the OAuth flow- When authentication protocol is username/password, URL to the 'Authentication Settings for External Systems' page- When authentication protocol is anonymous, URL is null. */
18
+ authFlowUrl: string;
19
+ /** Represents the authentication protocol used by the External Data Source. */
20
+ authProtocol: string;
21
+ /** True only if the user has credentials created. If the XDS is configured using 'Named Principal' identity type, true if the Admin has authenticated using his/her credentials. False otherwise. */
22
+ userHasAuthSettings: boolean;
23
+ }
24
+ /**
25
+ * Authentication information related to a repository.
26
+ *
27
+ * Keys:
28
+ * (none)
29
+ */
30
+ export interface ContentHubRepositoryAuthenticationRepresentation {
31
+ authFlowUrl: string;
32
+ authProtocol: string;
33
+ userHasAuthSettings: boolean;
34
+ }
@@ -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 = "fa4f55b364524f360d9f3b8b10aaf137";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: ContentHubRepositoryFeaturesRepresentation, existing: ContentHubRepositoryFeaturesRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ContentHubRepositoryFeaturesRepresentationNormalized;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: ContentHubRepositoryFeaturesRepresentationNormalized, incoming: ContentHubRepositoryFeaturesRepresentationNormalized): 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: ContentHubRepositoryFeaturesRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * Description of the features of a Content Hub repository.
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface ContentHubRepositoryFeaturesRepresentationNormalized {
17
+ /** Whether or not the Content Hub repository's folder hierarchy can be browsed. */
18
+ canBrowse: boolean;
19
+ /** Whether or not the Content Hub repository can be searched. */
20
+ canSearch: boolean;
21
+ }
22
+ /**
23
+ * Description of the features of a Content Hub repository.
24
+ *
25
+ * Keys:
26
+ * (none)
27
+ */
28
+ export interface ContentHubRepositoryFeaturesRepresentation {
29
+ canBrowse: boolean;
30
+ canSearch: boolean;
31
+ }
@@ -0,0 +1,76 @@
1
+ import { ContentHubRepositoryAuthenticationRepresentation as ContentHubRepositoryAuthenticationRepresentation_ContentHubRepositoryAuthenticationRepresentation } from './ContentHubRepositoryAuthenticationRepresentation';
2
+ import { ContentHubRepositoryFeaturesRepresentation as ContentHubRepositoryFeaturesRepresentation_ContentHubRepositoryFeaturesRepresentation } from './ContentHubRepositoryFeaturesRepresentation';
3
+ import { ReferenceRepresentation as ReferenceRepresentation_ReferenceRepresentation } from './ReferenceRepresentation';
4
+ import { ContentHubProviderTypeRepresentation as ContentHubProviderTypeRepresentation_ContentHubProviderTypeRepresentation } from './ContentHubProviderTypeRepresentation';
5
+ 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';
6
+ export declare const VERSION = "23ecddf405537e254437ac17ca260211";
7
+ export declare function validate(obj: any, path?: string): TypeError | null;
8
+ export declare const RepresentationType: string;
9
+ export declare function normalize(input: ContentHubRepositoryRepresentation, existing: ContentHubRepositoryRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ContentHubRepositoryRepresentationNormalized;
10
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
11
+ export declare function equals(existing: ContentHubRepositoryRepresentationNormalized, incoming: ContentHubRepositoryRepresentationNormalized): boolean;
12
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
13
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: ContentHubRepositoryRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
14
+ /**
15
+ * Description of a Content Hub repository.
16
+ *
17
+ * Keys:
18
+ * (none)
19
+ */
20
+ export interface ContentHubRepositoryRepresentationNormalized {
21
+ /** An additional label (if any) for the user, e.g. "Customer", "Partner", or "Acme Corporation". */
22
+ additionalLabel: string | null;
23
+ /** The repository authentication information. */
24
+ authentication: ContentHubRepositoryAuthenticationRepresentation_ContentHubRepositoryAuthenticationRepresentation;
25
+ /** Community Nickname. */
26
+ communityNickname: string;
27
+ /** Name of the company. */
28
+ companyName: string;
29
+ /** Display Name or Community Nickname. */
30
+ displayName: string;
31
+ /** The repository features. */
32
+ features: ContentHubRepositoryFeaturesRepresentation_ContentHubRepositoryFeaturesRepresentation;
33
+ /** User's first name. */
34
+ firstName: string;
35
+ /** true if the user is in the community used in the request. false otherwise. */
36
+ isInThisCommunity: boolean;
37
+ /** The repository label. */
38
+ label: string;
39
+ /** User's last name. */
40
+ lastName: string;
41
+ mySubscription: ReferenceRepresentation_ReferenceRepresentation;
42
+ /** The repository name. */
43
+ name: string;
44
+ /** The repository provider type. */
45
+ providerType: ContentHubProviderTypeRepresentation_ContentHubProviderTypeRepresentation;
46
+ /** URL to the Connect resource for the list of items in the repository root folder. */
47
+ rootFolderItemsUrl: string;
48
+ /** Title of the user. */
49
+ title: string;
50
+ /** 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. */
51
+ userType: string;
52
+ }
53
+ /**
54
+ * Description of a Content Hub repository.
55
+ *
56
+ * Keys:
57
+ * (none)
58
+ */
59
+ export interface ContentHubRepositoryRepresentation {
60
+ additionalLabel: string | null;
61
+ authentication: ContentHubRepositoryAuthenticationRepresentation_ContentHubRepositoryAuthenticationRepresentation;
62
+ communityNickname: string;
63
+ companyName: string;
64
+ displayName: string;
65
+ features: ContentHubRepositoryFeaturesRepresentation_ContentHubRepositoryFeaturesRepresentation;
66
+ firstName: string;
67
+ isInThisCommunity: boolean;
68
+ label: string;
69
+ lastName: string;
70
+ mySubscription: ReferenceRepresentation_ReferenceRepresentation;
71
+ name: string;
72
+ providerType: ContentHubProviderTypeRepresentation_ContentHubProviderTypeRepresentation;
73
+ rootFolderItemsUrl: string;
74
+ title: string;
75
+ userType: string;
76
+ }
@@ -0,0 +1,42 @@
1
+ import { ContentHubPermissionTypeRepresentation as ContentHubPermissionTypeRepresentation_ContentHubPermissionTypeRepresentation } from './ContentHubPermissionTypeRepresentation';
2
+ import { RepositoryGroupSummaryRepresentation as RepositoryGroupSummaryRepresentation_RepositoryGroupSummaryRepresentation } from './RepositoryGroupSummaryRepresentation';
3
+ 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';
4
+ export declare const VERSION = "7bd621fa4165317ed863d0da2921b955";
5
+ export declare function validate(obj: any, path?: string): TypeError | null;
6
+ export declare const RepresentationType: string;
7
+ export declare function normalize(input: ExternalFilePermissionInformationRepresentation, existing: ExternalFilePermissionInformationRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ExternalFilePermissionInformationRepresentationNormalized;
8
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
9
+ export declare function equals(existing: ExternalFilePermissionInformationRepresentationNormalized, incoming: ExternalFilePermissionInformationRepresentationNormalized): boolean;
10
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
11
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: ExternalFilePermissionInformationRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
12
+ /**
13
+ * External file permissions related information
14
+ *
15
+ * Keys:
16
+ * (none)
17
+ */
18
+ export interface ExternalFilePermissionInformationRepresentationNormalized {
19
+ /** Available permissions types for the parent folder of the external file, null for non external files or includeExternalFilePermissionsInfo is false */
20
+ externalFilePermissionTypes: Array<ContentHubPermissionTypeRepresentation_ContentHubPermissionTypeRepresentation>;
21
+ /** Whether or not external file information retrieval has failed, if includeExternalFilePermissionsInfo is true, false otherwise */
22
+ externalFilePermissionsFailure: boolean;
23
+ /** Failure explanation, if includeExternalFilePermissionsInfo is true and an exception was thrown during the external file permissions information retrieval. Null otherwise */
24
+ externalFilePermissionsInfoFailureReason: string;
25
+ /** Current sharing status for the external file we’re creating a reference on, null for non external files or includeExternalFilePermissionsInfo is false */
26
+ externalFileSharingStatus: string;
27
+ /** Available groups such as “Everyone”/”Everyone in the domain” in the external repository, null for non external files or includeExternalFilePermissionsInfo is false */
28
+ repositoryPublicGroups: Array<RepositoryGroupSummaryRepresentation_RepositoryGroupSummaryRepresentation>;
29
+ }
30
+ /**
31
+ * External file permissions related information
32
+ *
33
+ * Keys:
34
+ * (none)
35
+ */
36
+ export interface ExternalFilePermissionInformationRepresentation {
37
+ externalFilePermissionTypes: Array<ContentHubPermissionTypeRepresentation_ContentHubPermissionTypeRepresentation>;
38
+ externalFilePermissionsFailure: boolean;
39
+ externalFilePermissionsInfoFailureReason: string;
40
+ externalFileSharingStatus: string;
41
+ repositoryPublicGroups: Array<RepositoryGroupSummaryRepresentation_RepositoryGroupSummaryRepresentation>;
42
+ }