@nbt-dev/nbt 0.0.1
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/LICENSE +21 -0
- package/README.md +41 -0
- package/contracts/audit/.dist/contract.json +56 -0
- package/contracts/auth/.dist/contract.json +252 -0
- package/contracts/calendar/.dist/contract.json +141 -0
- package/contracts/chat/.dist/contract.json +229 -0
- package/contracts/crm/.dist/contract.json +239 -0
- package/contracts/design/.dist/contract.json +85 -0
- package/contracts/dns/.dist/contract.json +123 -0
- package/contracts/email/.dist/contract.json +267 -0
- package/contracts/embed/.dist/contract.json +137 -0
- package/contracts/ingest/.dist/contract.json +86 -0
- package/contracts/notifications/.dist/contract.json +133 -0
- package/contracts/phone/.dist/contract.json +168 -0
- package/contracts/registry/.dist/contract.json +49 -0
- package/contracts/workflows/.dist/contract.json +106 -0
- package/dist/nbt.js +3521 -0
- package/package.json +40 -0
- package/vendor/linux-x64/console +0 -0
- package/vendor/linux-x64/nbt +0 -0
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
{
|
|
2
|
+
"cartridge": "chat",
|
|
3
|
+
"version": "0.1",
|
|
4
|
+
"owns": {
|
|
5
|
+
"Channel": {
|
|
6
|
+
"fields": [
|
|
7
|
+
{ "name": "id", "type": "ULID", "kind": "scalar" },
|
|
8
|
+
{ "name": "createdAt", "type": "DateTime", "kind": "scalar" },
|
|
9
|
+
{ "name": "updatedAt", "type": "DateTime", "kind": "scalar" },
|
|
10
|
+
{ "name": "name", "type": "string", "kind": "scalar" },
|
|
11
|
+
{ "name": "description", "type": "string", "optional": true, "kind": "scalar" },
|
|
12
|
+
{ "name": "creatorId", "type": "string", "kind": "scalar" },
|
|
13
|
+
{ "name": "isPrivate", "type": "bool", "kind": "scalar" },
|
|
14
|
+
{ "name": "isArchived", "type": "bool", "kind": "scalar" },
|
|
15
|
+
{ "name": "lastActivityAt", "type": "DateTime", "optional": true, "kind": "scalar" }
|
|
16
|
+
],
|
|
17
|
+
"indices": [["name"]],
|
|
18
|
+
"searchFields": [],
|
|
19
|
+
"methods": [
|
|
20
|
+
{ "name": "find_by_id", "inputs": [ { "name": "id", "type": "string" } ], "outputs": [ { "name": "out", "type": "Channel" } ] },
|
|
21
|
+
{ "name": "list", "inputs": [], "outputs": [ { "name": "out", "type": "list<Channel>" } ] },
|
|
22
|
+
{ "name": "delete", "inputs": [ { "name": "id", "type": "string" } ], "outputs": [] },
|
|
23
|
+
{ "name": "create", "inputs": [{ "name": "id", "type": "ULID" }, { "name": "name", "type": "string" }, { "name": "creatorId", "type": "string" }, { "name": "isPrivate", "type": "bool" }, { "name": "isArchived", "type": "bool" }, { "name": "description", "type": "string", "optional": true }, { "name": "lastActivityAt", "type": "DateTime", "optional": true }], "outputs": [ { "name": "out", "type": "Channel" } ] },
|
|
24
|
+
{ "name": "update", "inputs": [{ "name": "id", "type": "string" }, { "name": "id", "type": "ULID", "optional": true }, { "name": "name", "type": "string", "optional": true }, { "name": "description", "type": "string", "optional": true }, { "name": "creatorId", "type": "string", "optional": true }, { "name": "isPrivate", "type": "bool", "optional": true }, { "name": "isArchived", "type": "bool", "optional": true }, { "name": "lastActivityAt", "type": "DateTime", "optional": true }], "outputs": [ { "name": "out", "type": "Channel" } ] },
|
|
25
|
+
{ "name": "find_by_name", "inputs": [ { "name": "name", "type": "string" } ], "outputs": [ { "name": "out", "type": "list<Channel>" } ] }
|
|
26
|
+
],
|
|
27
|
+
"routes": [
|
|
28
|
+
{ "op": "list", "method": "GET", "path": "/api/chat/channel" },
|
|
29
|
+
{ "op": "create", "method": "POST", "path": "/api/chat/channel" },
|
|
30
|
+
{ "op": "delete_by_query", "method": "DELETE", "path": "/api/chat/channel" },
|
|
31
|
+
{ "op": "count", "method": "GET", "path": "/api/chat/channel/count" },
|
|
32
|
+
{ "op": "batch_get", "method": "POST", "path": "/api/chat/channel/_batch" },
|
|
33
|
+
{ "op": "get", "method": "GET", "path": "/api/chat/channel/:id" },
|
|
34
|
+
{ "op": "update", "method": "PUT", "path": "/api/chat/channel/:id" },
|
|
35
|
+
{ "op": "delete", "method": "DELETE", "path": "/api/chat/channel/:id" }
|
|
36
|
+
],
|
|
37
|
+
"exported": false
|
|
38
|
+
},
|
|
39
|
+
"ChannelMember": {
|
|
40
|
+
"fields": [
|
|
41
|
+
{ "name": "id", "type": "ULID", "kind": "scalar" },
|
|
42
|
+
{ "name": "createdAt", "type": "DateTime", "kind": "scalar" },
|
|
43
|
+
{ "name": "updatedAt", "type": "DateTime", "kind": "scalar" },
|
|
44
|
+
{ "name": "channelId", "type": "string", "kind": "scalar" },
|
|
45
|
+
{ "name": "userId", "type": "string", "kind": "scalar" },
|
|
46
|
+
{ "name": "joinedAt", "type": "DateTime", "kind": "scalar" }
|
|
47
|
+
],
|
|
48
|
+
"indices": [["channelId", "userId"], ["userId"], ["channelId"]],
|
|
49
|
+
"searchFields": [],
|
|
50
|
+
"methods": [
|
|
51
|
+
{ "name": "find_by_id", "inputs": [ { "name": "id", "type": "string" } ], "outputs": [ { "name": "out", "type": "ChannelMember" } ] },
|
|
52
|
+
{ "name": "list", "inputs": [], "outputs": [ { "name": "out", "type": "list<ChannelMember>" } ] },
|
|
53
|
+
{ "name": "delete", "inputs": [ { "name": "id", "type": "string" } ], "outputs": [] },
|
|
54
|
+
{ "name": "create", "inputs": [{ "name": "id", "type": "ULID" }, { "name": "channelId", "type": "string" }, { "name": "userId", "type": "string" }], "outputs": [ { "name": "out", "type": "ChannelMember" } ] },
|
|
55
|
+
{ "name": "update", "inputs": [{ "name": "id", "type": "string" }, { "name": "id", "type": "ULID", "optional": true }, { "name": "channelId", "type": "string", "optional": true }, { "name": "userId", "type": "string", "optional": true }], "outputs": [ { "name": "out", "type": "ChannelMember" } ] },
|
|
56
|
+
{ "name": "find_by_userId", "inputs": [ { "name": "userId", "type": "string" } ], "outputs": [ { "name": "out", "type": "list<ChannelMember>" } ] },
|
|
57
|
+
{ "name": "find_by_channelId", "inputs": [ { "name": "channelId", "type": "string" } ], "outputs": [ { "name": "out", "type": "list<ChannelMember>" } ] }
|
|
58
|
+
],
|
|
59
|
+
"routes": [
|
|
60
|
+
{ "op": "list", "method": "GET", "path": "/api/chat/channelmember" },
|
|
61
|
+
{ "op": "create", "method": "POST", "path": "/api/chat/channelmember" },
|
|
62
|
+
{ "op": "delete_by_query", "method": "DELETE", "path": "/api/chat/channelmember" },
|
|
63
|
+
{ "op": "count", "method": "GET", "path": "/api/chat/channelmember/count" },
|
|
64
|
+
{ "op": "batch_get", "method": "POST", "path": "/api/chat/channelmember/_batch" },
|
|
65
|
+
{ "op": "get", "method": "GET", "path": "/api/chat/channelmember/:id" },
|
|
66
|
+
{ "op": "update", "method": "PUT", "path": "/api/chat/channelmember/:id" },
|
|
67
|
+
{ "op": "delete", "method": "DELETE", "path": "/api/chat/channelmember/:id" }
|
|
68
|
+
],
|
|
69
|
+
"exported": false
|
|
70
|
+
},
|
|
71
|
+
"DirectMessageRoom": {
|
|
72
|
+
"fields": [
|
|
73
|
+
{ "name": "id", "type": "ULID", "kind": "scalar" },
|
|
74
|
+
{ "name": "createdAt", "type": "DateTime", "kind": "scalar" },
|
|
75
|
+
{ "name": "updatedAt", "type": "DateTime", "kind": "scalar" },
|
|
76
|
+
{ "name": "participantA", "type": "string", "kind": "scalar" },
|
|
77
|
+
{ "name": "participantAType", "type": "string", "kind": "scalar" },
|
|
78
|
+
{ "name": "participantB", "type": "string", "kind": "scalar" },
|
|
79
|
+
{ "name": "participantBType", "type": "string", "kind": "scalar" },
|
|
80
|
+
{ "name": "lastActivityAt", "type": "DateTime", "optional": true, "kind": "scalar" }
|
|
81
|
+
],
|
|
82
|
+
"indices": [["participantA", "participantB"], ["participantA"], ["participantB"]],
|
|
83
|
+
"searchFields": [],
|
|
84
|
+
"methods": [
|
|
85
|
+
{ "name": "find_by_id", "inputs": [ { "name": "id", "type": "string" } ], "outputs": [ { "name": "out", "type": "DirectMessageRoom" } ] },
|
|
86
|
+
{ "name": "list", "inputs": [], "outputs": [ { "name": "out", "type": "list<DirectMessageRoom>" } ] },
|
|
87
|
+
{ "name": "delete", "inputs": [ { "name": "id", "type": "string" } ], "outputs": [] },
|
|
88
|
+
{ "name": "create", "inputs": [{ "name": "id", "type": "ULID" }, { "name": "participantA", "type": "string" }, { "name": "participantAType", "type": "string" }, { "name": "participantB", "type": "string" }, { "name": "participantBType", "type": "string" }, { "name": "lastActivityAt", "type": "DateTime", "optional": true }], "outputs": [ { "name": "out", "type": "DirectMessageRoom" } ] },
|
|
89
|
+
{ "name": "update", "inputs": [{ "name": "id", "type": "string" }, { "name": "id", "type": "ULID", "optional": true }, { "name": "participantA", "type": "string", "optional": true }, { "name": "participantAType", "type": "string", "optional": true }, { "name": "participantB", "type": "string", "optional": true }, { "name": "participantBType", "type": "string", "optional": true }, { "name": "lastActivityAt", "type": "DateTime", "optional": true }], "outputs": [ { "name": "out", "type": "DirectMessageRoom" } ] },
|
|
90
|
+
{ "name": "find_by_participantA", "inputs": [ { "name": "participantA", "type": "string" } ], "outputs": [ { "name": "out", "type": "list<DirectMessageRoom>" } ] },
|
|
91
|
+
{ "name": "find_by_participantB", "inputs": [ { "name": "participantB", "type": "string" } ], "outputs": [ { "name": "out", "type": "list<DirectMessageRoom>" } ] }
|
|
92
|
+
],
|
|
93
|
+
"routes": [
|
|
94
|
+
{ "op": "list", "method": "GET", "path": "/api/chat/directmessageroom" },
|
|
95
|
+
{ "op": "create", "method": "POST", "path": "/api/chat/directmessageroom" },
|
|
96
|
+
{ "op": "delete_by_query", "method": "DELETE", "path": "/api/chat/directmessageroom" },
|
|
97
|
+
{ "op": "count", "method": "GET", "path": "/api/chat/directmessageroom/count" },
|
|
98
|
+
{ "op": "batch_get", "method": "POST", "path": "/api/chat/directmessageroom/_batch" },
|
|
99
|
+
{ "op": "get", "method": "GET", "path": "/api/chat/directmessageroom/:id" },
|
|
100
|
+
{ "op": "update", "method": "PUT", "path": "/api/chat/directmessageroom/:id" },
|
|
101
|
+
{ "op": "delete", "method": "DELETE", "path": "/api/chat/directmessageroom/:id" }
|
|
102
|
+
],
|
|
103
|
+
"exported": false
|
|
104
|
+
},
|
|
105
|
+
"Message": {
|
|
106
|
+
"fields": [
|
|
107
|
+
{ "name": "id", "type": "ULID", "kind": "scalar" },
|
|
108
|
+
{ "name": "createdAt", "type": "DateTime", "kind": "scalar" },
|
|
109
|
+
{ "name": "updatedAt", "type": "DateTime", "kind": "scalar" },
|
|
110
|
+
{ "name": "channelId", "type": "string", "optional": true, "kind": "scalar" },
|
|
111
|
+
{ "name": "dmRoomId", "type": "string", "optional": true, "kind": "scalar" },
|
|
112
|
+
{ "name": "parentMessageId", "type": "string", "optional": true, "kind": "scalar" },
|
|
113
|
+
{ "name": "senderType", "type": "string", "kind": "scalar" },
|
|
114
|
+
{ "name": "senderId", "type": "string", "kind": "scalar" },
|
|
115
|
+
{ "name": "content", "type": "string", "kind": "scalar" },
|
|
116
|
+
{ "name": "editedAt", "type": "DateTime", "optional": true, "kind": "scalar" },
|
|
117
|
+
{ "name": "deletedAt", "type": "DateTime", "optional": true, "kind": "scalar" },
|
|
118
|
+
{ "name": "replyCount", "type": "u32", "kind": "scalar" }
|
|
119
|
+
],
|
|
120
|
+
"indices": [["channelId"], ["dmRoomId"], ["parentMessageId"], ["senderId"]],
|
|
121
|
+
"searchFields": ["content"],
|
|
122
|
+
"methods": [
|
|
123
|
+
{ "name": "find_by_id", "inputs": [ { "name": "id", "type": "string" } ], "outputs": [ { "name": "out", "type": "Message" } ] },
|
|
124
|
+
{ "name": "list", "inputs": [], "outputs": [ { "name": "out", "type": "list<Message>" } ] },
|
|
125
|
+
{ "name": "delete", "inputs": [ { "name": "id", "type": "string" } ], "outputs": [] },
|
|
126
|
+
{ "name": "create", "inputs": [{ "name": "id", "type": "ULID" }, { "name": "senderType", "type": "string" }, { "name": "senderId", "type": "string" }, { "name": "content", "type": "string" }, { "name": "replyCount", "type": "u32" }, { "name": "channelId", "type": "string", "optional": true }, { "name": "dmRoomId", "type": "string", "optional": true }, { "name": "parentMessageId", "type": "string", "optional": true }, { "name": "editedAt", "type": "DateTime", "optional": true }, { "name": "deletedAt", "type": "DateTime", "optional": true }], "outputs": [ { "name": "out", "type": "Message" } ] },
|
|
127
|
+
{ "name": "update", "inputs": [{ "name": "id", "type": "string" }, { "name": "id", "type": "ULID", "optional": true }, { "name": "channelId", "type": "string", "optional": true }, { "name": "dmRoomId", "type": "string", "optional": true }, { "name": "parentMessageId", "type": "string", "optional": true }, { "name": "senderType", "type": "string", "optional": true }, { "name": "senderId", "type": "string", "optional": true }, { "name": "content", "type": "string", "optional": true }, { "name": "editedAt", "type": "DateTime", "optional": true }, { "name": "deletedAt", "type": "DateTime", "optional": true }, { "name": "replyCount", "type": "u32", "optional": true }], "outputs": [ { "name": "out", "type": "Message" } ] },
|
|
128
|
+
{ "name": "find_by_channelId", "inputs": [ { "name": "channelId", "type": "string" } ], "outputs": [ { "name": "out", "type": "list<Message>" } ] },
|
|
129
|
+
{ "name": "find_by_dmRoomId", "inputs": [ { "name": "dmRoomId", "type": "string" } ], "outputs": [ { "name": "out", "type": "list<Message>" } ] },
|
|
130
|
+
{ "name": "find_by_parentMessageId", "inputs": [ { "name": "parentMessageId", "type": "string" } ], "outputs": [ { "name": "out", "type": "list<Message>" } ] },
|
|
131
|
+
{ "name": "find_by_senderId", "inputs": [ { "name": "senderId", "type": "string" } ], "outputs": [ { "name": "out", "type": "list<Message>" } ] }
|
|
132
|
+
],
|
|
133
|
+
"routes": [
|
|
134
|
+
{ "op": "list", "method": "GET", "path": "/api/chat/message" },
|
|
135
|
+
{ "op": "create", "method": "POST", "path": "/api/chat/message" },
|
|
136
|
+
{ "op": "delete_by_query", "method": "DELETE", "path": "/api/chat/message" },
|
|
137
|
+
{ "op": "count", "method": "GET", "path": "/api/chat/message/count" },
|
|
138
|
+
{ "op": "batch_get", "method": "POST", "path": "/api/chat/message/_batch" },
|
|
139
|
+
{ "op": "search", "method": "GET", "path": "/api/chat/message/search" },
|
|
140
|
+
{ "op": "get", "method": "GET", "path": "/api/chat/message/:id" },
|
|
141
|
+
{ "op": "update", "method": "PUT", "path": "/api/chat/message/:id" },
|
|
142
|
+
{ "op": "delete", "method": "DELETE", "path": "/api/chat/message/:id" }
|
|
143
|
+
],
|
|
144
|
+
"exported": false
|
|
145
|
+
},
|
|
146
|
+
"MessageReaction": {
|
|
147
|
+
"fields": [
|
|
148
|
+
{ "name": "id", "type": "ULID", "kind": "scalar" },
|
|
149
|
+
{ "name": "createdAt", "type": "DateTime", "kind": "scalar" },
|
|
150
|
+
{ "name": "updatedAt", "type": "DateTime", "kind": "scalar" },
|
|
151
|
+
{ "name": "messageId", "type": "string", "kind": "scalar" },
|
|
152
|
+
{ "name": "emoji", "type": "string", "kind": "scalar" },
|
|
153
|
+
{ "name": "userId", "type": "string", "kind": "scalar" }
|
|
154
|
+
],
|
|
155
|
+
"indices": [["messageId", "emoji", "userId"], ["messageId"], ["userId"]],
|
|
156
|
+
"searchFields": [],
|
|
157
|
+
"methods": [
|
|
158
|
+
{ "name": "find_by_id", "inputs": [ { "name": "id", "type": "string" } ], "outputs": [ { "name": "out", "type": "MessageReaction" } ] },
|
|
159
|
+
{ "name": "list", "inputs": [], "outputs": [ { "name": "out", "type": "list<MessageReaction>" } ] },
|
|
160
|
+
{ "name": "delete", "inputs": [ { "name": "id", "type": "string" } ], "outputs": [] },
|
|
161
|
+
{ "name": "create", "inputs": [{ "name": "id", "type": "ULID" }, { "name": "messageId", "type": "string" }, { "name": "emoji", "type": "string" }, { "name": "userId", "type": "string" }], "outputs": [ { "name": "out", "type": "MessageReaction" } ] },
|
|
162
|
+
{ "name": "update", "inputs": [{ "name": "id", "type": "string" }, { "name": "id", "type": "ULID", "optional": true }, { "name": "messageId", "type": "string", "optional": true }, { "name": "emoji", "type": "string", "optional": true }, { "name": "userId", "type": "string", "optional": true }], "outputs": [ { "name": "out", "type": "MessageReaction" } ] },
|
|
163
|
+
{ "name": "find_by_messageId", "inputs": [ { "name": "messageId", "type": "string" } ], "outputs": [ { "name": "out", "type": "list<MessageReaction>" } ] },
|
|
164
|
+
{ "name": "find_by_userId", "inputs": [ { "name": "userId", "type": "string" } ], "outputs": [ { "name": "out", "type": "list<MessageReaction>" } ] }
|
|
165
|
+
],
|
|
166
|
+
"routes": [
|
|
167
|
+
{ "op": "list", "method": "GET", "path": "/api/chat/messagereaction" },
|
|
168
|
+
{ "op": "create", "method": "POST", "path": "/api/chat/messagereaction" },
|
|
169
|
+
{ "op": "delete_by_query", "method": "DELETE", "path": "/api/chat/messagereaction" },
|
|
170
|
+
{ "op": "count", "method": "GET", "path": "/api/chat/messagereaction/count" },
|
|
171
|
+
{ "op": "batch_get", "method": "POST", "path": "/api/chat/messagereaction/_batch" },
|
|
172
|
+
{ "op": "get", "method": "GET", "path": "/api/chat/messagereaction/:id" },
|
|
173
|
+
{ "op": "update", "method": "PUT", "path": "/api/chat/messagereaction/:id" },
|
|
174
|
+
{ "op": "delete", "method": "DELETE", "path": "/api/chat/messagereaction/:id" }
|
|
175
|
+
],
|
|
176
|
+
"exported": false
|
|
177
|
+
},
|
|
178
|
+
"ChatReadState": {
|
|
179
|
+
"fields": [
|
|
180
|
+
{ "name": "id", "type": "ULID", "kind": "scalar" },
|
|
181
|
+
{ "name": "createdAt", "type": "DateTime", "kind": "scalar" },
|
|
182
|
+
{ "name": "updatedAt", "type": "DateTime", "kind": "scalar" },
|
|
183
|
+
{ "name": "userId", "type": "string", "kind": "scalar" },
|
|
184
|
+
{ "name": "scopeKey", "type": "string", "kind": "scalar" },
|
|
185
|
+
{ "name": "scopeType", "type": "string", "kind": "scalar" },
|
|
186
|
+
{ "name": "scopeId", "type": "string", "kind": "scalar" },
|
|
187
|
+
{ "name": "lastReadMessageId", "type": "string", "kind": "scalar" },
|
|
188
|
+
{ "name": "lastReadAt", "type": "DateTime", "kind": "scalar" }
|
|
189
|
+
],
|
|
190
|
+
"indices": [["userId", "scopeKey"], ["userId"], ["scopeKey"]],
|
|
191
|
+
"searchFields": [],
|
|
192
|
+
"methods": [
|
|
193
|
+
{ "name": "find_by_id", "inputs": [ { "name": "id", "type": "string" } ], "outputs": [ { "name": "out", "type": "ChatReadState" } ] },
|
|
194
|
+
{ "name": "list", "inputs": [], "outputs": [ { "name": "out", "type": "list<ChatReadState>" } ] },
|
|
195
|
+
{ "name": "delete", "inputs": [ { "name": "id", "type": "string" } ], "outputs": [] },
|
|
196
|
+
{ "name": "create", "inputs": [{ "name": "id", "type": "ULID" }, { "name": "userId", "type": "string" }, { "name": "scopeKey", "type": "string" }, { "name": "scopeType", "type": "string" }, { "name": "scopeId", "type": "string" }, { "name": "lastReadMessageId", "type": "string" }], "outputs": [ { "name": "out", "type": "ChatReadState" } ] },
|
|
197
|
+
{ "name": "update", "inputs": [{ "name": "id", "type": "string" }, { "name": "id", "type": "ULID", "optional": true }, { "name": "userId", "type": "string", "optional": true }, { "name": "scopeKey", "type": "string", "optional": true }, { "name": "scopeType", "type": "string", "optional": true }, { "name": "scopeId", "type": "string", "optional": true }, { "name": "lastReadMessageId", "type": "string", "optional": true }], "outputs": [ { "name": "out", "type": "ChatReadState" } ] },
|
|
198
|
+
{ "name": "find_by_userId", "inputs": [ { "name": "userId", "type": "string" } ], "outputs": [ { "name": "out", "type": "list<ChatReadState>" } ] },
|
|
199
|
+
{ "name": "find_by_scopeKey", "inputs": [ { "name": "scopeKey", "type": "string" } ], "outputs": [ { "name": "out", "type": "list<ChatReadState>" } ] }
|
|
200
|
+
],
|
|
201
|
+
"routes": [
|
|
202
|
+
{ "op": "list", "method": "GET", "path": "/api/chat/chatreadstate" },
|
|
203
|
+
{ "op": "create", "method": "POST", "path": "/api/chat/chatreadstate" },
|
|
204
|
+
{ "op": "delete_by_query", "method": "DELETE", "path": "/api/chat/chatreadstate" },
|
|
205
|
+
{ "op": "count", "method": "GET", "path": "/api/chat/chatreadstate/count" },
|
|
206
|
+
{ "op": "batch_get", "method": "POST", "path": "/api/chat/chatreadstate/_batch" },
|
|
207
|
+
{ "op": "get", "method": "GET", "path": "/api/chat/chatreadstate/:id" },
|
|
208
|
+
{ "op": "update", "method": "PUT", "path": "/api/chat/chatreadstate/:id" },
|
|
209
|
+
{ "op": "delete", "method": "DELETE", "path": "/api/chat/chatreadstate/:id" }
|
|
210
|
+
],
|
|
211
|
+
"exported": false
|
|
212
|
+
}
|
|
213
|
+
},
|
|
214
|
+
"structs": [],
|
|
215
|
+
"enums": [],
|
|
216
|
+
"imports": {
|
|
217
|
+
"auth": {
|
|
218
|
+
"entities": ["User"],
|
|
219
|
+
"enums": []
|
|
220
|
+
}
|
|
221
|
+
},
|
|
222
|
+
"actions": [],
|
|
223
|
+
"middleware": [],
|
|
224
|
+
"workflows": [],
|
|
225
|
+
"schedules": [],
|
|
226
|
+
"tasks": [],
|
|
227
|
+
"tools": [],
|
|
228
|
+
"widgets": []
|
|
229
|
+
}
|
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
{
|
|
2
|
+
"cartridge": "crm",
|
|
3
|
+
"version": "0.1",
|
|
4
|
+
"owns": {
|
|
5
|
+
"Contact": {
|
|
6
|
+
"fields": [
|
|
7
|
+
{ "name": "id", "type": "ULID", "kind": "scalar" },
|
|
8
|
+
{ "name": "createdAt", "type": "DateTime", "kind": "scalar" },
|
|
9
|
+
{ "name": "updatedAt", "type": "DateTime", "kind": "scalar" },
|
|
10
|
+
{ "name": "firstName", "type": "string", "optional": true, "kind": "scalar" },
|
|
11
|
+
{ "name": "lastName", "type": "string", "optional": true, "kind": "scalar" },
|
|
12
|
+
{ "name": "fullName", "type": "string", "optional": true, "kind": "scalar" },
|
|
13
|
+
{ "name": "phone", "type": "string", "optional": true, "kind": "scalar" },
|
|
14
|
+
{ "name": "mobile", "type": "string", "optional": true, "kind": "scalar" },
|
|
15
|
+
{ "name": "email", "type": "string", "optional": true, "kind": "scalar" },
|
|
16
|
+
{ "name": "address", "type": "string", "optional": true, "kind": "scalar" },
|
|
17
|
+
{ "name": "fullAddress", "type": "string", "optional": true, "kind": "scalar" },
|
|
18
|
+
{ "name": "postalCode", "type": "string", "optional": true, "kind": "scalar" },
|
|
19
|
+
{ "name": "city", "type": "string", "optional": true, "kind": "scalar" },
|
|
20
|
+
{ "name": "stateOrProvince", "type": "string", "optional": true, "kind": "scalar" },
|
|
21
|
+
{ "name": "country", "type": "string", "optional": true, "kind": "scalar" },
|
|
22
|
+
{ "name": "timezone", "type": "string", "optional": true, "kind": "scalar" },
|
|
23
|
+
{ "name": "lat", "type": "float", "optional": true, "kind": "scalar" },
|
|
24
|
+
{ "name": "lon", "type": "float", "optional": true, "kind": "scalar" },
|
|
25
|
+
{ "name": "company", "type": "string", "optional": true, "kind": "scalar" },
|
|
26
|
+
{ "name": "website", "type": "string", "optional": true, "kind": "scalar" },
|
|
27
|
+
{ "name": "title", "type": "string", "optional": true, "kind": "scalar" },
|
|
28
|
+
{ "name": "industry", "type": "string", "optional": true, "kind": "scalar" },
|
|
29
|
+
{ "name": "source", "type": "string", "optional": true, "kind": "scalar" },
|
|
30
|
+
{ "name": "notes", "type": "string", "optional": true, "kind": "scalar" },
|
|
31
|
+
{ "name": "data", "type": "document", "kind": "document", "doc_schema_id": 1178861568, "domain_schema_id": 1178861569 },
|
|
32
|
+
{ "name": "customData", "type": "document", "kind": "document", "doc_schema_id": 1178861570, "domain_schema_id": 1178861571 }
|
|
33
|
+
],
|
|
34
|
+
"indices": [],
|
|
35
|
+
"searchFields": [],
|
|
36
|
+
"methods": [
|
|
37
|
+
{ "name": "find_by_id", "inputs": [ { "name": "id", "type": "string" } ], "outputs": [ { "name": "out", "type": "Contact" } ] },
|
|
38
|
+
{ "name": "list", "inputs": [], "outputs": [ { "name": "out", "type": "list<Contact>" } ] },
|
|
39
|
+
{ "name": "delete", "inputs": [ { "name": "id", "type": "string" } ], "outputs": [] },
|
|
40
|
+
{ "name": "create", "inputs": [{ "name": "id", "type": "ULID" }, { "name": "data", "type": "document" }, { "name": "customData", "type": "document" }, { "name": "firstName", "type": "string", "optional": true }, { "name": "lastName", "type": "string", "optional": true }, { "name": "fullName", "type": "string", "optional": true }, { "name": "phone", "type": "string", "optional": true }, { "name": "mobile", "type": "string", "optional": true }, { "name": "email", "type": "string", "optional": true }, { "name": "address", "type": "string", "optional": true }, { "name": "fullAddress", "type": "string", "optional": true }, { "name": "postalCode", "type": "string", "optional": true }, { "name": "city", "type": "string", "optional": true }, { "name": "stateOrProvince", "type": "string", "optional": true }, { "name": "country", "type": "string", "optional": true }, { "name": "timezone", "type": "string", "optional": true }, { "name": "lat", "type": "float", "optional": true }, { "name": "lon", "type": "float", "optional": true }, { "name": "company", "type": "string", "optional": true }, { "name": "website", "type": "string", "optional": true }, { "name": "title", "type": "string", "optional": true }, { "name": "industry", "type": "string", "optional": true }, { "name": "source", "type": "string", "optional": true }, { "name": "notes", "type": "string", "optional": true }], "outputs": [ { "name": "out", "type": "Contact" } ] },
|
|
41
|
+
{ "name": "update", "inputs": [{ "name": "id", "type": "string" }, { "name": "id", "type": "ULID", "optional": true }, { "name": "firstName", "type": "string", "optional": true }, { "name": "lastName", "type": "string", "optional": true }, { "name": "fullName", "type": "string", "optional": true }, { "name": "phone", "type": "string", "optional": true }, { "name": "mobile", "type": "string", "optional": true }, { "name": "email", "type": "string", "optional": true }, { "name": "address", "type": "string", "optional": true }, { "name": "fullAddress", "type": "string", "optional": true }, { "name": "postalCode", "type": "string", "optional": true }, { "name": "city", "type": "string", "optional": true }, { "name": "stateOrProvince", "type": "string", "optional": true }, { "name": "country", "type": "string", "optional": true }, { "name": "timezone", "type": "string", "optional": true }, { "name": "lat", "type": "float", "optional": true }, { "name": "lon", "type": "float", "optional": true }, { "name": "company", "type": "string", "optional": true }, { "name": "website", "type": "string", "optional": true }, { "name": "title", "type": "string", "optional": true }, { "name": "industry", "type": "string", "optional": true }, { "name": "source", "type": "string", "optional": true }, { "name": "notes", "type": "string", "optional": true }, { "name": "data", "type": "document", "optional": true }, { "name": "customData", "type": "document", "optional": true }], "outputs": [ { "name": "out", "type": "Contact" } ] }
|
|
42
|
+
],
|
|
43
|
+
"routes": [
|
|
44
|
+
{ "op": "list", "method": "GET", "path": "/api/crm/contact" },
|
|
45
|
+
{ "op": "create", "method": "POST", "path": "/api/crm/contact" },
|
|
46
|
+
{ "op": "delete_by_query", "method": "DELETE", "path": "/api/crm/contact" },
|
|
47
|
+
{ "op": "count", "method": "GET", "path": "/api/crm/contact/count" },
|
|
48
|
+
{ "op": "batch_get", "method": "POST", "path": "/api/crm/contact/_batch" },
|
|
49
|
+
{ "op": "get", "method": "GET", "path": "/api/crm/contact/:id" },
|
|
50
|
+
{ "op": "update", "method": "PUT", "path": "/api/crm/contact/:id" },
|
|
51
|
+
{ "op": "delete", "method": "DELETE", "path": "/api/crm/contact/:id" }
|
|
52
|
+
],
|
|
53
|
+
"exported": true
|
|
54
|
+
},
|
|
55
|
+
"Outcome": {
|
|
56
|
+
"fields": [
|
|
57
|
+
{ "name": "id", "type": "ULID", "kind": "scalar" },
|
|
58
|
+
{ "name": "createdAt", "type": "DateTime", "kind": "scalar" },
|
|
59
|
+
{ "name": "updatedAt", "type": "DateTime", "kind": "scalar" },
|
|
60
|
+
{ "name": "appointmentId", "type": "string", "kind": "scalar" },
|
|
61
|
+
{ "name": "rating", "type": "float", "optional": true, "kind": "scalar" },
|
|
62
|
+
{ "name": "status", "type": "string", "optional": true, "kind": "scalar" },
|
|
63
|
+
{ "name": "notes", "type": "string", "optional": true, "kind": "scalar" },
|
|
64
|
+
{ "name": "recordedAt", "type": "DateTime", "kind": "scalar" }
|
|
65
|
+
],
|
|
66
|
+
"indices": [["appointmentId"]],
|
|
67
|
+
"searchFields": [],
|
|
68
|
+
"methods": [
|
|
69
|
+
{ "name": "find_by_id", "inputs": [ { "name": "id", "type": "string" } ], "outputs": [ { "name": "out", "type": "Outcome" } ] },
|
|
70
|
+
{ "name": "list", "inputs": [], "outputs": [ { "name": "out", "type": "list<Outcome>" } ] },
|
|
71
|
+
{ "name": "delete", "inputs": [ { "name": "id", "type": "string" } ], "outputs": [] },
|
|
72
|
+
{ "name": "create", "inputs": [{ "name": "id", "type": "ULID" }, { "name": "appointmentId", "type": "string" }, { "name": "rating", "type": "float", "optional": true }, { "name": "status", "type": "string", "optional": true }, { "name": "notes", "type": "string", "optional": true }], "outputs": [ { "name": "out", "type": "Outcome" } ] },
|
|
73
|
+
{ "name": "update", "inputs": [{ "name": "id", "type": "string" }, { "name": "id", "type": "ULID", "optional": true }, { "name": "appointmentId", "type": "string", "optional": true }, { "name": "rating", "type": "float", "optional": true }, { "name": "status", "type": "string", "optional": true }, { "name": "notes", "type": "string", "optional": true }], "outputs": [ { "name": "out", "type": "Outcome" } ] },
|
|
74
|
+
{ "name": "find_by_appointmentId", "inputs": [ { "name": "appointmentId", "type": "string" } ], "outputs": [ { "name": "out", "type": "list<Outcome>" } ] }
|
|
75
|
+
],
|
|
76
|
+
"routes": [
|
|
77
|
+
{ "op": "list", "method": "GET", "path": "/api/crm/outcome" },
|
|
78
|
+
{ "op": "create", "method": "POST", "path": "/api/crm/outcome" },
|
|
79
|
+
{ "op": "delete_by_query", "method": "DELETE", "path": "/api/crm/outcome" },
|
|
80
|
+
{ "op": "count", "method": "GET", "path": "/api/crm/outcome/count" },
|
|
81
|
+
{ "op": "batch_get", "method": "POST", "path": "/api/crm/outcome/_batch" },
|
|
82
|
+
{ "op": "get", "method": "GET", "path": "/api/crm/outcome/:id" },
|
|
83
|
+
{ "op": "update", "method": "PUT", "path": "/api/crm/outcome/:id" },
|
|
84
|
+
{ "op": "delete", "method": "DELETE", "path": "/api/crm/outcome/:id" }
|
|
85
|
+
],
|
|
86
|
+
"exported": true
|
|
87
|
+
},
|
|
88
|
+
"Deal": {
|
|
89
|
+
"fields": [
|
|
90
|
+
{ "name": "id", "type": "ULID", "kind": "scalar" },
|
|
91
|
+
{ "name": "createdAt", "type": "DateTime", "kind": "scalar" },
|
|
92
|
+
{ "name": "updatedAt", "type": "DateTime", "kind": "scalar" },
|
|
93
|
+
{ "name": "name", "type": "string", "kind": "scalar" },
|
|
94
|
+
{ "name": "contact", "type": "Contact", "kind": "relation", "target": "Contact", "target_cart": "crm", "fk_field": "contactId", "relation_kind": "many_to_one" },
|
|
95
|
+
{ "name": "value", "type": "float", "optional": true, "kind": "scalar" },
|
|
96
|
+
{ "name": "currency", "type": "string", "optional": true, "kind": "scalar" },
|
|
97
|
+
{ "name": "type", "type": "string", "optional": true, "kind": "scalar" },
|
|
98
|
+
{ "name": "stage", "type": "string", "optional": true, "kind": "scalar" },
|
|
99
|
+
{ "name": "pipeline", "type": "Pipeline", "optional": true, "kind": "relation", "target": "Pipeline", "target_cart": "crm", "fk_field": "pipelineId", "relation_kind": "many_to_one" },
|
|
100
|
+
{ "name": "pipelineStage", "type": "PipelineStage", "optional": true, "kind": "relation", "target": "PipelineStage", "target_cart": "crm", "fk_field": "pipelineStageId", "relation_kind": "many_to_one" },
|
|
101
|
+
{ "name": "data", "type": "document", "kind": "document", "doc_schema_id": 1178861572, "domain_schema_id": 1178861573 },
|
|
102
|
+
{ "name": "customData", "type": "document", "kind": "document", "doc_schema_id": 1178861574, "domain_schema_id": 1178861575 },
|
|
103
|
+
{ "name": "status", "type": "string", "optional": true, "kind": "scalar" },
|
|
104
|
+
{ "name": "appointmentId", "type": "string", "optional": true, "kind": "scalar" },
|
|
105
|
+
{ "name": "totalContractPrice", "type": "float", "optional": true, "kind": "scalar" },
|
|
106
|
+
{ "name": "closedDate", "type": "DateTime", "optional": true, "kind": "scalar" }
|
|
107
|
+
],
|
|
108
|
+
"indices": [],
|
|
109
|
+
"searchFields": [],
|
|
110
|
+
"methods": [
|
|
111
|
+
{ "name": "find_by_id", "inputs": [ { "name": "id", "type": "string" } ], "outputs": [ { "name": "out", "type": "Deal" } ] },
|
|
112
|
+
{ "name": "list", "inputs": [], "outputs": [ { "name": "out", "type": "list<Deal>" } ] },
|
|
113
|
+
{ "name": "delete", "inputs": [ { "name": "id", "type": "string" } ], "outputs": [] },
|
|
114
|
+
{ "name": "create", "inputs": [{ "name": "id", "type": "ULID" }, { "name": "name", "type": "string" }, { "name": "contactId", "type": "string" }, { "name": "data", "type": "document" }, { "name": "customData", "type": "document" }, { "name": "value", "type": "float", "optional": true }, { "name": "currency", "type": "string", "optional": true }, { "name": "type", "type": "string", "optional": true }, { "name": "stage", "type": "string", "optional": true }, { "name": "pipelineId", "type": "string", "optional": true }, { "name": "pipelineStageId", "type": "string", "optional": true }, { "name": "status", "type": "string", "optional": true }, { "name": "appointmentId", "type": "string", "optional": true }, { "name": "totalContractPrice", "type": "float", "optional": true }, { "name": "closedDate", "type": "DateTime", "optional": true }], "outputs": [ { "name": "out", "type": "Deal" } ] },
|
|
115
|
+
{ "name": "update", "inputs": [{ "name": "id", "type": "string" }, { "name": "id", "type": "ULID", "optional": true }, { "name": "name", "type": "string", "optional": true }, { "name": "contactId", "type": "string", "optional": true }, { "name": "value", "type": "float", "optional": true }, { "name": "currency", "type": "string", "optional": true }, { "name": "type", "type": "string", "optional": true }, { "name": "stage", "type": "string", "optional": true }, { "name": "pipelineId", "type": "string", "optional": true }, { "name": "pipelineStageId", "type": "string", "optional": true }, { "name": "data", "type": "document", "optional": true }, { "name": "customData", "type": "document", "optional": true }, { "name": "status", "type": "string", "optional": true }, { "name": "appointmentId", "type": "string", "optional": true }, { "name": "totalContractPrice", "type": "float", "optional": true }, { "name": "closedDate", "type": "DateTime", "optional": true }], "outputs": [ { "name": "out", "type": "Deal" } ] }
|
|
116
|
+
],
|
|
117
|
+
"routes": [
|
|
118
|
+
{ "op": "list", "method": "GET", "path": "/api/crm/deal" },
|
|
119
|
+
{ "op": "create", "method": "POST", "path": "/api/crm/deal" },
|
|
120
|
+
{ "op": "delete_by_query", "method": "DELETE", "path": "/api/crm/deal" },
|
|
121
|
+
{ "op": "count", "method": "GET", "path": "/api/crm/deal/count" },
|
|
122
|
+
{ "op": "batch_get", "method": "POST", "path": "/api/crm/deal/_batch" },
|
|
123
|
+
{ "op": "get", "method": "GET", "path": "/api/crm/deal/:id" },
|
|
124
|
+
{ "op": "update", "method": "PUT", "path": "/api/crm/deal/:id" },
|
|
125
|
+
{ "op": "delete", "method": "DELETE", "path": "/api/crm/deal/:id" }
|
|
126
|
+
],
|
|
127
|
+
"exported": true
|
|
128
|
+
},
|
|
129
|
+
"Pipeline": {
|
|
130
|
+
"fields": [
|
|
131
|
+
{ "name": "id", "type": "ULID", "kind": "scalar" },
|
|
132
|
+
{ "name": "createdAt", "type": "DateTime", "kind": "scalar" },
|
|
133
|
+
{ "name": "updatedAt", "type": "DateTime", "kind": "scalar" },
|
|
134
|
+
{ "name": "name", "type": "string", "kind": "scalar" },
|
|
135
|
+
{ "name": "description", "type": "string", "optional": true, "kind": "scalar" },
|
|
136
|
+
{ "name": "stages", "type": "PipelineStage", "array": true, "kind": "relation", "target": "PipelineStage", "target_cart": "crm", "relation_kind": "many_to_many" },
|
|
137
|
+
{ "name": "deals", "type": "Deal", "array": true, "kind": "relation", "target": "Deal", "target_cart": "crm", "relation_kind": "many_to_many" }
|
|
138
|
+
],
|
|
139
|
+
"indices": [],
|
|
140
|
+
"searchFields": [],
|
|
141
|
+
"methods": [
|
|
142
|
+
{ "name": "find_by_id", "inputs": [ { "name": "id", "type": "string" } ], "outputs": [ { "name": "out", "type": "Pipeline" } ] },
|
|
143
|
+
{ "name": "list", "inputs": [], "outputs": [ { "name": "out", "type": "list<Pipeline>" } ] },
|
|
144
|
+
{ "name": "delete", "inputs": [ { "name": "id", "type": "string" } ], "outputs": [] },
|
|
145
|
+
{ "name": "create", "inputs": [{ "name": "id", "type": "ULID" }, { "name": "name", "type": "string" }, { "name": "description", "type": "string", "optional": true }], "outputs": [ { "name": "out", "type": "Pipeline" } ] },
|
|
146
|
+
{ "name": "update", "inputs": [{ "name": "id", "type": "string" }, { "name": "id", "type": "ULID", "optional": true }, { "name": "name", "type": "string", "optional": true }, { "name": "description", "type": "string", "optional": true }, { "name": "stagesId", "type": "string", "optional": true }, { "name": "dealsId", "type": "string", "optional": true }], "outputs": [ { "name": "out", "type": "Pipeline" } ] }
|
|
147
|
+
],
|
|
148
|
+
"routes": [
|
|
149
|
+
{ "op": "list", "method": "GET", "path": "/api/crm/pipeline" },
|
|
150
|
+
{ "op": "create", "method": "POST", "path": "/api/crm/pipeline" },
|
|
151
|
+
{ "op": "delete_by_query", "method": "DELETE", "path": "/api/crm/pipeline" },
|
|
152
|
+
{ "op": "count", "method": "GET", "path": "/api/crm/pipeline/count" },
|
|
153
|
+
{ "op": "batch_get", "method": "POST", "path": "/api/crm/pipeline/_batch" },
|
|
154
|
+
{ "op": "get", "method": "GET", "path": "/api/crm/pipeline/:id" },
|
|
155
|
+
{ "op": "update", "method": "PUT", "path": "/api/crm/pipeline/:id" },
|
|
156
|
+
{ "op": "delete", "method": "DELETE", "path": "/api/crm/pipeline/:id" }
|
|
157
|
+
],
|
|
158
|
+
"exported": false
|
|
159
|
+
},
|
|
160
|
+
"PipelineStage": {
|
|
161
|
+
"fields": [
|
|
162
|
+
{ "name": "id", "type": "ULID", "kind": "scalar" },
|
|
163
|
+
{ "name": "createdAt", "type": "DateTime", "kind": "scalar" },
|
|
164
|
+
{ "name": "updatedAt", "type": "DateTime", "kind": "scalar" },
|
|
165
|
+
{ "name": "name", "type": "string", "kind": "scalar" },
|
|
166
|
+
{ "name": "order", "type": "u32", "kind": "scalar" },
|
|
167
|
+
{ "name": "pipeline", "type": "Pipeline", "kind": "relation", "target": "Pipeline", "target_cart": "crm", "fk_field": "pipelineId", "relation_kind": "many_to_one" },
|
|
168
|
+
{ "name": "deals", "type": "Deal", "array": true, "kind": "relation", "target": "Deal", "target_cart": "crm", "relation_kind": "many_to_many" }
|
|
169
|
+
],
|
|
170
|
+
"indices": [],
|
|
171
|
+
"searchFields": [],
|
|
172
|
+
"methods": [
|
|
173
|
+
{ "name": "find_by_id", "inputs": [ { "name": "id", "type": "string" } ], "outputs": [ { "name": "out", "type": "PipelineStage" } ] },
|
|
174
|
+
{ "name": "list", "inputs": [], "outputs": [ { "name": "out", "type": "list<PipelineStage>" } ] },
|
|
175
|
+
{ "name": "delete", "inputs": [ { "name": "id", "type": "string" } ], "outputs": [] },
|
|
176
|
+
{ "name": "create", "inputs": [{ "name": "id", "type": "ULID" }, { "name": "name", "type": "string" }, { "name": "order", "type": "u32" }, { "name": "pipelineId", "type": "string" }], "outputs": [ { "name": "out", "type": "PipelineStage" } ] },
|
|
177
|
+
{ "name": "update", "inputs": [{ "name": "id", "type": "string" }, { "name": "id", "type": "ULID", "optional": true }, { "name": "name", "type": "string", "optional": true }, { "name": "order", "type": "u32", "optional": true }, { "name": "pipelineId", "type": "string", "optional": true }, { "name": "dealsId", "type": "string", "optional": true }], "outputs": [ { "name": "out", "type": "PipelineStage" } ] }
|
|
178
|
+
],
|
|
179
|
+
"routes": [
|
|
180
|
+
{ "op": "list", "method": "GET", "path": "/api/crm/pipelinestage" },
|
|
181
|
+
{ "op": "create", "method": "POST", "path": "/api/crm/pipelinestage" },
|
|
182
|
+
{ "op": "delete_by_query", "method": "DELETE", "path": "/api/crm/pipelinestage" },
|
|
183
|
+
{ "op": "count", "method": "GET", "path": "/api/crm/pipelinestage/count" },
|
|
184
|
+
{ "op": "batch_get", "method": "POST", "path": "/api/crm/pipelinestage/_batch" },
|
|
185
|
+
{ "op": "get", "method": "GET", "path": "/api/crm/pipelinestage/:id" },
|
|
186
|
+
{ "op": "update", "method": "PUT", "path": "/api/crm/pipelinestage/:id" },
|
|
187
|
+
{ "op": "delete", "method": "DELETE", "path": "/api/crm/pipelinestage/:id" }
|
|
188
|
+
],
|
|
189
|
+
"exported": false
|
|
190
|
+
},
|
|
191
|
+
"PipelineStageTransition": {
|
|
192
|
+
"fields": [
|
|
193
|
+
{ "name": "id", "type": "ULID", "kind": "scalar" },
|
|
194
|
+
{ "name": "createdAt", "type": "DateTime", "kind": "scalar" },
|
|
195
|
+
{ "name": "updatedAt", "type": "DateTime", "kind": "scalar" },
|
|
196
|
+
{ "name": "fromPipelineId", "type": "string", "optional": true, "kind": "scalar" },
|
|
197
|
+
{ "name": "toPipelineId", "type": "string", "kind": "scalar" },
|
|
198
|
+
{ "name": "fromStageId", "type": "string", "optional": true, "kind": "scalar" },
|
|
199
|
+
{ "name": "toStageId", "type": "string", "kind": "scalar" },
|
|
200
|
+
{ "name": "movedBy", "type": "User", "optional": true, "kind": "relation", "target": "User", "target_cart": "auth", "fk_field": "movedById", "relation_kind": "many_to_one" }
|
|
201
|
+
],
|
|
202
|
+
"indices": [["fromPipelineId", "toPipelineId", "fromStageId", "toStageId"]],
|
|
203
|
+
"searchFields": [],
|
|
204
|
+
"methods": [
|
|
205
|
+
{ "name": "find_by_id", "inputs": [ { "name": "id", "type": "string" } ], "outputs": [ { "name": "out", "type": "PipelineStageTransition" } ] },
|
|
206
|
+
{ "name": "list", "inputs": [], "outputs": [ { "name": "out", "type": "list<PipelineStageTransition>" } ] },
|
|
207
|
+
{ "name": "delete", "inputs": [ { "name": "id", "type": "string" } ], "outputs": [] },
|
|
208
|
+
{ "name": "create", "inputs": [{ "name": "id", "type": "ULID" }, { "name": "toPipelineId", "type": "string" }, { "name": "toStageId", "type": "string" }, { "name": "fromPipelineId", "type": "string", "optional": true }, { "name": "fromStageId", "type": "string", "optional": true }, { "name": "movedById", "type": "string", "optional": true }], "outputs": [ { "name": "out", "type": "PipelineStageTransition" } ] },
|
|
209
|
+
{ "name": "update", "inputs": [{ "name": "id", "type": "string" }, { "name": "id", "type": "ULID", "optional": true }, { "name": "fromPipelineId", "type": "string", "optional": true }, { "name": "toPipelineId", "type": "string", "optional": true }, { "name": "fromStageId", "type": "string", "optional": true }, { "name": "toStageId", "type": "string", "optional": true }, { "name": "movedById", "type": "string", "optional": true }], "outputs": [ { "name": "out", "type": "PipelineStageTransition" } ] }
|
|
210
|
+
],
|
|
211
|
+
"routes": [
|
|
212
|
+
{ "op": "list", "method": "GET", "path": "/api/crm/pipelinestagetransition" },
|
|
213
|
+
{ "op": "create", "method": "POST", "path": "/api/crm/pipelinestagetransition" },
|
|
214
|
+
{ "op": "delete_by_query", "method": "DELETE", "path": "/api/crm/pipelinestagetransition" },
|
|
215
|
+
{ "op": "count", "method": "GET", "path": "/api/crm/pipelinestagetransition/count" },
|
|
216
|
+
{ "op": "batch_get", "method": "POST", "path": "/api/crm/pipelinestagetransition/_batch" },
|
|
217
|
+
{ "op": "get", "method": "GET", "path": "/api/crm/pipelinestagetransition/:id" },
|
|
218
|
+
{ "op": "update", "method": "PUT", "path": "/api/crm/pipelinestagetransition/:id" },
|
|
219
|
+
{ "op": "delete", "method": "DELETE", "path": "/api/crm/pipelinestagetransition/:id" }
|
|
220
|
+
],
|
|
221
|
+
"exported": false
|
|
222
|
+
}
|
|
223
|
+
},
|
|
224
|
+
"structs": [],
|
|
225
|
+
"enums": [],
|
|
226
|
+
"imports": {
|
|
227
|
+
"auth": {
|
|
228
|
+
"entities": ["User"],
|
|
229
|
+
"enums": []
|
|
230
|
+
}
|
|
231
|
+
},
|
|
232
|
+
"actions": [],
|
|
233
|
+
"middleware": [],
|
|
234
|
+
"workflows": [],
|
|
235
|
+
"schedules": [],
|
|
236
|
+
"tasks": [],
|
|
237
|
+
"tools": [],
|
|
238
|
+
"widgets": []
|
|
239
|
+
}
|