Skip to content

Commit 0308a30

Browse files
committed
Update API paths in Dart component and increment version numbers for task actions and document sources
1 parent 31bcfa6 commit 0308a30

File tree

7 files changed

+12
-12
lines changed

7 files changed

+12
-12
lines changed

components/dart/actions/create-task/create-task.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "dart-create-task",
55
name: "Create Task",
66
description: "Creates a new task within a dartboard. [See the documentation](https://app.itsdart.com/api/v0/docs/)",
7-
version: "0.0.3",
7+
version: "0.0.4",
88
annotations: {
99
destructiveHint: false,
1010
openWorldHint: true,

components/dart/actions/find-or-create-task/find-or-create-task.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "dart-find-or-create-task",
55
name: "Find or Create Task",
66
description: "Checks for an existing task within a dartboard using the 'task-name'. If it doesn't exist, a new task is created. [See the documentation](https://app.itsdart.com/api/v0/docs/)",
7-
version: "0.0.3",
7+
version: "0.0.4",
88
annotations: {
99
destructiveHint: false,
1010
openWorldHint: true,

components/dart/actions/update-task/update-task.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "dart-update-task",
55
name: "Update Task",
66
description: "Updates an existing task within a dartboard. [See the documentation](https://app.itsdart.com/api/v0/docs/)",
7-
version: "0.0.3",
7+
version: "0.0.4",
88
annotations: {
99
destructiveHint: true,
1010
openWorldHint: true,

components/dart/dart.app.mjs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ export default {
126126
},
127127
methods: {
128128
_baseUrl() {
129-
return "https://app.dartai.com/api/v0/public";
129+
return "https://app.dartai.com/api/v0";
130130
},
131131
_makeRequest(opts = {}) {
132132
const {
@@ -144,7 +144,7 @@ export default {
144144
},
145145
listDocs(opts = {}) {
146146
return this._makeRequest({
147-
path: "/docs/list",
147+
path: "/docs",
148148
...opts,
149149
});
150150
},
@@ -169,21 +169,21 @@ export default {
169169
createTransaction(opts = {}) {
170170
return this._makeRequest({
171171
method: "POST",
172-
path: "/transactions/create",
172+
path: "/public/transactions/create",
173173
...opts,
174174
});
175175
},
176176
createDoc(opts = {}) {
177177
return this._makeRequest({
178178
method: "POST",
179-
path: "/docs",
179+
path: "/public/docs",
180180
...opts,
181181
});
182182
},
183183
updateDoc(opts = {}) {
184184
return this._makeRequest({
185185
method: "PUT",
186-
path: `/docs/${opts.data.item.id}`,
186+
path: `/public/docs/${opts.data.item.id}`,
187187
...opts,
188188
});
189189
},
@@ -192,7 +192,7 @@ export default {
192192
}) {
193193
return this._makeRequest({
194194
method: "DELETE",
195-
path: `/docs/${docId}`,
195+
path: `/public/docs/${docId}`,
196196
...opts,
197197
});
198198
},

components/dart/sources/new-doc-created/new-doc-created.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default {
66
key: "dart-new-doc-created",
77
name: "New Document Created",
88
description: "Emit new event when a new document is created in Dart.",
9-
version: "0.0.2",
9+
version: "0.0.3",
1010
type: "source",
1111
dedupe: "unique",
1212
methods: {

components/dart/sources/new-doc-updated/new-doc-updated.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default {
77
key: "dart-new-doc-updated",
88
name: "New Document Updated",
99
description: "Emit new event when any document is updated.",
10-
version: "0.0.2",
10+
version: "0.0.3",
1111
dedupe: "unique",
1212
methods: {
1313
...common.methods,

components/dart/sources/new-task-created/new-task-created.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default {
66
key: "dart-new-task-created",
77
name: "New Task Created",
88
description: "Emit new event when a task is created.",
9-
version: "0.0.2",
9+
version: "0.0.3",
1010
type: "source",
1111
dedupe: "unique",
1212
methods: {

0 commit comments

Comments
 (0)