@parra/parra-js-sdk 0.3.103 → 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 +37 -39
- package/dist/ParraAPI.js +42 -38
- package/package.json +1 -1
package/dist/ParraAPI.d.ts
CHANGED
|
@@ -1248,14 +1248,6 @@ export interface AppVersion {
|
|
|
1248
1248
|
version_number: number;
|
|
1249
1249
|
status: AppVersionStatus;
|
|
1250
1250
|
}
|
|
1251
|
-
export declare enum ApplicationType {
|
|
1252
|
-
ios = "ios"
|
|
1253
|
-
}
|
|
1254
|
-
export interface CreateApplicationRequestBody {
|
|
1255
|
-
name: string;
|
|
1256
|
-
description?: string | null;
|
|
1257
|
-
type: ApplicationType;
|
|
1258
|
-
}
|
|
1259
1251
|
export interface UpdateApnsConfigurationRequestBody {
|
|
1260
1252
|
name: string;
|
|
1261
1253
|
description?: string | null;
|
|
@@ -1276,30 +1268,6 @@ export interface ApnsConfiguration {
|
|
|
1276
1268
|
key_id: string;
|
|
1277
1269
|
key: string;
|
|
1278
1270
|
}
|
|
1279
|
-
export interface Application {
|
|
1280
|
-
id: string;
|
|
1281
|
-
created_at: string;
|
|
1282
|
-
updated_at: string;
|
|
1283
|
-
deleted_at?: string | null;
|
|
1284
|
-
name: string;
|
|
1285
|
-
description?: string | null;
|
|
1286
|
-
type: ApplicationType;
|
|
1287
|
-
tenant_id: string;
|
|
1288
|
-
icon?: ImageAssetStub | null;
|
|
1289
|
-
apns?: ApnsConfiguration | null;
|
|
1290
|
-
}
|
|
1291
|
-
export interface ApplicationCollectionResponse {
|
|
1292
|
-
page: number;
|
|
1293
|
-
page_count: number;
|
|
1294
|
-
page_size: number;
|
|
1295
|
-
total_count: number;
|
|
1296
|
-
data: Array<Application>;
|
|
1297
|
-
}
|
|
1298
|
-
export interface UpdateApplicationRequestBody {
|
|
1299
|
-
name?: string;
|
|
1300
|
-
description?: string | null;
|
|
1301
|
-
icon?: ImageAssetStub | null;
|
|
1302
|
-
}
|
|
1303
1271
|
export interface InboxItem {
|
|
1304
1272
|
id: string;
|
|
1305
1273
|
created_at: string;
|
|
@@ -1414,6 +1382,37 @@ export interface UpdateChannelRequestBody {
|
|
|
1414
1382
|
apns?: UpdateApnsChannelRequestBody;
|
|
1415
1383
|
inbox?: UpdateInboxChannelRequestBody;
|
|
1416
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
|
+
}
|
|
1417
1416
|
export interface Entitlement {
|
|
1418
1417
|
}
|
|
1419
1418
|
export interface TenantMetrics {
|
|
@@ -1908,14 +1907,8 @@ declare class ParraAPI {
|
|
|
1908
1907
|
getTenantApplicationVersionById: (tenant_id: string, application_id: string, app_version_id: string) => Promise<AppVersion>;
|
|
1909
1908
|
updateTenantApplicationVersionById: (tenant_id: string, application_id: string, app_version_id: string, body: UpdateAppVersionRequestBody) => Promise<AppVersion>;
|
|
1910
1909
|
deleteTenantApplicationVersionById: (tenant_id: string, application_id: string, app_version_id: string) => Promise<Response>;
|
|
1911
|
-
createApplicationForTenantById: (tenant_id: string, body: CreateApplicationRequestBody) => Promise<Application>;
|
|
1912
|
-
paginateApplicationsForTenantById: (tenant_id: string) => Promise<ApplicationCollectionResponse>;
|
|
1913
|
-
getApplicationByIdForTenantById: (tenant_id: string, application_id: string, query?: {
|
|
1914
|
-
include?: string;
|
|
1915
|
-
}) => Promise<Application>;
|
|
1916
|
-
updateApplicationByIdForTenantById: (tenant_id: string, application_id: string, body?: UpdateApplicationRequestBody) => Promise<Application>;
|
|
1917
|
-
deleteApplicationByIdForTenantById: (tenant_id: string, application_id: string) => Promise<Response>;
|
|
1918
1910
|
updateApnsConfigurationForTenantApplication: (tenant_id: string, application_id: string, body: UpdateApnsConfigurationRequestBody) => Promise<ApnsConfiguration>;
|
|
1911
|
+
getApnsConfigurationForTenantApplication: (tenant_id: string, application_id: string) => Promise<ApnsConfiguration>;
|
|
1919
1912
|
getInboxItemsForTenantUser: (tenant_id: string, query?: {
|
|
1920
1913
|
limit?: number;
|
|
1921
1914
|
offset?: number;
|
|
@@ -1941,6 +1934,11 @@ declare class ParraAPI {
|
|
|
1941
1934
|
createChannelForNotificationTemplate: (tenant_id: string, notification_template_id: string, body: CreateChannelRequestBody) => Promise<Channel>;
|
|
1942
1935
|
updateChannelForNotificationTemplate: (tenant_id: string, notification_template_id: string, channel_id: string, body: UpdateChannelRequestBody) => Promise<Channel>;
|
|
1943
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>;
|
|
1944
1942
|
getTenantForApiKeyById: (api_key_id: string) => Promise<Tenant>;
|
|
1945
1943
|
acceptInvitationByCode: (invitation_code: string) => Promise<TenantInvitation>;
|
|
1946
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",
|