@parra/parra-js-sdk 0.3.137 → 0.3.140

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,19 +1538,18 @@ 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
+ bundle_id: string;
1545
+ icon_url?: string | null;
1546
+ imported: boolean;
1547
+ }
1541
1548
  export declare enum ApplicationType {
1542
1549
  ios = "ios"
1543
1550
  }
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
1551
  export interface ApplicationIosConfig {
1552
+ app_id?: string | null;
1554
1553
  bundle_id: string;
1555
1554
  }
1556
1555
  export interface Application {
@@ -1568,6 +1567,16 @@ export interface Application {
1568
1567
  icon?: ImageAssetStub | null;
1569
1568
  ios?: ApplicationIosConfig | null;
1570
1569
  }
1570
+ export interface CreateApplicationRequestBody {
1571
+ name: string;
1572
+ description?: string | null;
1573
+ is_new_project: boolean;
1574
+ type: ApplicationType;
1575
+ ios_app_id?: string | null;
1576
+ ios_bundle_id?: string | null;
1577
+ privacy_policy_document_id?: string | null;
1578
+ terms_of_service_policy_document_id?: string | null;
1579
+ }
1571
1580
  export interface ApplicationCollectionResponse {
1572
1581
  page: number;
1573
1582
  page_count: number;
@@ -1579,6 +1588,7 @@ export interface UpdateApplicationRequestBody {
1579
1588
  name?: string;
1580
1589
  description?: string | null;
1581
1590
  is_new_project?: boolean;
1591
+ ios_app_id?: string | null;
1582
1592
  ios_bundle_id?: string | null;
1583
1593
  privacy_policy_document_id?: string | null;
1584
1594
  terms_of_service_policy_document_id?: string | null;
@@ -2255,6 +2265,8 @@ declare class ParraAPI {
2255
2265
  createClientForTenantApplication: (tenant_id: string, application_id: string, options?: Options) => Promise<Client>;
2256
2266
  updateClientForTenantApplication: (tenant_id: string, application_id: string, body?: UpdateClientRequestBody, options?: Options) => Promise<Client>;
2257
2267
  deleteClientForTenantApplication: (tenant_id: string, application_id: string, options?: Options) => Promise<Response>;
2268
+ listAppStoreConnectAppsForTenantById: (tenant_id: string, options?: Options) => Promise<Array<AppStoreConnectApp>>;
2269
+ importAppStoreConnectAppForTenantById: (tenant_id: string, app_store_connect_app_id: string, options?: Options) => Promise<Application>;
2258
2270
  createApplicationForTenantById: (tenant_id: string, body: CreateApplicationRequestBody, options?: Options) => Promise<Application>;
2259
2271
  paginateApplicationsForTenantById: (tenant_id: string, query?: {
2260
2272
  $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.140",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",