Skip to content

Commit 6b24d0a

Browse files
committed
Pin deps and update API
1 parent 77aff91 commit 6b24d0a

25 files changed

+90
-45
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ const taskCreate: TaskCreate = {
7777
title: "Update the landing page",
7878
priority: Priority.CRITICAL,
7979
};
80-
await TransactionsService.transactionsCreate({
80+
const createResult = await TransactionsService.transactionsCreate({
8181
items: [{
8282
duid: makeDuid(),
8383
kind: TransactionKind.TASK_CREATE,

admin/make-api.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ set -e
55

66
rm -rf dart/generated
77
openapi --input https://app.itsdart.com/api/v0/schema/ --output ./dart/generated --client axios --indent 2
8-
printf '\nOpenAPI.BASE = process.env.DART_API_BASE_URL || '\''https://app.itsdart.com'\'';' >> ./dart/generated/core/OpenAPI.ts
8+
printf '\nOpenAPI.BASE = process.env.DART_API_BASE_URL ?? '\''https://app.itsdart.com'\'';' >> ./dart/generated/core/OpenAPI.ts
99
printf '\nOpenAPI.HEADERS = { Authorization: `Bearer ${process.env.DART_TOKEN}` };\n' >> ./dart/generated/core/OpenAPI.ts

dart/generated/core/OpenAPI.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,5 @@ export const OpenAPI: OpenAPIConfig = {
3131
ENCODE_PATH: undefined,
3232
};
3333

34-
OpenAPI.BASE = process.env.DART_API_BASE_URL || 'https://app.itsdart.com';
34+
OpenAPI.BASE = process.env.DART_API_BASE_URL ?? 'https://app.itsdart.com';
3535
OpenAPI.HEADERS = { Authorization: `Bearer ${process.env.DART_TOKEN}` };

dart/generated/models/BarChartAdtl.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,11 @@
22
/* istanbul ignore file */
33
/* tslint:disable */
44
/* eslint-disable */
5+
import type { ChartAggregation } from './ChartAggregation';
56
export type BarChartAdtl = {
67
xPropertyDuid: string;
78
stackPropertyDuid: string | null;
9+
aggregationPropertyDuid: string | null;
10+
aggregation: ChartAggregation;
811
};
912

dart/generated/models/Space.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import type { SprintMode } from './SprintMode';
88
export type Space = {
99
duid: string;
1010
updatedByClientDuid?: string | null;
11-
drafterDuid: string | null;
1211
kind: SpaceKind;
1312
accessibleByTeam: boolean;
1413
accessibleByUserDuids: Array<string>;

dart/generated/models/SpaceCreate.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import type { IconKind } from './IconKind';
66
import type { SprintMode } from './SprintMode';
77
export type SpaceCreate = {
88
duid: string;
9-
drafterDuid?: string | null;
109
accessibleByTeam?: boolean;
1110
accessibleByUserDuids?: Array<string>;
1211
order: string;

dart/generated/models/SpaceUpdate.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import type { IconKind } from './IconKind';
66
import type { SprintMode } from './SprintMode';
77
export type SpaceUpdate = {
88
duid: string;
9-
drafterDuid?: string | null;
109
accessibleByTeam?: boolean;
1110
accessibleByUserDuids?: Array<string>;
1211
order?: string;

dart/generated/models/TableChartAdtl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import type { ChartAggregation } from './ChartAggregation';
66
export type TableChartAdtl = {
77
columnPropertyDuid: string;
88
rowPropertyDuid: string | null;
9-
aggregation: ChartAggregation;
109
aggregationPropertyDuid: string | null;
10+
aggregation: ChartAggregation;
1111
};
1212

dart/generated/models/Tenant.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export type Tenant = {
2121
backlogEnabled: boolean;
2222
aiAssignmentEnabled: boolean;
2323
emailIntegrationEnabled: boolean;
24+
scimEnabled: boolean;
2425
closeParentOnCloseAllSubtasks: boolean;
2526
moveSubtasksOnMoveParent: boolean;
2627
updateSubtasksStatusOnUpdateParentStatus: boolean;

dart/generated/models/TenantUpdate.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ export type TenantUpdate = {
88
backlogEnabled?: boolean;
99
aiAssignmentEnabled?: boolean;
1010
emailIntegrationEnabled?: boolean;
11+
scimEnabled?: boolean;
1112
closeParentOnCloseAllSubtasks?: boolean;
1213
moveSubtasksOnMoveParent?: boolean;
1314
updateSubtasksStatusOnUpdateParentStatus?: boolean;

dart/generated/services/CommentsService.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export class CommentsService {
1010
/**
1111
* @param author
1212
* @param authorDuid
13+
* @param duids Filter by DUIDs
1314
* @param limit Number of results to return per page.
1415
* @param offset The initial index from which to return the results.
1516
* @param publishedAt
@@ -23,6 +24,7 @@ export class CommentsService {
2324
public static commentsList(
2425
author?: string,
2526
authorDuid?: string,
27+
duids?: string,
2628
limit?: number,
2729
offset?: number,
2830
publishedAt?: string,
@@ -37,6 +39,7 @@ export class CommentsService {
3739
query: {
3840
'author': author,
3941
'author_duid': authorDuid,
42+
'duids': duids,
4043
'limit': limit,
4144
'offset': offset,
4245
'published_at': publishedAt,

dart/generated/services/DartboardsService.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import { OpenAPI } from '../core/OpenAPI';
88
import { request as __request } from '../core/request';
99
export class DartboardsService {
1010
/**
11+
* @param duids Filter by DUIDs
1112
* @param finishedAt
1213
* @param kind
1314
* @param limit Number of results to return per page.
@@ -20,6 +21,7 @@ export class DartboardsService {
2021
* @throws ApiError
2122
*/
2223
public static dartboardsList(
24+
duids?: string,
2325
finishedAt?: string,
2426
kind?: 'Active' | 'Backlog' | 'Custom' | 'Finished' | 'Next',
2527
limit?: number,
@@ -33,6 +35,7 @@ export class DartboardsService {
3335
method: 'GET',
3436
url: '/api/v0/dartboards',
3537
query: {
38+
'duids': duids,
3639
'finished_at': finishedAt,
3740
'kind': kind,
3841
'limit': limit,

dart/generated/services/DashboardsService.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,15 @@ import { OpenAPI } from '../core/OpenAPI';
88
import { request as __request } from '../core/request';
99
export class DashboardsService {
1010
/**
11+
* @param duids Filter by DUIDs
1112
* @param limit Number of results to return per page.
1213
* @param offset The initial index from which to return the results.
1314
* @param title
1415
* @returns PaginatedDashboardList
1516
* @throws ApiError
1617
*/
1718
public static dashboardsList(
19+
duids?: string,
1820
limit?: number,
1921
offset?: number,
2022
title?: string,
@@ -23,6 +25,7 @@ export class DashboardsService {
2325
method: 'GET',
2426
url: '/api/v0/dashboards',
2527
query: {
28+
'duids': duids,
2629
'limit': limit,
2730
'offset': offset,
2831
'title': title,

dart/generated/services/DocsService.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import { OpenAPI } from '../core/OpenAPI';
88
import { request as __request } from '../core/request';
99
export class DocsService {
1010
/**
11+
* @param duids Filter by DUIDs
1112
* @param editor
1213
* @param editorDuid
1314
* @param folder
@@ -17,6 +18,10 @@ export class DocsService {
1718
* @param limit Number of results to return per page.
1819
* @param o Ordering
1920
*
21+
* * `order` - Order
22+
* * `-order` - Order (descending)
23+
* * `created` - Created at
24+
* * `-created` - Created at (descending)
2025
* * `recent` - Recent
2126
* * `-recent` - Recent (descending)
2227
* * `title` - Title
@@ -32,14 +37,15 @@ export class DocsService {
3237
* @throws ApiError
3338
*/
3439
public static docsList(
40+
duids?: string,
3541
editor?: string,
3642
editorDuid?: string,
3743
folder?: string,
3844
folderDuid?: string,
3945
inTrash?: boolean,
4046
isDraft?: boolean,
4147
limit?: number,
42-
o?: Array<'-recent' | '-title' | 'recent' | 'title'>,
48+
o?: Array<'-created' | '-order' | '-recent' | '-title' | 'created' | 'order' | 'recent' | 'title'>,
4349
offset?: number,
4450
reportKind?: string,
4551
s?: string,
@@ -52,6 +58,7 @@ export class DocsService {
5258
method: 'GET',
5359
url: '/api/v0/docs',
5460
query: {
61+
'duids': duids,
5562
'editor': editor,
5663
'editor_duid': editorDuid,
5764
'folder': folder,

dart/generated/services/FoldersService.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import { OpenAPI } from '../core/OpenAPI';
88
import { request as __request } from '../core/request';
99
export class FoldersService {
1010
/**
11+
* @param duids Filter by DUIDs
1112
* @param kind
1213
* @param limit Number of results to return per page.
1314
* @param offset The initial index from which to return the results.
@@ -18,6 +19,7 @@ export class FoldersService {
1819
* @throws ApiError
1920
*/
2021
public static foldersList(
22+
duids?: string,
2123
kind?: 'Default' | 'Other' | 'Reports',
2224
limit?: number,
2325
offset?: number,
@@ -29,6 +31,7 @@ export class FoldersService {
2931
method: 'GET',
3032
url: '/api/v0/folders',
3133
query: {
34+
'duids': duids,
3235
'kind': kind,
3336
'limit': limit,
3437
'offset': offset,

dart/generated/services/OptionsService.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import { request as __request } from '../core/request';
99
export class OptionsService {
1010
/**
1111
* @param defaultOnly
12+
* @param duids Filter by DUIDs
1213
* @param limit Number of results to return per page.
1314
* @param offset The initial index from which to return the results.
1415
* @param property
@@ -19,6 +20,7 @@ export class OptionsService {
1920
*/
2021
public static optionsList(
2122
defaultOnly?: boolean,
23+
duids?: string,
2224
limit?: number,
2325
offset?: number,
2426
property?: string,
@@ -30,6 +32,7 @@ export class OptionsService {
3032
url: '/api/v0/options',
3133
query: {
3234
'default_only': defaultOnly,
35+
'duids': duids,
3336
'limit': limit,
3437
'offset': offset,
3538
'property': property,

dart/generated/services/PropertiesService.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import { OpenAPI } from '../core/OpenAPI';
88
import { request as __request } from '../core/request';
99
export class PropertiesService {
1010
/**
11+
* @param duids Filter by DUIDs
1112
* @param kind
1213
* @param limit Number of results to return per page.
1314
* @param offset The initial index from which to return the results.
@@ -16,6 +17,7 @@ export class PropertiesService {
1617
* @throws ApiError
1718
*/
1819
public static propertiesList(
20+
duids?: string,
1921
kind?: 'Checkbox' | 'Dates' | 'Default: Assignees' | 'Default: Attachments' | 'Default: Created' | 'Default: Created by' | 'Default: Dartboard' | 'Default: Dates' | 'Default: Description' | 'Default: Last updated' | 'Default: Last updated by' | 'Default: Priority' | 'Default: Size' | 'Default: Status' | 'Default: Tags' | 'Default: Time tracking' | 'Default: Title' | 'Default: Type' | 'Multiselect' | 'Number' | 'Select' | 'Status' | 'Text' | 'Time tracking' | 'User',
2022
limit?: number,
2123
offset?: number,
@@ -25,6 +27,7 @@ export class PropertiesService {
2527
method: 'GET',
2628
url: '/api/v0/properties',
2729
query: {
30+
'duids': duids,
2831
'kind': kind,
2932
'limit': limit,
3033
'offset': offset,

dart/generated/services/SpacesService.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export class SpacesService {
1010
/**
1111
* @param abrev
1212
* @param description
13+
* @param duids Filter by DUIDs
1314
* @param limit Number of results to return per page.
1415
* @param offset The initial index from which to return the results.
1516
* @param title
@@ -19,6 +20,7 @@ export class SpacesService {
1920
public static spacesList(
2021
abrev?: string,
2122
description?: string,
23+
duids?: string,
2224
limit?: number,
2325
offset?: number,
2426
title?: string,
@@ -29,6 +31,7 @@ export class SpacesService {
2931
query: {
3032
'abrev': abrev,
3133
'description': description,
34+
'duids': duids,
3235
'limit': limit,
3336
'offset': offset,
3437
'title': title,

dart/generated/services/StatusesService.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import { request as __request } from '../core/request';
99
export class StatusesService {
1010
/**
1111
* @param defaultOnly
12+
* @param duids Filter by DUIDs
1213
* @param kind
1314
* @param limit Number of results to return per page.
1415
* @param offset The initial index from which to return the results.
@@ -20,6 +21,7 @@ export class StatusesService {
2021
*/
2122
public static statusesList(
2223
defaultOnly?: boolean,
24+
duids?: string,
2325
kind?: 'Blocked' | 'Canceled' | 'Finished' | 'Started' | 'Unstarted',
2426
limit?: number,
2527
offset?: number,
@@ -32,6 +34,7 @@ export class StatusesService {
3234
url: '/api/v0/statuses',
3335
query: {
3436
'default_only': defaultOnly,
37+
'duids': duids,
3538
'kind': kind,
3639
'limit': limit,
3740
'offset': offset,

dart/generated/services/TaskKindsService.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import { OpenAPI } from '../core/OpenAPI';
88
import { request as __request } from '../core/request';
99
export class TaskKindsService {
1010
/**
11+
* @param duids Filter by DUIDs
1112
* @param kind
1213
* @param limit Number of results to return per page.
1314
* @param offset The initial index from which to return the results.
@@ -16,6 +17,7 @@ export class TaskKindsService {
1617
* @throws ApiError
1718
*/
1819
public static taskKindsList(
20+
duids?: string,
1921
kind?: 'Default' | 'Milestone',
2022
limit?: number,
2123
offset?: number,
@@ -25,6 +27,7 @@ export class TaskKindsService {
2527
method: 'GET',
2628
url: '/api/v0/task-kinds',
2729
query: {
30+
'duids': duids,
2831
'kind': kind,
2932
'limit': limit,
3033
'offset': offset,

dart/generated/services/TasksService.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ export class TasksService {
1414
* @param dartboardDuid
1515
* @param description
1616
* @param dueAt
17+
* @param duids Filter by DUIDs
1718
* @param inTrash
1819
* @param isDraft
1920
* @param kind
@@ -38,6 +39,7 @@ export class TasksService {
3839
dartboardDuid?: string,
3940
description?: string,
4041
dueAt?: string,
42+
duids?: string,
4143
inTrash?: boolean,
4244
isDraft?: boolean,
4345
kind?: string,
@@ -63,6 +65,7 @@ export class TasksService {
6365
'dartboard_duid': dartboardDuid,
6466
'description': description,
6567
'due_at': dueAt,
68+
'duids': duids,
6669
'in_trash': inTrash,
6770
'is_draft': isDraft,
6871
'kind': kind,

dart/generated/services/UsersService.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import { OpenAPI } from '../core/OpenAPI';
88
import { request as __request } from '../core/request';
99
export class UsersService {
1010
/**
11+
* @param duids Filter by DUIDs
1112
* @param email
1213
* @param limit Number of results to return per page.
1314
* @param name
@@ -17,6 +18,7 @@ export class UsersService {
1718
* @throws ApiError
1819
*/
1920
public static usersList(
21+
duids?: string,
2022
email?: string,
2123
limit?: number,
2224
name?: string,
@@ -27,6 +29,7 @@ export class UsersService {
2729
method: 'GET',
2830
url: '/api/v0/users',
2931
query: {
32+
'duids': duids,
3033
'email': email,
3134
'limit': limit,
3235
'name': name,

0 commit comments

Comments
 (0)