@indigina/dcm-api 0.0.59 → 0.0.60
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.
- package/README.md +2 -2
- package/api/api.d.ts +3 -1
- package/api/companies.service.d.ts +42 -0
- package/fesm2022/indigina-dcm-api.mjs +182 -3
- package/fesm2022/indigina-dcm-api.mjs.map +1 -1
- package/model/companies.d.ts +14 -0
- package/model/company1.d.ts +14 -0
- package/model/{journeySegmentTypes.d.ts → journeySegmentType.d.ts} +4 -4
- package/model/models.d.ts +4 -1
- package/model/routingLegType.d.ts +20 -0
- package/model/shipmentAirRouting.d.ts +10 -2
- package/model/shipmentRoadRouting.d.ts +10 -3
- package/model/shipmentRouting.d.ts +10 -2
- package/model/shipmentRoutingsInner.d.ts +2 -10
- package/model/shipmentSeaRouting.d.ts +10 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @indigina/dcm-api@0.0.
|
|
1
|
+
# @indigina/dcm-api@0.0.60
|
|
2
2
|
|
|
3
3
|
DCM API Client for Angular applications
|
|
4
4
|
|
|
@@ -24,7 +24,7 @@ Navigate to the folder of your consuming project and run one of next commands.
|
|
|
24
24
|
_published:_
|
|
25
25
|
|
|
26
26
|
```console
|
|
27
|
-
npm install @indigina/dcm-api@0.0.
|
|
27
|
+
npm install @indigina/dcm-api@0.0.60 --save
|
|
28
28
|
```
|
|
29
29
|
|
|
30
30
|
_without publishing (not recommended):_
|
package/api/api.d.ts
CHANGED
|
@@ -2,6 +2,8 @@ export * from './auditLogs.service';
|
|
|
2
2
|
import { AuditLogsService } from './auditLogs.service';
|
|
3
3
|
export * from './bookings.service';
|
|
4
4
|
import { BookingsService } from './bookings.service';
|
|
5
|
+
export * from './companies.service';
|
|
6
|
+
import { CompaniesService } from './companies.service';
|
|
5
7
|
export * from './containers.service';
|
|
6
8
|
import { ContainersService } from './containers.service';
|
|
7
9
|
export * from './documents.service';
|
|
@@ -26,4 +28,4 @@ export * from './sipmetItems.service';
|
|
|
26
28
|
import { SipmetItemsService } from './sipmetItems.service';
|
|
27
29
|
export * from './user.service';
|
|
28
30
|
import { UserService } from './user.service';
|
|
29
|
-
export declare const APIS: (typeof AuditLogsService | typeof BookingsService | typeof ContainersService | typeof DocumentsService | typeof HealthService | typeof NotesService | typeof PermissionsService | typeof PoItemsService | typeof PurchaseOrdersService | typeof ReportsService | typeof SettingsService | typeof ShipmentsService | typeof SipmetItemsService | typeof UserService)[];
|
|
31
|
+
export declare const APIS: (typeof AuditLogsService | typeof BookingsService | typeof CompaniesService | typeof ContainersService | typeof DocumentsService | typeof HealthService | typeof NotesService | typeof PermissionsService | typeof PoItemsService | typeof PurchaseOrdersService | typeof ReportsService | typeof SettingsService | typeof ShipmentsService | typeof SipmetItemsService | typeof UserService)[];
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { HttpClient, HttpHeaders, HttpResponse, HttpEvent, HttpParameterCodec, HttpContext } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { Companies } from '../model/companies';
|
|
4
|
+
import { Configuration } from '../configuration';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class CompaniesService {
|
|
7
|
+
protected httpClient: HttpClient;
|
|
8
|
+
protected basePath: string;
|
|
9
|
+
defaultHeaders: HttpHeaders;
|
|
10
|
+
configuration: Configuration;
|
|
11
|
+
encoder: HttpParameterCodec;
|
|
12
|
+
constructor(httpClient: HttpClient, basePath: string | string[], configuration: Configuration);
|
|
13
|
+
private addToHttpParams;
|
|
14
|
+
private addToHttpParamsRecursive;
|
|
15
|
+
/**
|
|
16
|
+
* Getting user companies
|
|
17
|
+
* @param $skip
|
|
18
|
+
* @param $top
|
|
19
|
+
* @param $orderby
|
|
20
|
+
* @param $filter
|
|
21
|
+
* @param $search
|
|
22
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
23
|
+
* @param reportProgress flag to report request and response progress.
|
|
24
|
+
*/
|
|
25
|
+
getUserCompanies($skip?: number, $top?: number, $orderby?: string, $filter?: string, $search?: string, observe?: 'body', reportProgress?: boolean, options?: {
|
|
26
|
+
httpHeaderAccept?: 'application/json';
|
|
27
|
+
context?: HttpContext;
|
|
28
|
+
transferCache?: boolean;
|
|
29
|
+
}): Observable<Companies>;
|
|
30
|
+
getUserCompanies($skip?: number, $top?: number, $orderby?: string, $filter?: string, $search?: string, observe?: 'response', reportProgress?: boolean, options?: {
|
|
31
|
+
httpHeaderAccept?: 'application/json';
|
|
32
|
+
context?: HttpContext;
|
|
33
|
+
transferCache?: boolean;
|
|
34
|
+
}): Observable<HttpResponse<Companies>>;
|
|
35
|
+
getUserCompanies($skip?: number, $top?: number, $orderby?: string, $filter?: string, $search?: string, observe?: 'events', reportProgress?: boolean, options?: {
|
|
36
|
+
httpHeaderAccept?: 'application/json';
|
|
37
|
+
context?: HttpContext;
|
|
38
|
+
transferCache?: boolean;
|
|
39
|
+
}): Observable<HttpEvent<Companies>>;
|
|
40
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CompaniesService, [null, { optional: true; }, { optional: true; }]>;
|
|
41
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CompaniesService>;
|
|
42
|
+
}
|
|
@@ -438,6 +438,155 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImpor
|
|
|
438
438
|
type: Optional
|
|
439
439
|
}] }] });
|
|
440
440
|
|
|
441
|
+
/**
|
|
442
|
+
* Dcm.API.Client
|
|
443
|
+
*
|
|
444
|
+
*
|
|
445
|
+
*
|
|
446
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
447
|
+
* https://openapi-generator.tech
|
|
448
|
+
* Do not edit the class manually.
|
|
449
|
+
*/
|
|
450
|
+
/* tslint:disable:no-unused-variable member-ordering */
|
|
451
|
+
class CompaniesService {
|
|
452
|
+
httpClient;
|
|
453
|
+
basePath = 'http://localhost';
|
|
454
|
+
defaultHeaders = new HttpHeaders();
|
|
455
|
+
configuration = new Configuration();
|
|
456
|
+
encoder;
|
|
457
|
+
constructor(httpClient, basePath, configuration) {
|
|
458
|
+
this.httpClient = httpClient;
|
|
459
|
+
if (configuration) {
|
|
460
|
+
this.configuration = configuration;
|
|
461
|
+
}
|
|
462
|
+
if (typeof this.configuration.basePath !== 'string') {
|
|
463
|
+
const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
|
|
464
|
+
if (firstBasePath != undefined) {
|
|
465
|
+
basePath = firstBasePath;
|
|
466
|
+
}
|
|
467
|
+
if (typeof basePath !== 'string') {
|
|
468
|
+
basePath = this.basePath;
|
|
469
|
+
}
|
|
470
|
+
this.configuration.basePath = basePath;
|
|
471
|
+
}
|
|
472
|
+
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
473
|
+
}
|
|
474
|
+
// @ts-ignore
|
|
475
|
+
addToHttpParams(httpParams, value, key) {
|
|
476
|
+
if (typeof value === "object" && value instanceof Date === false) {
|
|
477
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
478
|
+
}
|
|
479
|
+
else {
|
|
480
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
|
|
481
|
+
}
|
|
482
|
+
return httpParams;
|
|
483
|
+
}
|
|
484
|
+
addToHttpParamsRecursive(httpParams, value, key) {
|
|
485
|
+
if (value == null) {
|
|
486
|
+
return httpParams;
|
|
487
|
+
}
|
|
488
|
+
if (typeof value === "object") {
|
|
489
|
+
if (Array.isArray(value)) {
|
|
490
|
+
value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
|
|
491
|
+
}
|
|
492
|
+
else if (value instanceof Date) {
|
|
493
|
+
if (key != null) {
|
|
494
|
+
httpParams = httpParams.append(key, value.toISOString().substring(0, 10));
|
|
495
|
+
}
|
|
496
|
+
else {
|
|
497
|
+
throw Error("key may not be null if value is Date");
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
else {
|
|
501
|
+
Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
else if (key != null) {
|
|
505
|
+
httpParams = httpParams.append(key, value);
|
|
506
|
+
}
|
|
507
|
+
else {
|
|
508
|
+
throw Error("key may not be null if value is not object or array");
|
|
509
|
+
}
|
|
510
|
+
return httpParams;
|
|
511
|
+
}
|
|
512
|
+
getUserCompanies($skip, $top, $orderby, $filter, $search, observe = 'body', reportProgress = false, options) {
|
|
513
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
514
|
+
if ($skip !== undefined && $skip !== null) {
|
|
515
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
|
|
516
|
+
}
|
|
517
|
+
if ($top !== undefined && $top !== null) {
|
|
518
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
|
|
519
|
+
}
|
|
520
|
+
if ($orderby !== undefined && $orderby !== null) {
|
|
521
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
|
|
522
|
+
}
|
|
523
|
+
if ($filter !== undefined && $filter !== null) {
|
|
524
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
|
|
525
|
+
}
|
|
526
|
+
if ($search !== undefined && $search !== null) {
|
|
527
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $search, '$search');
|
|
528
|
+
}
|
|
529
|
+
let localVarHeaders = this.defaultHeaders;
|
|
530
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
531
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
532
|
+
// to determine the Accept header
|
|
533
|
+
const httpHeaderAccepts = [
|
|
534
|
+
'application/json'
|
|
535
|
+
];
|
|
536
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
537
|
+
}
|
|
538
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
539
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
540
|
+
}
|
|
541
|
+
let localVarHttpContext = options && options.context;
|
|
542
|
+
if (localVarHttpContext === undefined) {
|
|
543
|
+
localVarHttpContext = new HttpContext();
|
|
544
|
+
}
|
|
545
|
+
let localVarTransferCache = options && options.transferCache;
|
|
546
|
+
if (localVarTransferCache === undefined) {
|
|
547
|
+
localVarTransferCache = true;
|
|
548
|
+
}
|
|
549
|
+
let responseType_ = 'json';
|
|
550
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
551
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
552
|
+
responseType_ = 'text';
|
|
553
|
+
}
|
|
554
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
555
|
+
responseType_ = 'json';
|
|
556
|
+
}
|
|
557
|
+
else {
|
|
558
|
+
responseType_ = 'blob';
|
|
559
|
+
}
|
|
560
|
+
}
|
|
561
|
+
let localVarPath = `/companies/userCompanies`;
|
|
562
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
563
|
+
context: localVarHttpContext,
|
|
564
|
+
params: localVarQueryParameters,
|
|
565
|
+
responseType: responseType_,
|
|
566
|
+
withCredentials: this.configuration.withCredentials,
|
|
567
|
+
headers: localVarHeaders,
|
|
568
|
+
observe: observe,
|
|
569
|
+
transferCache: localVarTransferCache,
|
|
570
|
+
reportProgress: reportProgress
|
|
571
|
+
});
|
|
572
|
+
}
|
|
573
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: CompaniesService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
574
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: CompaniesService, providedIn: 'root' });
|
|
575
|
+
}
|
|
576
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: CompaniesService, decorators: [{
|
|
577
|
+
type: Injectable,
|
|
578
|
+
args: [{
|
|
579
|
+
providedIn: 'root'
|
|
580
|
+
}]
|
|
581
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
582
|
+
type: Optional
|
|
583
|
+
}, {
|
|
584
|
+
type: Inject,
|
|
585
|
+
args: [BASE_PATH]
|
|
586
|
+
}] }, { type: Configuration, decorators: [{
|
|
587
|
+
type: Optional
|
|
588
|
+
}] }] });
|
|
589
|
+
|
|
441
590
|
/**
|
|
442
591
|
* Dcm.API.Client
|
|
443
592
|
*
|
|
@@ -4273,7 +4422,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImpor
|
|
|
4273
4422
|
type: Optional
|
|
4274
4423
|
}] }] });
|
|
4275
4424
|
|
|
4276
|
-
const APIS = [AuditLogsService, BookingsService, ContainersService, DocumentsService, HealthService, NotesService, PermissionsService, PoItemsService, PurchaseOrdersService, ReportsService, SettingsService, ShipmentsService, SipmetItemsService, UserService];
|
|
4425
|
+
const APIS = [AuditLogsService, BookingsService, CompaniesService, ContainersService, DocumentsService, HealthService, NotesService, PermissionsService, PoItemsService, PurchaseOrdersService, ReportsService, SettingsService, ShipmentsService, SipmetItemsService, UserService];
|
|
4277
4426
|
|
|
4278
4427
|
/**
|
|
4279
4428
|
* Dcm.API.Client
|
|
@@ -4371,6 +4520,16 @@ const ApprovalTypes = {
|
|
|
4371
4520
|
* Do not edit the class manually.
|
|
4372
4521
|
*/
|
|
4373
4522
|
|
|
4523
|
+
/**
|
|
4524
|
+
* Dcm.API.Client
|
|
4525
|
+
*
|
|
4526
|
+
*
|
|
4527
|
+
*
|
|
4528
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
4529
|
+
* https://openapi-generator.tech
|
|
4530
|
+
* Do not edit the class manually.
|
|
4531
|
+
*/
|
|
4532
|
+
|
|
4374
4533
|
/**
|
|
4375
4534
|
* Dcm.API.Client
|
|
4376
4535
|
*
|
|
@@ -4585,7 +4744,7 @@ const EntityState = {
|
|
|
4585
4744
|
* https://openapi-generator.tech
|
|
4586
4745
|
* Do not edit the class manually.
|
|
4587
4746
|
*/
|
|
4588
|
-
const
|
|
4747
|
+
const JourneySegmentType = {
|
|
4589
4748
|
Mother: 'Mother',
|
|
4590
4749
|
Feeder: 'Feeder'
|
|
4591
4750
|
};
|
|
@@ -4726,6 +4885,26 @@ const RecordTypes = {
|
|
|
4726
4885
|
PurchaseOrder: 'PurchaseOrder'
|
|
4727
4886
|
};
|
|
4728
4887
|
|
|
4888
|
+
/**
|
|
4889
|
+
* Dcm.API.Client
|
|
4890
|
+
*
|
|
4891
|
+
*
|
|
4892
|
+
*
|
|
4893
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
4894
|
+
* https://openapi-generator.tech
|
|
4895
|
+
* Do not edit the class manually.
|
|
4896
|
+
*/
|
|
4897
|
+
const RoutingLegType = {
|
|
4898
|
+
Flight1: 'Flight1',
|
|
4899
|
+
Flight2: 'Flight2',
|
|
4900
|
+
Flight3: 'Flight3',
|
|
4901
|
+
LocalTransport: 'LocalTransport',
|
|
4902
|
+
Main: 'Main',
|
|
4903
|
+
OnForwarding: 'OnForwarding',
|
|
4904
|
+
Other: 'Other',
|
|
4905
|
+
PreCarriage: 'PreCarriage'
|
|
4906
|
+
};
|
|
4907
|
+
|
|
4729
4908
|
/**
|
|
4730
4909
|
* Dcm.API.Client
|
|
4731
4910
|
*
|
|
@@ -5037,5 +5216,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImpor
|
|
|
5037
5216
|
* Generated bundle index. Do not edit.
|
|
5038
5217
|
*/
|
|
5039
5218
|
|
|
5040
|
-
export { APIS, ApiModule, ApprovalTypes, AuditLogsService, BASE_PATH, BookingsService, COLLECTION_FORMATS, Configuration, ContainerBookedState, ContainerSize, ContainerType, ContainersService, DocumentType, DocumentsService, EntityState, HealthService,
|
|
5219
|
+
export { APIS, ApiModule, ApprovalTypes, AuditLogsService, BASE_PATH, BookingsService, COLLECTION_FORMATS, CompaniesService, Configuration, ContainerBookedState, ContainerSize, ContainerType, ContainersService, DocumentType, DocumentsService, EntityState, HealthService, JourneySegmentType, NoteSourceTypes, NotesService, PermissionsService, PoItemState, PoItemsService, PowerBiTenant, PurchaseOrderState, PurchaseOrdersService, RecordTypes, ReportsService, RoutingLegType, SettingsService, ShipmentApprovalType, ShipmentState, ShipmentTerm, ShipmentsService, SipmetItemsService, TimelineEventStates, TimelineEventTypes, TransportMode, UserService, WorkflowArtifacts };
|
|
5041
5220
|
//# sourceMappingURL=indigina-dcm-api.mjs.map
|