@indigina/dcm-api 0.0.124 → 0.0.126

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 CHANGED
@@ -1,4 +1,4 @@
1
- # @indigina/dcm-api@0.0.124
1
+ # @indigina/dcm-api@0.0.126
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.124 --save
27
+ npm install @indigina/dcm-api@0.0.126 --save
28
28
  ```
29
29
 
30
30
  _without publishing (not recommended):_
@@ -2114,6 +2114,119 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImpor
2114
2114
  type: Optional
2115
2115
  }] }] });
2116
2116
 
2117
+ /**
2118
+ * Dcm.API.Client
2119
+ *
2120
+ *
2121
+ *
2122
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2123
+ * https://openapi-generator.tech
2124
+ * Do not edit the class manually.
2125
+ */
2126
+ /* tslint:disable:no-unused-variable member-ordering */
2127
+ class PackingRulesService extends BaseService {
2128
+ httpClient;
2129
+ constructor(httpClient, basePath, configuration) {
2130
+ super(basePath, configuration);
2131
+ this.httpClient = httpClient;
2132
+ }
2133
+ getPackingRules(observe = 'body', reportProgress = false, options) {
2134
+ let localVarHeaders = this.defaultHeaders;
2135
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
2136
+ 'application/json'
2137
+ ]);
2138
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
2139
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
2140
+ }
2141
+ const localVarHttpContext = options?.context ?? new HttpContext();
2142
+ const localVarTransferCache = options?.transferCache ?? true;
2143
+ let responseType_ = 'json';
2144
+ if (localVarHttpHeaderAcceptSelected) {
2145
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
2146
+ responseType_ = 'text';
2147
+ }
2148
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
2149
+ responseType_ = 'json';
2150
+ }
2151
+ else {
2152
+ responseType_ = 'blob';
2153
+ }
2154
+ }
2155
+ let localVarPath = `/packingRules`;
2156
+ const { basePath, withCredentials } = this.configuration;
2157
+ return this.httpClient.request('get', `${basePath}${localVarPath}`, {
2158
+ context: localVarHttpContext,
2159
+ responseType: responseType_,
2160
+ ...(withCredentials ? { withCredentials } : {}),
2161
+ headers: localVarHeaders,
2162
+ observe: observe,
2163
+ ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
2164
+ reportProgress: reportProgress
2165
+ });
2166
+ }
2167
+ savePackingRules(packingRuleData, observe = 'body', reportProgress = false, options) {
2168
+ if (packingRuleData === null || packingRuleData === undefined) {
2169
+ throw new Error('Required parameter packingRuleData was null or undefined when calling savePackingRules.');
2170
+ }
2171
+ let localVarHeaders = this.defaultHeaders;
2172
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
2173
+ 'application/json'
2174
+ ]);
2175
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
2176
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
2177
+ }
2178
+ const localVarHttpContext = options?.context ?? new HttpContext();
2179
+ const localVarTransferCache = options?.transferCache ?? true;
2180
+ // to determine the Content-Type header
2181
+ const consumes = [
2182
+ 'application/json'
2183
+ ];
2184
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
2185
+ if (httpContentTypeSelected !== undefined) {
2186
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
2187
+ }
2188
+ let responseType_ = 'json';
2189
+ if (localVarHttpHeaderAcceptSelected) {
2190
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
2191
+ responseType_ = 'text';
2192
+ }
2193
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
2194
+ responseType_ = 'json';
2195
+ }
2196
+ else {
2197
+ responseType_ = 'blob';
2198
+ }
2199
+ }
2200
+ let localVarPath = `/packingRules`;
2201
+ const { basePath, withCredentials } = this.configuration;
2202
+ return this.httpClient.request('put', `${basePath}${localVarPath}`, {
2203
+ context: localVarHttpContext,
2204
+ body: packingRuleData,
2205
+ responseType: responseType_,
2206
+ ...(withCredentials ? { withCredentials } : {}),
2207
+ headers: localVarHeaders,
2208
+ observe: observe,
2209
+ ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
2210
+ reportProgress: reportProgress
2211
+ });
2212
+ }
2213
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: PackingRulesService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
2214
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: PackingRulesService, providedIn: 'root' });
2215
+ }
2216
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: PackingRulesService, decorators: [{
2217
+ type: Injectable,
2218
+ args: [{
2219
+ providedIn: 'root'
2220
+ }]
2221
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
2222
+ type: Optional
2223
+ }, {
2224
+ type: Inject,
2225
+ args: [BASE_PATH]
2226
+ }] }, { type: Configuration, decorators: [{
2227
+ type: Optional
2228
+ }] }] });
2229
+
2117
2230
  /**
2118
2231
  * Dcm.API.Client
2119
2232
  *
@@ -4312,7 +4425,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImpor
4312
4425
  type: Optional
4313
4426
  }] }] });
4314
4427
 
4315
- const APIS = [AuditLogsService, BookingsService, CompaniesService, ConfigService, ContainersService, DcsService, DeliveryBookingDcsService, DeliveryBookingsService, DocumentsService, HealthService, NotesService, PendoService, PermissionsService, PoItemsService, PurchaseOrdersService, ReportsService, SettingsService, ShipmentsService, SipmetItemsService, UserService, VendorBookingsService];
4428
+ const APIS = [AuditLogsService, BookingsService, CompaniesService, ConfigService, ContainersService, DcsService, DeliveryBookingDcsService, DeliveryBookingsService, DocumentsService, HealthService, NotesService, PackingRulesService, PendoService, PermissionsService, PoItemsService, PurchaseOrdersService, ReportsService, SettingsService, ShipmentsService, SipmetItemsService, UserService, VendorBookingsService];
4316
4429
 
4317
4430
  /**
4318
4431
  * Dcm.API.Client
@@ -4818,6 +4931,26 @@ const NoteSourceType = {
4818
4931
  * Do not edit the class manually.
4819
4932
  */
4820
4933
 
4934
+ /**
4935
+ * Dcm.API.Client
4936
+ *
4937
+ *
4938
+ *
4939
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
4940
+ * https://openapi-generator.tech
4941
+ * Do not edit the class manually.
4942
+ */
4943
+
4944
+ /**
4945
+ * Dcm.API.Client
4946
+ *
4947
+ *
4948
+ *
4949
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
4950
+ * https://openapi-generator.tech
4951
+ * Do not edit the class manually.
4952
+ */
4953
+
4821
4954
  /**
4822
4955
  * Dcm.API.Client
4823
4956
  *
@@ -5289,5 +5422,5 @@ function provideApi(configOrBasePath) {
5289
5422
  * Generated bundle index. Do not edit.
5290
5423
  */
5291
5424
 
5292
- export { APIS, AmendConfirmationTypes, ApiModule, 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, PendoService, PermissionsService, PoItemState, PoItemsService, PowerBiTenant, PurchaseOrderState, PurchaseOrdersService, RecordTypes, ReportsService, RoutingLegType, SettingsService, ShipmentApprovalType, ShipmentState, ShipmentTerm, ShipmentsService, SipmetItemsService, TimelineEventStates, TimelineEventTypes, TransportMode, UserCompanyType, UserService, VendorBookingsService, WorkflowArtifacts, provideApi };
5425
+ export { APIS, AmendConfirmationTypes, ApiModule, 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 };
5293
5426
  //# sourceMappingURL=indigina-dcm-api.mjs.map