@brivioio/api-server-types 7.14.0 → 7.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -3,4 +3,7 @@ export * from './jobRoles.types';
3
3
  export * from './meetingBots.types';
4
4
  export * from './organizationUsers.types';
5
5
  export * from './organizations.types';
6
+ export * from './slackChannels.types';
7
+ export * from './slackMessages.types';
8
+ export * from './slackWorkspaces.types';
6
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC"}
package/dist/index.js CHANGED
@@ -3,3 +3,6 @@ export * from './jobRoles.types';
3
3
  export * from './meetingBots.types';
4
4
  export * from './organizationUsers.types';
5
5
  export * from './organizations.types';
6
+ export * from './slackChannels.types';
7
+ export * from './slackMessages.types';
8
+ export * from './slackWorkspaces.types';
@@ -0,0 +1,20 @@
1
+ export type TSlackChannelDrainStatus = 'idle' | 'draining' | 'failed';
2
+ export type TSlackChannelBackfillStatus = 'pending' | 'running' | 'success' | 'failed';
3
+ export interface ISlackChannel {
4
+ _id: string;
5
+ slackWorkspaceId: string;
6
+ organizationId: string;
7
+ channelId: string;
8
+ channelName: string;
9
+ isPrivate: boolean;
10
+ joinedAt: string;
11
+ lastProcessedTs: string | null;
12
+ lastDrainAt: Date | null;
13
+ unprocessedCount: number;
14
+ drainStatus: TSlackChannelDrainStatus;
15
+ backfillStatus: TSlackChannelBackfillStatus;
16
+ isDeleted: boolean;
17
+ createdAt: string;
18
+ updatedAt: string;
19
+ }
20
+ //# sourceMappingURL=slackChannels.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"slackChannels.types.d.ts","sourceRoot":"","sources":["../src/slackChannels.types.ts"],"names":[],"mappings":"AACA,MAAM,MAAM,wBAAwB,GAAG,MAAM,GAAG,UAAU,GAAG,QAAQ,CAAC;AACtE,MAAM,MAAM,2BAA2B,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAC;AAEvF,MAAM,WAAW,aAAa;IAC5B,GAAG,EAAE,MAAM,CAAC;IACZ,gBAAgB,EAAE,MAAM,CAAC;IACzB,cAAc,EAAE,MAAM,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,WAAW,EAAE,IAAI,GAAG,IAAI,CAAC;IACzB,gBAAgB,EAAE,MAAM,CAAC;IACzB,WAAW,EAAE,wBAAwB,CAAC;IACtC,cAAc,EAAE,2BAA2B,CAAC;IAC5C,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,26 @@
1
+ export type TSlackFileExtraction = {
2
+ slackFileId: string;
3
+ name: string;
4
+ mimeType: string;
5
+ sizeBytes: number;
6
+ extractedText: string | null;
7
+ visionDescription: string | null;
8
+ rawDiscarded: boolean;
9
+ };
10
+ export interface ISlackMessage {
11
+ _id: string;
12
+ slackChannelId: string;
13
+ organizationId: string;
14
+ slackMessageTs: string;
15
+ slackUserId: string | null;
16
+ text: string;
17
+ threadTs: string | null;
18
+ files: TSlackFileExtraction[];
19
+ messageSubtype: string | null;
20
+ processed: boolean;
21
+ processedAt: Date | null;
22
+ isDeleted: boolean;
23
+ createdAt: string;
24
+ updatedAt: string;
25
+ }
26
+ //# sourceMappingURL=slackMessages.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"slackMessages.types.d.ts","sourceRoot":"","sources":["../src/slackMessages.types.ts"],"names":[],"mappings":"AACA,MAAM,MAAM,oBAAoB,GAAG;IACjC,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAElB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAE7B,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IAEjC,YAAY,EAAE,OAAO,CAAC;CACvB,CAAC;AAEF,MAAM,WAAW,aAAa;IAC5B,GAAG,EAAE,MAAM,CAAC;IACZ,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,KAAK,EAAE,oBAAoB,EAAE,CAAC;IAC9B,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,SAAS,EAAE,OAAO,CAAC;IACnB,WAAW,EAAE,IAAI,GAAG,IAAI,CAAC;IACzB,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,44 @@
1
+ import type { IResponse } from './utils.types';
2
+ export interface ISlackWorkspace {
3
+ _id: string;
4
+ organizationId: string;
5
+ teamId: string;
6
+ teamName: string;
7
+ botUserId: string;
8
+ botAccessTokenEncrypted: string;
9
+ authedUserId: string;
10
+ scopes: string[];
11
+ installedAt: string;
12
+ isActive: boolean;
13
+ uninstalledAt?: string;
14
+ isDeleted: boolean;
15
+ createdAt: string;
16
+ updatedAt: string;
17
+ }
18
+ export type TSlackWorkspaceSummary = {
19
+ teamId: string;
20
+ teamName: string;
21
+ botUserId: string;
22
+ installedAt: string;
23
+ isActive: boolean;
24
+ };
25
+ export type TSlackChannelSummary = {
26
+ channelId: string;
27
+ channelName: string;
28
+ isPrivate: boolean;
29
+ joinedAt: string;
30
+ lastDrainAt: string | null;
31
+ unprocessedCount: number;
32
+ drainStatus: 'idle' | 'draining' | 'failed';
33
+ backfillStatus: 'pending' | 'running' | 'success' | 'failed';
34
+ };
35
+ export declare namespace SlackAPITypes {
36
+ type TGetWorkspaceResponse = IResponse<{
37
+ workspace: TSlackWorkspaceSummary | null;
38
+ channels: TSlackChannelSummary[];
39
+ } | null>;
40
+ type TDisconnectResponse = IResponse<{
41
+ ok: true;
42
+ } | null>;
43
+ }
44
+ //# sourceMappingURL=slackWorkspaces.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"slackWorkspaces.types.d.ts","sourceRoot":"","sources":["../src/slackWorkspaces.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE/C,MAAM,WAAW,eAAe;IAC9B,GAAG,EAAE,MAAM,CAAC;IACZ,cAAc,EAAE,MAAM,CAAC;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,uBAAuB,EAAE,MAAM,CAAC;IAChC,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,OAAO,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,MAAM,sBAAsB,GAAG;IACnC,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,gBAAgB,EAAE,MAAM,CAAC;IACzB,WAAW,EAAE,MAAM,GAAG,UAAU,GAAG,QAAQ,CAAC;IAC5C,cAAc,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAC;CAC9D,CAAC;AAEF,yBAAiB,aAAa,CAAC;IAC7B,KAAY,qBAAqB,GAAG,SAAS,CAAC;QAC5C,SAAS,EAAE,sBAAsB,GAAG,IAAI,CAAC;QACzC,QAAQ,EAAE,oBAAoB,EAAE,CAAC;KAClC,GAAG,IAAI,CAAC,CAAC;IAEV,KAAY,mBAAmB,GAAG,SAAS,CAAC;QAAE,EAAE,EAAE,IAAI,CAAA;KAAE,GAAG,IAAI,CAAC,CAAC;CAClE"}
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brivioio/api-server-types",
3
- "version": "7.14.0",
3
+ "version": "7.15.0",
4
4
  "description": "TypeScript type definitions for Brivio API Server",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",