@parra/parra-js-sdk 0.3.86 → 0.3.88
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/ParraAPI.d.ts +21 -1
- package/dist/ParraAPI.js +9 -1
- package/package.json +1 -1
package/dist/ParraAPI.d.ts
CHANGED
|
@@ -820,6 +820,7 @@ export declare enum TicketPriority {
|
|
|
820
820
|
}
|
|
821
821
|
export interface CreateTicketRequestBody {
|
|
822
822
|
title: string;
|
|
823
|
+
short_title?: string | null;
|
|
823
824
|
type: TicketType;
|
|
824
825
|
status: TicketStatus;
|
|
825
826
|
priority?: TicketPriority | null;
|
|
@@ -827,6 +828,7 @@ export interface CreateTicketRequestBody {
|
|
|
827
828
|
voting_enabled: boolean;
|
|
828
829
|
is_public: boolean;
|
|
829
830
|
user_note_id?: string | null;
|
|
831
|
+
estimated_completion_date?: string | null;
|
|
830
832
|
}
|
|
831
833
|
export declare enum ReleaseStatus {
|
|
832
834
|
pending = "pending",
|
|
@@ -864,6 +866,7 @@ export interface TicketStub {
|
|
|
864
866
|
updated_at: string;
|
|
865
867
|
deleted_at?: string | null;
|
|
866
868
|
title: string;
|
|
869
|
+
short_title?: string | null;
|
|
867
870
|
type: TicketType;
|
|
868
871
|
status: TicketStatus;
|
|
869
872
|
priority?: TicketPriority | null;
|
|
@@ -871,9 +874,11 @@ export interface TicketStub {
|
|
|
871
874
|
voting_enabled: boolean;
|
|
872
875
|
is_public: boolean;
|
|
873
876
|
user_note_id?: string | null;
|
|
877
|
+
estimated_completion_date?: string | null;
|
|
874
878
|
ticket_number: string;
|
|
875
879
|
tenant_id: string;
|
|
876
880
|
vote_count: number;
|
|
881
|
+
released_at?: string | null;
|
|
877
882
|
}
|
|
878
883
|
export interface Ticket {
|
|
879
884
|
id: string;
|
|
@@ -881,6 +886,7 @@ export interface Ticket {
|
|
|
881
886
|
updated_at: string;
|
|
882
887
|
deleted_at?: string | null;
|
|
883
888
|
title: string;
|
|
889
|
+
short_title?: string | null;
|
|
884
890
|
type: TicketType;
|
|
885
891
|
status: TicketStatus;
|
|
886
892
|
priority?: TicketPriority | null;
|
|
@@ -888,9 +894,11 @@ export interface Ticket {
|
|
|
888
894
|
voting_enabled: boolean;
|
|
889
895
|
is_public: boolean;
|
|
890
896
|
user_note_id?: string | null;
|
|
897
|
+
estimated_completion_date?: string | null;
|
|
891
898
|
ticket_number: string;
|
|
892
899
|
tenant_id: string;
|
|
893
900
|
vote_count: number;
|
|
901
|
+
released_at?: string | null;
|
|
894
902
|
release?: ReleaseStub;
|
|
895
903
|
}
|
|
896
904
|
export interface TicketCollectionResponse {
|
|
@@ -946,22 +954,26 @@ export interface LinkUserNoteRequestBody {
|
|
|
946
954
|
export interface UpdateTicketRequestBody {
|
|
947
955
|
release_id?: string;
|
|
948
956
|
title?: string;
|
|
957
|
+
short_title?: string;
|
|
949
958
|
type?: TicketType;
|
|
950
959
|
status?: TicketStatus;
|
|
951
960
|
priority?: TicketPriority | null;
|
|
952
961
|
description?: string | null;
|
|
953
962
|
voting_enabled?: boolean;
|
|
954
963
|
is_public?: boolean;
|
|
964
|
+
estimated_completion_date?: string | null;
|
|
955
965
|
}
|
|
956
966
|
export interface BulkUpdateTicketsRequestBody {
|
|
957
967
|
release_id?: string;
|
|
958
968
|
title?: string;
|
|
969
|
+
short_title?: string;
|
|
959
970
|
type?: TicketType;
|
|
960
971
|
status?: TicketStatus;
|
|
961
972
|
priority?: TicketPriority | null;
|
|
962
973
|
description?: string | null;
|
|
963
974
|
voting_enabled?: boolean;
|
|
964
975
|
is_public?: boolean;
|
|
976
|
+
estimated_completion_date?: string | null;
|
|
965
977
|
ticket_ids?: Array<string>;
|
|
966
978
|
}
|
|
967
979
|
export interface UpdateReleaseForTicketRequestBody {
|
|
@@ -969,7 +981,6 @@ export interface UpdateReleaseForTicketRequestBody {
|
|
|
969
981
|
}
|
|
970
982
|
export declare enum TicketDisplayStatus {
|
|
971
983
|
pending = "pending",
|
|
972
|
-
upcoming = "upcoming",
|
|
973
984
|
inProgress = "in_progress",
|
|
974
985
|
live = "live",
|
|
975
986
|
rejected = "rejected"
|
|
@@ -988,6 +999,14 @@ export interface UserTicket {
|
|
|
988
999
|
vote_count: number;
|
|
989
1000
|
voting_enabled: boolean;
|
|
990
1001
|
voted: boolean;
|
|
1002
|
+
ticket_number: string;
|
|
1003
|
+
}
|
|
1004
|
+
export interface ReleaseVersionInfoRequestBody {
|
|
1005
|
+
type: ReleaseType;
|
|
1006
|
+
}
|
|
1007
|
+
export interface ReleaseVersionInfo {
|
|
1008
|
+
version: string;
|
|
1009
|
+
name: string;
|
|
991
1010
|
}
|
|
992
1011
|
export interface ReleaseItemStub {
|
|
993
1012
|
id: string;
|
|
@@ -1674,6 +1693,7 @@ declare class ParraAPI {
|
|
|
1674
1693
|
removeReleaseFromTicketById: (tenant_id: string, ticket_id: string) => Promise<Response>;
|
|
1675
1694
|
voteForTicketById: (tenant_id: string, ticket_id: string) => Promise<UserTicket>;
|
|
1676
1695
|
removeVoteForTicketById: (tenant_id: string, ticket_id: string) => Promise<UserTicket>;
|
|
1696
|
+
generateNextReleaseVersionInfoForTenantById: (tenant_id: string, body: ReleaseVersionInfoRequestBody) => Promise<ReleaseVersionInfo>;
|
|
1677
1697
|
createReleaseForTenantById: (tenant_id: string, body: CreateReleaseRequestBody) => Promise<Release>;
|
|
1678
1698
|
paginateReleasesForTenantById: (tenant_id: string, query?: {
|
|
1679
1699
|
$select?: string;
|
package/dist/ParraAPI.js
CHANGED
|
@@ -127,7 +127,6 @@ var UserNoteStatus;
|
|
|
127
127
|
var TicketDisplayStatus;
|
|
128
128
|
(function (TicketDisplayStatus) {
|
|
129
129
|
TicketDisplayStatus["pending"] = "pending";
|
|
130
|
-
TicketDisplayStatus["upcoming"] = "upcoming";
|
|
131
130
|
TicketDisplayStatus["inProgress"] = "in_progress";
|
|
132
131
|
TicketDisplayStatus["live"] = "live";
|
|
133
132
|
TicketDisplayStatus["rejected"] = "rejected";
|
|
@@ -624,6 +623,15 @@ var ParraAPI = /** @class */ (function () {
|
|
|
624
623
|
method: "delete",
|
|
625
624
|
});
|
|
626
625
|
};
|
|
626
|
+
this.generateNextReleaseVersionInfoForTenantById = function (tenant_id, body) {
|
|
627
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/releases/version-info"), {
|
|
628
|
+
method: "post",
|
|
629
|
+
body: JSON.stringify(body),
|
|
630
|
+
headers: {
|
|
631
|
+
"content-type": "application/json",
|
|
632
|
+
},
|
|
633
|
+
});
|
|
634
|
+
};
|
|
627
635
|
this.createReleaseForTenantById = function (tenant_id, body) {
|
|
628
636
|
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/releases"), {
|
|
629
637
|
method: "post",
|