@parra/parra-js-sdk 0.3.129 → 0.3.131
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 +183 -166
- package/dist/ParraAPI.js +51 -51
- package/package.json +1 -1
package/dist/ParraAPI.d.ts
CHANGED
|
@@ -1,9 +1,34 @@
|
|
|
1
1
|
import { HTTPClient } from "@parra/http-client";
|
|
2
|
-
export interface
|
|
3
|
-
|
|
2
|
+
export interface AppReleaseConfiguration {
|
|
3
|
+
title: string;
|
|
4
|
+
has_other_releases: boolean;
|
|
4
5
|
}
|
|
5
|
-
export
|
|
6
|
-
|
|
6
|
+
export declare enum TicketType {
|
|
7
|
+
bug = "bug",
|
|
8
|
+
feature = "feature",
|
|
9
|
+
improvement = "improvement"
|
|
10
|
+
}
|
|
11
|
+
export declare enum TicketStatus {
|
|
12
|
+
open = "open",
|
|
13
|
+
planning = "planning",
|
|
14
|
+
inProgress = "in_progress",
|
|
15
|
+
done = "done",
|
|
16
|
+
live = "live",
|
|
17
|
+
closed = "closed",
|
|
18
|
+
archived = "archived"
|
|
19
|
+
}
|
|
20
|
+
export declare enum TicketPriority {
|
|
21
|
+
low = "low",
|
|
22
|
+
medium = "medium",
|
|
23
|
+
high = "high",
|
|
24
|
+
urgent = "urgent"
|
|
25
|
+
}
|
|
26
|
+
export declare enum TicketIconType {
|
|
27
|
+
emoji = "emoji"
|
|
28
|
+
}
|
|
29
|
+
export interface TicketIcon {
|
|
30
|
+
type: TicketIconType;
|
|
31
|
+
value: string;
|
|
7
32
|
}
|
|
8
33
|
export interface Size {
|
|
9
34
|
width: number;
|
|
@@ -17,12 +42,157 @@ export interface ImageAssetStub {
|
|
|
17
42
|
size: Size;
|
|
18
43
|
url: string;
|
|
19
44
|
}
|
|
45
|
+
export interface TicketFeatured {
|
|
46
|
+
title: string;
|
|
47
|
+
description?: string;
|
|
48
|
+
image?: ImageAssetStub;
|
|
49
|
+
}
|
|
20
50
|
export interface Entity {
|
|
21
51
|
id: string;
|
|
22
52
|
created_at: string;
|
|
23
53
|
updated_at: string;
|
|
24
54
|
deleted_at?: string | null;
|
|
25
55
|
}
|
|
56
|
+
export interface TicketStub {
|
|
57
|
+
id: string;
|
|
58
|
+
created_at: string;
|
|
59
|
+
updated_at: string;
|
|
60
|
+
deleted_at?: string | null;
|
|
61
|
+
title: string;
|
|
62
|
+
short_title?: string | null;
|
|
63
|
+
type: TicketType;
|
|
64
|
+
status: TicketStatus;
|
|
65
|
+
priority?: TicketPriority | null;
|
|
66
|
+
description?: string | null;
|
|
67
|
+
voting_enabled: boolean;
|
|
68
|
+
is_public: boolean;
|
|
69
|
+
user_note_id?: string | null;
|
|
70
|
+
estimated_start_date?: string | null;
|
|
71
|
+
estimated_completion_date?: string | null;
|
|
72
|
+
icon?: TicketIcon;
|
|
73
|
+
ticket_number: string;
|
|
74
|
+
tenant_id: string;
|
|
75
|
+
vote_count: number;
|
|
76
|
+
released_at?: string | null;
|
|
77
|
+
featured?: TicketFeatured;
|
|
78
|
+
}
|
|
79
|
+
export interface AppReleaseItemStub {
|
|
80
|
+
id: string;
|
|
81
|
+
created_at: string;
|
|
82
|
+
updated_at: string;
|
|
83
|
+
deleted_at?: string | null;
|
|
84
|
+
release_id: string;
|
|
85
|
+
ticket_id: string;
|
|
86
|
+
}
|
|
87
|
+
export interface AppReleaseItem {
|
|
88
|
+
id: string;
|
|
89
|
+
created_at: string;
|
|
90
|
+
updated_at: string;
|
|
91
|
+
deleted_at?: string | null;
|
|
92
|
+
release_id: string;
|
|
93
|
+
ticket_id: string;
|
|
94
|
+
ticket: TicketStub;
|
|
95
|
+
}
|
|
96
|
+
export interface AppReleaseSection {
|
|
97
|
+
id: string;
|
|
98
|
+
title: string;
|
|
99
|
+
items: Array<AppReleaseItem>;
|
|
100
|
+
}
|
|
101
|
+
export declare enum ReleaseStatus {
|
|
102
|
+
pending = "pending",
|
|
103
|
+
scheduled = "scheduled",
|
|
104
|
+
released = "released"
|
|
105
|
+
}
|
|
106
|
+
export interface ReleaseHeader {
|
|
107
|
+
id: string;
|
|
108
|
+
size: Size;
|
|
109
|
+
url: string;
|
|
110
|
+
}
|
|
111
|
+
export declare enum ReleaseType {
|
|
112
|
+
major = "major",
|
|
113
|
+
minor = "minor",
|
|
114
|
+
patch = "patch",
|
|
115
|
+
launch = "launch"
|
|
116
|
+
}
|
|
117
|
+
export interface CreateReleaseRequestBody {
|
|
118
|
+
name: string;
|
|
119
|
+
version: string;
|
|
120
|
+
description?: string | null;
|
|
121
|
+
type: ReleaseType;
|
|
122
|
+
}
|
|
123
|
+
export interface ReleaseStub {
|
|
124
|
+
id: string;
|
|
125
|
+
created_at: string;
|
|
126
|
+
updated_at: string;
|
|
127
|
+
deleted_at?: string | null;
|
|
128
|
+
name: string;
|
|
129
|
+
version: string;
|
|
130
|
+
description?: string | null;
|
|
131
|
+
type: ReleaseType;
|
|
132
|
+
tenant_id: string;
|
|
133
|
+
release_number: number;
|
|
134
|
+
status: ReleaseStatus;
|
|
135
|
+
header?: ReleaseHeader | null;
|
|
136
|
+
}
|
|
137
|
+
export interface AppReleaseStub {
|
|
138
|
+
id: string;
|
|
139
|
+
created_at: string;
|
|
140
|
+
updated_at: string;
|
|
141
|
+
deleted_at?: string | null;
|
|
142
|
+
name: string;
|
|
143
|
+
version: string;
|
|
144
|
+
description?: string | null;
|
|
145
|
+
type: ReleaseType;
|
|
146
|
+
tenant_id: string;
|
|
147
|
+
release_number: number;
|
|
148
|
+
status: ReleaseStatus;
|
|
149
|
+
header?: ReleaseHeader | null;
|
|
150
|
+
}
|
|
151
|
+
export interface AppRelease {
|
|
152
|
+
id: string;
|
|
153
|
+
created_at: string;
|
|
154
|
+
updated_at: string;
|
|
155
|
+
deleted_at?: string | null;
|
|
156
|
+
name: string;
|
|
157
|
+
version: string;
|
|
158
|
+
description?: string | null;
|
|
159
|
+
type: ReleaseType;
|
|
160
|
+
tenant_id: string;
|
|
161
|
+
release_number: number;
|
|
162
|
+
status: ReleaseStatus;
|
|
163
|
+
header?: ReleaseHeader | null;
|
|
164
|
+
sections: Array<AppReleaseSection>;
|
|
165
|
+
}
|
|
166
|
+
export interface NewInstalledVersionInfo {
|
|
167
|
+
configuration: AppReleaseConfiguration;
|
|
168
|
+
release: AppRelease;
|
|
169
|
+
}
|
|
170
|
+
export interface AppInfo {
|
|
171
|
+
version_token: string;
|
|
172
|
+
new_installed_version_info?: NewInstalledVersionInfo;
|
|
173
|
+
legal: AppInfoLegalInfo;
|
|
174
|
+
}
|
|
175
|
+
export declare enum PolicyDocumentType {
|
|
176
|
+
terms = "terms",
|
|
177
|
+
privacy = "privacy",
|
|
178
|
+
cookie = "cookie"
|
|
179
|
+
}
|
|
180
|
+
export interface PolicyDocumentLinkStub {
|
|
181
|
+
id: string;
|
|
182
|
+
type: PolicyDocumentType;
|
|
183
|
+
title: string | null;
|
|
184
|
+
url: string;
|
|
185
|
+
}
|
|
186
|
+
export interface AppInfoLegalInfo {
|
|
187
|
+
terms_of_service?: PolicyDocumentLinkStub | null;
|
|
188
|
+
privacy_policy?: PolicyDocumentLinkStub;
|
|
189
|
+
}
|
|
190
|
+
export interface CheckAuthorizationRequestBody {
|
|
191
|
+
scope: string;
|
|
192
|
+
}
|
|
193
|
+
export interface CheckAuthorization {
|
|
194
|
+
allowed: boolean;
|
|
195
|
+
}
|
|
26
196
|
export interface UserResponse {
|
|
27
197
|
id: string;
|
|
28
198
|
created_at: string;
|
|
@@ -868,33 +1038,6 @@ export interface Board {
|
|
|
868
1038
|
name: string;
|
|
869
1039
|
description?: string | null;
|
|
870
1040
|
}
|
|
871
|
-
export declare enum TicketType {
|
|
872
|
-
bug = "bug",
|
|
873
|
-
feature = "feature",
|
|
874
|
-
improvement = "improvement"
|
|
875
|
-
}
|
|
876
|
-
export declare enum TicketStatus {
|
|
877
|
-
open = "open",
|
|
878
|
-
planning = "planning",
|
|
879
|
-
inProgress = "in_progress",
|
|
880
|
-
done = "done",
|
|
881
|
-
live = "live",
|
|
882
|
-
closed = "closed",
|
|
883
|
-
archived = "archived"
|
|
884
|
-
}
|
|
885
|
-
export declare enum TicketPriority {
|
|
886
|
-
low = "low",
|
|
887
|
-
medium = "medium",
|
|
888
|
-
high = "high",
|
|
889
|
-
urgent = "urgent"
|
|
890
|
-
}
|
|
891
|
-
export declare enum TicketIconType {
|
|
892
|
-
emoji = "emoji"
|
|
893
|
-
}
|
|
894
|
-
export interface TicketIcon {
|
|
895
|
-
type: TicketIconType;
|
|
896
|
-
value: string;
|
|
897
|
-
}
|
|
898
1041
|
export interface CreateTicketAttachmentRequestBody {
|
|
899
1042
|
id: string;
|
|
900
1043
|
size: Size;
|
|
@@ -919,42 +1062,6 @@ export interface CreateTicketRequestBody {
|
|
|
919
1062
|
featured_description?: string | null;
|
|
920
1063
|
featured_image?: ImageAssetStub;
|
|
921
1064
|
}
|
|
922
|
-
export declare enum ReleaseStatus {
|
|
923
|
-
pending = "pending",
|
|
924
|
-
scheduled = "scheduled",
|
|
925
|
-
released = "released"
|
|
926
|
-
}
|
|
927
|
-
export interface ReleaseHeader {
|
|
928
|
-
id: string;
|
|
929
|
-
size: Size;
|
|
930
|
-
url: string;
|
|
931
|
-
}
|
|
932
|
-
export declare enum ReleaseType {
|
|
933
|
-
major = "major",
|
|
934
|
-
minor = "minor",
|
|
935
|
-
patch = "patch",
|
|
936
|
-
launch = "launch"
|
|
937
|
-
}
|
|
938
|
-
export interface CreateReleaseRequestBody {
|
|
939
|
-
name: string;
|
|
940
|
-
version: string;
|
|
941
|
-
description?: string | null;
|
|
942
|
-
type: ReleaseType;
|
|
943
|
-
}
|
|
944
|
-
export interface ReleaseStub {
|
|
945
|
-
id: string;
|
|
946
|
-
created_at: string;
|
|
947
|
-
updated_at: string;
|
|
948
|
-
deleted_at?: string | null;
|
|
949
|
-
name: string;
|
|
950
|
-
version: string;
|
|
951
|
-
description?: string | null;
|
|
952
|
-
type: ReleaseType;
|
|
953
|
-
tenant_id: string;
|
|
954
|
-
release_number: number;
|
|
955
|
-
status: ReleaseStatus;
|
|
956
|
-
header?: ReleaseHeader | null;
|
|
957
|
-
}
|
|
958
1065
|
export interface TicketAttachment {
|
|
959
1066
|
id: string;
|
|
960
1067
|
created_at: string;
|
|
@@ -962,34 +1069,6 @@ export interface TicketAttachment {
|
|
|
962
1069
|
deleted_at?: string | null;
|
|
963
1070
|
attachment: ImageAssetStub;
|
|
964
1071
|
}
|
|
965
|
-
export interface TicketFeatured {
|
|
966
|
-
title: string;
|
|
967
|
-
description?: string;
|
|
968
|
-
image?: ImageAssetStub;
|
|
969
|
-
}
|
|
970
|
-
export interface TicketStub {
|
|
971
|
-
id: string;
|
|
972
|
-
created_at: string;
|
|
973
|
-
updated_at: string;
|
|
974
|
-
deleted_at?: string | null;
|
|
975
|
-
title: string;
|
|
976
|
-
short_title?: string | null;
|
|
977
|
-
type: TicketType;
|
|
978
|
-
status: TicketStatus;
|
|
979
|
-
priority?: TicketPriority | null;
|
|
980
|
-
description?: string | null;
|
|
981
|
-
voting_enabled: boolean;
|
|
982
|
-
is_public: boolean;
|
|
983
|
-
user_note_id?: string | null;
|
|
984
|
-
estimated_start_date?: string | null;
|
|
985
|
-
estimated_completion_date?: string | null;
|
|
986
|
-
icon?: TicketIcon;
|
|
987
|
-
ticket_number: string;
|
|
988
|
-
tenant_id: string;
|
|
989
|
-
vote_count: number;
|
|
990
|
-
released_at?: string | null;
|
|
991
|
-
featured?: TicketFeatured;
|
|
992
|
-
}
|
|
993
1072
|
export interface Ticket {
|
|
994
1073
|
id: string;
|
|
995
1074
|
created_at: string;
|
|
@@ -1193,69 +1272,6 @@ export interface UpdateReleaseRequestBody {
|
|
|
1193
1272
|
export interface CreateReleaseItemRequestBody {
|
|
1194
1273
|
ticket_id: string;
|
|
1195
1274
|
}
|
|
1196
|
-
export interface AppReleaseConfiguration {
|
|
1197
|
-
title: string;
|
|
1198
|
-
has_other_releases: boolean;
|
|
1199
|
-
}
|
|
1200
|
-
export interface AppReleaseItemStub {
|
|
1201
|
-
id: string;
|
|
1202
|
-
created_at: string;
|
|
1203
|
-
updated_at: string;
|
|
1204
|
-
deleted_at?: string | null;
|
|
1205
|
-
release_id: string;
|
|
1206
|
-
ticket_id: string;
|
|
1207
|
-
}
|
|
1208
|
-
export interface AppReleaseItem {
|
|
1209
|
-
id: string;
|
|
1210
|
-
created_at: string;
|
|
1211
|
-
updated_at: string;
|
|
1212
|
-
deleted_at?: string | null;
|
|
1213
|
-
release_id: string;
|
|
1214
|
-
ticket_id: string;
|
|
1215
|
-
ticket: TicketStub;
|
|
1216
|
-
}
|
|
1217
|
-
export interface AppReleaseSection {
|
|
1218
|
-
id: string;
|
|
1219
|
-
title: string;
|
|
1220
|
-
items: Array<AppReleaseItem>;
|
|
1221
|
-
}
|
|
1222
|
-
export interface AppReleaseStub {
|
|
1223
|
-
id: string;
|
|
1224
|
-
created_at: string;
|
|
1225
|
-
updated_at: string;
|
|
1226
|
-
deleted_at?: string | null;
|
|
1227
|
-
name: string;
|
|
1228
|
-
version: string;
|
|
1229
|
-
description?: string | null;
|
|
1230
|
-
type: ReleaseType;
|
|
1231
|
-
tenant_id: string;
|
|
1232
|
-
release_number: number;
|
|
1233
|
-
status: ReleaseStatus;
|
|
1234
|
-
header?: ReleaseHeader | null;
|
|
1235
|
-
}
|
|
1236
|
-
export interface AppRelease {
|
|
1237
|
-
id: string;
|
|
1238
|
-
created_at: string;
|
|
1239
|
-
updated_at: string;
|
|
1240
|
-
deleted_at?: string | null;
|
|
1241
|
-
name: string;
|
|
1242
|
-
version: string;
|
|
1243
|
-
description?: string | null;
|
|
1244
|
-
type: ReleaseType;
|
|
1245
|
-
tenant_id: string;
|
|
1246
|
-
release_number: number;
|
|
1247
|
-
status: ReleaseStatus;
|
|
1248
|
-
header?: ReleaseHeader | null;
|
|
1249
|
-
sections: Array<AppReleaseSection>;
|
|
1250
|
-
}
|
|
1251
|
-
export interface NewInstalledVersionInfo {
|
|
1252
|
-
configuration: AppReleaseConfiguration;
|
|
1253
|
-
release: AppRelease;
|
|
1254
|
-
}
|
|
1255
|
-
export interface AppInfo {
|
|
1256
|
-
version_token: string;
|
|
1257
|
-
new_installed_version_info?: NewInstalledVersionInfo;
|
|
1258
|
-
}
|
|
1259
1275
|
export interface UserTicketCollectionResponse {
|
|
1260
1276
|
page: number;
|
|
1261
1277
|
page_count: number;
|
|
@@ -1531,6 +1547,8 @@ export interface CreateApplicationRequestBody {
|
|
|
1531
1547
|
is_new_project: boolean;
|
|
1532
1548
|
type: ApplicationType;
|
|
1533
1549
|
ios_bundle_id?: string | null;
|
|
1550
|
+
privacy_policy_document_id?: string | null;
|
|
1551
|
+
terms_of_service_policy_document_id?: string | null;
|
|
1534
1552
|
}
|
|
1535
1553
|
export interface ApplicationIosConfig {
|
|
1536
1554
|
bundle_id: string;
|
|
@@ -1545,6 +1563,8 @@ export interface Application {
|
|
|
1545
1563
|
is_new_project: boolean;
|
|
1546
1564
|
type: ApplicationType;
|
|
1547
1565
|
tenant_id: string;
|
|
1566
|
+
privacy_policy_document_id?: string | null;
|
|
1567
|
+
terms_of_service_policy_document_id?: string | null;
|
|
1548
1568
|
icon?: ImageAssetStub | null;
|
|
1549
1569
|
ios?: ApplicationIosConfig | null;
|
|
1550
1570
|
}
|
|
@@ -1560,6 +1580,8 @@ export interface UpdateApplicationRequestBody {
|
|
|
1560
1580
|
description?: string | null;
|
|
1561
1581
|
is_new_project?: boolean;
|
|
1562
1582
|
ios_bundle_id?: string | null;
|
|
1583
|
+
privacy_policy_document_id?: string | null;
|
|
1584
|
+
terms_of_service_policy_document_id?: string | null;
|
|
1563
1585
|
icon?: ImageAssetStub | null;
|
|
1564
1586
|
}
|
|
1565
1587
|
export interface TenantOnboarding {
|
|
@@ -1864,11 +1886,6 @@ export interface CreateTenantForUserRequestBody {
|
|
|
1864
1886
|
subdomain?: string | null;
|
|
1865
1887
|
is_test: boolean;
|
|
1866
1888
|
}
|
|
1867
|
-
export declare enum PolicyDocumentType {
|
|
1868
|
-
terms = "terms",
|
|
1869
|
-
privacy = "privacy",
|
|
1870
|
-
cookie = "cookie"
|
|
1871
|
-
}
|
|
1872
1889
|
export interface UpdatePolicyDocumentRequestBody {
|
|
1873
1890
|
title?: string | null;
|
|
1874
1891
|
url?: string | null;
|
|
@@ -1983,6 +2000,9 @@ declare class ParraAPI {
|
|
|
1983
2000
|
constructor(http: HTTPClient, options: {
|
|
1984
2001
|
baseUrl: string;
|
|
1985
2002
|
});
|
|
2003
|
+
getAppInfo: (tenant_id: string, application_id: string, query?: {
|
|
2004
|
+
version_token?: string;
|
|
2005
|
+
}, options?: Options) => Promise<AppInfo>;
|
|
1986
2006
|
checkAuthorization: (body: CheckAuthorizationRequestBody, options?: Options) => Promise<CheckAuthorization>;
|
|
1987
2007
|
getUserInfo: (options?: Options) => Promise<UserInfoResponse>;
|
|
1988
2008
|
getParraAuthToken: (options?: Options) => Promise<AuthToken>;
|
|
@@ -2153,9 +2173,6 @@ declare class ParraAPI {
|
|
|
2153
2173
|
deleteReleaseForTenantById: (tenant_id: string, release_id: string, options?: Options) => Promise<Response>;
|
|
2154
2174
|
cutReleaseForTenantById: (tenant_id: string, release_id: string, options?: Options) => Promise<Release>;
|
|
2155
2175
|
createReleaseItemForReleaseById: (tenant_id: string, release_id: string, body: CreateReleaseItemRequestBody, options?: Options) => Promise<ReleaseItem>;
|
|
2156
|
-
getAppInfoForTenantApplication: (tenant_id: string, application_id: string, query?: {
|
|
2157
|
-
version_token?: string;
|
|
2158
|
-
}, options?: Options) => Promise<AppInfo>;
|
|
2159
2176
|
paginateTicketsForApplication: (tenant_id: string, application_id: string, query?: {
|
|
2160
2177
|
limit?: number;
|
|
2161
2178
|
offset?: number;
|
package/dist/ParraAPI.js
CHANGED
|
@@ -11,7 +11,53 @@ var __assign = (this && this.__assign) || function () {
|
|
|
11
11
|
return __assign.apply(this, arguments);
|
|
12
12
|
};
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.PolicyDocumentVersionStatus = exports.PolicyDocumentStatus = exports.
|
|
14
|
+
exports.PolicyDocumentVersionStatus = exports.PolicyDocumentStatus = exports.IntegrationScope = exports.IntegrationConnectionStatus = exports.IntegrationType = exports.ConnectedAppConnectionStatus = exports.ConnectedAppType = exports.ApplicationType = exports.RefreshTokenRotationType = exports.RefreshTokenExpirationType = exports.JwtAlgorithm = exports.GrantType = exports.ApnsPushType = exports.ApnsEnvironment = exports.ChannelType = exports.AppVersionStatus = exports.TicketDisplayStatus = exports.UserNoteStatus = exports.TemplateType = exports.CampaignStatus = exports.CampaignActionDisplayType = exports.CampaignActionType = exports.CardItemDisplayType = exports.CardItemType = exports.QuestionKind = exports.QuestionType = exports.FeedbackFormFieldType = exports.SubscriptionStatus = exports.Currency = exports.Interval = exports.IdentityType = exports.PolicyDocumentType = exports.ReleaseType = exports.ReleaseStatus = exports.TicketIconType = exports.TicketPriority = exports.TicketStatus = exports.TicketType = void 0;
|
|
15
|
+
var TicketType;
|
|
16
|
+
(function (TicketType) {
|
|
17
|
+
TicketType["bug"] = "bug";
|
|
18
|
+
TicketType["feature"] = "feature";
|
|
19
|
+
TicketType["improvement"] = "improvement";
|
|
20
|
+
})(TicketType || (exports.TicketType = TicketType = {}));
|
|
21
|
+
var TicketStatus;
|
|
22
|
+
(function (TicketStatus) {
|
|
23
|
+
TicketStatus["open"] = "open";
|
|
24
|
+
TicketStatus["planning"] = "planning";
|
|
25
|
+
TicketStatus["inProgress"] = "in_progress";
|
|
26
|
+
TicketStatus["done"] = "done";
|
|
27
|
+
TicketStatus["live"] = "live";
|
|
28
|
+
TicketStatus["closed"] = "closed";
|
|
29
|
+
TicketStatus["archived"] = "archived";
|
|
30
|
+
})(TicketStatus || (exports.TicketStatus = TicketStatus = {}));
|
|
31
|
+
var TicketPriority;
|
|
32
|
+
(function (TicketPriority) {
|
|
33
|
+
TicketPriority["low"] = "low";
|
|
34
|
+
TicketPriority["medium"] = "medium";
|
|
35
|
+
TicketPriority["high"] = "high";
|
|
36
|
+
TicketPriority["urgent"] = "urgent";
|
|
37
|
+
})(TicketPriority || (exports.TicketPriority = TicketPriority = {}));
|
|
38
|
+
var TicketIconType;
|
|
39
|
+
(function (TicketIconType) {
|
|
40
|
+
TicketIconType["emoji"] = "emoji";
|
|
41
|
+
})(TicketIconType || (exports.TicketIconType = TicketIconType = {}));
|
|
42
|
+
var ReleaseStatus;
|
|
43
|
+
(function (ReleaseStatus) {
|
|
44
|
+
ReleaseStatus["pending"] = "pending";
|
|
45
|
+
ReleaseStatus["scheduled"] = "scheduled";
|
|
46
|
+
ReleaseStatus["released"] = "released";
|
|
47
|
+
})(ReleaseStatus || (exports.ReleaseStatus = ReleaseStatus = {}));
|
|
48
|
+
var ReleaseType;
|
|
49
|
+
(function (ReleaseType) {
|
|
50
|
+
ReleaseType["major"] = "major";
|
|
51
|
+
ReleaseType["minor"] = "minor";
|
|
52
|
+
ReleaseType["patch"] = "patch";
|
|
53
|
+
ReleaseType["launch"] = "launch";
|
|
54
|
+
})(ReleaseType || (exports.ReleaseType = ReleaseType = {}));
|
|
55
|
+
var PolicyDocumentType;
|
|
56
|
+
(function (PolicyDocumentType) {
|
|
57
|
+
PolicyDocumentType["terms"] = "terms";
|
|
58
|
+
PolicyDocumentType["privacy"] = "privacy";
|
|
59
|
+
PolicyDocumentType["cookie"] = "cookie";
|
|
60
|
+
})(PolicyDocumentType || (exports.PolicyDocumentType = PolicyDocumentType = {}));
|
|
15
61
|
var IdentityType;
|
|
16
62
|
(function (IdentityType) {
|
|
17
63
|
IdentityType["username"] = "username";
|
|
@@ -100,46 +146,6 @@ var TemplateType;
|
|
|
100
146
|
(function (TemplateType) {
|
|
101
147
|
TemplateType["question"] = "question";
|
|
102
148
|
})(TemplateType || (exports.TemplateType = TemplateType = {}));
|
|
103
|
-
var TicketType;
|
|
104
|
-
(function (TicketType) {
|
|
105
|
-
TicketType["bug"] = "bug";
|
|
106
|
-
TicketType["feature"] = "feature";
|
|
107
|
-
TicketType["improvement"] = "improvement";
|
|
108
|
-
})(TicketType || (exports.TicketType = TicketType = {}));
|
|
109
|
-
var TicketStatus;
|
|
110
|
-
(function (TicketStatus) {
|
|
111
|
-
TicketStatus["open"] = "open";
|
|
112
|
-
TicketStatus["planning"] = "planning";
|
|
113
|
-
TicketStatus["inProgress"] = "in_progress";
|
|
114
|
-
TicketStatus["done"] = "done";
|
|
115
|
-
TicketStatus["live"] = "live";
|
|
116
|
-
TicketStatus["closed"] = "closed";
|
|
117
|
-
TicketStatus["archived"] = "archived";
|
|
118
|
-
})(TicketStatus || (exports.TicketStatus = TicketStatus = {}));
|
|
119
|
-
var TicketPriority;
|
|
120
|
-
(function (TicketPriority) {
|
|
121
|
-
TicketPriority["low"] = "low";
|
|
122
|
-
TicketPriority["medium"] = "medium";
|
|
123
|
-
TicketPriority["high"] = "high";
|
|
124
|
-
TicketPriority["urgent"] = "urgent";
|
|
125
|
-
})(TicketPriority || (exports.TicketPriority = TicketPriority = {}));
|
|
126
|
-
var TicketIconType;
|
|
127
|
-
(function (TicketIconType) {
|
|
128
|
-
TicketIconType["emoji"] = "emoji";
|
|
129
|
-
})(TicketIconType || (exports.TicketIconType = TicketIconType = {}));
|
|
130
|
-
var ReleaseStatus;
|
|
131
|
-
(function (ReleaseStatus) {
|
|
132
|
-
ReleaseStatus["pending"] = "pending";
|
|
133
|
-
ReleaseStatus["scheduled"] = "scheduled";
|
|
134
|
-
ReleaseStatus["released"] = "released";
|
|
135
|
-
})(ReleaseStatus || (exports.ReleaseStatus = ReleaseStatus = {}));
|
|
136
|
-
var ReleaseType;
|
|
137
|
-
(function (ReleaseType) {
|
|
138
|
-
ReleaseType["major"] = "major";
|
|
139
|
-
ReleaseType["minor"] = "minor";
|
|
140
|
-
ReleaseType["patch"] = "patch";
|
|
141
|
-
ReleaseType["launch"] = "launch";
|
|
142
|
-
})(ReleaseType || (exports.ReleaseType = ReleaseType = {}));
|
|
143
149
|
var UserNoteStatus;
|
|
144
150
|
(function (UserNoteStatus) {
|
|
145
151
|
UserNoteStatus["pending"] = "pending";
|
|
@@ -241,12 +247,6 @@ var IntegrationScope;
|
|
|
241
247
|
IntegrationScope["collection"] = "collection";
|
|
242
248
|
IntegrationScope["resource"] = "resource";
|
|
243
249
|
})(IntegrationScope || (exports.IntegrationScope = IntegrationScope = {}));
|
|
244
|
-
var PolicyDocumentType;
|
|
245
|
-
(function (PolicyDocumentType) {
|
|
246
|
-
PolicyDocumentType["terms"] = "terms";
|
|
247
|
-
PolicyDocumentType["privacy"] = "privacy";
|
|
248
|
-
PolicyDocumentType["cookie"] = "cookie";
|
|
249
|
-
})(PolicyDocumentType || (exports.PolicyDocumentType = PolicyDocumentType = {}));
|
|
250
250
|
var PolicyDocumentStatus;
|
|
251
251
|
(function (PolicyDocumentStatus) {
|
|
252
252
|
PolicyDocumentStatus["live"] = "live";
|
|
@@ -264,6 +264,10 @@ var ParraAPI = /** @class */ (function () {
|
|
|
264
264
|
var _this = this;
|
|
265
265
|
this.http = http;
|
|
266
266
|
this.options = options;
|
|
267
|
+
this.getAppInfo = function (tenant_id, application_id, query, options) {
|
|
268
|
+
if (options === void 0) { options = {}; }
|
|
269
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/app-info"), __assign({ method: "get", query: query }, options));
|
|
270
|
+
};
|
|
267
271
|
this.checkAuthorization = function (body, options) {
|
|
268
272
|
if (options === void 0) { options = {}; }
|
|
269
273
|
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/authorization/check"), __assign({ method: "post", body: JSON.stringify(body), headers: {
|
|
@@ -649,10 +653,6 @@ var ParraAPI = /** @class */ (function () {
|
|
|
649
653
|
"content-type": "application/json",
|
|
650
654
|
} }, options));
|
|
651
655
|
};
|
|
652
|
-
this.getAppInfoForTenantApplication = function (tenant_id, application_id, query, options) {
|
|
653
|
-
if (options === void 0) { options = {}; }
|
|
654
|
-
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/app-info"), __assign({ method: "get", query: query }, options));
|
|
655
|
-
};
|
|
656
656
|
this.paginateTicketsForApplication = function (tenant_id, application_id, query, options) {
|
|
657
657
|
if (options === void 0) { options = {}; }
|
|
658
658
|
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/tickets"), __assign({ method: "get", query: query }, options));
|