diff --git a/.gitignore b/.gitignore index d5a548b..fed031c 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ node_modules/ dist/ /typedoc .DS_Store +.idea \ No newline at end of file diff --git a/.secrets.baseline b/.secrets.baseline index ac06621..184a3aa 100644 --- a/.secrets.baseline +++ b/.secrets.baseline @@ -3,7 +3,7 @@ "files": "package-lock.json|^.secrets.baseline$", "lines": null }, - "generated_at": "2024-11-03T14:03:27Z", + "generated_at": "2024-12-23T09:33:42Z", "plugins_used": [ { "name": "AWSKeyDetector" diff --git a/README.md b/README.md index f098511..fdf6d4e 100644 --- a/README.md +++ b/README.md @@ -89,11 +89,14 @@ console.log(result); where, - **region** : Region name where the App Configuration service instance is created. - - `us-south` for Dallas - - `eu-gb` for London - - `au-syd` for Sydney - - `us-east` for Washington DC - - `eu-de` for Frankfurt + - `AppConfiguration.REGION_US_SOUTH` for Dallas + - `AppConfiguration.REGION_EU_GB` for London + - `AppConfiguration.REGION_AU_SYD` for Sydney + - `AppConfiguration.REGION_US_EAST` for Washington DC + - `AppConfiguration.REGION_EU_DE` for Frankfurt + - `AppConfiguration.REGION_CA_TOR` for Toronto + - `AppConfiguration.REGION_JP_TOK` for Tokyo + - `AppConfiguration.REGION_JP_OSA` for Osaka - **guid** : Instance ID of the App Configuration service. Obtain it from the service credentials section of the App Configuration dashboard. - **apikey** : The encrypted APIKey generated as described [here](./README_APIKEY_ENCRYPTION.md). - **collectionId**: ID of the collection created in App Configuration service instance under the **Collections** section. diff --git a/example/README.md b/example/README.md index 90c337e..c394da2 100644 --- a/example/README.md +++ b/example/README.md @@ -5,7 +5,7 @@ ## Step 1: Create an instance of App Configuration service - Log in to your IBM Cloud account. - In the [IBM Cloud catalog](https://cloud.ibm.com/catalog#services), search **App Configuration** and select [App Configuration](https://cloud.ibm.com/catalog/services/app-configuration). The service configuration screen opens. -- **Select a region** - Currently, Dallas (us-south), London (eu-gb), Sydney (au-syd), Washington DC (us-east) and Frankfurt (eu-de) regions are supported. +- **Select a region** - Currently, Dallas (us-south), London (eu-gb), Sydney (au-syd), Washington DC (us-east), Frankfurt (eu-de), Toronto(ca-tor), Tokyo(jp-tok) and Osaka(jp-osa) regions are supported. - Select a pricing plan, resource group and configure your resource with a service name, or use the preset name. - Click **Create**. A new service instance is created and the App Configuration console displayed. diff --git a/package-lock.json b/package-lock.json index 6da712d..5e1356a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "ibm-appconfiguration-js-client-sdk", - "version": "0.2.0-beta.0", + "version": "0.2.0-beta.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "ibm-appconfiguration-js-client-sdk", - "version": "0.2.0-beta.0", + "version": "0.2.0-beta.1", "license": "Apache-2.0", "dependencies": { "eventemitter3": "^4.0.7", @@ -2685,10 +2685,11 @@ "dev": true }, "node_modules/cross-spawn": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", - "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", "dev": true, + "license": "MIT", "dependencies": { "path-key": "^3.1.0", "shebang-command": "^2.0.0", @@ -9647,9 +9648,9 @@ "dev": true }, "cross-spawn": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", - "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", "dev": true, "requires": { "path-key": "^3.1.0", diff --git a/package.json b/package.json index 8707656..b29148a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ibm-appconfiguration-js-client-sdk", - "version": "0.2.0-beta.0", + "version": "0.2.0-beta.1", "description": "IBM Cloud App Configuration JavaScript Client SDK", "keywords": [ "client-sdk", diff --git a/src/index.ts b/src/index.ts index 8accaf9..268d599 100644 --- a/src/index.ts +++ b/src/index.ts @@ -237,4 +237,10 @@ export default class AppConfiguration { public static REGION_US_EAST = 'us-east'; public static REGION_EU_DE = 'eu-de'; + + public static REGION_CA_TOR = 'ca-tor'; + + public static REGION_JP_TOK = 'jp-tok'; + + public static REGION_JP_OSA = 'jp-osa'; }