@parra/parra-js-sdk 0.3.15 → 0.3.17
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 +78 -0
- package/dist/ParraAPI.js +53 -1
- package/package.json +1 -1
package/dist/ParraAPI.d.ts
CHANGED
|
@@ -769,6 +769,72 @@ export interface TemplateTagCollectionResponse {
|
|
|
769
769
|
data: Array<TemplateTag>;
|
|
770
770
|
metadata?: TemplateTagCollectionMetadata;
|
|
771
771
|
}
|
|
772
|
+
export interface UpdateBoardRequestBody {
|
|
773
|
+
name: string;
|
|
774
|
+
description?: string | null;
|
|
775
|
+
}
|
|
776
|
+
export interface CreateBoardRequestBody {
|
|
777
|
+
name: string;
|
|
778
|
+
description?: string | null;
|
|
779
|
+
}
|
|
780
|
+
export interface Board {
|
|
781
|
+
id: string;
|
|
782
|
+
created_at: string;
|
|
783
|
+
updated_at: string;
|
|
784
|
+
deleted_at?: string | null;
|
|
785
|
+
tenant_id: string;
|
|
786
|
+
name: string;
|
|
787
|
+
description?: string | null;
|
|
788
|
+
}
|
|
789
|
+
export declare enum TicketType {
|
|
790
|
+
bug = "bug",
|
|
791
|
+
feature = "feature",
|
|
792
|
+
improvement = "improvement"
|
|
793
|
+
}
|
|
794
|
+
export interface UpdateTicketRequestBody {
|
|
795
|
+
title: string;
|
|
796
|
+
type: TicketType;
|
|
797
|
+
description?: string | null;
|
|
798
|
+
}
|
|
799
|
+
export interface CreateTicketRequestBody {
|
|
800
|
+
title: string;
|
|
801
|
+
type: TicketType;
|
|
802
|
+
description?: string | null;
|
|
803
|
+
}
|
|
804
|
+
export declare enum TicketStatus {
|
|
805
|
+
open = "open",
|
|
806
|
+
planned = "planned",
|
|
807
|
+
inProgress = "in_progress",
|
|
808
|
+
done = "done",
|
|
809
|
+
live = "live",
|
|
810
|
+
closed = "closed",
|
|
811
|
+
archived = "archived"
|
|
812
|
+
}
|
|
813
|
+
export declare enum TicketDisplayStatus {
|
|
814
|
+
pending = "pending",
|
|
815
|
+
upcoming = "upcoming",
|
|
816
|
+
inProgress = "in_progress",
|
|
817
|
+
live = "live"
|
|
818
|
+
}
|
|
819
|
+
export interface Ticket {
|
|
820
|
+
id: string;
|
|
821
|
+
created_at: string;
|
|
822
|
+
updated_at: string;
|
|
823
|
+
deleted_at?: string | null;
|
|
824
|
+
title: string;
|
|
825
|
+
type: TicketType;
|
|
826
|
+
description?: string | null;
|
|
827
|
+
tenant_id: string;
|
|
828
|
+
status: TicketStatus;
|
|
829
|
+
display_status: TicketDisplayStatus;
|
|
830
|
+
}
|
|
831
|
+
export interface TicketCollectionResponse {
|
|
832
|
+
page: number;
|
|
833
|
+
page_count: number;
|
|
834
|
+
page_size: number;
|
|
835
|
+
total_count: number;
|
|
836
|
+
data: Array<Ticket>;
|
|
837
|
+
}
|
|
772
838
|
export declare enum ApplicationType {
|
|
773
839
|
ios = "ios"
|
|
774
840
|
}
|
|
@@ -1178,6 +1244,18 @@ declare class ParraAPI {
|
|
|
1178
1244
|
$expand?: string;
|
|
1179
1245
|
$search?: string;
|
|
1180
1246
|
}) => Promise<TemplateTagCollectionResponse>;
|
|
1247
|
+
createBoardForTenantById: (tenant_id: string, body?: CreateBoardRequestBody) => Promise<Board>;
|
|
1248
|
+
listBoardsForTenantById: (tenant_id: string) => Promise<Array<Board>>;
|
|
1249
|
+
createTicketForBoard: (tenant_id: string, board_id: string, body?: CreateTicketRequestBody) => Promise<Ticket>;
|
|
1250
|
+
getTicketsForBoard: (tenant_id: string, board_id: string, query?: {
|
|
1251
|
+
$select?: string;
|
|
1252
|
+
$top?: number;
|
|
1253
|
+
$skip?: number;
|
|
1254
|
+
$orderby?: string;
|
|
1255
|
+
$filter?: string;
|
|
1256
|
+
$expand?: string;
|
|
1257
|
+
$search?: string;
|
|
1258
|
+
}) => Promise<TicketCollectionResponse>;
|
|
1181
1259
|
createApplicationForTenantById: (tenant_id: string, body: CreateApplicationRequestBody) => Promise<Application>;
|
|
1182
1260
|
paginateApplicationsForTenantById: (tenant_id: string) => Promise<ApplicationCollectionResponse>;
|
|
1183
1261
|
getApplicationByIdForTenantById: (tenant_id: string, application_id: string, query?: {
|
package/dist/ParraAPI.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ApnsPushType = exports.ApnsEnvironment = exports.ChannelType = exports.ApplicationType = exports.TemplateType = exports.CampaignStatus = exports.CampaignActionDisplayType = exports.CampaignActionType = exports.FeedbackFormFieldType = exports.QuestionKind = exports.QuestionType = exports.CardItemDisplayType = exports.CardItemType = exports.SubscriptionStatus = exports.Currency = exports.Interval = void 0;
|
|
3
|
+
exports.ApnsPushType = exports.ApnsEnvironment = exports.ChannelType = exports.ApplicationType = exports.TicketDisplayStatus = exports.TicketStatus = exports.TicketType = exports.TemplateType = exports.CampaignStatus = exports.CampaignActionDisplayType = exports.CampaignActionType = exports.FeedbackFormFieldType = exports.QuestionKind = exports.QuestionType = exports.CardItemDisplayType = exports.CardItemType = exports.SubscriptionStatus = exports.Currency = exports.Interval = void 0;
|
|
4
4
|
var Interval;
|
|
5
5
|
(function (Interval) {
|
|
6
6
|
Interval["monthly"] = "monthly";
|
|
@@ -82,6 +82,29 @@ var TemplateType;
|
|
|
82
82
|
(function (TemplateType) {
|
|
83
83
|
TemplateType["question"] = "question";
|
|
84
84
|
})(TemplateType || (exports.TemplateType = TemplateType = {}));
|
|
85
|
+
var TicketType;
|
|
86
|
+
(function (TicketType) {
|
|
87
|
+
TicketType["bug"] = "bug";
|
|
88
|
+
TicketType["feature"] = "feature";
|
|
89
|
+
TicketType["improvement"] = "improvement";
|
|
90
|
+
})(TicketType || (exports.TicketType = TicketType = {}));
|
|
91
|
+
var TicketStatus;
|
|
92
|
+
(function (TicketStatus) {
|
|
93
|
+
TicketStatus["open"] = "open";
|
|
94
|
+
TicketStatus["planned"] = "planned";
|
|
95
|
+
TicketStatus["inProgress"] = "in_progress";
|
|
96
|
+
TicketStatus["done"] = "done";
|
|
97
|
+
TicketStatus["live"] = "live";
|
|
98
|
+
TicketStatus["closed"] = "closed";
|
|
99
|
+
TicketStatus["archived"] = "archived";
|
|
100
|
+
})(TicketStatus || (exports.TicketStatus = TicketStatus = {}));
|
|
101
|
+
var TicketDisplayStatus;
|
|
102
|
+
(function (TicketDisplayStatus) {
|
|
103
|
+
TicketDisplayStatus["pending"] = "pending";
|
|
104
|
+
TicketDisplayStatus["upcoming"] = "upcoming";
|
|
105
|
+
TicketDisplayStatus["inProgress"] = "in_progress";
|
|
106
|
+
TicketDisplayStatus["live"] = "live";
|
|
107
|
+
})(TicketDisplayStatus || (exports.TicketDisplayStatus = TicketDisplayStatus = {}));
|
|
85
108
|
var ApplicationType;
|
|
86
109
|
(function (ApplicationType) {
|
|
87
110
|
ApplicationType["ios"] = "ios";
|
|
@@ -421,6 +444,35 @@ var ParraAPI = /** @class */ (function () {
|
|
|
421
444
|
query: query,
|
|
422
445
|
});
|
|
423
446
|
};
|
|
447
|
+
this.createBoardForTenantById = function (tenant_id, body) {
|
|
448
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/boards"), {
|
|
449
|
+
method: "post",
|
|
450
|
+
body: JSON.stringify(body),
|
|
451
|
+
headers: {
|
|
452
|
+
"content-type": "application/json",
|
|
453
|
+
},
|
|
454
|
+
});
|
|
455
|
+
};
|
|
456
|
+
this.listBoardsForTenantById = function (tenant_id) {
|
|
457
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/boards"), {
|
|
458
|
+
method: "get",
|
|
459
|
+
});
|
|
460
|
+
};
|
|
461
|
+
this.createTicketForBoard = function (tenant_id, board_id, body) {
|
|
462
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/boards/").concat(board_id, "/tickets"), {
|
|
463
|
+
method: "post",
|
|
464
|
+
body: JSON.stringify(body),
|
|
465
|
+
headers: {
|
|
466
|
+
"content-type": "application/json",
|
|
467
|
+
},
|
|
468
|
+
});
|
|
469
|
+
};
|
|
470
|
+
this.getTicketsForBoard = function (tenant_id, board_id, query) {
|
|
471
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/boards/").concat(board_id, "/tickets"), {
|
|
472
|
+
method: "get",
|
|
473
|
+
query: query,
|
|
474
|
+
});
|
|
475
|
+
};
|
|
424
476
|
this.createApplicationForTenantById = function (tenant_id, body) {
|
|
425
477
|
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications"), {
|
|
426
478
|
method: "post",
|