@parra/parra-js-sdk 0.3.93 → 0.3.96

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.
@@ -95,10 +95,13 @@ export interface UserInfoResponse {
95
95
  export interface AuthToken {
96
96
  access_token: string;
97
97
  }
98
- export interface UploadImageAssetForTenantRequestBody {
99
- group: string;
98
+ export interface UploadImageRequestBody {
100
99
  image: File;
101
100
  }
101
+ export interface UploadImageWithGroupRequestBody {
102
+ image: File;
103
+ group: string;
104
+ }
102
105
  export interface ImageAsset {
103
106
  id: string;
104
107
  created_at: string;
@@ -112,12 +115,6 @@ export interface ImageAsset {
112
115
  file_type: string;
113
116
  mime_type: string;
114
117
  }
115
- export interface UploadUserAvatarRequestBody {
116
- image: File;
117
- }
118
- export interface UploadTenantUserAvatarRequestBody {
119
- image: File;
120
- }
121
118
  export interface CreateCheckoutSessionRequestBody {
122
119
  plan_id: string;
123
120
  }
@@ -841,6 +838,13 @@ export declare enum TicketPriority {
841
838
  high = "high",
842
839
  urgent = "urgent"
843
840
  }
841
+ export declare enum TicketIconType {
842
+ emoji = "emoji"
843
+ }
844
+ export interface TicketIcon {
845
+ type: TicketIconType;
846
+ value?: string;
847
+ }
844
848
  export interface CreateTicketRequestBody {
845
849
  title: string;
846
850
  short_title?: string | null;
@@ -853,6 +857,7 @@ export interface CreateTicketRequestBody {
853
857
  user_note_id?: string | null;
854
858
  estimated_start_date?: string | null;
855
859
  estimated_completion_date?: string | null;
860
+ icon?: TicketIcon;
856
861
  }
857
862
  export declare enum ReleaseStatus {
858
863
  pending = "pending",
@@ -884,6 +889,13 @@ export interface ReleaseStub {
884
889
  release_number: number;
885
890
  status: ReleaseStatus;
886
891
  }
892
+ export interface TicketAttachment {
893
+ id: string;
894
+ created_at: string;
895
+ updated_at: string;
896
+ deleted_at?: string | null;
897
+ attachment: ImageAssetStub;
898
+ }
887
899
  export interface TicketStub {
888
900
  id: string;
889
901
  created_at: string;
@@ -900,6 +912,7 @@ export interface TicketStub {
900
912
  user_note_id?: string | null;
901
913
  estimated_start_date?: string | null;
902
914
  estimated_completion_date?: string | null;
915
+ icon?: TicketIcon;
903
916
  ticket_number: string;
904
917
  tenant_id: string;
905
918
  vote_count: number;
@@ -921,11 +934,13 @@ export interface Ticket {
921
934
  user_note_id?: string | null;
922
935
  estimated_start_date?: string | null;
923
936
  estimated_completion_date?: string | null;
937
+ icon?: TicketIcon;
924
938
  ticket_number: string;
925
939
  tenant_id: string;
926
940
  vote_count: number;
927
941
  released_at?: string | null;
928
942
  release?: ReleaseStub;
943
+ attachments?: Array<TicketAttachment>;
929
944
  }
930
945
  export interface TicketCollectionResponse {
931
946
  page: number;
@@ -993,6 +1008,7 @@ export interface UpdateTicketRequestBody {
993
1008
  is_public?: boolean;
994
1009
  estimated_start_date?: string | null;
995
1010
  estimated_completion_date?: string | null;
1011
+ icon?: TicketIcon;
996
1012
  }
997
1013
  export interface BulkUpdateTicketsRequestBody {
998
1014
  release_id?: string;
@@ -1006,6 +1022,7 @@ export interface BulkUpdateTicketsRequestBody {
1006
1022
  is_public?: boolean;
1007
1023
  estimated_start_date?: string | null;
1008
1024
  estimated_completion_date?: string | null;
1025
+ icon?: TicketIcon;
1009
1026
  ticket_ids?: Array<string>;
1010
1027
  }
1011
1028
  export interface UpdateReleaseForTicketRequestBody {
@@ -1062,6 +1079,11 @@ export interface ReleaseItem {
1062
1079
  ticket_id: string;
1063
1080
  ticket: Ticket;
1064
1081
  }
1082
+ export interface ReleaseHeader {
1083
+ id: string;
1084
+ size: Size;
1085
+ url: string;
1086
+ }
1065
1087
  export interface Release {
1066
1088
  id: string;
1067
1089
  created_at: string;
@@ -1075,6 +1097,7 @@ export interface Release {
1075
1097
  release_number: number;
1076
1098
  status: ReleaseStatus;
1077
1099
  items?: Array<ReleaseItem> | null;
1100
+ header?: ReleaseHeader | null;
1078
1101
  }
1079
1102
  export interface ReleaseCollectionResponse {
1080
1103
  page: number;
@@ -1089,6 +1112,7 @@ export interface UpdateReleaseRequestBody {
1089
1112
  description?: string | null;
1090
1113
  status?: ReleaseStatus;
1091
1114
  type?: ReleaseType;
1115
+ header?: ReleaseHeader | null;
1092
1116
  }
1093
1117
  export interface CreateReleaseItemRequestBody {
1094
1118
  ticket_id: string;
@@ -1646,9 +1670,9 @@ declare class ParraAPI {
1646
1670
  checkAuthorization: (body: CheckAuthorizationRequestBody) => Promise<CheckAuthorization>;
1647
1671
  getUserInfo: () => Promise<UserInfoResponse>;
1648
1672
  getParraAuthToken: () => Promise<AuthToken>;
1649
- uploadImageAssetForTenantById: (tenant_id: string, body: UploadImageAssetForTenantRequestBody) => Promise<ImageAsset>;
1650
- uploadAvatarForUser: (body: UploadUserAvatarRequestBody) => Promise<ImageAssetStub>;
1651
- uploadAvatarForTenantUser: (tenant_id: string, body: UploadTenantUserAvatarRequestBody) => Promise<ImageAssetStub>;
1673
+ uploadImageAssetForTenantById: (tenant_id: string, body: UploadImageWithGroupRequestBody) => Promise<ImageAsset>;
1674
+ uploadAvatarForUser: (body: UploadImageRequestBody) => Promise<ImageAssetStub>;
1675
+ uploadAvatarForTenantUser: (tenant_id: string, body: UploadImageRequestBody) => Promise<ImageAssetStub>;
1652
1676
  createCheckoutSession: (body: CreateCheckoutSessionRequestBody) => Promise<CheckoutSession>;
1653
1677
  getPlansForTenantById: (tenant_id: string) => Promise<TenantPlansResponse>;
1654
1678
  createBillingPortalSession: (tenant_id: string) => Promise<BillingPortalSession>;
package/dist/ParraAPI.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.IntegrationScope = exports.IntegrationConnectionStatus = exports.IntegrationType = exports.ConnectedAppConnectionStatus = exports.ConnectedAppType = exports.ApnsPushType = exports.ApnsEnvironment = exports.ChannelType = exports.ApplicationType = exports.AppVersionStatus = exports.TicketDisplayStatus = exports.UserNoteStatus = exports.ReleaseType = exports.ReleaseStatus = exports.TicketPriority = exports.TicketStatus = exports.TicketType = exports.TemplateType = exports.CampaignStatus = exports.CampaignActionDisplayType = exports.CampaignActionType = exports.CardItemDisplayType = exports.CardItemType = exports.QuestionKind = exports.QuestionType = exports.FeedbackFormFieldType = exports.SubscriptionStatus = exports.Currency = exports.Interval = void 0;
3
+ exports.IntegrationScope = exports.IntegrationConnectionStatus = exports.IntegrationType = exports.ConnectedAppConnectionStatus = exports.ConnectedAppType = exports.ApnsPushType = exports.ApnsEnvironment = exports.ChannelType = exports.ApplicationType = exports.AppVersionStatus = exports.TicketDisplayStatus = exports.UserNoteStatus = exports.ReleaseType = exports.ReleaseStatus = exports.TicketIconType = exports.TicketPriority = exports.TicketStatus = exports.TicketType = exports.TemplateType = exports.CampaignStatus = exports.CampaignActionDisplayType = exports.CampaignActionType = exports.CardItemDisplayType = exports.CardItemType = exports.QuestionKind = exports.QuestionType = exports.FeedbackFormFieldType = exports.SubscriptionStatus = exports.Currency = exports.Interval = void 0;
4
4
  var Interval;
5
5
  (function (Interval) {
6
6
  Interval["monthly"] = "monthly";
@@ -105,6 +105,10 @@ var TicketPriority;
105
105
  TicketPriority["high"] = "high";
106
106
  TicketPriority["urgent"] = "urgent";
107
107
  })(TicketPriority || (exports.TicketPriority = TicketPriority = {}));
108
+ var TicketIconType;
109
+ (function (TicketIconType) {
110
+ TicketIconType["emoji"] = "emoji";
111
+ })(TicketIconType || (exports.TicketIconType = TicketIconType = {}));
108
112
  var ReleaseStatus;
109
113
  (function (ReleaseStatus) {
110
114
  ReleaseStatus["pending"] = "pending";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parra/parra-js-sdk",
3
- "version": "0.3.93",
3
+ "version": "0.3.96",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",