@dazl/api-client 1.0.5 → 1.0.7
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/db/generated-types.d.ts +11 -1
- package/dist/db/generated-types.d.ts.map +1 -1
- package/dist/internal/index.d.ts +2 -2
- package/dist/internal/index.d.ts.map +1 -1
- package/dist/internal/index.js +1 -1
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/sdk.gen.d.ts +5 -1
- package/dist/internal/sdk.gen.d.ts.map +1 -1
- package/dist/internal/sdk.gen.js +15 -0
- package/dist/internal/sdk.gen.js.map +1 -1
- package/dist/internal/types.gen.d.ts +116 -10
- package/dist/internal/types.gen.d.ts.map +1 -1
- package/dist/public/index.d.ts +2 -2
- package/dist/public/index.d.ts.map +1 -1
- package/dist/public/index.js +1 -1
- package/dist/public/index.js.map +1 -1
- package/dist/public/sdk.gen.d.ts +5 -1
- package/dist/public/sdk.gen.d.ts.map +1 -1
- package/dist/public/sdk.gen.js +15 -0
- package/dist/public/sdk.gen.js.map +1 -1
- package/dist/public/types.gen.d.ts +106 -0
- package/dist/public/types.gen.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/db/generated-types.ts +12 -1
- package/src/internal/index.ts +2 -2
- package/src/internal/sdk.gen.ts +18 -1
- package/src/internal/types.gen.ts +127 -10
- package/src/public/index.ts +2 -2
- package/src/public/sdk.gen.ts +18 -1
- package/src/public/types.gen.ts +117 -0
|
@@ -454,6 +454,12 @@ export type FeatureToggle = {
|
|
|
454
454
|
scope: 'RemoteAndEditor' | 'SiteAndEditor';
|
|
455
455
|
updatedAt: string;
|
|
456
456
|
};
|
|
457
|
+
export type Workspace = {
|
|
458
|
+
id: string;
|
|
459
|
+
name: string;
|
|
460
|
+
dazlUserId: string;
|
|
461
|
+
createdAt: string;
|
|
462
|
+
};
|
|
457
463
|
export type EnsureMyUserData = {
|
|
458
464
|
body?: {
|
|
459
465
|
name?: string;
|
|
@@ -5805,7 +5811,7 @@ export type GetUserActivePromotionsResponse = GetUserActivePromotionsResponses[k
|
|
|
5805
5811
|
export type DeleteCommentData = {
|
|
5806
5812
|
body?: never;
|
|
5807
5813
|
path: {
|
|
5808
|
-
hostType: 'project' | '
|
|
5814
|
+
hostType: 'project' | 'workspace';
|
|
5809
5815
|
hostId: string;
|
|
5810
5816
|
commentId: string;
|
|
5811
5817
|
};
|
|
@@ -5858,7 +5864,7 @@ export type DeleteCommentResponse = DeleteCommentResponses[keyof DeleteCommentRe
|
|
|
5858
5864
|
export type GetCommentData = {
|
|
5859
5865
|
body?: never;
|
|
5860
5866
|
path: {
|
|
5861
|
-
hostType: 'project' | '
|
|
5867
|
+
hostType: 'project' | 'workspace';
|
|
5862
5868
|
hostId: string;
|
|
5863
5869
|
commentId: string;
|
|
5864
5870
|
};
|
|
@@ -5934,7 +5940,7 @@ export type GetCommentResponse = GetCommentResponses[keyof GetCommentResponses];
|
|
|
5934
5940
|
export type EditCommentData = {
|
|
5935
5941
|
body: EditCommentInput;
|
|
5936
5942
|
path: {
|
|
5937
|
-
hostType: 'project' | '
|
|
5943
|
+
hostType: 'project' | 'workspace';
|
|
5938
5944
|
hostId: string;
|
|
5939
5945
|
commentId: string;
|
|
5940
5946
|
};
|
|
@@ -6010,7 +6016,7 @@ export type EditCommentResponse = EditCommentResponses[keyof EditCommentResponse
|
|
|
6010
6016
|
export type ListCommentsData = {
|
|
6011
6017
|
body?: never;
|
|
6012
6018
|
path: {
|
|
6013
|
-
hostType: 'project' | '
|
|
6019
|
+
hostType: 'project' | 'workspace';
|
|
6014
6020
|
hostId: string;
|
|
6015
6021
|
};
|
|
6016
6022
|
query?: never;
|
|
@@ -6085,7 +6091,7 @@ export type ListCommentsResponse = ListCommentsResponses[keyof ListCommentsRespo
|
|
|
6085
6091
|
export type CreateCommentData = {
|
|
6086
6092
|
body: CreateCommentInput;
|
|
6087
6093
|
path: {
|
|
6088
|
-
hostType: 'project' | '
|
|
6094
|
+
hostType: 'project' | 'workspace';
|
|
6089
6095
|
hostId: string;
|
|
6090
6096
|
};
|
|
6091
6097
|
query?: never;
|
|
@@ -6160,7 +6166,7 @@ export type CreateCommentResponse = CreateCommentResponses[keyof CreateCommentRe
|
|
|
6160
6166
|
export type ResolveCommentData = {
|
|
6161
6167
|
body?: never;
|
|
6162
6168
|
path: {
|
|
6163
|
-
hostType: 'project' | '
|
|
6169
|
+
hostType: 'project' | 'workspace';
|
|
6164
6170
|
hostId: string;
|
|
6165
6171
|
commentId: string;
|
|
6166
6172
|
};
|
|
@@ -6236,7 +6242,7 @@ export type ResolveCommentResponse = ResolveCommentResponses[keyof ResolveCommen
|
|
|
6236
6242
|
export type ReopenCommentData = {
|
|
6237
6243
|
body?: never;
|
|
6238
6244
|
path: {
|
|
6239
|
-
hostType: 'project' | '
|
|
6245
|
+
hostType: 'project' | 'workspace';
|
|
6240
6246
|
hostId: string;
|
|
6241
6247
|
commentId: string;
|
|
6242
6248
|
};
|
|
@@ -6312,7 +6318,7 @@ export type ReopenCommentResponse = ReopenCommentResponses[keyof ReopenCommentRe
|
|
|
6312
6318
|
export type CreateReplyData = {
|
|
6313
6319
|
body: CreateReplyInput;
|
|
6314
6320
|
path: {
|
|
6315
|
-
hostType: 'project' | '
|
|
6321
|
+
hostType: 'project' | 'workspace';
|
|
6316
6322
|
hostId: string;
|
|
6317
6323
|
commentId: string;
|
|
6318
6324
|
};
|
|
@@ -6374,7 +6380,7 @@ export type CreateReplyResponse = CreateReplyResponses[keyof CreateReplyResponse
|
|
|
6374
6380
|
export type DeleteReplyData = {
|
|
6375
6381
|
body?: never;
|
|
6376
6382
|
path: {
|
|
6377
|
-
hostType: 'project' | '
|
|
6383
|
+
hostType: 'project' | 'workspace';
|
|
6378
6384
|
hostId: string;
|
|
6379
6385
|
commentId: string;
|
|
6380
6386
|
replyId: string;
|
|
@@ -6428,7 +6434,7 @@ export type DeleteReplyResponse = DeleteReplyResponses[keyof DeleteReplyResponse
|
|
|
6428
6434
|
export type EditReplyData = {
|
|
6429
6435
|
body: EditReplyInput;
|
|
6430
6436
|
path: {
|
|
6431
|
-
hostType: 'project' | '
|
|
6437
|
+
hostType: 'project' | 'workspace';
|
|
6432
6438
|
hostId: string;
|
|
6433
6439
|
commentId: string;
|
|
6434
6440
|
replyId: string;
|
|
@@ -6641,4 +6647,104 @@ export type UpdateMyUserResponses = {
|
|
|
6641
6647
|
};
|
|
6642
6648
|
};
|
|
6643
6649
|
export type UpdateMyUserResponse = UpdateMyUserResponses[keyof UpdateMyUserResponses];
|
|
6650
|
+
export type CreateWorkspaceData = {
|
|
6651
|
+
body: {
|
|
6652
|
+
name: string;
|
|
6653
|
+
};
|
|
6654
|
+
path?: never;
|
|
6655
|
+
query?: never;
|
|
6656
|
+
url: '/workspace/create';
|
|
6657
|
+
};
|
|
6658
|
+
export type CreateWorkspaceErrors = {
|
|
6659
|
+
/**
|
|
6660
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
6661
|
+
*/
|
|
6662
|
+
400: {
|
|
6663
|
+
message: string;
|
|
6664
|
+
issues?: string;
|
|
6665
|
+
};
|
|
6666
|
+
/**
|
|
6667
|
+
* Unauthorized
|
|
6668
|
+
*/
|
|
6669
|
+
401: ErrorResponse;
|
|
6670
|
+
/**
|
|
6671
|
+
* Forbidden
|
|
6672
|
+
*/
|
|
6673
|
+
403: ErrorResponse;
|
|
6674
|
+
/**
|
|
6675
|
+
* Not Found
|
|
6676
|
+
*/
|
|
6677
|
+
404: ErrorResponse;
|
|
6678
|
+
/**
|
|
6679
|
+
* Conflict
|
|
6680
|
+
*/
|
|
6681
|
+
409: ErrorResponse;
|
|
6682
|
+
/**
|
|
6683
|
+
* Internal server error
|
|
6684
|
+
*/
|
|
6685
|
+
500: ErrorResponse;
|
|
6686
|
+
/**
|
|
6687
|
+
* Service Unavailable
|
|
6688
|
+
*/
|
|
6689
|
+
503: ErrorResponse;
|
|
6690
|
+
};
|
|
6691
|
+
export type CreateWorkspaceError = CreateWorkspaceErrors[keyof CreateWorkspaceErrors];
|
|
6692
|
+
export type CreateWorkspaceResponses = {
|
|
6693
|
+
/**
|
|
6694
|
+
* Returns the created workspace
|
|
6695
|
+
*/
|
|
6696
|
+
200: {
|
|
6697
|
+
workspace: Workspace;
|
|
6698
|
+
};
|
|
6699
|
+
};
|
|
6700
|
+
export type CreateWorkspaceResponse = CreateWorkspaceResponses[keyof CreateWorkspaceResponses];
|
|
6701
|
+
export type GetAllWorkspacesData = {
|
|
6702
|
+
body?: never;
|
|
6703
|
+
path?: never;
|
|
6704
|
+
query?: never;
|
|
6705
|
+
url: '/workspace/list-my';
|
|
6706
|
+
};
|
|
6707
|
+
export type GetAllWorkspacesErrors = {
|
|
6708
|
+
/**
|
|
6709
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
6710
|
+
*/
|
|
6711
|
+
400: {
|
|
6712
|
+
message: string;
|
|
6713
|
+
issues?: string;
|
|
6714
|
+
};
|
|
6715
|
+
/**
|
|
6716
|
+
* Unauthorized
|
|
6717
|
+
*/
|
|
6718
|
+
401: ErrorResponse;
|
|
6719
|
+
/**
|
|
6720
|
+
* Forbidden
|
|
6721
|
+
*/
|
|
6722
|
+
403: ErrorResponse;
|
|
6723
|
+
/**
|
|
6724
|
+
* Not Found
|
|
6725
|
+
*/
|
|
6726
|
+
404: ErrorResponse;
|
|
6727
|
+
/**
|
|
6728
|
+
* Conflict
|
|
6729
|
+
*/
|
|
6730
|
+
409: ErrorResponse;
|
|
6731
|
+
/**
|
|
6732
|
+
* Internal server error
|
|
6733
|
+
*/
|
|
6734
|
+
500: ErrorResponse;
|
|
6735
|
+
/**
|
|
6736
|
+
* Service Unavailable
|
|
6737
|
+
*/
|
|
6738
|
+
503: ErrorResponse;
|
|
6739
|
+
};
|
|
6740
|
+
export type GetAllWorkspacesError = GetAllWorkspacesErrors[keyof GetAllWorkspacesErrors];
|
|
6741
|
+
export type GetAllWorkspacesResponses = {
|
|
6742
|
+
/**
|
|
6743
|
+
* Returns the list of workspaces for the current user
|
|
6744
|
+
*/
|
|
6745
|
+
200: {
|
|
6746
|
+
workspaces: Array<Workspace>;
|
|
6747
|
+
};
|
|
6748
|
+
};
|
|
6749
|
+
export type GetAllWorkspacesResponse = GetAllWorkspacesResponses[keyof GetAllWorkspacesResponses];
|
|
6644
6750
|
//# sourceMappingURL=types.gen.d.ts.map
|