@parra/parra-js-sdk 0.3.95 → 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.
Files changed (2) hide show
  1. package/dist/ParraAPI.d.ts +23 -11
  2. package/package.json +1 -1
@@ -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
  }
@@ -892,6 +889,13 @@ export interface ReleaseStub {
892
889
  release_number: number;
893
890
  status: ReleaseStatus;
894
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
+ }
895
899
  export interface TicketStub {
896
900
  id: string;
897
901
  created_at: string;
@@ -936,6 +940,7 @@ export interface Ticket {
936
940
  vote_count: number;
937
941
  released_at?: string | null;
938
942
  release?: ReleaseStub;
943
+ attachments?: Array<TicketAttachment>;
939
944
  }
940
945
  export interface TicketCollectionResponse {
941
946
  page: number;
@@ -1074,6 +1079,11 @@ export interface ReleaseItem {
1074
1079
  ticket_id: string;
1075
1080
  ticket: Ticket;
1076
1081
  }
1082
+ export interface ReleaseHeader {
1083
+ id: string;
1084
+ size: Size;
1085
+ url: string;
1086
+ }
1077
1087
  export interface Release {
1078
1088
  id: string;
1079
1089
  created_at: string;
@@ -1087,6 +1097,7 @@ export interface Release {
1087
1097
  release_number: number;
1088
1098
  status: ReleaseStatus;
1089
1099
  items?: Array<ReleaseItem> | null;
1100
+ header?: ReleaseHeader | null;
1090
1101
  }
1091
1102
  export interface ReleaseCollectionResponse {
1092
1103
  page: number;
@@ -1101,6 +1112,7 @@ export interface UpdateReleaseRequestBody {
1101
1112
  description?: string | null;
1102
1113
  status?: ReleaseStatus;
1103
1114
  type?: ReleaseType;
1115
+ header?: ReleaseHeader | null;
1104
1116
  }
1105
1117
  export interface CreateReleaseItemRequestBody {
1106
1118
  ticket_id: string;
@@ -1658,9 +1670,9 @@ declare class ParraAPI {
1658
1670
  checkAuthorization: (body: CheckAuthorizationRequestBody) => Promise<CheckAuthorization>;
1659
1671
  getUserInfo: () => Promise<UserInfoResponse>;
1660
1672
  getParraAuthToken: () => Promise<AuthToken>;
1661
- uploadImageAssetForTenantById: (tenant_id: string, body: UploadImageAssetForTenantRequestBody) => Promise<ImageAsset>;
1662
- uploadAvatarForUser: (body: UploadUserAvatarRequestBody) => Promise<ImageAssetStub>;
1663
- 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>;
1664
1676
  createCheckoutSession: (body: CreateCheckoutSessionRequestBody) => Promise<CheckoutSession>;
1665
1677
  getPlansForTenantById: (tenant_id: string) => Promise<TenantPlansResponse>;
1666
1678
  createBillingPortalSession: (tenant_id: string) => Promise<BillingPortalSession>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parra/parra-js-sdk",
3
- "version": "0.3.95",
3
+ "version": "0.3.96",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",