@parra/parra-js-sdk 0.2.152 → 0.2.154

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.
@@ -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;
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, "/notification-templates"), {
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, "/notification-templates"), {
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, "/notification-templates/").concat(notification_template_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, "/notification-templates/").concat(notification_template_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, "/notification-templates/").concat(notification_template_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, "/notification-templates/").concat(notification_template_id, "/channels"), {
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: {
@@ -640,7 +640,7 @@ var ParraAPI = /** @class */ (function () {
640
640
  });
641
641
  };
642
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, "/notification-templates/").concat(notification_template_id, "/channels/").concat(channel_id), {
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
644
  method: "put",
645
645
  body: JSON.stringify(body),
646
646
  headers: {
@@ -649,7 +649,7 @@ var ParraAPI = /** @class */ (function () {
649
649
  });
650
650
  };
651
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, "/notification-templates/").concat(notification_template_id, "/channels/").concat(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
653
  method: "delete",
654
654
  });
655
655
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parra/parra-js-sdk",
3
- "version": "0.2.152",
3
+ "version": "0.2.154",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",