@parra/parra-js-sdk 0.3.92 → 0.3.95

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.
@@ -55,6 +55,16 @@ export interface TenantUserCollectionStub {
55
55
  name?: string | null;
56
56
  avatar?: ImageAssetStub;
57
57
  identity: string;
58
+ email?: string | null;
59
+ email_verified?: boolean | null;
60
+ phone_number?: string | null;
61
+ phone_number_verified?: boolean;
62
+ first_name?: string | null;
63
+ last_name?: string | null;
64
+ locale?: string | null;
65
+ signed_up_at?: string | null;
66
+ last_updated_at?: string | null;
67
+ last_seen_at?: string | null;
58
68
  }
59
69
  export interface TenantUser {
60
70
  id: string;
@@ -65,6 +75,16 @@ export interface TenantUser {
65
75
  name?: string | null;
66
76
  avatar?: ImageAssetStub;
67
77
  identity: string;
78
+ email?: string | null;
79
+ email_verified?: boolean | null;
80
+ phone_number?: string | null;
81
+ phone_number_verified?: boolean;
82
+ first_name?: string | null;
83
+ last_name?: string | null;
84
+ locale?: string | null;
85
+ signed_up_at?: string | null;
86
+ last_updated_at?: string | null;
87
+ last_seen_at?: string | null;
68
88
  properties: object;
69
89
  }
70
90
  export interface UserInfoResponse {
@@ -821,6 +841,13 @@ export declare enum TicketPriority {
821
841
  high = "high",
822
842
  urgent = "urgent"
823
843
  }
844
+ export declare enum TicketIconType {
845
+ emoji = "emoji"
846
+ }
847
+ export interface TicketIcon {
848
+ type: TicketIconType;
849
+ value?: string;
850
+ }
824
851
  export interface CreateTicketRequestBody {
825
852
  title: string;
826
853
  short_title?: string | null;
@@ -833,6 +860,7 @@ export interface CreateTicketRequestBody {
833
860
  user_note_id?: string | null;
834
861
  estimated_start_date?: string | null;
835
862
  estimated_completion_date?: string | null;
863
+ icon?: TicketIcon;
836
864
  }
837
865
  export declare enum ReleaseStatus {
838
866
  pending = "pending",
@@ -880,6 +908,7 @@ export interface TicketStub {
880
908
  user_note_id?: string | null;
881
909
  estimated_start_date?: string | null;
882
910
  estimated_completion_date?: string | null;
911
+ icon?: TicketIcon;
883
912
  ticket_number: string;
884
913
  tenant_id: string;
885
914
  vote_count: number;
@@ -901,6 +930,7 @@ export interface Ticket {
901
930
  user_note_id?: string | null;
902
931
  estimated_start_date?: string | null;
903
932
  estimated_completion_date?: string | null;
933
+ icon?: TicketIcon;
904
934
  ticket_number: string;
905
935
  tenant_id: string;
906
936
  vote_count: number;
@@ -973,6 +1003,7 @@ export interface UpdateTicketRequestBody {
973
1003
  is_public?: boolean;
974
1004
  estimated_start_date?: string | null;
975
1005
  estimated_completion_date?: string | null;
1006
+ icon?: TicketIcon;
976
1007
  }
977
1008
  export interface BulkUpdateTicketsRequestBody {
978
1009
  release_id?: string;
@@ -986,6 +1017,7 @@ export interface BulkUpdateTicketsRequestBody {
986
1017
  is_public?: boolean;
987
1018
  estimated_start_date?: string | null;
988
1019
  estimated_completion_date?: string | null;
1020
+ icon?: TicketIcon;
989
1021
  ticket_ids?: Array<string>;
990
1022
  }
991
1023
  export interface UpdateReleaseForTicketRequestBody {
@@ -1083,6 +1115,61 @@ export interface UserTicketCollectionResponse {
1083
1115
  export interface AppRoadmapConfiguration {
1084
1116
  form: FeedbackFormDataStub;
1085
1117
  }
1118
+ export interface AppReleaseStub {
1119
+ id: string;
1120
+ created_at: string;
1121
+ updated_at: string;
1122
+ deleted_at?: string | null;
1123
+ name: string;
1124
+ version: string;
1125
+ description?: string | null;
1126
+ type: ReleaseType;
1127
+ tenant_id: string;
1128
+ release_number: number;
1129
+ status: ReleaseStatus;
1130
+ }
1131
+ export interface AppReleaseCollectionResponse {
1132
+ page: number;
1133
+ page_count: number;
1134
+ page_size: number;
1135
+ total_count: number;
1136
+ data: Array<AppReleaseStub>;
1137
+ }
1138
+ export interface AppReleaseItemStub {
1139
+ id: string;
1140
+ created_at: string;
1141
+ updated_at: string;
1142
+ deleted_at?: string | null;
1143
+ release_id: string;
1144
+ ticket_id: string;
1145
+ }
1146
+ export interface AppReleaseItem {
1147
+ id: string;
1148
+ created_at: string;
1149
+ updated_at: string;
1150
+ deleted_at?: string | null;
1151
+ release_id: string;
1152
+ ticket_id: string;
1153
+ ticket: Ticket;
1154
+ }
1155
+ export interface AppReleaseSection {
1156
+ title: string;
1157
+ items: Array<AppReleaseItem>;
1158
+ }
1159
+ export interface AppRelease {
1160
+ id: string;
1161
+ created_at: string;
1162
+ updated_at: string;
1163
+ deleted_at?: string | null;
1164
+ name: string;
1165
+ version: string;
1166
+ description?: string | null;
1167
+ type: ReleaseType;
1168
+ tenant_id: string;
1169
+ release_number: number;
1170
+ status: ReleaseStatus;
1171
+ sections: Array<AppReleaseSection>;
1172
+ }
1086
1173
  export interface UpdateAppVersionRequestBody {
1087
1174
  version_string: string;
1088
1175
  description?: string | null;
@@ -1739,6 +1826,11 @@ declare class ParraAPI {
1739
1826
  filter?: string;
1740
1827
  }) => Promise<UserTicketCollectionResponse>;
1741
1828
  getRoadmapForTenantApplication: (tenant_id: string, application_id: string) => Promise<AppRoadmapConfiguration>;
1829
+ paginateReleasesForTenantApplication: (tenant_id: string, application_id: string, query?: {
1830
+ limit?: number;
1831
+ offset?: number;
1832
+ }) => Promise<AppReleaseCollectionResponse>;
1833
+ getReleaseForTenantApplication: (tenant_id: string, application_id: string, release_id: string) => Promise<AppRelease>;
1742
1834
  createVersionForTenantApplication: (tenant_id: string, application_id: string, body?: CreateAppVersionRequestBody) => Promise<AppVersion>;
1743
1835
  listVersionsForTenantApplication: (tenant_id: string, application_id: string) => Promise<Array<AppVersion>>;
1744
1836
  getTenantApplicationVersionById: (tenant_id: string, application_id: string, app_version_id: string) => Promise<AppVersion>;
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";
@@ -708,6 +712,17 @@ var ParraAPI = /** @class */ (function () {
708
712
  method: "get",
709
713
  });
710
714
  };
715
+ this.paginateReleasesForTenantApplication = function (tenant_id, application_id, query) {
716
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/releases"), {
717
+ method: "get",
718
+ query: query,
719
+ });
720
+ };
721
+ this.getReleaseForTenantApplication = function (tenant_id, application_id, release_id) {
722
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/releases/").concat(release_id), {
723
+ method: "get",
724
+ });
725
+ };
711
726
  this.createVersionForTenantApplication = function (tenant_id, application_id, body) {
712
727
  return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/versions"), {
713
728
  method: "post",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parra/parra-js-sdk",
3
- "version": "0.3.92",
3
+ "version": "0.3.95",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",