@parra/parra-js-sdk 0.3.137 → 0.3.138

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.
@@ -1538,18 +1538,13 @@ export interface UpdateClientRequestBody {
1538
1538
  jwt_lifetime_in_seconds?: number;
1539
1539
  jwt_secret_encoded?: boolean;
1540
1540
  }
1541
+ export interface AppStoreConnectApp {
1542
+ id: string;
1543
+ name: string;
1544
+ }
1541
1545
  export declare enum ApplicationType {
1542
1546
  ios = "ios"
1543
1547
  }
1544
- export interface CreateApplicationRequestBody {
1545
- name: string;
1546
- description?: string | null;
1547
- is_new_project: boolean;
1548
- type: ApplicationType;
1549
- ios_bundle_id?: string | null;
1550
- privacy_policy_document_id?: string | null;
1551
- terms_of_service_policy_document_id?: string | null;
1552
- }
1553
1548
  export interface ApplicationIosConfig {
1554
1549
  bundle_id: string;
1555
1550
  }
@@ -1568,6 +1563,15 @@ export interface Application {
1568
1563
  icon?: ImageAssetStub | null;
1569
1564
  ios?: ApplicationIosConfig | null;
1570
1565
  }
1566
+ export interface CreateApplicationRequestBody {
1567
+ name: string;
1568
+ description?: string | null;
1569
+ is_new_project: boolean;
1570
+ type: ApplicationType;
1571
+ ios_bundle_id?: string | null;
1572
+ privacy_policy_document_id?: string | null;
1573
+ terms_of_service_policy_document_id?: string | null;
1574
+ }
1571
1575
  export interface ApplicationCollectionResponse {
1572
1576
  page: number;
1573
1577
  page_count: number;
@@ -2255,6 +2259,8 @@ declare class ParraAPI {
2255
2259
  createClientForTenantApplication: (tenant_id: string, application_id: string, options?: Options) => Promise<Client>;
2256
2260
  updateClientForTenantApplication: (tenant_id: string, application_id: string, body?: UpdateClientRequestBody, options?: Options) => Promise<Client>;
2257
2261
  deleteClientForTenantApplication: (tenant_id: string, application_id: string, options?: Options) => Promise<Response>;
2262
+ listAppStoreConnectAppsForTenantById: (tenant_id: string, options?: Options) => Promise<Array<AppStoreConnectApp>>;
2263
+ importAppStoreConnectAppForTenantById: (tenant_id: string, app_store_connect_app_id: string, options?: Options) => Promise<Application>;
2258
2264
  createApplicationForTenantById: (tenant_id: string, body: CreateApplicationRequestBody, options?: Options) => Promise<Application>;
2259
2265
  paginateApplicationsForTenantById: (tenant_id: string, query?: {
2260
2266
  $select?: string;
package/dist/ParraAPI.js CHANGED
@@ -794,6 +794,14 @@ var ParraAPI = /** @class */ (function () {
794
794
  if (options === void 0) { options = {}; }
795
795
  return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/client"), __assign({ method: "delete" }, options));
796
796
  };
797
+ this.listAppStoreConnectAppsForTenantById = function (tenant_id, options) {
798
+ if (options === void 0) { options = {}; }
799
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/app-store-connect-api/apps"), __assign({ method: "get" }, options));
800
+ };
801
+ this.importAppStoreConnectAppForTenantById = function (tenant_id, app_store_connect_app_id, options) {
802
+ if (options === void 0) { options = {}; }
803
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/app-store-connect-api/apps/").concat(app_store_connect_app_id, "/import"), __assign({ method: "post" }, options));
804
+ };
797
805
  this.createApplicationForTenantById = function (tenant_id, body, options) {
798
806
  if (options === void 0) { options = {}; }
799
807
  return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications"), __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.137",
3
+ "version": "0.3.138",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",