@parra/parra-js-sdk 0.3.98 → 0.3.99
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 +63 -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,31 @@ 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 AppRoadmapConfiguration {
|
|
1195
|
+
form: FeedbackFormDataStub;
|
|
1196
|
+
}
|
|
1197
|
+
export interface AppReleaseCollectionResponse {
|
|
1198
|
+
page: number;
|
|
1199
|
+
page_count: number;
|
|
1200
|
+
page_size: number;
|
|
1201
|
+
total_count: number;
|
|
1202
|
+
data: Array<AppReleaseStub>;
|
|
1203
|
+
}
|
|
1185
1204
|
export interface UpdateAppVersionRequestBody {
|
|
1186
1205
|
version_string: string;
|
|
1187
1206
|
description?: string | null;
|
|
@@ -1203,15 +1222,9 @@ export interface AppVersion {
|
|
|
1203
1222
|
export declare enum ApplicationType {
|
|
1204
1223
|
ios = "ios"
|
|
1205
1224
|
}
|
|
1206
|
-
export interface UpdateApplicationRequestBody {
|
|
1207
|
-
name: string;
|
|
1208
|
-
description?: string | null;
|
|
1209
|
-
icon?: ImageAssetStub | null;
|
|
1210
|
-
}
|
|
1211
1225
|
export interface CreateApplicationRequestBody {
|
|
1212
1226
|
name: string;
|
|
1213
1227
|
description?: string | null;
|
|
1214
|
-
icon?: ImageAssetStub | null;
|
|
1215
1228
|
type: ApplicationType;
|
|
1216
1229
|
}
|
|
1217
1230
|
export interface UpdateApnsConfigurationRequestBody {
|
|
@@ -1241,9 +1254,9 @@ export interface Application {
|
|
|
1241
1254
|
deleted_at?: string | null;
|
|
1242
1255
|
name: string;
|
|
1243
1256
|
description?: string | null;
|
|
1244
|
-
icon?: ImageAssetStub | null;
|
|
1245
1257
|
type: ApplicationType;
|
|
1246
1258
|
tenant_id: string;
|
|
1259
|
+
icon?: ImageAssetStub | null;
|
|
1247
1260
|
apns?: ApnsConfiguration | null;
|
|
1248
1261
|
}
|
|
1249
1262
|
export interface ApplicationCollectionResponse {
|
|
@@ -1253,6 +1266,11 @@ export interface ApplicationCollectionResponse {
|
|
|
1253
1266
|
total_count: number;
|
|
1254
1267
|
data: Array<Application>;
|
|
1255
1268
|
}
|
|
1269
|
+
export interface UpdateApplicationRequestBody {
|
|
1270
|
+
name?: string;
|
|
1271
|
+
description?: string | null;
|
|
1272
|
+
icon?: ImageAssetStub | null;
|
|
1273
|
+
}
|
|
1256
1274
|
export interface InboxItem {
|
|
1257
1275
|
id: string;
|
|
1258
1276
|
created_at: string;
|
|
@@ -1634,7 +1652,7 @@ export interface TenantUserCollectionResponse {
|
|
|
1634
1652
|
data: Array<TenantUserCollectionStub>;
|
|
1635
1653
|
}
|
|
1636
1654
|
export interface UpdateTenantRequestBody {
|
|
1637
|
-
name
|
|
1655
|
+
name?: string;
|
|
1638
1656
|
logo?: ImageAssetStub | null;
|
|
1639
1657
|
}
|
|
1640
1658
|
export interface CreateTenantForUserRequestBody {
|
|
@@ -1842,6 +1860,9 @@ declare class ParraAPI {
|
|
|
1842
1860
|
deleteReleaseForTenantById: (tenant_id: string, release_id: string) => Promise<Response>;
|
|
1843
1861
|
cutReleaseForTenantById: (tenant_id: string, release_id: string) => Promise<Release>;
|
|
1844
1862
|
createReleaseItemForReleaseById: (tenant_id: string, release_id: string, body: CreateReleaseItemRequestBody) => Promise<ReleaseItem>;
|
|
1863
|
+
getAppInfoForTenantApplication: (tenant_id: string, application_id: string, query?: {
|
|
1864
|
+
version_token?: string;
|
|
1865
|
+
}) => Promise<AppInfo>;
|
|
1845
1866
|
paginateTicketsForApplication: (tenant_id: string, application_id: string, query?: {
|
|
1846
1867
|
limit?: number;
|
|
1847
1868
|
offset?: number;
|
|
@@ -1863,7 +1884,7 @@ declare class ParraAPI {
|
|
|
1863
1884
|
getApplicationByIdForTenantById: (tenant_id: string, application_id: string, query?: {
|
|
1864
1885
|
include?: string;
|
|
1865
1886
|
}) => Promise<Application>;
|
|
1866
|
-
updateApplicationByIdForTenantById: (tenant_id: string, application_id: string, body
|
|
1887
|
+
updateApplicationByIdForTenantById: (tenant_id: string, application_id: string, body?: UpdateApplicationRequestBody) => Promise<Application>;
|
|
1867
1888
|
deleteApplicationByIdForTenantById: (tenant_id: string, application_id: string) => Promise<Response>;
|
|
1868
1889
|
updateApnsConfigurationForTenantApplication: (tenant_id: string, application_id: string, body: UpdateApnsConfigurationRequestBody) => Promise<ApnsConfiguration>;
|
|
1869
1890
|
getInboxItemsForTenantUser: (tenant_id: string, query?: {
|
|
@@ -1930,7 +1951,7 @@ declare class ParraAPI {
|
|
|
1930
1951
|
getTenantById: (tenant_id: string, query?: {
|
|
1931
1952
|
include?: string;
|
|
1932
1953
|
}) => Promise<Tenant>;
|
|
1933
|
-
updateTenantById: (tenant_id: string, body
|
|
1954
|
+
updateTenantById: (tenant_id: string, body?: UpdateTenantRequestBody) => Promise<Tenant>;
|
|
1934
1955
|
deleteTenantById: (tenant_id: string) => Promise<Response>;
|
|
1935
1956
|
createTenant: (body: CreateTenantRequestBody) => Promise<Tenant>;
|
|
1936
1957
|
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",
|