@parra/parra-js-sdk 0.3.246 → 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.
@@ -783,7 +783,19 @@ export interface YoutubeThumbnails {
783
783
  standard: YoutubeThumbnail;
784
784
  maxres: YoutubeThumbnail;
785
785
  }
786
- export interface FeedItemYoutubeVideoData {
786
+ export interface YoutubeStatistics {
787
+ view_count?: number;
788
+ like_count?: number;
789
+ dislike_count?: number;
790
+ favorite_count?: number;
791
+ comment_count?: number;
792
+ }
793
+ export interface YoutubeVideo {
794
+ id: string;
795
+ created_at: string;
796
+ updated_at: string;
797
+ deleted_at?: string | null;
798
+ url: string;
787
799
  video_id: string;
788
800
  title: string;
789
801
  channel_title: string;
@@ -792,6 +804,7 @@ export interface FeedItemYoutubeVideoData {
792
804
  thumbnails: YoutubeThumbnails;
793
805
  published_at: string;
794
806
  live_broadcast_content: string;
807
+ statistics?: YoutubeStatistics | null;
795
808
  }
796
809
  export interface ContentCardBackground {
797
810
  image: ImageAssetStub | null;
@@ -809,7 +822,7 @@ export interface ContentCard {
809
822
  description?: string | null;
810
823
  action?: ContentCardAction | null;
811
824
  }
812
- export type FeedItemData = FeedItemYoutubeVideoData | ContentCard;
825
+ export type FeedItemData = YoutubeVideo | ContentCard;
813
826
  export interface FeedItem {
814
827
  id: string;
815
828
  created_at: string;
@@ -827,6 +840,16 @@ export interface FeedItemCollectionResponse {
827
840
  }
828
841
  export interface SubmitFeedbackFormResponseBody {
829
842
  }
843
+ export interface FeedbackFormResponse {
844
+ id: string;
845
+ created_at: string;
846
+ updated_at: string;
847
+ deleted_at?: string | null;
848
+ tenant_id: string;
849
+ title: string;
850
+ description?: string | null;
851
+ data: FeedbackFormData;
852
+ }
830
853
  export interface FeedbackFormSubmission {
831
854
  id: string;
832
855
  created_at: string;
@@ -835,6 +858,8 @@ export interface FeedbackFormSubmission {
835
858
  feedback_form_id: string;
836
859
  user_id: string;
837
860
  data: SubmitFeedbackFormResponseBody;
861
+ form?: FeedbackFormResponse;
862
+ user?: TenantUserStub | null;
838
863
  }
839
864
  export interface FeedbackFormSubmissionCollectionResponse {
840
865
  page: number;
@@ -1184,16 +1209,6 @@ export interface CreateFeedbackFormRequestBody {
1184
1209
  description?: string | null;
1185
1210
  data: FeedbackFormData;
1186
1211
  }
1187
- export interface FeedbackFormResponse {
1188
- id: string;
1189
- created_at: string;
1190
- updated_at: string;
1191
- deleted_at?: string | null;
1192
- tenant_id: string;
1193
- title: string;
1194
- description?: string | null;
1195
- data: FeedbackFormData;
1196
- }
1197
1212
  export interface UpdateAnalyticEventTypeRequestBody {
1198
1213
  description?: string | null;
1199
1214
  }
@@ -1778,26 +1793,6 @@ export interface AppVersion {
1778
1793
  version_number: number;
1779
1794
  status: AppVersionStatus;
1780
1795
  }
1781
- export interface UpdateApnsConfigurationRequestBody {
1782
- name: string;
1783
- description?: string | null;
1784
- bundle_id: string;
1785
- team_id: string;
1786
- key_id: string;
1787
- key: string;
1788
- }
1789
- export interface ApnsConfiguration {
1790
- id: string;
1791
- created_at: string;
1792
- updated_at: string;
1793
- deleted_at?: string | null;
1794
- name: string;
1795
- description?: string | null;
1796
- bundle_id: string;
1797
- team_id: string;
1798
- key_id: string;
1799
- key: string;
1800
- }
1801
1796
  export interface InboxItem {
1802
1797
  id: string;
1803
1798
  created_at: string;
@@ -3343,15 +3338,13 @@ declare class ParraAPI {
3343
3338
  getTenantApplicationVersionById: (tenant_id: string, application_id: string, app_version_id: string, options?: Options) => Promise<AppVersion>;
3344
3339
  updateTenantApplicationVersionById: (tenant_id: string, application_id: string, app_version_id: string, body: UpdateAppVersionRequestBody, options?: Options) => Promise<AppVersion>;
3345
3340
  deleteTenantApplicationVersionById: (tenant_id: string, application_id: string, app_version_id: string, options?: Options) => Promise<Response>;
3346
- updateApnsConfigurationForTenantApplication: (tenant_id: string, application_id: string, body: UpdateApnsConfigurationRequestBody, options?: Options) => Promise<ApnsConfiguration>;
3347
- getApnsConfigurationForTenantApplication: (tenant_id: string, application_id: string, options?: Options) => Promise<ApnsConfiguration>;
3348
- getInboxItemsForTenantUser: (tenant_id: string, query?: {
3341
+ getInboxItemsForTenantUser: (tenant_id: string, user_id: string, query?: {
3349
3342
  limit?: number;
3350
3343
  offset?: number;
3351
- segment?: string;
3344
+ group?: string;
3352
3345
  archived?: boolean;
3353
3346
  }, options?: Options) => Promise<InboxItemCollectionResponse>;
3354
- readInboxItemsForTenantUser: (tenant_id: string, body: ReadInboxItemsRequestBody, options?: Options) => Promise<Response>;
3347
+ readInboxItemsForTenantUser: (tenant_id: string, user_id: string, body: ReadInboxItemsRequestBody, options?: Options) => Promise<Response>;
3355
3348
  createNotificationTemplate: (tenant_id: string, body?: CreateNotificationTemplateRequestBody, options?: Options) => Promise<NotificationTemplate>;
3356
3349
  paginateNotificationTemplatesForTenantById: (tenant_id: string, query?: {
3357
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.246",
3
+ "version": "0.3.248",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",