@parra/parra-js-sdk 0.3.346 → 0.3.348

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.
@@ -751,6 +751,8 @@ export interface BillingSource {
751
751
  description?: string | null;
752
752
  application_id: string;
753
753
  data: BillingSourceData;
754
+ last_synced_at?: string | null;
755
+ last_manual_sync_attempt_at?: string | null;
754
756
  }
755
757
  export interface UpdateBillingSourceRequestBody {
756
758
  title: string;
@@ -913,6 +915,15 @@ export interface CreateFaqViewRequestBody {
913
915
  app_area_id?: string | null;
914
916
  feedback_form_id?: string | null;
915
917
  }
918
+ export interface Faq {
919
+ id: string;
920
+ created_at: string;
921
+ updated_at: string;
922
+ deleted_at?: string | null;
923
+ tenant_id: string;
924
+ title: string;
925
+ body: string;
926
+ }
916
927
  export interface FaqSection {
917
928
  id: string;
918
929
  created_at: string;
@@ -923,6 +934,7 @@ export interface FaqSection {
923
934
  display_title?: string | null;
924
935
  description?: string | null;
925
936
  display_description?: string | null;
937
+ items: Array<Faq>;
926
938
  }
927
939
  export interface FaqView {
928
940
  id: string;
@@ -948,15 +960,6 @@ export interface CreateFaqRequestBody {
948
960
  body: string;
949
961
  faq_section_id?: string | null;
950
962
  }
951
- export interface Faq {
952
- id: string;
953
- created_at: string;
954
- updated_at: string;
955
- deleted_at?: string | null;
956
- tenant_id: string;
957
- title: string;
958
- body: string;
959
- }
960
963
  export interface CollectionResponse {
961
964
  page: number;
962
965
  page_count: number;
@@ -982,6 +985,14 @@ export interface CreateFaqSectionRequestBody {
982
985
  description?: string | null;
983
986
  display_description?: string | null;
984
987
  }
988
+ export interface AddFaqToSectionRequestBody {
989
+ faq_id: string;
990
+ }
991
+ export interface FaqSectionItemStub {
992
+ id: string;
993
+ faq_id: string;
994
+ section_id: string;
995
+ }
985
996
  export interface CreateCreatorAttachmentAttachmentRequestBody {
986
997
  id: string;
987
998
  size: Size;
@@ -3798,6 +3809,7 @@ declare class ParraAPI {
3798
3809
  updateBillingSourceById: (tenant_id: string, billing_source_id: string, body: UpdateBillingSourceRequestBody, options?: Options) => Promise<BillingSource>;
3799
3810
  deleteBillingSourceById: (tenant_id: string, billing_source_id: string, options?: Options) => Promise<Response>;
3800
3811
  setupAppStoreServerNotificationsForAppleBillingSource: (tenant_id: string, billing_source_id: string, options?: Options) => Promise<Response>;
3812
+ syncAppStoreForAppleBillingSource: (tenant_id: string, billing_source_id: string, options?: Options) => Promise<BillingSource>;
3801
3813
  testAppStoreServerNotificationsForAppleBillingSource: (tenant_id: string, billing_source_id: string, options?: Options) => Promise<Response>;
3802
3814
  createEntitlement: (tenant_id: string, body?: CreateEntitlementRequestBody, options?: Options) => Promise<Entitlement>;
3803
3815
  listEntitlements: (tenant_id: string, options?: Options) => Promise<Array<Entitlement>>;
@@ -3829,6 +3841,8 @@ declare class ParraAPI {
3829
3841
  getFaqSectionById: (tenant_id: string, faq_view_id: string, faq_section_id: string, options?: Options) => Promise<FaqSection>;
3830
3842
  updateFaqSectionById: (tenant_id: string, faq_view_id: string, faq_section_id: string, body: UpdateFaqSectionRequestBody, options?: Options) => Promise<FaqSection>;
3831
3843
  deleteFaqSectionById: (tenant_id: string, faq_view_id: string, faq_section_id: string, options?: Options) => Promise<Response>;
3844
+ addFaqToSection: (tenant_id: string, faq_view_id: string, faq_section_id: string, body: AddFaqToSectionRequestBody, options?: Options) => Promise<FaqSectionItemStub>;
3845
+ removeFaqFromSection: (tenant_id: string, faq_view_id: string, faq_section_id: string, faq_section_item_id: string, options?: Options) => Promise<Response>;
3832
3846
  createCreatorUpdateForTenant: (tenant_id: string, body: CreateCreatorUpdateRequestBody, options?: Options) => Promise<CreatorUpdate>;
3833
3847
  paginateCreatorUpdatesForTenant: (tenant_id: string, options?: Options) => Promise<CreatorUpdateCollectionResponse>;
3834
3848
  getCreatorUpdate: (tenant_id: string, creator_update_id: string, options?: Options) => Promise<CreatorUpdate>;
package/dist/ParraAPI.js CHANGED
@@ -551,6 +551,10 @@ var ParraAPI = /** @class */ (function () {
551
551
  if (options === void 0) { options = {}; }
552
552
  return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/billing/sources/").concat(billing_source_id, "/apple/app-store-server-notifications/setup"), __assign({ method: "post" }, options));
553
553
  };
554
+ this.syncAppStoreForAppleBillingSource = function (tenant_id, billing_source_id, options) {
555
+ if (options === void 0) { options = {}; }
556
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/billing/sources/").concat(billing_source_id, "/apple/app-store/sync"), __assign({ method: "post" }, options));
557
+ };
554
558
  this.testAppStoreServerNotificationsForAppleBillingSource = function (tenant_id, billing_source_id, options) {
555
559
  if (options === void 0) { options = {}; }
556
560
  return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/billing/sources/").concat(billing_source_id, "/apple/app-store-server-notifications/test"), __assign({ method: "post" }, options));
@@ -689,6 +693,16 @@ var ParraAPI = /** @class */ (function () {
689
693
  if (options === void 0) { options = {}; }
690
694
  return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/faqs/views/").concat(faq_view_id, "/sections/").concat(faq_section_id), __assign({ method: "delete" }, options));
691
695
  };
696
+ this.addFaqToSection = function (tenant_id, faq_view_id, faq_section_id, body, options) {
697
+ if (options === void 0) { options = {}; }
698
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/faqs/views/").concat(faq_view_id, "/sections/").concat(faq_section_id, "/items"), __assign({ method: "post", body: JSON.stringify(body), headers: {
699
+ "content-type": "application/json",
700
+ } }, options));
701
+ };
702
+ this.removeFaqFromSection = function (tenant_id, faq_view_id, faq_section_id, faq_section_item_id, options) {
703
+ if (options === void 0) { options = {}; }
704
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/faqs/views/").concat(faq_view_id, "/sections/").concat(faq_section_id, "/items/").concat(faq_section_item_id), __assign({ method: "delete" }, options));
705
+ };
692
706
  this.createCreatorUpdateForTenant = function (tenant_id, body, options) {
693
707
  if (options === void 0) { options = {}; }
694
708
  return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/creator/updates"), __assign({ method: "post", body: JSON.stringify(body), headers: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parra/parra-js-sdk",
3
- "version": "0.3.346",
3
+ "version": "0.3.348",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",