@the-inkwell/shared 0.1.99 → 0.1.101
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/src/types/models/admin/index.js +1 -1
- package/dist/src/types/models/admin/messages/index.js +2 -0
- package/package.json +1 -1
- package/src/types/_schema/ListViews.ts +3 -3
- package/src/types/_schema/Messages.ts +14 -7
- package/src/types/models/admin/clients/index.ts +2 -2
- package/src/types/models/admin/index.ts +1 -1
- package/src/types/models/admin/messages/index.ts +14 -0
- package/src/types/_schema/Conversations.ts +0 -64
- package/src/types/models/admin/conversations/index.ts +0 -14
|
@@ -16,8 +16,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./campaigns"), exports);
|
|
18
18
|
__exportStar(require("./candidacies"), exports);
|
|
19
|
-
__exportStar(require("./conversations"), exports);
|
|
20
19
|
__exportStar(require("./clients"), exports);
|
|
20
|
+
__exportStar(require("./messages"), exports);
|
|
21
21
|
__exportStar(require("./persons"), exports);
|
|
22
22
|
__exportStar(require("./positions"), exports);
|
|
23
23
|
__exportStar(require("./referrals"), exports);
|
package/package.json
CHANGED
|
@@ -13,7 +13,7 @@ export default interface ListViews {
|
|
|
13
13
|
|
|
14
14
|
model: ListViewModels;
|
|
15
15
|
|
|
16
|
-
name: string;
|
|
16
|
+
name: string | null;
|
|
17
17
|
|
|
18
18
|
query: unknown;
|
|
19
19
|
|
|
@@ -35,7 +35,7 @@ export interface ListViewsInitializer {
|
|
|
35
35
|
|
|
36
36
|
model: ListViewModels;
|
|
37
37
|
|
|
38
|
-
name
|
|
38
|
+
name?: string | null;
|
|
39
39
|
|
|
40
40
|
query: unknown;
|
|
41
41
|
|
|
@@ -58,7 +58,7 @@ export interface ListViewsMutator {
|
|
|
58
58
|
|
|
59
59
|
model?: ListViewModels;
|
|
60
60
|
|
|
61
|
-
name?: string;
|
|
61
|
+
name?: string | null;
|
|
62
62
|
|
|
63
63
|
query?: unknown;
|
|
64
64
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
import type { SendersId } from './Senders';
|
|
5
5
|
import type { PersonsId } from './Persons';
|
|
6
|
-
import type {
|
|
6
|
+
import type { CampaignsId } from './Campaigns';
|
|
7
7
|
|
|
8
8
|
/** Identifier type for public.messages */
|
|
9
9
|
export type MessagesId = string;
|
|
@@ -20,11 +20,13 @@ export default interface Messages {
|
|
|
20
20
|
|
|
21
21
|
personId: PersonsId;
|
|
22
22
|
|
|
23
|
-
conversationId: ConversationsId;
|
|
24
|
-
|
|
25
23
|
createdAt: Date;
|
|
26
24
|
|
|
27
25
|
updatedAt: Date;
|
|
26
|
+
|
|
27
|
+
isOpen: boolean;
|
|
28
|
+
|
|
29
|
+
campaignId: CampaignsId | null;
|
|
28
30
|
}
|
|
29
31
|
|
|
30
32
|
/** Represents the initializer for the table public.messages */
|
|
@@ -41,13 +43,16 @@ export interface MessagesInitializer {
|
|
|
41
43
|
|
|
42
44
|
personId: PersonsId;
|
|
43
45
|
|
|
44
|
-
conversationId: ConversationsId;
|
|
45
|
-
|
|
46
46
|
/** Default value: CURRENT_TIMESTAMP */
|
|
47
47
|
createdAt?: Date;
|
|
48
48
|
|
|
49
49
|
/** Default value: CURRENT_TIMESTAMP */
|
|
50
50
|
updatedAt?: Date;
|
|
51
|
+
|
|
52
|
+
/** Default value: true */
|
|
53
|
+
isOpen?: boolean;
|
|
54
|
+
|
|
55
|
+
campaignId?: CampaignsId | null;
|
|
51
56
|
}
|
|
52
57
|
|
|
53
58
|
/** Represents the mutator for the table public.messages */
|
|
@@ -62,9 +67,11 @@ export interface MessagesMutator {
|
|
|
62
67
|
|
|
63
68
|
personId?: PersonsId;
|
|
64
69
|
|
|
65
|
-
conversationId?: ConversationsId;
|
|
66
|
-
|
|
67
70
|
createdAt?: Date;
|
|
68
71
|
|
|
69
72
|
updatedAt?: Date;
|
|
73
|
+
|
|
74
|
+
isOpen?: boolean;
|
|
75
|
+
|
|
76
|
+
campaignId?: CampaignsId | null;
|
|
70
77
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ListRequest, ListResponse } from '../../../utils'
|
|
2
|
-
import
|
|
2
|
+
import Clients, {
|
|
3
3
|
ClientsInitializer,
|
|
4
4
|
ClientsMutator
|
|
5
5
|
} from '../../../_schema/Clients'
|
|
6
6
|
import ClientStatuses from '../../../_schema/ClientStatuses'
|
|
7
7
|
|
|
8
|
-
export type AdminClient =
|
|
8
|
+
export type AdminClient = Clients & {
|
|
9
9
|
_openPositionsCount: number
|
|
10
10
|
}
|
|
11
11
|
type AdminClientInitializer = ClientsInitializer
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import Messages from '../../../_schema/Messages'
|
|
2
|
+
import { type ListRequest, type ListResponse } from '../../../utils'
|
|
3
|
+
|
|
4
|
+
export type AdminMessage = Messages
|
|
5
|
+
|
|
6
|
+
// detail
|
|
7
|
+
|
|
8
|
+
export type AdminMessageQueryParams = Pick<AdminMessage, 'id'>
|
|
9
|
+
export type AdminMessageResponse = AdminMessage
|
|
10
|
+
|
|
11
|
+
// list
|
|
12
|
+
|
|
13
|
+
export type AdminMessageListInput = ListRequest
|
|
14
|
+
export type AdminMessageListResponse = ListResponse<AdminMessage>
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
// @generated
|
|
2
|
-
// This file is automatically generated by Kanel. Do not modify manually.
|
|
3
|
-
|
|
4
|
-
import type { default as MessageChannels } from './MessageChannels';
|
|
5
|
-
import type { PersonsId } from './Persons';
|
|
6
|
-
import type { CampaignsId } from './Campaigns';
|
|
7
|
-
|
|
8
|
-
/** Identifier type for public.conversations */
|
|
9
|
-
export type ConversationsId = string;
|
|
10
|
-
|
|
11
|
-
/** Represents the table public.conversations */
|
|
12
|
-
export default interface Conversations {
|
|
13
|
-
id: ConversationsId;
|
|
14
|
-
|
|
15
|
-
urlId: number;
|
|
16
|
-
|
|
17
|
-
channel: MessageChannels;
|
|
18
|
-
|
|
19
|
-
personId: PersonsId;
|
|
20
|
-
|
|
21
|
-
campaignId: CampaignsId | null;
|
|
22
|
-
|
|
23
|
-
createdAt: Date;
|
|
24
|
-
|
|
25
|
-
updatedAt: Date;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
/** Represents the initializer for the table public.conversations */
|
|
29
|
-
export interface ConversationsInitializer {
|
|
30
|
-
/** Default value: gen_random_uuid() */
|
|
31
|
-
id?: ConversationsId;
|
|
32
|
-
|
|
33
|
-
/** Default value: nextval('"conversations_urlId_seq"'::regclass) */
|
|
34
|
-
urlId?: number;
|
|
35
|
-
|
|
36
|
-
channel: MessageChannels;
|
|
37
|
-
|
|
38
|
-
personId: PersonsId;
|
|
39
|
-
|
|
40
|
-
campaignId?: CampaignsId | null;
|
|
41
|
-
|
|
42
|
-
/** Default value: CURRENT_TIMESTAMP */
|
|
43
|
-
createdAt?: Date;
|
|
44
|
-
|
|
45
|
-
/** Default value: CURRENT_TIMESTAMP */
|
|
46
|
-
updatedAt?: Date;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
/** Represents the mutator for the table public.conversations */
|
|
50
|
-
export interface ConversationsMutator {
|
|
51
|
-
id?: ConversationsId;
|
|
52
|
-
|
|
53
|
-
urlId?: number;
|
|
54
|
-
|
|
55
|
-
channel?: MessageChannels;
|
|
56
|
-
|
|
57
|
-
personId?: PersonsId;
|
|
58
|
-
|
|
59
|
-
campaignId?: CampaignsId | null;
|
|
60
|
-
|
|
61
|
-
createdAt?: Date;
|
|
62
|
-
|
|
63
|
-
updatedAt?: Date;
|
|
64
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import Conversations from '../../../_schema/Campaigns'
|
|
2
|
-
import { type ListRequest, type ListResponse } from '../../../utils'
|
|
3
|
-
|
|
4
|
-
export type AdminConversation = Conversations
|
|
5
|
-
|
|
6
|
-
// detail
|
|
7
|
-
|
|
8
|
-
export type AdminConversationQueryParams = Pick<AdminConversation, 'id'>
|
|
9
|
-
export type AdminConversationResponse = AdminConversation
|
|
10
|
-
|
|
11
|
-
// list
|
|
12
|
-
|
|
13
|
-
export type AdminConversationListInput = ListRequest
|
|
14
|
-
export type AdminConversationListResponse = ListResponse<AdminConversation>
|