@oddington/sdk 0.1.36 → 0.1.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +44 -0
- package/dist/browser.js +88 -2
- package/dist/index.js +2 -2
- package/dist/types/packages/sdk/src/public.d.ts +2 -2
- package/dist/types/packages/sdk/src/source.d.ts +19 -0
- package/dist/types/shared/connection-runtime.d.ts +19 -2
- package/dist/types/shared/repository-targets.d.ts +0 -5
- package/package.json +1 -1
|
@@ -12,7 +12,7 @@ export type { CapturedRecordTableInput, RecordField, RecordTableInput, RecordVal
|
|
|
12
12
|
export type { FileAddOptions } from '../../../shared/inbox-files.js';
|
|
13
13
|
export { AirtableOperationError } from '../../../shared/airtable-contract.js';
|
|
14
14
|
export type { AirtableField, AirtableTable, AirtableRecord, AirtableListInput, AirtableGetInput, AirtableCreateInput, AirtableUpdateInput, AirtableDeleteInput, AirtableReceipt, AirtableWriteResult, AirtableClient } from '../../../shared/airtable-contract.js';
|
|
15
|
-
export type { GmailRuntimeConnection, AirtableRuntimeConnection, DropboxRuntimeConnection, RuntimeConnection } from '../../../shared/connection-runtime.js';
|
|
15
|
+
export type { GmailRuntimeConnection, AirtableRuntimeConnection, DropboxRuntimeConnection, OutlookRuntimeConnection, SharePointRuntimeConnection, RuntimeConnection, RuntimeConnectionFor } from '../../../shared/connection-runtime.js';
|
|
16
16
|
export type { Connections } from '../../../shared/airtable-contract.js';
|
|
17
17
|
export declare const connections: import('../../../shared/airtable-contract.js').Connections;
|
|
18
18
|
export { DataOperationError } from '../../../shared/data-contract.js';
|
|
@@ -32,7 +32,7 @@ export declare const data: {
|
|
|
32
32
|
};
|
|
33
33
|
export { FileOperationError } from '../../../shared/files-contract.js';
|
|
34
34
|
export { source } from './source.js';
|
|
35
|
-
export type { SourceLocation, OsSourceLocation, GmailSourceLocation, DropboxSourceLocation } from './source.js';
|
|
35
|
+
export type { SourceLocation, OsSourceLocation, GmailSourceLocation, DropboxSourceLocation, OutlookSourceLocation, SharePointSourceLocation } from './source.js';
|
|
36
36
|
export { InboxOperationError } from '../../../shared/inbox-member-contract.js';
|
|
37
37
|
export type { InboxMember, InboxCurrent, InboxItem, AnswerableQuestion, QuestionSnapshot, ResponseConsequence, LinkedAskSnapshot, AskUpdate, DigestReadConfirmation, RecipientCandidate, RecipientAddition, ResponseAcceptance, InboxAnswerInput, InboxSearchInput } from '../../../shared/inbox-member-types.js';
|
|
38
38
|
export type { RecordSelectionResult } from '../../../shared/record-selection.js';
|
|
@@ -23,6 +23,23 @@ export type DropboxSourceLocation = {
|
|
|
23
23
|
path?: string;
|
|
24
24
|
url?: string;
|
|
25
25
|
};
|
|
26
|
+
export type OutlookSourceLocation = {
|
|
27
|
+
provider: 'outlook';
|
|
28
|
+
connection: `outlook/${string}`;
|
|
29
|
+
message: string;
|
|
30
|
+
attachment?: string;
|
|
31
|
+
url?: string;
|
|
32
|
+
};
|
|
33
|
+
export type SharePointSourceLocation = {
|
|
34
|
+
provider: 'sharepoint';
|
|
35
|
+
connection: `sharepoint/${string}`;
|
|
36
|
+
site: string;
|
|
37
|
+
drive: string;
|
|
38
|
+
item: string;
|
|
39
|
+
version?: string;
|
|
40
|
+
path?: string;
|
|
41
|
+
url?: string;
|
|
42
|
+
};
|
|
26
43
|
/** Pure authoring conveniences; ordinary Data validation and publication own writes. */
|
|
27
44
|
export declare const source: {
|
|
28
45
|
file(input: {
|
|
@@ -46,6 +63,8 @@ export declare const source: {
|
|
|
46
63
|
os(file: Pick<File, 'id'>): OsSourceLocation;
|
|
47
64
|
gmail(input: Omit<GmailSourceLocation, 'provider'>): GmailSourceLocation;
|
|
48
65
|
dropbox(input: Omit<DropboxSourceLocation, 'provider'>): DropboxSourceLocation;
|
|
66
|
+
outlook(input: Omit<OutlookSourceLocation, 'provider'>): OutlookSourceLocation;
|
|
67
|
+
sharepoint(input: Omit<SharePointSourceLocation, 'provider'>): SharePointSourceLocation;
|
|
49
68
|
};
|
|
50
69
|
locations: {
|
|
51
70
|
merge(existing: readonly SourceLocation[], incoming: readonly SourceLocation[]): SourceLocation[];
|
|
@@ -27,5 +27,22 @@ export type DropboxRuntimeConnection = {
|
|
|
27
27
|
accessToken: string;
|
|
28
28
|
expiresAt: string;
|
|
29
29
|
};
|
|
30
|
-
export type
|
|
31
|
-
|
|
30
|
+
export type OutlookRuntimeConnection = {
|
|
31
|
+
id: `outlook/${string}`;
|
|
32
|
+
provider: 'outlook';
|
|
33
|
+
name: string;
|
|
34
|
+
mailboxEmail: string;
|
|
35
|
+
accessToken: string;
|
|
36
|
+
expiresAt: string;
|
|
37
|
+
};
|
|
38
|
+
export type SharePointRuntimeConnection = {
|
|
39
|
+
id: `sharepoint/${string}`;
|
|
40
|
+
provider: 'sharepoint';
|
|
41
|
+
name: string;
|
|
42
|
+
siteId: string;
|
|
43
|
+
siteUrl: string;
|
|
44
|
+
accessToken: string;
|
|
45
|
+
expiresAt: string;
|
|
46
|
+
};
|
|
47
|
+
export type RuntimeConnection = GmailRuntimeConnection | AirtableRuntimeConnection | DropboxRuntimeConnection | OutlookRuntimeConnection | SharePointRuntimeConnection;
|
|
48
|
+
export type RuntimeConnectionFor<Name extends string> = string extends Name ? RuntimeConnection : Name extends `gmail/${string}` ? GmailRuntimeConnection : Name extends `airtable/${string}` ? AirtableRuntimeConnection : Name extends `dropbox/${string}` ? DropboxRuntimeConnection : Name extends `outlook/${string}` ? OutlookRuntimeConnection : Name extends `sharepoint/${string}` ? SharePointRuntimeConnection : never;
|
|
@@ -11,12 +11,7 @@ export interface RepositoryTarget {
|
|
|
11
11
|
createdAt: string;
|
|
12
12
|
updatedAt: string;
|
|
13
13
|
}
|
|
14
|
-
/** Managed Git-tree data boundaries. */
|
|
15
|
-
export interface RepositoryDataTarget extends RepositoryTarget {
|
|
16
|
-
dataRoots: string[];
|
|
17
|
-
}
|
|
18
14
|
export declare function validDataRoots(value: unknown): value is string[];
|
|
19
|
-
export declare function parseRepositoryDataTarget(value: unknown): RepositoryDataTarget;
|
|
20
15
|
export declare function validRepositoryAlias(value: unknown): value is string;
|
|
21
16
|
export declare function validTargetRef(value: unknown): value is string;
|
|
22
17
|
export declare function parseRepositoryTarget(value: unknown): RepositoryTarget;
|