@parra/parra-js-sdk 0.2.151 → 0.2.153
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 +4 -0
- package/dist/ParraAPI.js +20 -6
- package/package.json +1 -1
package/dist/ParraAPI.d.ts
CHANGED
|
@@ -1028,6 +1028,7 @@ export interface ApnsChannel {
|
|
|
1028
1028
|
export interface UpdateApnsConfigurationRequestBody {
|
|
1029
1029
|
name: string;
|
|
1030
1030
|
description?: string | null;
|
|
1031
|
+
bundle_id: string;
|
|
1031
1032
|
team_id: string;
|
|
1032
1033
|
key_id: string;
|
|
1033
1034
|
key: string;
|
|
@@ -1039,6 +1040,7 @@ export interface ApnsConfiguration {
|
|
|
1039
1040
|
deleted_at?: string | null;
|
|
1040
1041
|
name: string;
|
|
1041
1042
|
description?: string | null;
|
|
1043
|
+
bundle_id: string;
|
|
1042
1044
|
team_id: string;
|
|
1043
1045
|
key_id: string;
|
|
1044
1046
|
key: string;
|
|
@@ -1394,6 +1396,8 @@ declare class ParraAPI {
|
|
|
1394
1396
|
updateNotificationTemplateById: (tenant_id: string, notification_template_id: string, body?: UpdateNotificationTemplateRequestBody | undefined) => Promise<NotificationTemplate>;
|
|
1395
1397
|
deleteNotificationTemplateById: (tenant_id: string, notification_template_id: string) => Promise<Response>;
|
|
1396
1398
|
createChannelForNotificationTemplate: (tenant_id: string, notification_template_id: string, body?: CreateChannelRequestBody | undefined) => Promise<Channel>;
|
|
1399
|
+
updateChannelForNotificationTemplate: (tenant_id: string, notification_template_id: string, channel_id: string, body?: UpdateChannelRequestBody | undefined) => Promise<Channel>;
|
|
1400
|
+
deleteChannelForNotificationTemplate: (tenant_id: string, notification_template_id: string, channel_id: string) => Promise<Response>;
|
|
1397
1401
|
createUser: (body: CreateUserRequestBody) => Promise<UserResponse>;
|
|
1398
1402
|
listUsers: (query?: {
|
|
1399
1403
|
$select?: string | undefined;
|
package/dist/ParraAPI.js
CHANGED
|
@@ -596,7 +596,7 @@ var ParraAPI = /** @class */ (function () {
|
|
|
596
596
|
});
|
|
597
597
|
};
|
|
598
598
|
this.createNotificationTemplate = function (tenant_id, body) {
|
|
599
|
-
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/
|
|
599
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/notifications/templates"), {
|
|
600
600
|
method: "post",
|
|
601
601
|
body: JSON.stringify(body),
|
|
602
602
|
headers: {
|
|
@@ -605,19 +605,19 @@ var ParraAPI = /** @class */ (function () {
|
|
|
605
605
|
});
|
|
606
606
|
};
|
|
607
607
|
this.paginateNotificationTemplatesForTenantById = function (tenant_id, query) {
|
|
608
|
-
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/
|
|
608
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/notifications/templates"), {
|
|
609
609
|
method: "get",
|
|
610
610
|
query: query,
|
|
611
611
|
});
|
|
612
612
|
};
|
|
613
613
|
this.getNotificationTemplateById = function (tenant_id, notification_template_id, query) {
|
|
614
|
-
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/
|
|
614
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/notifications/templates/").concat(notification_template_id), {
|
|
615
615
|
method: "get",
|
|
616
616
|
query: query,
|
|
617
617
|
});
|
|
618
618
|
};
|
|
619
619
|
this.updateNotificationTemplateById = function (tenant_id, notification_template_id, body) {
|
|
620
|
-
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/
|
|
620
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/notifications/templates/").concat(notification_template_id), {
|
|
621
621
|
method: "put",
|
|
622
622
|
body: JSON.stringify(body),
|
|
623
623
|
headers: {
|
|
@@ -626,12 +626,12 @@ var ParraAPI = /** @class */ (function () {
|
|
|
626
626
|
});
|
|
627
627
|
};
|
|
628
628
|
this.deleteNotificationTemplateById = function (tenant_id, notification_template_id) {
|
|
629
|
-
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/
|
|
629
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/notifications/templates/").concat(notification_template_id), {
|
|
630
630
|
method: "delete",
|
|
631
631
|
});
|
|
632
632
|
};
|
|
633
633
|
this.createChannelForNotificationTemplate = function (tenant_id, notification_template_id, body) {
|
|
634
|
-
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/
|
|
634
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/notifications/templates/").concat(notification_template_id, "/channels"), {
|
|
635
635
|
method: "post",
|
|
636
636
|
body: JSON.stringify(body),
|
|
637
637
|
headers: {
|
|
@@ -639,6 +639,20 @@ var ParraAPI = /** @class */ (function () {
|
|
|
639
639
|
},
|
|
640
640
|
});
|
|
641
641
|
};
|
|
642
|
+
this.updateChannelForNotificationTemplate = function (tenant_id, notification_template_id, channel_id, body) {
|
|
643
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/notifications/templates/").concat(notification_template_id, "/channels/").concat(channel_id), {
|
|
644
|
+
method: "put",
|
|
645
|
+
body: JSON.stringify(body),
|
|
646
|
+
headers: {
|
|
647
|
+
"content-type": "application/json",
|
|
648
|
+
},
|
|
649
|
+
});
|
|
650
|
+
};
|
|
651
|
+
this.deleteChannelForNotificationTemplate = function (tenant_id, notification_template_id, channel_id) {
|
|
652
|
+
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/notifications/templates/").concat(notification_template_id, "/channels/").concat(channel_id), {
|
|
653
|
+
method: "delete",
|
|
654
|
+
});
|
|
655
|
+
};
|
|
642
656
|
this.createUser = function (body) {
|
|
643
657
|
return _this.http.execute("".concat(_this.options.baseUrl, "/v1/users"), {
|
|
644
658
|
method: "post",
|