diff --git a/pom.xml b/pom.xml
index e01613ea7f6..61686f7096f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -823,7 +823,10 @@
samples/client/petstore/typescript-fetch/builds/with-npm-version
samples/client/petstore/typescript-fetch/tests/default
samples/client/petstore/typescript-angular
- samples/client/petstore/typescript-node/npm
+
+ samples/client/petstore/typescript-angular2/npm
+ samples/client/petstore/typescript-angular4/npm
samples/client/petstore/typescript-jquery/npm
samples/client/petstore/swift3/default/SwaggerClientTests
samples/client/petstore/swift3/promisekit/SwaggerClientTests
diff --git a/samples/client/petstore/typescript-angular2/default/configuration.ts b/samples/client/petstore/typescript-angular2/default/configuration.ts
index 0eed43fd575..005c3a26df3 100644
--- a/samples/client/petstore/typescript-angular2/default/configuration.ts
+++ b/samples/client/petstore/typescript-angular2/default/configuration.ts
@@ -2,18 +2,18 @@ export interface ConfigurationParameters {
apiKeys?: {[ key: string ]: string};
username?: string;
password?: string;
- accessToken?: string;
+ accessToken?: string | (() => string);
basePath?: string;
withCredentials?: boolean;
}
export class Configuration {
- apiKeys: {[ key: string ]: string};
- username: string;
- password: string;
- accessToken: string | (() => string);
- basePath: string;
- withCredentials: boolean;
+ apiKeys?: {[ key: string ]: string};
+ username?: string;
+ password?: string;
+ accessToken?: string | (() => string);
+ basePath?: string;
+ withCredentials?: boolean;
constructor(configurationParameters: ConfigurationParameters = {}) {
this.apiKeys = configurationParameters.apiKeys;
diff --git a/samples/client/petstore/typescript-angular2/npm/configuration.ts b/samples/client/petstore/typescript-angular2/npm/configuration.ts
index 0eed43fd575..005c3a26df3 100644
--- a/samples/client/petstore/typescript-angular2/npm/configuration.ts
+++ b/samples/client/petstore/typescript-angular2/npm/configuration.ts
@@ -2,18 +2,18 @@ export interface ConfigurationParameters {
apiKeys?: {[ key: string ]: string};
username?: string;
password?: string;
- accessToken?: string;
+ accessToken?: string | (() => string);
basePath?: string;
withCredentials?: boolean;
}
export class Configuration {
- apiKeys: {[ key: string ]: string};
- username: string;
- password: string;
- accessToken: string | (() => string);
- basePath: string;
- withCredentials: boolean;
+ apiKeys?: {[ key: string ]: string};
+ username?: string;
+ password?: string;
+ accessToken?: string | (() => string);
+ basePath?: string;
+ withCredentials?: boolean;
constructor(configurationParameters: ConfigurationParameters = {}) {
this.apiKeys = configurationParameters.apiKeys;
diff --git a/samples/client/petstore/typescript-angular2/npm/package-lock.json b/samples/client/petstore/typescript-angular2/npm/package-lock.json
new file mode 100644
index 00000000000..e75509b0294
--- /dev/null
+++ b/samples/client/petstore/typescript-angular2/npm/package-lock.json
@@ -0,0 +1,67 @@
+{
+ "name": "@swagger/angular2-typescript-petstore",
+ "version": "0.0.1",
+ "lockfileVersion": 1,
+ "dependencies": {
+ "@angular/common": {
+ "version": "2.4.10",
+ "resolved": "https://registry.npmjs.org/@angular/common/-/common-2.4.10.tgz",
+ "integrity": "sha1-o6aC0iKPow7CPdDrV8joh/uiaZc=",
+ "dev": true
+ },
+ "@angular/compiler": {
+ "version": "2.4.10",
+ "resolved": "https://registry.npmjs.org/@angular/compiler/-/compiler-2.4.10.tgz",
+ "integrity": "sha1-9R/TSCCyoCx8th+89JhzxYBW+ww=",
+ "dev": true
+ },
+ "@angular/core": {
+ "version": "2.4.10",
+ "resolved": "https://registry.npmjs.org/@angular/core/-/core-2.4.10.tgz",
+ "integrity": "sha1-C4MgplBlll2ZhkWx9c0892m0Qeo=",
+ "dev": true
+ },
+ "@angular/http": {
+ "version": "2.4.10",
+ "resolved": "https://registry.npmjs.org/@angular/http/-/http-2.4.10.tgz",
+ "integrity": "sha1-/2vq3ls5yYnr8jk8SbNO69Q+lVU=",
+ "dev": true
+ },
+ "@angular/platform-browser": {
+ "version": "2.4.10",
+ "resolved": "https://registry.npmjs.org/@angular/platform-browser/-/platform-browser-2.4.10.tgz",
+ "integrity": "sha1-y/JWCBSPtP/vlsxQBbpdez4JOQY=",
+ "dev": true
+ },
+ "reflect-metadata": {
+ "version": "0.1.10",
+ "resolved": "https://registry.npmjs.org/reflect-metadata/-/reflect-metadata-0.1.10.tgz",
+ "integrity": "sha1-tPg3BEFqytiZiMmxVjXUfgO5NEo=",
+ "dev": true
+ },
+ "rxjs": {
+ "version": "5.4.2",
+ "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-5.4.2.tgz",
+ "integrity": "sha1-KjI2/L8D31e64G/Wly/ZnlwI/Pc=",
+ "dev": true
+ },
+ "symbol-observable": {
+ "version": "1.0.4",
+ "resolved": "https://registry.npmjs.org/symbol-observable/-/symbol-observable-1.0.4.tgz",
+ "integrity": "sha1-Kb9hXUqnEhvdiYsi1LP5vE4qoD0=",
+ "dev": true
+ },
+ "typescript": {
+ "version": "2.4.1",
+ "resolved": "https://registry.npmjs.org/typescript/-/typescript-2.4.1.tgz",
+ "integrity": "sha1-w8yxbdqgsjFN4DHn5v7onlujRrw=",
+ "dev": true
+ },
+ "zone.js": {
+ "version": "0.7.8",
+ "resolved": "https://registry.npmjs.org/zone.js/-/zone.js-0.7.8.tgz",
+ "integrity": "sha1-Tz/og01EWX8mOQU6D6Q43zT//e0=",
+ "dev": true
+ }
+ }
+}
diff --git a/samples/client/petstore/typescript-angular2/npm/pom.xml b/samples/client/petstore/typescript-angular2/npm/pom.xml
new file mode 100644
index 00000000000..2fa94375062
--- /dev/null
+++ b/samples/client/petstore/typescript-angular2/npm/pom.xml
@@ -0,0 +1,46 @@
+
+ 4.0.0
+ com.wordnik
+ TSAngular2PestoreTest
+ pom
+ 1.0-SNAPSHOT
+ TS Angular2 Pettore Test
+
+
+
+ maven-dependency-plugin
+
+
+ package
+
+ copy-dependencies
+
+
+ ${project.build.directory}
+
+
+
+
+
+ org.codehaus.mojo
+ exec-maven-plugin
+ 1.2.1
+
+
+ npm-install
+ pre-integration-test
+
+ exec
+
+
+ npm
+
+ install
+
+
+
+
+
+
+
+
diff --git a/samples/client/petstore/typescript-angular2/with-interfaces/configuration.ts b/samples/client/petstore/typescript-angular2/with-interfaces/configuration.ts
index 0eed43fd575..005c3a26df3 100644
--- a/samples/client/petstore/typescript-angular2/with-interfaces/configuration.ts
+++ b/samples/client/petstore/typescript-angular2/with-interfaces/configuration.ts
@@ -2,18 +2,18 @@ export interface ConfigurationParameters {
apiKeys?: {[ key: string ]: string};
username?: string;
password?: string;
- accessToken?: string;
+ accessToken?: string | (() => string);
basePath?: string;
withCredentials?: boolean;
}
export class Configuration {
- apiKeys: {[ key: string ]: string};
- username: string;
- password: string;
- accessToken: string | (() => string);
- basePath: string;
- withCredentials: boolean;
+ apiKeys?: {[ key: string ]: string};
+ username?: string;
+ password?: string;
+ accessToken?: string | (() => string);
+ basePath?: string;
+ withCredentials?: boolean;
constructor(configurationParameters: ConfigurationParameters = {}) {
this.apiKeys = configurationParameters.apiKeys;
diff --git a/samples/client/petstore/typescript-angular4/npm/package-lock.json b/samples/client/petstore/typescript-angular4/npm/package-lock.json
new file mode 100644
index 00000000000..270b88ce43f
--- /dev/null
+++ b/samples/client/petstore/typescript-angular4/npm/package-lock.json
@@ -0,0 +1,73 @@
+{
+ "name": "@swagger/angular2-typescript-petstore",
+ "version": "0.0.1",
+ "lockfileVersion": 1,
+ "dependencies": {
+ "@angular/common": {
+ "version": "4.2.6",
+ "resolved": "https://registry.npmjs.org/@angular/common/-/common-4.2.6.tgz",
+ "integrity": "sha1-IQrOS9JON1+LQbpS/rNLGKiH1do=",
+ "dev": true
+ },
+ "@angular/compiler": {
+ "version": "4.2.6",
+ "resolved": "https://registry.npmjs.org/@angular/compiler/-/compiler-4.2.6.tgz",
+ "integrity": "sha1-ZndW1JXKDUXSBhJooQ1Sr4Ofr/Q=",
+ "dev": true
+ },
+ "@angular/core": {
+ "version": "4.2.6",
+ "resolved": "https://registry.npmjs.org/@angular/core/-/core-4.2.6.tgz",
+ "integrity": "sha1-DByP8BV/B29KfAtyHKFCPxu+Fk4=",
+ "dev": true
+ },
+ "@angular/http": {
+ "version": "4.2.6",
+ "resolved": "https://registry.npmjs.org/@angular/http/-/http-4.2.6.tgz",
+ "integrity": "sha1-SZ4roLvB89cbdt6+wDTJWMrxE04=",
+ "dev": true
+ },
+ "@angular/platform-browser": {
+ "version": "4.2.6",
+ "resolved": "https://registry.npmjs.org/@angular/platform-browser/-/platform-browser-4.2.6.tgz",
+ "integrity": "sha1-oTH/WSIl/mSWvKLJr/YSpNvd9Dc=",
+ "dev": true
+ },
+ "reflect-metadata": {
+ "version": "0.1.10",
+ "resolved": "https://registry.npmjs.org/reflect-metadata/-/reflect-metadata-0.1.10.tgz",
+ "integrity": "sha1-tPg3BEFqytiZiMmxVjXUfgO5NEo=",
+ "dev": true
+ },
+ "rxjs": {
+ "version": "5.4.2",
+ "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-5.4.2.tgz",
+ "integrity": "sha1-KjI2/L8D31e64G/Wly/ZnlwI/Pc=",
+ "dev": true
+ },
+ "symbol-observable": {
+ "version": "1.0.4",
+ "resolved": "https://registry.npmjs.org/symbol-observable/-/symbol-observable-1.0.4.tgz",
+ "integrity": "sha1-Kb9hXUqnEhvdiYsi1LP5vE4qoD0=",
+ "dev": true
+ },
+ "tslib": {
+ "version": "1.7.1",
+ "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.7.1.tgz",
+ "integrity": "sha1-vIAEFkaRkjp5/oN4u+s9ogF1OOw=",
+ "dev": true
+ },
+ "typescript": {
+ "version": "2.4.1",
+ "resolved": "https://registry.npmjs.org/typescript/-/typescript-2.4.1.tgz",
+ "integrity": "sha1-w8yxbdqgsjFN4DHn5v7onlujRrw=",
+ "dev": true
+ },
+ "zone.js": {
+ "version": "0.7.8",
+ "resolved": "https://registry.npmjs.org/zone.js/-/zone.js-0.7.8.tgz",
+ "integrity": "sha1-Tz/og01EWX8mOQU6D6Q43zT//e0=",
+ "dev": true
+ }
+ }
+}
diff --git a/samples/client/petstore/typescript-angular4/npm/pom.xml b/samples/client/petstore/typescript-angular4/npm/pom.xml
new file mode 100644
index 00000000000..f819205f53d
--- /dev/null
+++ b/samples/client/petstore/typescript-angular4/npm/pom.xml
@@ -0,0 +1,46 @@
+
+ 4.0.0
+ com.wordnik
+ TSAngular4PestoreTest
+ pom
+ 1.0-SNAPSHOT
+ TS Angular4 Pettore Test
+
+
+
+ maven-dependency-plugin
+
+
+ package
+
+ copy-dependencies
+
+
+ ${project.build.directory}
+
+
+
+
+
+ org.codehaus.mojo
+ exec-maven-plugin
+ 1.2.1
+
+
+ npm-install
+ pre-integration-test
+
+ exec
+
+
+ npm
+
+ install
+
+
+
+
+
+
+
+