Skip to content

Commit ec0672a

Browse files
committed
Add additional autogenerated definitions
1 parent a4b9ebe commit ec0672a

File tree

10 files changed

+265
-4
lines changed

10 files changed

+265
-4
lines changed

src/app/backend-api/secom/api/sECOM.service.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import { Configuration } from '../configurat
2929
@Injectable()
3030
export class SECOMService {
3131

32-
protected basePath = '/';
32+
protected basePath = '';
3333
public defaultHeaders = new HttpHeaders();
3434
public configuration = new Configuration();
3535

@@ -89,7 +89,7 @@ export class SECOMService {
8989
const consumes: string[] = [
9090
];
9191

92-
return this.httpClient.request<SearchResult>('get',`${this.basePath}/v2/retrieveResults/${encodeURIComponent(String(transactionId))}`,
92+
return this.httpClient.request<SearchResult>('get',`${this.basePath}/api/secom/v2/retrieveResults/${encodeURIComponent(String(transactionId))}`,
9393
{
9494
withCredentials: this.configuration.withCredentials,
9595
headers: headers,
@@ -219,7 +219,7 @@ export class SECOMService {
219219
const consumes: string[] = [
220220
];
221221

222-
return this.httpClient.request<SearchResult>('get',`${this.basePath}/v2/searchService`,
222+
return this.httpClient.request<SearchResult>('get',`${this.basePath}/api/secom/v2/searchService`,
223223
{
224224
params: queryParameters,
225225
withCredentials: this.configuration.withCredentials,
@@ -263,7 +263,8 @@ export class SECOMService {
263263
headers = headers.set('Content-Type', httpContentTypeSelected);
264264
}
265265

266-
return this.httpClient.request<SearchResult>('post',`${this.basePath}/v2/searchService`,
266+
console.log('Base path is:', this.basePath);
267+
return this.httpClient.request<SearchResult>('post',`${this.basePath}/api/secom/v2/searchService`,
267268
{
268269
body: body,
269270
withCredentials: this.configuration.withCredentials,
Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
/**
2+
* MSR Interface definitions
3+
* Compliant with IEC 63173-2:2025 SECOM version 2
4+
*
5+
* OpenAPI spec version: v2
6+
*
7+
*
8+
* NOTE: This class is auto generated by the swagger code generator program.
9+
* https://github.com/swagger-api/swagger-codegen.git
10+
* Do not edit the class manually.
11+
*//* tslint:disable:no-unused-variable member-ordering */
12+
13+
import { Inject, Injectable, Optional } from '@angular/core';
14+
import { HttpClient, HttpHeaders, HttpParams,
15+
HttpResponse, HttpEvent } from '@angular/common/http';
16+
import { CustomHttpUrlEncodingCodec } from '../encoder';
17+
18+
import { Observable } from 'rxjs';
19+
20+
import { InlineResponse200 } from '../model/inlineResponse200';
21+
22+
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
23+
import { Configuration } from '../configuration';
24+
25+
26+
@Injectable()
27+
export class ServiceService {
28+
29+
protected basePath = '/';
30+
public defaultHeaders = new HttpHeaders();
31+
public configuration = new Configuration();
32+
33+
constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string, @Optional() configuration: Configuration) {
34+
if (basePath) {
35+
this.basePath = basePath;
36+
}
37+
if (configuration) {
38+
this.configuration = configuration;
39+
this.basePath = basePath || configuration.basePath || this.basePath;
40+
}
41+
}
42+
43+
/**
44+
* @param consumes string[] mime-types
45+
* @return true: consumes contains 'multipart/form-data', false: otherwise
46+
*/
47+
private canConsumeForm(consumes: string[]): boolean {
48+
const form = 'multipart/form-data';
49+
for (const consume of consumes) {
50+
if (form === consume) {
51+
return true;
52+
}
53+
}
54+
return false;
55+
}
56+
57+
58+
/**
59+
*
60+
*
61+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
62+
* @param reportProgress flag to report request and response progress.
63+
*/
64+
public v2PingGet(observe?: 'body', reportProgress?: boolean): Observable<InlineResponse200>;
65+
public v2PingGet(observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<InlineResponse200>>;
66+
public v2PingGet(observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<InlineResponse200>>;
67+
public v2PingGet(observe: any = 'body', reportProgress: boolean = false ): Observable<any> {
68+
69+
let headers = this.defaultHeaders;
70+
71+
// to determine the Accept header
72+
let httpHeaderAccepts: string[] = [
73+
'application/json'
74+
];
75+
const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);
76+
if (httpHeaderAcceptSelected != undefined) {
77+
headers = headers.set('Accept', httpHeaderAcceptSelected);
78+
}
79+
80+
// to determine the Content-Type header
81+
const consumes: string[] = [
82+
];
83+
84+
return this.httpClient.request<InlineResponse200>('get',`${this.basePath}/v2/ping`,
85+
{
86+
withCredentials: this.configuration.withCredentials,
87+
headers: headers,
88+
observe: observe,
89+
reportProgress: reportProgress
90+
}
91+
);
92+
}
93+
94+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/**
2+
* MSR Interface definitions
3+
* Compliant with IEC 63173-2:2025 SECOM version 2
4+
*
5+
* OpenAPI spec version: v2
6+
*
7+
*
8+
* NOTE: This class is auto generated by the swagger code generator program.
9+
* https://github.com/swagger-api/swagger-codegen.git
10+
* Do not edit the class manually.
11+
*/
12+
import { Properties } from './properties';
13+
14+
export interface Crs {
15+
type?: string;
16+
properties?: Properties;
17+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// @ts-ignore
2+
/**
3+
* MSR Interface definitions
4+
* Compliant with IEC 63173-2:2025 SECOM version 2
5+
*
6+
* OpenAPI spec version: v2
7+
*
8+
*
9+
* NOTE: This class is auto generated by the swagger code generator program.
10+
* https://github.com/swagger-api/swagger-codegen.git
11+
* Do not edit the class manually.
12+
*/
13+
14+
export interface DefaultResponseObject {
15+
[key: string]: any;
16+
17+
18+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/**
2+
* MSR Interface definitions
3+
* Compliant with IEC 63173-2:2025 SECOM version 2
4+
*
5+
* OpenAPI spec version: v2
6+
*
7+
*
8+
* NOTE: This class is auto generated by the swagger code generator program.
9+
* https://github.com/swagger-api/swagger-codegen.git
10+
* Do not edit the class manually.
11+
*/
12+
13+
export interface InlineResponse200 {
14+
[key: string]: any;
15+
16+
17+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/**
2+
* MSR Interface definitions
3+
* Compliant with IEC 63173-2:2025 SECOM version 2
4+
*
5+
* OpenAPI spec version: v2
6+
*
7+
*
8+
* NOTE: This class is auto generated by the swagger code generator program.
9+
* https://github.com/swagger-api/swagger-codegen.git
10+
* Do not edit the class manually.
11+
*/
12+
13+
export interface Organization {
14+
country?: string;
15+
email?: string;
16+
mrn?: string;
17+
name?: string;
18+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/**
2+
* MSR Interface definitions
3+
* Compliant with IEC 63173-2:2025 SECOM version 2
4+
*
5+
* OpenAPI spec version: v2
6+
*
7+
*
8+
* NOTE: This class is auto generated by the swagger code generator program.
9+
* https://github.com/swagger-api/swagger-codegen.git
10+
* Do not edit the class manually.
11+
*/
12+
13+
export interface Properties {
14+
name?: string;
15+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/**
2+
* MSR Interface definitions
3+
* Compliant with IEC 63173-2:2025 SECOM version 2
4+
*
5+
* OpenAPI spec version: v2
6+
*
7+
*
8+
* NOTE: This class is auto generated by the swagger code generator program.
9+
* https://github.com/swagger-api/swagger-codegen.git
10+
* Do not edit the class manually.
11+
*/
12+
import { SearchParameters } from './searchParameters';
13+
14+
export interface SearchMessageObject {
15+
/**
16+
* The full endpoint URL to the uploadResults API to send results to
17+
*/
18+
endpoint: string;
19+
/**
20+
* The MRN of the consumer that originated the search
21+
*/
22+
consumerMRN: string;
23+
searchParameters?: Array<SearchParameters>;
24+
}
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
/**
2+
* MSR Interface definitions
3+
* Compliant with IEC 63173-2:2025 SECOM version 2
4+
*
5+
* OpenAPI spec version: v2
6+
*
7+
*
8+
* NOTE: This class is auto generated by the swagger code generator program.
9+
* https://github.com/swagger-api/swagger-codegen.git
10+
* Do not edit the class manually.
11+
*/
12+
13+
export type SecomDataProductTypeEnum = 'S57' | 'S101' | 'S102' | 'S104' | 'S111' | 'S122' | 'S123' | 'S124' | 'S125' | 'S126' | 'S127' | 'S128' | 'S129' | 'S210' | 'S211' | 'S212' | 'S401' | 'S402' | 'S411' | 'S412' | 'S413' | 'S414' | 'S421' | 'RTZ' | 'EPC' | 'OTHER';
14+
15+
export const SecomDataProductTypeEnum = {
16+
S57: 'S57' as SecomDataProductTypeEnum,
17+
S101: 'S101' as SecomDataProductTypeEnum,
18+
S102: 'S102' as SecomDataProductTypeEnum,
19+
S104: 'S104' as SecomDataProductTypeEnum,
20+
S111: 'S111' as SecomDataProductTypeEnum,
21+
S122: 'S122' as SecomDataProductTypeEnum,
22+
S123: 'S123' as SecomDataProductTypeEnum,
23+
S124: 'S124' as SecomDataProductTypeEnum,
24+
S125: 'S125' as SecomDataProductTypeEnum,
25+
S126: 'S126' as SecomDataProductTypeEnum,
26+
S127: 'S127' as SecomDataProductTypeEnum,
27+
S128: 'S128' as SecomDataProductTypeEnum,
28+
S129: 'S129' as SecomDataProductTypeEnum,
29+
S210: 'S210' as SecomDataProductTypeEnum,
30+
S211: 'S211' as SecomDataProductTypeEnum,
31+
S212: 'S212' as SecomDataProductTypeEnum,
32+
S401: 'S401' as SecomDataProductTypeEnum,
33+
S402: 'S402' as SecomDataProductTypeEnum,
34+
S411: 'S411' as SecomDataProductTypeEnum,
35+
S412: 'S412' as SecomDataProductTypeEnum,
36+
S413: 'S413' as SecomDataProductTypeEnum,
37+
S414: 'S414' as SecomDataProductTypeEnum,
38+
S421: 'S421' as SecomDataProductTypeEnum,
39+
RTZ: 'RTZ' as SecomDataProductTypeEnum,
40+
EPC: 'EPC' as SecomDataProductTypeEnum,
41+
OTHER: 'OTHER' as SecomDataProductTypeEnum
42+
};
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/**
2+
* MSR Interface definitions
3+
* Compliant with IEC 63173-2:2025 SECOM version 2
4+
*
5+
* OpenAPI spec version: v2
6+
*
7+
*
8+
* NOTE: This class is auto generated by the swagger code generator program.
9+
* https://github.com/swagger-api/swagger-codegen.git
10+
* Do not edit the class manually.
11+
*/
12+
13+
export interface UpdateServiceObject {
14+
[key: string]: any;
15+
}

0 commit comments

Comments
 (0)