apigee-x-module
Advanced tools
Comparing version 1.3.2 to 2.0.0
@@ -1,5 +0,5 @@ | ||
export interface ApigeeApiProducts { | ||
apiProduct: ApigeeApiProduct[]; | ||
export interface ApigeeAPIProducts { | ||
apiProduct: ApigeeAPIProduct[]; | ||
} | ||
export interface ApigeeApiProduct { | ||
export interface ApigeeAPIProduct { | ||
name: string; | ||
@@ -33,5 +33,5 @@ displayName: string; | ||
status?: string; | ||
apiProducts?: ApigeeApiProductName[]; | ||
apiProducts?: ApigeeAPIProductName[]; | ||
} | ||
export interface ApigeeApiProductName { | ||
export interface ApigeeAPIProductName { | ||
apiproduct: string; | ||
@@ -127,6 +127,6 @@ status: string; | ||
} | ||
export interface ApiProducts { | ||
apiProducts: ApiProduct[]; | ||
export interface APIProducts { | ||
apiProducts: APIProduct[]; | ||
} | ||
export interface ApiProduct { | ||
export interface APIProduct { | ||
name: string; | ||
@@ -270,10 +270,10 @@ type?: string; | ||
} | ||
export interface ApiManagementInterface { | ||
export interface APIPlatformInterface { | ||
org: String; | ||
token: String; | ||
getOrg(): Promise<String>; | ||
getApiProducts(): Promise<ApiProducts>; | ||
getApiProduct(name: string): Promise<ApiProduct>; | ||
createApiProduct(apiProduct: ApiProduct): Promise<ApiProduct>; | ||
deleteApiProduct(apiProductName: string): Promise<ApiProduct>; | ||
getAPIProducts(): Promise<APIProducts>; | ||
getAPIProduct(name: string): Promise<APIProduct>; | ||
createAPIProduct(apiProduct: APIProduct): Promise<APIProduct>; | ||
deleteAPIProduct(apiProductName: string): Promise<APIProduct>; | ||
getEnvironments(): Promise<String[]>; | ||
@@ -280,0 +280,0 @@ getEnvironmentGroups(): Promise<EnvironmentGroup[]>; |
@@ -1,2 +0,2 @@ | ||
import { ApiManagementInterface, ApiProducts, ApiProduct, App, Developers, Developer, Apps, AppCredential, ProxyRevision, ProxyDeployment, EnvironmentGroup, EnvironmentGroupAttachment } from "./interfaces"; | ||
import { APIPlatformInterface, APIProducts, APIProduct, App, Developers, Developer, Apps, AppCredential, ProxyRevision, ProxyDeployment, EnvironmentGroup, EnvironmentGroupAttachment } from "./interfaces"; | ||
/** | ||
@@ -9,5 +9,5 @@ * Apigee Service for using the Apigee X API from TS/JS clients | ||
* @typedef {ApigeeService} | ||
* @implements {ApiManagementInterface} | ||
* @implements {APIPlatformInterface} | ||
*/ | ||
export declare class ApigeeService implements ApiManagementInterface { | ||
export declare class ApigeeService implements APIPlatformInterface { | ||
/** | ||
@@ -122,5 +122,5 @@ * Optional org string (if not set then default GCP project is used) | ||
* | ||
* @returns {Promise<ApiProducts>} List of API Products | ||
* @returns {Promise<APIProducts>} List of API Products | ||
*/ | ||
getApiProducts(): Promise<ApiProducts>; | ||
getAPIProducts(): Promise<APIProducts>; | ||
/** | ||
@@ -130,5 +130,5 @@ * Gets a single API product | ||
* | ||
* @returns {Promise<ApiProduct>} API product | ||
* @returns {Promise<APIProduct>} API product | ||
*/ | ||
getApiProduct(name: string): Promise<ApiProduct>; | ||
getAPIProduct(name: string): Promise<APIProduct>; | ||
/** | ||
@@ -138,6 +138,6 @@ * Creates a new API Product | ||
* | ||
* @param {ApiProduct} apiProduct API Product object to create | ||
* @returns {Promise<ApiProduct>} Created API Product | ||
* @param {APIProduct} apiProduct API Product object to create | ||
* @returns {Promise<APIProduct>} Created API Product | ||
*/ | ||
createApiProduct(apiProduct: ApiProduct): Promise<ApiProduct>; | ||
createAPIProduct(apiProduct: APIProduct): Promise<APIProduct>; | ||
/** | ||
@@ -148,5 +148,5 @@ * Deletes an API Product | ||
* @param {string} apiProductName The API Product to delete | ||
* @returns {Promise<ApiProduct>} The delted API Product object | ||
* @returns {Promise<APIProduct>} The delted API Product object | ||
*/ | ||
deleteApiProduct(apiProductName: string): Promise<ApiProduct>; | ||
deleteAPIProduct(apiProductName: string): Promise<APIProduct>; | ||
/** | ||
@@ -153,0 +153,0 @@ * Gets all developers |
@@ -15,3 +15,3 @@ import FormData from 'form-data'; | ||
* @typedef {ApigeeService} | ||
* @implements {ApiManagementInterface} | ||
* @implements {APIPlatformInterface} | ||
*/ | ||
@@ -281,5 +281,5 @@ export class ApigeeService { | ||
* | ||
* @returns {Promise<ApiProducts>} List of API Products | ||
* @returns {Promise<APIProducts>} List of API Products | ||
*/ | ||
getApiProducts() { | ||
getAPIProducts() { | ||
return new Promise((resolve, reject) => { | ||
@@ -330,5 +330,5 @@ this.getOrg().then((projectId) => { | ||
* | ||
* @returns {Promise<ApiProduct>} API product | ||
* @returns {Promise<APIProduct>} API product | ||
*/ | ||
getApiProduct(name) { | ||
getAPIProduct(name) { | ||
return new Promise((resolve, reject) => { | ||
@@ -358,6 +358,6 @@ this.getOrg().then((projectId) => { | ||
* | ||
* @param {ApiProduct} apiProduct API Product object to create | ||
* @returns {Promise<ApiProduct>} Created API Product | ||
* @param {APIProduct} apiProduct API Product object to create | ||
* @returns {Promise<APIProduct>} Created API Product | ||
*/ | ||
createApiProduct(apiProduct) { | ||
createAPIProduct(apiProduct) { | ||
return new Promise((resolve, reject) => { | ||
@@ -404,5 +404,5 @@ this.getOrg().then((projectId) => { | ||
* @param {string} apiProductName The API Product to delete | ||
* @returns {Promise<ApiProduct>} The delted API Product object | ||
* @returns {Promise<APIProduct>} The delted API Product object | ||
*/ | ||
deleteApiProduct(apiProductName) { | ||
deleteAPIProduct(apiProductName) { | ||
return new Promise((resolve, reject) => { | ||
@@ -409,0 +409,0 @@ this.getOrg().then((projectId) => { |
{ | ||
"name": "apigee-x-module", | ||
"version": "1.3.2", | ||
"description": "Module for integrating with the Apigee X platform for TS/JS developer portal integrations.", | ||
"version": "2.0.0", | ||
"description": "Module for integrating with the Apigee X platform for TS/JS developer portals.", | ||
"homepage": "https://github.com/tyayers/apigee-x-module", | ||
@@ -6,0 +6,0 @@ "bugs": "https://github.com/tyayers/apigee-x-module/issues", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
76919