@parra/parra-js-sdk 0.3.16 → 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.
@@ -786,6 +786,55 @@ export interface Board {
786
786
  name: string;
787
787
  description?: string | null;
788
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
+ }
789
838
  export declare enum ApplicationType {
790
839
  ios = "ios"
791
840
  }
@@ -1197,6 +1246,16 @@ declare class ParraAPI {
1197
1246
  }) => Promise<TemplateTagCollectionResponse>;
1198
1247
  createBoardForTenantById: (tenant_id: string, body?: CreateBoardRequestBody) => Promise<Board>;
1199
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>;
1200
1259
  createApplicationForTenantById: (tenant_id: string, body: CreateApplicationRequestBody) => Promise<Application>;
1201
1260
  paginateApplicationsForTenantById: (tenant_id: string) => Promise<ApplicationCollectionResponse>;
1202
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";
@@ -435,6 +458,21 @@ var ParraAPI = /** @class */ (function () {
435
458
  method: "get",
436
459
  });
437
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
+ };
438
476
  this.createApplicationForTenantById = function (tenant_id, body) {
439
477
  return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications"), {
440
478
  method: "post",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parra/parra-js-sdk",
3
- "version": "0.3.16",
3
+ "version": "0.3.17",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",