@indigina/dcm-api 0.0.128 → 0.0.129
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/fesm2022/indigina-dcm-api.mjs +252 -2
- package/fesm2022/indigina-dcm-api.mjs.map +1 -1
- package/package.json +1 -1
- package/types/indigina-dcm-api.d.ts +189 -2
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @indigina/dcm-api@0.0.
|
|
1
|
+
# @indigina/dcm-api@0.0.129
|
|
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.129 --save
|
|
28
28
|
```
|
|
29
29
|
|
|
30
30
|
_without publishing (not recommended):_
|
|
@@ -3261,6 +3261,240 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImpor
|
|
|
3261
3261
|
type: Optional
|
|
3262
3262
|
}] }] });
|
|
3263
3263
|
|
|
3264
|
+
/**
|
|
3265
|
+
* Dcm.API.Client
|
|
3266
|
+
*
|
|
3267
|
+
*
|
|
3268
|
+
*
|
|
3269
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3270
|
+
* https://openapi-generator.tech
|
|
3271
|
+
* Do not edit the class manually.
|
|
3272
|
+
*/
|
|
3273
|
+
/* tslint:disable:no-unused-variable member-ordering */
|
|
3274
|
+
class PortsService extends BaseService {
|
|
3275
|
+
httpClient;
|
|
3276
|
+
constructor(httpClient, basePath, configuration) {
|
|
3277
|
+
super(basePath, configuration);
|
|
3278
|
+
this.httpClient = httpClient;
|
|
3279
|
+
}
|
|
3280
|
+
createPort(portData, observe = 'body', reportProgress = false, options) {
|
|
3281
|
+
if (portData === null || portData === undefined) {
|
|
3282
|
+
throw new Error('Required parameter portData was null or undefined when calling createPort.');
|
|
3283
|
+
}
|
|
3284
|
+
let localVarHeaders = this.defaultHeaders;
|
|
3285
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
3286
|
+
'application/json'
|
|
3287
|
+
]);
|
|
3288
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
3289
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
3290
|
+
}
|
|
3291
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
3292
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
3293
|
+
// to determine the Content-Type header
|
|
3294
|
+
const consumes = [
|
|
3295
|
+
'application/json'
|
|
3296
|
+
];
|
|
3297
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
3298
|
+
if (httpContentTypeSelected !== undefined) {
|
|
3299
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
3300
|
+
}
|
|
3301
|
+
let responseType_ = 'json';
|
|
3302
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
3303
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
3304
|
+
responseType_ = 'text';
|
|
3305
|
+
}
|
|
3306
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
3307
|
+
responseType_ = 'json';
|
|
3308
|
+
}
|
|
3309
|
+
else {
|
|
3310
|
+
responseType_ = 'blob';
|
|
3311
|
+
}
|
|
3312
|
+
}
|
|
3313
|
+
let localVarPath = `/ports`;
|
|
3314
|
+
const { basePath, withCredentials } = this.configuration;
|
|
3315
|
+
return this.httpClient.request('post', `${basePath}${localVarPath}`, {
|
|
3316
|
+
context: localVarHttpContext,
|
|
3317
|
+
body: portData,
|
|
3318
|
+
responseType: responseType_,
|
|
3319
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
3320
|
+
headers: localVarHeaders,
|
|
3321
|
+
observe: observe,
|
|
3322
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
3323
|
+
reportProgress: reportProgress
|
|
3324
|
+
});
|
|
3325
|
+
}
|
|
3326
|
+
deletePort(id, observe = 'body', reportProgress = false, options) {
|
|
3327
|
+
if (id === null || id === undefined) {
|
|
3328
|
+
throw new Error('Required parameter id was null or undefined when calling deletePort.');
|
|
3329
|
+
}
|
|
3330
|
+
let localVarHeaders = this.defaultHeaders;
|
|
3331
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
|
3332
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
3333
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
3334
|
+
}
|
|
3335
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
3336
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
3337
|
+
let responseType_ = 'json';
|
|
3338
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
3339
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
3340
|
+
responseType_ = 'text';
|
|
3341
|
+
}
|
|
3342
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
3343
|
+
responseType_ = 'json';
|
|
3344
|
+
}
|
|
3345
|
+
else {
|
|
3346
|
+
responseType_ = 'blob';
|
|
3347
|
+
}
|
|
3348
|
+
}
|
|
3349
|
+
let localVarPath = `/ports/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid" })}`;
|
|
3350
|
+
const { basePath, withCredentials } = this.configuration;
|
|
3351
|
+
return this.httpClient.request('delete', `${basePath}${localVarPath}`, {
|
|
3352
|
+
context: localVarHttpContext,
|
|
3353
|
+
responseType: responseType_,
|
|
3354
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
3355
|
+
headers: localVarHeaders,
|
|
3356
|
+
observe: observe,
|
|
3357
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
3358
|
+
reportProgress: reportProgress
|
|
3359
|
+
});
|
|
3360
|
+
}
|
|
3361
|
+
getPortCountries(observe = 'body', reportProgress = false, options) {
|
|
3362
|
+
let localVarHeaders = this.defaultHeaders;
|
|
3363
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
3364
|
+
'application/json'
|
|
3365
|
+
]);
|
|
3366
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
3367
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
3368
|
+
}
|
|
3369
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
3370
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
3371
|
+
let responseType_ = 'json';
|
|
3372
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
3373
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
3374
|
+
responseType_ = 'text';
|
|
3375
|
+
}
|
|
3376
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
3377
|
+
responseType_ = 'json';
|
|
3378
|
+
}
|
|
3379
|
+
else {
|
|
3380
|
+
responseType_ = 'blob';
|
|
3381
|
+
}
|
|
3382
|
+
}
|
|
3383
|
+
let localVarPath = `/ports/countries`;
|
|
3384
|
+
const { basePath, withCredentials } = this.configuration;
|
|
3385
|
+
return this.httpClient.request('get', `${basePath}${localVarPath}`, {
|
|
3386
|
+
context: localVarHttpContext,
|
|
3387
|
+
responseType: responseType_,
|
|
3388
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
3389
|
+
headers: localVarHeaders,
|
|
3390
|
+
observe: observe,
|
|
3391
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
3392
|
+
reportProgress: reportProgress
|
|
3393
|
+
});
|
|
3394
|
+
}
|
|
3395
|
+
getPorts(type, observe = 'body', reportProgress = false, options) {
|
|
3396
|
+
let localVarQueryParameters = new OpenApiHttpParams(this.encoder);
|
|
3397
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'type', type, QueryParamStyle.Form, true);
|
|
3398
|
+
let localVarHeaders = this.defaultHeaders;
|
|
3399
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
3400
|
+
'application/json'
|
|
3401
|
+
]);
|
|
3402
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
3403
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
3404
|
+
}
|
|
3405
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
3406
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
3407
|
+
let responseType_ = 'json';
|
|
3408
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
3409
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
3410
|
+
responseType_ = 'text';
|
|
3411
|
+
}
|
|
3412
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
3413
|
+
responseType_ = 'json';
|
|
3414
|
+
}
|
|
3415
|
+
else {
|
|
3416
|
+
responseType_ = 'blob';
|
|
3417
|
+
}
|
|
3418
|
+
}
|
|
3419
|
+
let localVarPath = `/ports`;
|
|
3420
|
+
const { basePath, withCredentials } = this.configuration;
|
|
3421
|
+
return this.httpClient.request('get', `${basePath}${localVarPath}`, {
|
|
3422
|
+
context: localVarHttpContext,
|
|
3423
|
+
params: localVarQueryParameters.toHttpParams(),
|
|
3424
|
+
responseType: responseType_,
|
|
3425
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
3426
|
+
headers: localVarHeaders,
|
|
3427
|
+
observe: observe,
|
|
3428
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
3429
|
+
reportProgress: reportProgress
|
|
3430
|
+
});
|
|
3431
|
+
}
|
|
3432
|
+
updatePort(id, portData, observe = 'body', reportProgress = false, options) {
|
|
3433
|
+
if (id === null || id === undefined) {
|
|
3434
|
+
throw new Error('Required parameter id was null or undefined when calling updatePort.');
|
|
3435
|
+
}
|
|
3436
|
+
if (portData === null || portData === undefined) {
|
|
3437
|
+
throw new Error('Required parameter portData was null or undefined when calling updatePort.');
|
|
3438
|
+
}
|
|
3439
|
+
let localVarHeaders = this.defaultHeaders;
|
|
3440
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
3441
|
+
'application/json'
|
|
3442
|
+
]);
|
|
3443
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
3444
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
3445
|
+
}
|
|
3446
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
3447
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
3448
|
+
// to determine the Content-Type header
|
|
3449
|
+
const consumes = [
|
|
3450
|
+
'application/json'
|
|
3451
|
+
];
|
|
3452
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
3453
|
+
if (httpContentTypeSelected !== undefined) {
|
|
3454
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
3455
|
+
}
|
|
3456
|
+
let responseType_ = 'json';
|
|
3457
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
3458
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
3459
|
+
responseType_ = 'text';
|
|
3460
|
+
}
|
|
3461
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
3462
|
+
responseType_ = 'json';
|
|
3463
|
+
}
|
|
3464
|
+
else {
|
|
3465
|
+
responseType_ = 'blob';
|
|
3466
|
+
}
|
|
3467
|
+
}
|
|
3468
|
+
let localVarPath = `/ports/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid" })}`;
|
|
3469
|
+
const { basePath, withCredentials } = this.configuration;
|
|
3470
|
+
return this.httpClient.request('put', `${basePath}${localVarPath}`, {
|
|
3471
|
+
context: localVarHttpContext,
|
|
3472
|
+
body: portData,
|
|
3473
|
+
responseType: responseType_,
|
|
3474
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
3475
|
+
headers: localVarHeaders,
|
|
3476
|
+
observe: observe,
|
|
3477
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
3478
|
+
reportProgress: reportProgress
|
|
3479
|
+
});
|
|
3480
|
+
}
|
|
3481
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: PortsService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3482
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: PortsService, providedIn: 'root' });
|
|
3483
|
+
}
|
|
3484
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: PortsService, decorators: [{
|
|
3485
|
+
type: Injectable,
|
|
3486
|
+
args: [{
|
|
3487
|
+
providedIn: 'root'
|
|
3488
|
+
}]
|
|
3489
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
3490
|
+
type: Optional
|
|
3491
|
+
}, {
|
|
3492
|
+
type: Inject,
|
|
3493
|
+
args: [BASE_PATH]
|
|
3494
|
+
}] }, { type: Configuration, decorators: [{
|
|
3495
|
+
type: Optional
|
|
3496
|
+
}] }] });
|
|
3497
|
+
|
|
3264
3498
|
/**
|
|
3265
3499
|
* Dcm.API.Client
|
|
3266
3500
|
*
|
|
@@ -5018,7 +5252,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImpor
|
|
|
5018
5252
|
type: Optional
|
|
5019
5253
|
}] }] });
|
|
5020
5254
|
|
|
5021
|
-
const APIS = [ApprovalRulesService, AuditLogsService, BookingsService, CompaniesService, ConfigService, ContainersService, DcsService, DeliveryBookingDcsService, DeliveryBookingsService, DocumentsService, HealthService, NotesService, PackingRulesService, PendoService, PermissionsService, PoItemsService, PurchaseOrdersService, ReportsService, SettingsService, ShipmentsService, SipmetItemsService, UserService, VendorBookingsService];
|
|
5255
|
+
const APIS = [ApprovalRulesService, AuditLogsService, BookingsService, CompaniesService, ConfigService, ContainersService, DcsService, DeliveryBookingDcsService, DeliveryBookingsService, DocumentsService, HealthService, NotesService, PackingRulesService, PendoService, PermissionsService, PoItemsService, PortsService, PurchaseOrdersService, ReportsService, SettingsService, ShipmentsService, SipmetItemsService, UserService, VendorBookingsService];
|
|
5022
5256
|
|
|
5023
5257
|
/**
|
|
5024
5258
|
* Dcm.API.Client
|
|
@@ -5612,6 +5846,22 @@ const PoItemState = {
|
|
|
5612
5846
|
* Do not edit the class manually.
|
|
5613
5847
|
*/
|
|
5614
5848
|
|
|
5849
|
+
/**
|
|
5850
|
+
* Dcm.API.Client
|
|
5851
|
+
*
|
|
5852
|
+
*
|
|
5853
|
+
*
|
|
5854
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
5855
|
+
* https://openapi-generator.tech
|
|
5856
|
+
* Do not edit the class manually.
|
|
5857
|
+
*/
|
|
5858
|
+
const PortType = {
|
|
5859
|
+
Air: 'Air',
|
|
5860
|
+
Sea: 'Sea',
|
|
5861
|
+
Road: 'Road',
|
|
5862
|
+
Rail: 'Rail'
|
|
5863
|
+
};
|
|
5864
|
+
|
|
5615
5865
|
/**
|
|
5616
5866
|
* Dcm.API.Client
|
|
5617
5867
|
*
|
|
@@ -6046,5 +6296,5 @@ function provideApi(configOrBasePath) {
|
|
|
6046
6296
|
* Generated bundle index. Do not edit.
|
|
6047
6297
|
*/
|
|
6048
6298
|
|
|
6049
|
-
export { APIS, AmendConfirmationTypes, ApiModule, ApprovalRuleType, ApprovalRulesService, ApprovalTypes, AuditLogsService, BASE_PATH, BookingStates, BookingTypes, BookingsService, COLLECTION_FORMATS, CompaniesService, ConfigService, Configuration, ContainerBookedState, ContainerSize, ContainerType, ContainersService, CwStates, DcsService, DeliveryBookingDcsService, DeliveryBookingStates, DeliveryBookingsService, DocumentType, DocumentsService, EntityState, HealthService, JourneySegmentType, LocationType, NoteCategory, NoteSourceType, NotesService, PackingRulesService, PendoService, PermissionsService, PoItemState, PoItemsService, PowerBiTenant, PurchaseOrderState, PurchaseOrdersService, RecordTypes, ReportsService, RoutingLegType, SettingsService, ShipmentApprovalType, ShipmentState, ShipmentTerm, ShipmentsService, SipmetItemsService, TimelineEventStates, TimelineEventTypes, TransportMode, UserCompanyType, UserService, VendorBookingsService, WorkflowArtifacts, provideApi };
|
|
6299
|
+
export { APIS, AmendConfirmationTypes, ApiModule, ApprovalRuleType, ApprovalRulesService, ApprovalTypes, AuditLogsService, BASE_PATH, BookingStates, BookingTypes, BookingsService, COLLECTION_FORMATS, CompaniesService, ConfigService, Configuration, ContainerBookedState, ContainerSize, ContainerType, ContainersService, CwStates, DcsService, DeliveryBookingDcsService, DeliveryBookingStates, DeliveryBookingsService, DocumentType, DocumentsService, EntityState, HealthService, JourneySegmentType, LocationType, NoteCategory, NoteSourceType, NotesService, PackingRulesService, PendoService, PermissionsService, PoItemState, PoItemsService, PortType, PortsService, PowerBiTenant, PurchaseOrderState, PurchaseOrdersService, RecordTypes, ReportsService, RoutingLegType, SettingsService, ShipmentApprovalType, ShipmentState, ShipmentTerm, ShipmentsService, SipmetItemsService, TimelineEventStates, TimelineEventTypes, TransportMode, UserCompanyType, UserService, VendorBookingsService, WorkflowArtifacts, provideApi };
|
|
6050
6300
|
//# sourceMappingURL=indigina-dcm-api.mjs.map
|