@parra/parra-js-sdk 0.3.98 → 0.3.100
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 +70 -42
- package/dist/ParraAPI.js +6 -0
- package/package.json +1 -1
package/dist/ParraAPI.d.ts
CHANGED
|
@@ -843,7 +843,12 @@ export declare enum TicketIconType {
|
|
|
843
843
|
}
|
|
844
844
|
export interface TicketIcon {
|
|
845
845
|
type: TicketIconType;
|
|
846
|
-
value
|
|
846
|
+
value: string;
|
|
847
|
+
}
|
|
848
|
+
export interface CreateTicketAttachmentRequestBody {
|
|
849
|
+
id: string;
|
|
850
|
+
size: Size;
|
|
851
|
+
url: string;
|
|
847
852
|
}
|
|
848
853
|
export interface CreateTicketRequestBody {
|
|
849
854
|
title: string;
|
|
@@ -858,6 +863,7 @@ export interface CreateTicketRequestBody {
|
|
|
858
863
|
estimated_start_date?: string | null;
|
|
859
864
|
estimated_completion_date?: string | null;
|
|
860
865
|
icon?: TicketIcon;
|
|
866
|
+
attachments?: Array<CreateTicketAttachmentRequestBody>;
|
|
861
867
|
}
|
|
862
868
|
export declare enum ReleaseStatus {
|
|
863
869
|
pending = "pending",
|
|
@@ -940,7 +946,7 @@ export interface Ticket {
|
|
|
940
946
|
vote_count: number;
|
|
941
947
|
released_at?: string | null;
|
|
942
948
|
release?: ReleaseStub;
|
|
943
|
-
attachments?: Array<TicketAttachment
|
|
949
|
+
attachments?: Array<TicketAttachment> | null;
|
|
944
950
|
}
|
|
945
951
|
export interface TicketCollectionResponse {
|
|
946
952
|
page: number;
|
|
@@ -1117,35 +1123,9 @@ export interface UpdateReleaseRequestBody {
|
|
|
1117
1123
|
export interface CreateReleaseItemRequestBody {
|
|
1118
1124
|
ticket_id: string;
|
|
1119
1125
|
}
|
|
1120
|
-
export interface
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
page_size: number;
|
|
1124
|
-
total_count: number;
|
|
1125
|
-
data: Array<UserTicket>;
|
|
1126
|
-
}
|
|
1127
|
-
export interface AppRoadmapConfiguration {
|
|
1128
|
-
form: FeedbackFormDataStub;
|
|
1129
|
-
}
|
|
1130
|
-
export interface AppReleaseStub {
|
|
1131
|
-
id: string;
|
|
1132
|
-
created_at: string;
|
|
1133
|
-
updated_at: string;
|
|
1134
|
-
deleted_at?: string | null;
|
|
1135
|
-
name: string;
|
|
1136
|
-
version: string;
|
|
1137
|
-
description?: string | null;
|
|
1138
|
-
type: ReleaseType;
|
|
1139
|
-
tenant_id: string;
|
|
1140
|
-
release_number: number;
|
|
1141
|
-
status: ReleaseStatus;
|
|
1142
|
-
}
|
|
1143
|
-
export interface AppReleaseCollectionResponse {
|
|
1144
|
-
page: number;
|
|
1145
|
-
page_count: number;
|
|
1146
|
-
page_size: number;
|
|
1147
|
-
total_count: number;
|
|
1148
|
-
data: Array<AppReleaseStub>;
|
|
1126
|
+
export interface AppReleaseConfiguration {
|
|
1127
|
+
title: string;
|
|
1128
|
+
has_other_releases: boolean;
|
|
1149
1129
|
}
|
|
1150
1130
|
export interface AppReleaseItemStub {
|
|
1151
1131
|
id: string;
|
|
@@ -1162,12 +1142,26 @@ export interface AppReleaseItem {
|
|
|
1162
1142
|
deleted_at?: string | null;
|
|
1163
1143
|
release_id: string;
|
|
1164
1144
|
ticket_id: string;
|
|
1165
|
-
ticket:
|
|
1145
|
+
ticket: TicketStub;
|
|
1166
1146
|
}
|
|
1167
1147
|
export interface AppReleaseSection {
|
|
1148
|
+
id: string;
|
|
1168
1149
|
title: string;
|
|
1169
1150
|
items: Array<AppReleaseItem>;
|
|
1170
1151
|
}
|
|
1152
|
+
export interface AppReleaseStub {
|
|
1153
|
+
id: string;
|
|
1154
|
+
created_at: string;
|
|
1155
|
+
updated_at: string;
|
|
1156
|
+
deleted_at?: string | null;
|
|
1157
|
+
name: string;
|
|
1158
|
+
version: string;
|
|
1159
|
+
description?: string | null;
|
|
1160
|
+
type: ReleaseType;
|
|
1161
|
+
tenant_id: string;
|
|
1162
|
+
release_number: number;
|
|
1163
|
+
status: ReleaseStatus;
|
|
1164
|
+
}
|
|
1171
1165
|
export interface AppRelease {
|
|
1172
1166
|
id: string;
|
|
1173
1167
|
created_at: string;
|
|
@@ -1182,6 +1176,38 @@ export interface AppRelease {
|
|
|
1182
1176
|
status: ReleaseStatus;
|
|
1183
1177
|
sections: Array<AppReleaseSection>;
|
|
1184
1178
|
}
|
|
1179
|
+
export interface NewInstalledVersionInfo {
|
|
1180
|
+
configuration: AppReleaseConfiguration;
|
|
1181
|
+
release: AppRelease;
|
|
1182
|
+
}
|
|
1183
|
+
export interface AppInfo {
|
|
1184
|
+
version_token: string;
|
|
1185
|
+
new_installed_version_info?: NewInstalledVersionInfo;
|
|
1186
|
+
}
|
|
1187
|
+
export interface UserTicketCollectionResponse {
|
|
1188
|
+
page: number;
|
|
1189
|
+
page_count: number;
|
|
1190
|
+
page_size: number;
|
|
1191
|
+
total_count: number;
|
|
1192
|
+
data: Array<UserTicket>;
|
|
1193
|
+
}
|
|
1194
|
+
export interface RoadmapConfigurationTab {
|
|
1195
|
+
id: string;
|
|
1196
|
+
title: string;
|
|
1197
|
+
key: string;
|
|
1198
|
+
description?: string | null;
|
|
1199
|
+
}
|
|
1200
|
+
export interface AppRoadmapConfiguration {
|
|
1201
|
+
form?: FeedbackFormDataStub;
|
|
1202
|
+
tabs: Array<RoadmapConfigurationTab>;
|
|
1203
|
+
}
|
|
1204
|
+
export interface AppReleaseCollectionResponse {
|
|
1205
|
+
page: number;
|
|
1206
|
+
page_count: number;
|
|
1207
|
+
page_size: number;
|
|
1208
|
+
total_count: number;
|
|
1209
|
+
data: Array<AppReleaseStub>;
|
|
1210
|
+
}
|
|
1185
1211
|
export interface UpdateAppVersionRequestBody {
|
|
1186
1212
|
version_string: string;
|
|
1187
1213
|
description?: string | null;
|
|
@@ -1203,15 +1229,9 @@ export interface AppVersion {
|
|
|
1203
1229
|
export declare enum ApplicationType {
|
|
1204
1230
|
ios = "ios"
|
|
1205
1231
|
}
|
|
1206
|
-
export interface UpdateApplicationRequestBody {
|
|
1207
|
-
name: string;
|
|
1208
|
-
description?: string | null;
|
|
1209
|
-
icon?: ImageAssetStub | null;
|
|
1210
|
-
}
|
|
1211
1232
|
export interface CreateApplicationRequestBody {
|
|
1212
1233
|
name: string;
|
|
1213
1234
|
description?: string | null;
|
|
1214
|
-
icon?: ImageAssetStub | null;
|
|
1215
1235
|
type: ApplicationType;
|
|
1216
1236
|
}
|
|
1217
1237
|
export interface UpdateApnsConfigurationRequestBody {
|
|
@@ -1241,9 +1261,9 @@ export interface Application {
|
|
|
1241
1261
|
deleted_at?: string | null;
|
|
1242
1262
|
name: string;
|
|
1243
1263
|
description?: string | null;
|
|
1244
|
-
icon?: ImageAssetStub | null;
|
|
1245
1264
|
type: ApplicationType;
|
|
1246
1265
|
tenant_id: string;
|
|
1266
|
+
icon?: ImageAssetStub | null;
|
|
1247
1267
|
apns?: ApnsConfiguration | null;
|
|
1248
1268
|
}
|
|
1249
1269
|
export interface ApplicationCollectionResponse {
|
|
@@ -1253,6 +1273,11 @@ export interface ApplicationCollectionResponse {
|
|
|
1253
1273
|
total_count: number;
|
|
1254
1274
|
data: Array<Application>;
|
|
1255
1275
|
}
|
|
1276
|
+
export interface UpdateApplicationRequestBody {
|
|
1277
|
+
name?: string;
|
|
1278
|
+
description?: string | null;
|
|
1279
|
+
icon?: ImageAssetStub | null;
|
|
1280
|
+
}
|
|
1256
1281
|
export interface InboxItem {
|
|
1257
1282
|
id: string;
|
|
1258
1283
|
created_at: string;
|
|
@@ -1634,7 +1659,7 @@ export interface TenantUserCollectionResponse {
|
|
|
1634
1659
|
data: Array<TenantUserCollectionStub>;
|
|
1635
1660
|
}
|
|
1636
1661
|
export interface UpdateTenantRequestBody {
|
|
1637
|
-
name
|
|
1662
|
+
name?: string;
|
|
1638
1663
|
logo?: ImageAssetStub | null;
|
|
1639
1664
|
}
|
|
1640
1665
|
export interface CreateTenantForUserRequestBody {
|
|
@@ -1842,6 +1867,9 @@ declare class ParraAPI {
|
|
|
1842
1867
|
deleteReleaseForTenantById: (tenant_id: string, release_id: string) => Promise<Response>;
|
|
1843
1868
|
cutReleaseForTenantById: (tenant_id: string, release_id: string) => Promise<Release>;
|
|
1844
1869
|
createReleaseItemForReleaseById: (tenant_id: string, release_id: string, body: CreateReleaseItemRequestBody) => Promise<ReleaseItem>;
|
|
1870
|
+
getAppInfoForTenantApplication: (tenant_id: string, application_id: string, query?: {
|
|
1871
|
+
version_token?: string;
|
|
1872
|
+
}) => Promise<AppInfo>;
|
|
1845
1873
|
paginateTicketsForApplication: (tenant_id: string, application_id: string, query?: {
|
|
1846
1874
|
limit?: number;
|
|
1847
1875
|
offset?: number;
|
|
@@ -1863,7 +1891,7 @@ declare class ParraAPI {
|
|
|
1863
1891
|
getApplicationByIdForTenantById: (tenant_id: string, application_id: string, query?: {
|
|
1864
1892
|
include?: string;
|
|
1865
1893
|
}) => Promise<Application>;
|
|
1866
|
-
updateApplicationByIdForTenantById: (tenant_id: string, application_id: string, body
|
|
1894
|
+
updateApplicationByIdForTenantById: (tenant_id: string, application_id: string, body?: UpdateApplicationRequestBody) => Promise<Application>;
|
|
1867
1895
|
deleteApplicationByIdForTenantById: (tenant_id: string, application_id: string) => Promise<Response>;
|
|
1868
1896
|
updateApnsConfigurationForTenantApplication: (tenant_id: string, application_id: string, body: UpdateApnsConfigurationRequestBody) => Promise<ApnsConfiguration>;
|
|
1869
1897
|
getInboxItemsForTenantUser: (tenant_id: string, query?: {
|
|
@@ -1930,7 +1958,7 @@ declare class ParraAPI {
|
|
|
1930
1958
|
getTenantById: (tenant_id: string, query?: {
|
|
1931
1959
|
include?: string;
|
|
1932
1960
|
}) => Promise<Tenant>;
|
|
1933
|
-
updateTenantById: (tenant_id: string, body
|
|
1961
|
+
updateTenantById: (tenant_id: string, body?: UpdateTenantRequestBody) => Promise<Tenant>;
|
|
1934
1962
|
deleteTenantById: (tenant_id: string) => Promise<Response>;
|
|
1935
1963
|
createTenant: (body: CreateTenantRequestBody) => Promise<Tenant>;
|
|
1936
1964
|
createTenantForUserById: (user_id: string, body: CreateTenantForUserRequestBody) => Promise<Tenant>;
|
package/dist/ParraAPI.js
CHANGED
|
@@ -754,6 +754,12 @@ var ParraAPI = /** @class */ (function () {
|
|
|
754
754
|
},
|
|
755
755
|
});
|
|
756
756
|
};
|
|
757
|
+
this.getAppInfoForTenantApplication = function (tenant_id, application_id, query) {
|
|
758
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/app-info"), {
|
|
759
|
+
method: "get",
|
|
760
|
+
query: query,
|
|
761
|
+
});
|
|
762
|
+
};
|
|
757
763
|
this.paginateTicketsForApplication = function (tenant_id, application_id, query) {
|
|
758
764
|
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/tickets"), {
|
|
759
765
|
method: "get",
|