@parra/parra-js-sdk 0.2.136 → 0.2.137

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.
@@ -968,6 +968,30 @@ export interface ApplicationCollectionResponse {
968
968
  data: Array<Application>;
969
969
  }
970
970
  export declare type ApplicationListResponse = Array<Application>;
971
+ export declare enum ApnsConfigurationEnvironment {
972
+ production = "production",
973
+ sandbox = "sandbox"
974
+ }
975
+ export interface UpdateApnsConfigurationRequestBody {
976
+ environment: ApnsConfigurationEnvironment;
977
+ name: string;
978
+ description?: string | null;
979
+ team_id: string;
980
+ key_id: string;
981
+ key: string;
982
+ }
983
+ export interface ApnsConfiguration {
984
+ id: string;
985
+ created_at: string;
986
+ updated_at: string;
987
+ deleted_at?: string | null;
988
+ environment: ApnsConfigurationEnvironment;
989
+ name: string;
990
+ description?: string | null;
991
+ team_id: string;
992
+ key_id: string;
993
+ key: string;
994
+ }
971
995
  export interface NotificationRecipient {
972
996
  user_id?: string | null;
973
997
  }
@@ -1235,6 +1259,7 @@ declare class ParraAPI {
1235
1259
  getApplicationByIdForTenantById: (tenant_id: string, application_id: string) => Promise<Application>;
1236
1260
  updateApplicationByIdForTenantById: (tenant_id: string, application_id: string, body?: UpdateApplicationRequestBody | undefined) => Promise<Application>;
1237
1261
  deleteApplicationByIdForTenantById: (tenant_id: string, application_id: string) => Promise<Response>;
1262
+ updateApnsConfigurationForTenantApplication: (tenant_id: string, application_id: string, body?: UpdateApnsConfigurationRequestBody | undefined) => Promise<ApnsConfiguration>;
1238
1263
  createUser: (body: CreateUserRequestBody) => Promise<UserResponse>;
1239
1264
  listUsers: (query?: {
1240
1265
  $select?: string | undefined;
package/dist/ParraAPI.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ApplicationType = exports.TemplateType = exports.QuestionKind = exports.QuestionType = exports.CardItemType = exports.CardItemDisplayType = exports.CampaignActionDisplayType = exports.CampaignActionType = exports.CampaignStatus = exports.SubscriptionStatus = exports.Interval = exports.Currency = void 0;
3
+ exports.ApnsConfigurationEnvironment = exports.ApplicationType = exports.TemplateType = exports.QuestionKind = exports.QuestionType = exports.CardItemType = exports.CardItemDisplayType = exports.CampaignActionDisplayType = exports.CampaignActionType = exports.CampaignStatus = exports.SubscriptionStatus = exports.Interval = exports.Currency = void 0;
4
4
  var Currency;
5
5
  (function (Currency) {
6
6
  Currency["usd"] = "usd";
@@ -79,6 +79,11 @@ var ApplicationType;
79
79
  (function (ApplicationType) {
80
80
  ApplicationType["ios"] = "ios";
81
81
  })(ApplicationType = exports.ApplicationType || (exports.ApplicationType = {}));
82
+ var ApnsConfigurationEnvironment;
83
+ (function (ApnsConfigurationEnvironment) {
84
+ ApnsConfigurationEnvironment["production"] = "production";
85
+ ApnsConfigurationEnvironment["sandbox"] = "sandbox";
86
+ })(ApnsConfigurationEnvironment = exports.ApnsConfigurationEnvironment || (exports.ApnsConfigurationEnvironment = {}));
82
87
  var ParraAPI = /** @class */ (function () {
83
88
  function ParraAPI(http, options) {
84
89
  var _this = this;
@@ -552,6 +557,15 @@ var ParraAPI = /** @class */ (function () {
552
557
  method: "delete",
553
558
  });
554
559
  };
560
+ this.updateApnsConfigurationForTenantApplication = function (tenant_id, application_id, body) {
561
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/apns"), {
562
+ method: "post",
563
+ body: JSON.stringify(body),
564
+ headers: {
565
+ "content-type": "application/json",
566
+ },
567
+ });
568
+ };
555
569
  this.createUser = function (body) {
556
570
  return _this.http.execute("".concat(_this.options.baseUrl, "/v1/users"), {
557
571
  method: "post",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parra/parra-js-sdk",
3
- "version": "0.2.136",
3
+ "version": "0.2.137",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",