@parra/parra-js-sdk 0.3.101 → 0.3.104
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 +65 -46
- package/dist/ParraAPI.js +42 -38
- package/package.json +1 -1
package/dist/ParraAPI.d.ts
CHANGED
|
@@ -864,12 +864,21 @@ export interface CreateTicketRequestBody {
|
|
|
864
864
|
estimated_completion_date?: string | null;
|
|
865
865
|
icon?: TicketIcon;
|
|
866
866
|
attachments?: Array<CreateTicketAttachmentRequestBody>;
|
|
867
|
+
is_featured: boolean;
|
|
868
|
+
featured_title?: string | null;
|
|
869
|
+
featured_description?: string | null;
|
|
870
|
+
featured_image?: ImageAssetStub;
|
|
867
871
|
}
|
|
868
872
|
export declare enum ReleaseStatus {
|
|
869
873
|
pending = "pending",
|
|
870
874
|
scheduled = "scheduled",
|
|
871
875
|
released = "released"
|
|
872
876
|
}
|
|
877
|
+
export interface ReleaseHeader {
|
|
878
|
+
id: string;
|
|
879
|
+
size: Size;
|
|
880
|
+
url: string;
|
|
881
|
+
}
|
|
873
882
|
export declare enum ReleaseType {
|
|
874
883
|
major = "major",
|
|
875
884
|
minor = "minor",
|
|
@@ -894,6 +903,7 @@ export interface ReleaseStub {
|
|
|
894
903
|
tenant_id: string;
|
|
895
904
|
release_number: number;
|
|
896
905
|
status: ReleaseStatus;
|
|
906
|
+
header?: ReleaseHeader | null;
|
|
897
907
|
}
|
|
898
908
|
export interface TicketAttachment {
|
|
899
909
|
id: string;
|
|
@@ -902,6 +912,11 @@ export interface TicketAttachment {
|
|
|
902
912
|
deleted_at?: string | null;
|
|
903
913
|
attachment: ImageAssetStub;
|
|
904
914
|
}
|
|
915
|
+
export interface TicketFeatured {
|
|
916
|
+
title: string;
|
|
917
|
+
description?: string;
|
|
918
|
+
image?: ImageAssetStub;
|
|
919
|
+
}
|
|
905
920
|
export interface TicketStub {
|
|
906
921
|
id: string;
|
|
907
922
|
created_at: string;
|
|
@@ -923,6 +938,7 @@ export interface TicketStub {
|
|
|
923
938
|
tenant_id: string;
|
|
924
939
|
vote_count: number;
|
|
925
940
|
released_at?: string | null;
|
|
941
|
+
featured?: TicketFeatured;
|
|
926
942
|
}
|
|
927
943
|
export interface Ticket {
|
|
928
944
|
id: string;
|
|
@@ -945,6 +961,7 @@ export interface Ticket {
|
|
|
945
961
|
tenant_id: string;
|
|
946
962
|
vote_count: number;
|
|
947
963
|
released_at?: string | null;
|
|
964
|
+
featured?: TicketFeatured;
|
|
948
965
|
release?: ReleaseStub;
|
|
949
966
|
attachments?: Array<TicketAttachment> | null;
|
|
950
967
|
}
|
|
@@ -1015,6 +1032,10 @@ export interface UpdateTicketRequestBody {
|
|
|
1015
1032
|
estimated_start_date?: string | null;
|
|
1016
1033
|
estimated_completion_date?: string | null;
|
|
1017
1034
|
icon?: TicketIcon;
|
|
1035
|
+
is_featured?: boolean;
|
|
1036
|
+
featured_title?: string | null;
|
|
1037
|
+
featured_description?: string | null;
|
|
1038
|
+
featured_image?: ImageAssetStub;
|
|
1018
1039
|
}
|
|
1019
1040
|
export interface BulkUpdateTicketsRequestBody {
|
|
1020
1041
|
release_id?: string;
|
|
@@ -1029,6 +1050,10 @@ export interface BulkUpdateTicketsRequestBody {
|
|
|
1029
1050
|
estimated_start_date?: string | null;
|
|
1030
1051
|
estimated_completion_date?: string | null;
|
|
1031
1052
|
icon?: TicketIcon;
|
|
1053
|
+
is_featured?: boolean;
|
|
1054
|
+
featured_title?: string | null;
|
|
1055
|
+
featured_description?: string | null;
|
|
1056
|
+
featured_image?: ImageAssetStub;
|
|
1032
1057
|
ticket_ids?: Array<string>;
|
|
1033
1058
|
}
|
|
1034
1059
|
export interface UpdateReleaseForTicketRequestBody {
|
|
@@ -1085,11 +1110,6 @@ export interface ReleaseItem {
|
|
|
1085
1110
|
ticket_id: string;
|
|
1086
1111
|
ticket: Ticket;
|
|
1087
1112
|
}
|
|
1088
|
-
export interface ReleaseHeader {
|
|
1089
|
-
id: string;
|
|
1090
|
-
size: Size;
|
|
1091
|
-
url: string;
|
|
1092
|
-
}
|
|
1093
1113
|
export interface Release {
|
|
1094
1114
|
id: string;
|
|
1095
1115
|
created_at: string;
|
|
@@ -1102,8 +1122,8 @@ export interface Release {
|
|
|
1102
1122
|
tenant_id: string;
|
|
1103
1123
|
release_number: number;
|
|
1104
1124
|
status: ReleaseStatus;
|
|
1105
|
-
items?: Array<ReleaseItem> | null;
|
|
1106
1125
|
header?: ReleaseHeader | null;
|
|
1126
|
+
items?: Array<ReleaseItem> | null;
|
|
1107
1127
|
}
|
|
1108
1128
|
export interface ReleaseCollectionResponse {
|
|
1109
1129
|
page: number;
|
|
@@ -1161,6 +1181,7 @@ export interface AppReleaseStub {
|
|
|
1161
1181
|
tenant_id: string;
|
|
1162
1182
|
release_number: number;
|
|
1163
1183
|
status: ReleaseStatus;
|
|
1184
|
+
header?: ReleaseHeader | null;
|
|
1164
1185
|
}
|
|
1165
1186
|
export interface AppRelease {
|
|
1166
1187
|
id: string;
|
|
@@ -1174,8 +1195,8 @@ export interface AppRelease {
|
|
|
1174
1195
|
tenant_id: string;
|
|
1175
1196
|
release_number: number;
|
|
1176
1197
|
status: ReleaseStatus;
|
|
1177
|
-
sections: Array<AppReleaseSection>;
|
|
1178
1198
|
header?: ReleaseHeader | null;
|
|
1199
|
+
sections: Array<AppReleaseSection>;
|
|
1179
1200
|
}
|
|
1180
1201
|
export interface NewInstalledVersionInfo {
|
|
1181
1202
|
configuration: AppReleaseConfiguration;
|
|
@@ -1227,14 +1248,6 @@ export interface AppVersion {
|
|
|
1227
1248
|
version_number: number;
|
|
1228
1249
|
status: AppVersionStatus;
|
|
1229
1250
|
}
|
|
1230
|
-
export declare enum ApplicationType {
|
|
1231
|
-
ios = "ios"
|
|
1232
|
-
}
|
|
1233
|
-
export interface CreateApplicationRequestBody {
|
|
1234
|
-
name: string;
|
|
1235
|
-
description?: string | null;
|
|
1236
|
-
type: ApplicationType;
|
|
1237
|
-
}
|
|
1238
1251
|
export interface UpdateApnsConfigurationRequestBody {
|
|
1239
1252
|
name: string;
|
|
1240
1253
|
description?: string | null;
|
|
@@ -1255,30 +1268,6 @@ export interface ApnsConfiguration {
|
|
|
1255
1268
|
key_id: string;
|
|
1256
1269
|
key: string;
|
|
1257
1270
|
}
|
|
1258
|
-
export interface Application {
|
|
1259
|
-
id: string;
|
|
1260
|
-
created_at: string;
|
|
1261
|
-
updated_at: string;
|
|
1262
|
-
deleted_at?: string | null;
|
|
1263
|
-
name: string;
|
|
1264
|
-
description?: string | null;
|
|
1265
|
-
type: ApplicationType;
|
|
1266
|
-
tenant_id: string;
|
|
1267
|
-
icon?: ImageAssetStub | null;
|
|
1268
|
-
apns?: ApnsConfiguration | null;
|
|
1269
|
-
}
|
|
1270
|
-
export interface ApplicationCollectionResponse {
|
|
1271
|
-
page: number;
|
|
1272
|
-
page_count: number;
|
|
1273
|
-
page_size: number;
|
|
1274
|
-
total_count: number;
|
|
1275
|
-
data: Array<Application>;
|
|
1276
|
-
}
|
|
1277
|
-
export interface UpdateApplicationRequestBody {
|
|
1278
|
-
name?: string;
|
|
1279
|
-
description?: string | null;
|
|
1280
|
-
icon?: ImageAssetStub | null;
|
|
1281
|
-
}
|
|
1282
1271
|
export interface InboxItem {
|
|
1283
1272
|
id: string;
|
|
1284
1273
|
created_at: string;
|
|
@@ -1393,6 +1382,37 @@ export interface UpdateChannelRequestBody {
|
|
|
1393
1382
|
apns?: UpdateApnsChannelRequestBody;
|
|
1394
1383
|
inbox?: UpdateInboxChannelRequestBody;
|
|
1395
1384
|
}
|
|
1385
|
+
export declare enum ApplicationType {
|
|
1386
|
+
ios = "ios"
|
|
1387
|
+
}
|
|
1388
|
+
export interface CreateApplicationRequestBody {
|
|
1389
|
+
name: string;
|
|
1390
|
+
description?: string | null;
|
|
1391
|
+
type: ApplicationType;
|
|
1392
|
+
}
|
|
1393
|
+
export interface Application {
|
|
1394
|
+
id: string;
|
|
1395
|
+
created_at: string;
|
|
1396
|
+
updated_at: string;
|
|
1397
|
+
deleted_at?: string | null;
|
|
1398
|
+
name: string;
|
|
1399
|
+
description?: string | null;
|
|
1400
|
+
type: ApplicationType;
|
|
1401
|
+
tenant_id: string;
|
|
1402
|
+
icon?: ImageAssetStub | null;
|
|
1403
|
+
}
|
|
1404
|
+
export interface ApplicationCollectionResponse {
|
|
1405
|
+
page: number;
|
|
1406
|
+
page_count: number;
|
|
1407
|
+
page_size: number;
|
|
1408
|
+
total_count: number;
|
|
1409
|
+
data: Array<Application>;
|
|
1410
|
+
}
|
|
1411
|
+
export interface UpdateApplicationRequestBody {
|
|
1412
|
+
name?: string;
|
|
1413
|
+
description?: string | null;
|
|
1414
|
+
icon?: ImageAssetStub | null;
|
|
1415
|
+
}
|
|
1396
1416
|
export interface Entitlement {
|
|
1397
1417
|
}
|
|
1398
1418
|
export interface TenantMetrics {
|
|
@@ -1887,14 +1907,8 @@ declare class ParraAPI {
|
|
|
1887
1907
|
getTenantApplicationVersionById: (tenant_id: string, application_id: string, app_version_id: string) => Promise<AppVersion>;
|
|
1888
1908
|
updateTenantApplicationVersionById: (tenant_id: string, application_id: string, app_version_id: string, body: UpdateAppVersionRequestBody) => Promise<AppVersion>;
|
|
1889
1909
|
deleteTenantApplicationVersionById: (tenant_id: string, application_id: string, app_version_id: string) => Promise<Response>;
|
|
1890
|
-
createApplicationForTenantById: (tenant_id: string, body: CreateApplicationRequestBody) => Promise<Application>;
|
|
1891
|
-
paginateApplicationsForTenantById: (tenant_id: string) => Promise<ApplicationCollectionResponse>;
|
|
1892
|
-
getApplicationByIdForTenantById: (tenant_id: string, application_id: string, query?: {
|
|
1893
|
-
include?: string;
|
|
1894
|
-
}) => Promise<Application>;
|
|
1895
|
-
updateApplicationByIdForTenantById: (tenant_id: string, application_id: string, body?: UpdateApplicationRequestBody) => Promise<Application>;
|
|
1896
|
-
deleteApplicationByIdForTenantById: (tenant_id: string, application_id: string) => Promise<Response>;
|
|
1897
1910
|
updateApnsConfigurationForTenantApplication: (tenant_id: string, application_id: string, body: UpdateApnsConfigurationRequestBody) => Promise<ApnsConfiguration>;
|
|
1911
|
+
getApnsConfigurationForTenantApplication: (tenant_id: string, application_id: string) => Promise<ApnsConfiguration>;
|
|
1898
1912
|
getInboxItemsForTenantUser: (tenant_id: string, query?: {
|
|
1899
1913
|
limit?: number;
|
|
1900
1914
|
offset?: number;
|
|
@@ -1920,6 +1934,11 @@ declare class ParraAPI {
|
|
|
1920
1934
|
createChannelForNotificationTemplate: (tenant_id: string, notification_template_id: string, body: CreateChannelRequestBody) => Promise<Channel>;
|
|
1921
1935
|
updateChannelForNotificationTemplate: (tenant_id: string, notification_template_id: string, channel_id: string, body: UpdateChannelRequestBody) => Promise<Channel>;
|
|
1922
1936
|
deleteChannelForNotificationTemplate: (tenant_id: string, notification_template_id: string, channel_id: string) => Promise<Response>;
|
|
1937
|
+
createApplicationForTenantById: (tenant_id: string, body: CreateApplicationRequestBody) => Promise<Application>;
|
|
1938
|
+
paginateApplicationsForTenantById: (tenant_id: string) => Promise<ApplicationCollectionResponse>;
|
|
1939
|
+
getApplicationByIdForTenantById: (tenant_id: string, application_id: string) => Promise<Application>;
|
|
1940
|
+
updateApplicationByIdForTenantById: (tenant_id: string, application_id: string, body?: UpdateApplicationRequestBody) => Promise<Application>;
|
|
1941
|
+
deleteApplicationByIdForTenantById: (tenant_id: string, application_id: string) => Promise<Response>;
|
|
1923
1942
|
getTenantForApiKeyById: (api_key_id: string) => Promise<Tenant>;
|
|
1924
1943
|
acceptInvitationByCode: (invitation_code: string) => Promise<TenantInvitation>;
|
|
1925
1944
|
deleteApiKeyForTenantById: (tenant_id: string, api_key_id: string) => Promise<Response>;
|
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.
|
|
3
|
+
exports.IntegrationScope = exports.IntegrationConnectionStatus = exports.IntegrationType = exports.ConnectedAppConnectionStatus = exports.ConnectedAppType = exports.ApplicationType = exports.ApnsPushType = exports.ApnsEnvironment = exports.ChannelType = 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";
|
|
@@ -141,10 +141,6 @@ var AppVersionStatus;
|
|
|
141
141
|
AppVersionStatus["released"] = "released";
|
|
142
142
|
AppVersionStatus["rejected"] = "rejected";
|
|
143
143
|
})(AppVersionStatus || (exports.AppVersionStatus = AppVersionStatus = {}));
|
|
144
|
-
var ApplicationType;
|
|
145
|
-
(function (ApplicationType) {
|
|
146
|
-
ApplicationType["ios"] = "ios";
|
|
147
|
-
})(ApplicationType || (exports.ApplicationType = ApplicationType = {}));
|
|
148
144
|
var ChannelType;
|
|
149
145
|
(function (ChannelType) {
|
|
150
146
|
ChannelType["apns"] = "apns";
|
|
@@ -167,6 +163,10 @@ var ApnsPushType;
|
|
|
167
163
|
ApnsPushType["voip"] = "voip";
|
|
168
164
|
ApnsPushType["mdm"] = "mdm";
|
|
169
165
|
})(ApnsPushType || (exports.ApnsPushType = ApnsPushType = {}));
|
|
166
|
+
var ApplicationType;
|
|
167
|
+
(function (ApplicationType) {
|
|
168
|
+
ApplicationType["ios"] = "ios";
|
|
169
|
+
})(ApplicationType || (exports.ApplicationType = ApplicationType = {}));
|
|
170
170
|
var ConnectedAppType;
|
|
171
171
|
(function (ConnectedAppType) {
|
|
172
172
|
ConnectedAppType["parra"] = "parra";
|
|
@@ -815,8 +815,8 @@ var ParraAPI = /** @class */ (function () {
|
|
|
815
815
|
method: "delete",
|
|
816
816
|
});
|
|
817
817
|
};
|
|
818
|
-
this.
|
|
819
|
-
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications"), {
|
|
818
|
+
this.updateApnsConfigurationForTenantApplication = function (tenant_id, application_id, body) {
|
|
819
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/apns"), {
|
|
820
820
|
method: "post",
|
|
821
821
|
body: JSON.stringify(body),
|
|
822
822
|
headers: {
|
|
@@ -824,38 +824,9 @@ var ParraAPI = /** @class */ (function () {
|
|
|
824
824
|
},
|
|
825
825
|
});
|
|
826
826
|
};
|
|
827
|
-
this.
|
|
828
|
-
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications"), {
|
|
829
|
-
method: "get",
|
|
830
|
-
});
|
|
831
|
-
};
|
|
832
|
-
this.getApplicationByIdForTenantById = function (tenant_id, application_id, query) {
|
|
833
|
-
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id), {
|
|
834
|
-
method: "get",
|
|
835
|
-
query: query,
|
|
836
|
-
});
|
|
837
|
-
};
|
|
838
|
-
this.updateApplicationByIdForTenantById = function (tenant_id, application_id, body) {
|
|
839
|
-
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id), {
|
|
840
|
-
method: "put",
|
|
841
|
-
body: JSON.stringify(body),
|
|
842
|
-
headers: {
|
|
843
|
-
"content-type": "application/json",
|
|
844
|
-
},
|
|
845
|
-
});
|
|
846
|
-
};
|
|
847
|
-
this.deleteApplicationByIdForTenantById = function (tenant_id, application_id) {
|
|
848
|
-
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id), {
|
|
849
|
-
method: "delete",
|
|
850
|
-
});
|
|
851
|
-
};
|
|
852
|
-
this.updateApnsConfigurationForTenantApplication = function (tenant_id, application_id, body) {
|
|
827
|
+
this.getApnsConfigurationForTenantApplication = function (tenant_id, application_id) {
|
|
853
828
|
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/apns"), {
|
|
854
|
-
method: "
|
|
855
|
-
body: JSON.stringify(body),
|
|
856
|
-
headers: {
|
|
857
|
-
"content-type": "application/json",
|
|
858
|
-
},
|
|
829
|
+
method: "get",
|
|
859
830
|
});
|
|
860
831
|
};
|
|
861
832
|
this.getInboxItemsForTenantUser = function (tenant_id, query) {
|
|
@@ -932,6 +903,39 @@ var ParraAPI = /** @class */ (function () {
|
|
|
932
903
|
method: "delete",
|
|
933
904
|
});
|
|
934
905
|
};
|
|
906
|
+
this.createApplicationForTenantById = function (tenant_id, body) {
|
|
907
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications"), {
|
|
908
|
+
method: "post",
|
|
909
|
+
body: JSON.stringify(body),
|
|
910
|
+
headers: {
|
|
911
|
+
"content-type": "application/json",
|
|
912
|
+
},
|
|
913
|
+
});
|
|
914
|
+
};
|
|
915
|
+
this.paginateApplicationsForTenantById = function (tenant_id) {
|
|
916
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications"), {
|
|
917
|
+
method: "get",
|
|
918
|
+
});
|
|
919
|
+
};
|
|
920
|
+
this.getApplicationByIdForTenantById = function (tenant_id, application_id) {
|
|
921
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id), {
|
|
922
|
+
method: "get",
|
|
923
|
+
});
|
|
924
|
+
};
|
|
925
|
+
this.updateApplicationByIdForTenantById = function (tenant_id, application_id, body) {
|
|
926
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id), {
|
|
927
|
+
method: "put",
|
|
928
|
+
body: JSON.stringify(body),
|
|
929
|
+
headers: {
|
|
930
|
+
"content-type": "application/json",
|
|
931
|
+
},
|
|
932
|
+
});
|
|
933
|
+
};
|
|
934
|
+
this.deleteApplicationByIdForTenantById = function (tenant_id, application_id) {
|
|
935
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id), {
|
|
936
|
+
method: "delete",
|
|
937
|
+
});
|
|
938
|
+
};
|
|
935
939
|
this.getTenantForApiKeyById = function (api_key_id) {
|
|
936
940
|
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/api-keys/").concat(api_key_id, "/tenant"), {
|
|
937
941
|
method: "get",
|