@parra/parra-js-sdk 0.3.247 → 0.3.248

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.
@@ -1793,26 +1793,6 @@ export interface AppVersion {
1793
1793
  version_number: number;
1794
1794
  status: AppVersionStatus;
1795
1795
  }
1796
- export interface UpdateApnsConfigurationRequestBody {
1797
- name: string;
1798
- description?: string | null;
1799
- bundle_id: string;
1800
- team_id: string;
1801
- key_id: string;
1802
- key: string;
1803
- }
1804
- export interface ApnsConfiguration {
1805
- id: string;
1806
- created_at: string;
1807
- updated_at: string;
1808
- deleted_at?: string | null;
1809
- name: string;
1810
- description?: string | null;
1811
- bundle_id: string;
1812
- team_id: string;
1813
- key_id: string;
1814
- key: string;
1815
- }
1816
1796
  export interface InboxItem {
1817
1797
  id: string;
1818
1798
  created_at: string;
@@ -3358,15 +3338,13 @@ declare class ParraAPI {
3358
3338
  getTenantApplicationVersionById: (tenant_id: string, application_id: string, app_version_id: string, options?: Options) => Promise<AppVersion>;
3359
3339
  updateTenantApplicationVersionById: (tenant_id: string, application_id: string, app_version_id: string, body: UpdateAppVersionRequestBody, options?: Options) => Promise<AppVersion>;
3360
3340
  deleteTenantApplicationVersionById: (tenant_id: string, application_id: string, app_version_id: string, options?: Options) => Promise<Response>;
3361
- updateApnsConfigurationForTenantApplication: (tenant_id: string, application_id: string, body: UpdateApnsConfigurationRequestBody, options?: Options) => Promise<ApnsConfiguration>;
3362
- getApnsConfigurationForTenantApplication: (tenant_id: string, application_id: string, options?: Options) => Promise<ApnsConfiguration>;
3363
- getInboxItemsForTenantUser: (tenant_id: string, query?: {
3341
+ getInboxItemsForTenantUser: (tenant_id: string, user_id: string, query?: {
3364
3342
  limit?: number;
3365
3343
  offset?: number;
3366
- segment?: string;
3344
+ group?: string;
3367
3345
  archived?: boolean;
3368
3346
  }, options?: Options) => Promise<InboxItemCollectionResponse>;
3369
- readInboxItemsForTenantUser: (tenant_id: string, body: ReadInboxItemsRequestBody, options?: Options) => Promise<Response>;
3347
+ readInboxItemsForTenantUser: (tenant_id: string, user_id: string, body: ReadInboxItemsRequestBody, options?: Options) => Promise<Response>;
3370
3348
  createNotificationTemplate: (tenant_id: string, body?: CreateNotificationTemplateRequestBody, options?: Options) => Promise<NotificationTemplate>;
3371
3349
  paginateNotificationTemplatesForTenantById: (tenant_id: string, query?: {
3372
3350
  $select?: string;
package/dist/ParraAPI.js CHANGED
@@ -935,23 +935,13 @@ var ParraAPI = /** @class */ (function () {
935
935
  if (options === void 0) { options = {}; }
936
936
  return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/versions/").concat(app_version_id), __assign({ method: "delete" }, options));
937
937
  };
938
- this.updateApnsConfigurationForTenantApplication = function (tenant_id, application_id, body, options) {
938
+ this.getInboxItemsForTenantUser = function (tenant_id, user_id, query, options) {
939
939
  if (options === void 0) { options = {}; }
940
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/apns"), __assign({ method: "post", body: JSON.stringify(body), headers: {
941
- "content-type": "application/json",
942
- } }, options));
943
- };
944
- this.getApnsConfigurationForTenantApplication = function (tenant_id, application_id, options) {
945
- if (options === void 0) { options = {}; }
946
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/apns"), __assign({ method: "get" }, options));
947
- };
948
- this.getInboxItemsForTenantUser = function (tenant_id, query, options) {
949
- if (options === void 0) { options = {}; }
950
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/notifications/inbox/items"), __assign({ method: "get", query: query }, options));
940
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/").concat(user_id, "/notifications/inbox/items"), __assign({ method: "get", query: query }, options));
951
941
  };
952
- this.readInboxItemsForTenantUser = function (tenant_id, body, options) {
942
+ this.readInboxItemsForTenantUser = function (tenant_id, user_id, body, options) {
953
943
  if (options === void 0) { options = {}; }
954
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/notifications/inbox/items/read"), __assign({ method: "post", body: JSON.stringify(body), headers: {
944
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/").concat(user_id, "/notifications/inbox/items/read"), __assign({ method: "post", body: JSON.stringify(body), headers: {
955
945
  "content-type": "application/json",
956
946
  }, raw: true }, options));
957
947
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parra/parra-js-sdk",
3
- "version": "0.3.247",
3
+ "version": "0.3.248",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",