@indigina/dcm-api 0.0.110 → 0.0.112
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 +73 -71
- package/fesm2022/indigina-dcm-api.mjs.map +1 -1
- package/package.json +3 -2
- package/types/indigina-dcm-api.d.ts +61 -60
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@indigina/dcm-api",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.112",
|
|
4
4
|
"description": "OpenAPI client for @indigina/dcm-api",
|
|
5
5
|
"author": "OpenAPI-Generator Contributors",
|
|
6
6
|
"repository": {
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
],
|
|
14
14
|
"license": "Unlicense",
|
|
15
15
|
"peerDependencies": {
|
|
16
|
-
"@angular/core": "^
|
|
16
|
+
"@angular/core": "^22.0.0",
|
|
17
17
|
"rxjs": "^7.4.0"
|
|
18
18
|
},
|
|
19
19
|
"module": "fesm2022/indigina-dcm-api.mjs",
|
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
30
|
"sideEffects": false,
|
|
31
|
+
"type": "module",
|
|
31
32
|
"dependencies": {
|
|
32
33
|
"tslib": "^2.3.0"
|
|
33
34
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HttpParameterCodec,
|
|
1
|
+
import { HttpParameterCodec, HttpParams, HttpHeaders, HttpClient, HttpContext, HttpResponse, HttpEvent } from '@angular/common/http';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
4
|
import { InjectionToken, ModuleWithProviders, EnvironmentProviders } from '@angular/core';
|
|
@@ -114,6 +114,64 @@ interface Param {
|
|
|
114
114
|
dataFormat: DataFormat | undefined;
|
|
115
115
|
}
|
|
116
116
|
|
|
117
|
+
declare enum QueryParamStyle {
|
|
118
|
+
Json = 0,
|
|
119
|
+
Form = 1,
|
|
120
|
+
DeepObject = 2,
|
|
121
|
+
SpaceDelimited = 3,
|
|
122
|
+
PipeDelimited = 4
|
|
123
|
+
}
|
|
124
|
+
type Delimiter = "," | " " | "|" | "\t";
|
|
125
|
+
interface ParamOptions {
|
|
126
|
+
/** When true, serialized as multiple repeated key=value pairs. When false, serialized as a single key with joined values using `delimiter`. */
|
|
127
|
+
explode?: boolean;
|
|
128
|
+
/** Delimiter used when explode=false. The delimiter itself is inserted unencoded between encoded values. */
|
|
129
|
+
delimiter?: Delimiter;
|
|
130
|
+
}
|
|
131
|
+
declare class OpenApiHttpParams {
|
|
132
|
+
private params;
|
|
133
|
+
private defaults;
|
|
134
|
+
private encoder;
|
|
135
|
+
/**
|
|
136
|
+
* @param encoder Parameter serializer
|
|
137
|
+
* @param defaults Global defaults used when a specific parameter has no explicit options.
|
|
138
|
+
* By OpenAPI default, explode is true for query params with style=form.
|
|
139
|
+
*/
|
|
140
|
+
constructor(encoder?: HttpParameterCodec, defaults?: {
|
|
141
|
+
explode?: boolean;
|
|
142
|
+
delimiter?: Delimiter;
|
|
143
|
+
});
|
|
144
|
+
private resolveOptions;
|
|
145
|
+
/**
|
|
146
|
+
* Replace the parameter's values and (optionally) its options.
|
|
147
|
+
* Options are stored per-parameter (not global).
|
|
148
|
+
*/
|
|
149
|
+
set(key: string, values: string[] | string, options?: ParamOptions): this;
|
|
150
|
+
/**
|
|
151
|
+
* Append a single value to the parameter. If the parameter didn't exist it will be created
|
|
152
|
+
* and use resolved options (global defaults merged with any provided options).
|
|
153
|
+
*/
|
|
154
|
+
append(key: string, value: string, options?: ParamOptions): this;
|
|
155
|
+
/**
|
|
156
|
+
* Serialize to a query string according to per-parameter OpenAPI options.
|
|
157
|
+
* - If explode=true for that parameter → repeated key=value pairs (each value encoded).
|
|
158
|
+
* - If explode=false for that parameter → single key=value where values are individually encoded
|
|
159
|
+
* and joined using the configured delimiter. The delimiter character is inserted AS-IS
|
|
160
|
+
* (not percent-encoded).
|
|
161
|
+
*/
|
|
162
|
+
toString(): string;
|
|
163
|
+
/**
|
|
164
|
+
* Return parameters as a plain record.
|
|
165
|
+
* - If a parameter has exactly one value, returns that value directly.
|
|
166
|
+
* - If a parameter has multiple values, returns a readonly array of values.
|
|
167
|
+
*/
|
|
168
|
+
toRecord(): Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
169
|
+
/**
|
|
170
|
+
* Return an Angular's HttpParams with an identity parameter codec as the parameters are already encoded.
|
|
171
|
+
*/
|
|
172
|
+
toHttpParams(): HttpParams;
|
|
173
|
+
}
|
|
174
|
+
|
|
117
175
|
interface ConfigurationParameters {
|
|
118
176
|
/**
|
|
119
177
|
* @deprecated Since 5.0. Use credentials instead
|
|
@@ -215,68 +273,10 @@ declare class Configuration {
|
|
|
215
273
|
isJsonMime(mime: string): boolean;
|
|
216
274
|
lookupCredential(key: string): string | undefined;
|
|
217
275
|
addCredentialToHeaders(credentialKey: string, headerName: string, headers: HttpHeaders, prefix?: string): HttpHeaders;
|
|
218
|
-
addCredentialToQuery(credentialKey: string, paramName: string, query:
|
|
276
|
+
addCredentialToQuery(credentialKey: string, paramName: string, query: OpenApiHttpParams): OpenApiHttpParams;
|
|
219
277
|
private defaultEncodeParam;
|
|
220
278
|
}
|
|
221
279
|
|
|
222
|
-
declare enum QueryParamStyle {
|
|
223
|
-
Json = 0,
|
|
224
|
-
Form = 1,
|
|
225
|
-
DeepObject = 2,
|
|
226
|
-
SpaceDelimited = 3,
|
|
227
|
-
PipeDelimited = 4
|
|
228
|
-
}
|
|
229
|
-
type Delimiter = "," | " " | "|" | "\t";
|
|
230
|
-
interface ParamOptions {
|
|
231
|
-
/** When true, serialized as multiple repeated key=value pairs. When false, serialized as a single key with joined values using `delimiter`. */
|
|
232
|
-
explode?: boolean;
|
|
233
|
-
/** Delimiter used when explode=false. The delimiter itself is inserted unencoded between encoded values. */
|
|
234
|
-
delimiter?: Delimiter;
|
|
235
|
-
}
|
|
236
|
-
declare class OpenApiHttpParams {
|
|
237
|
-
private params;
|
|
238
|
-
private defaults;
|
|
239
|
-
private encoder;
|
|
240
|
-
/**
|
|
241
|
-
* @param encoder Parameter serializer
|
|
242
|
-
* @param defaults Global defaults used when a specific parameter has no explicit options.
|
|
243
|
-
* By OpenAPI default, explode is true for query params with style=form.
|
|
244
|
-
*/
|
|
245
|
-
constructor(encoder?: HttpParameterCodec, defaults?: {
|
|
246
|
-
explode?: boolean;
|
|
247
|
-
delimiter?: Delimiter;
|
|
248
|
-
});
|
|
249
|
-
private resolveOptions;
|
|
250
|
-
/**
|
|
251
|
-
* Replace the parameter's values and (optionally) its options.
|
|
252
|
-
* Options are stored per-parameter (not global).
|
|
253
|
-
*/
|
|
254
|
-
set(key: string, values: string[] | string, options?: ParamOptions): this;
|
|
255
|
-
/**
|
|
256
|
-
* Append a single value to the parameter. If the parameter didn't exist it will be created
|
|
257
|
-
* and use resolved options (global defaults merged with any provided options).
|
|
258
|
-
*/
|
|
259
|
-
append(key: string, value: string, options?: ParamOptions): this;
|
|
260
|
-
/**
|
|
261
|
-
* Serialize to a query string according to per-parameter OpenAPI options.
|
|
262
|
-
* - If explode=true for that parameter → repeated key=value pairs (each value encoded).
|
|
263
|
-
* - If explode=false for that parameter → single key=value where values are individually encoded
|
|
264
|
-
* and joined using the configured delimiter. The delimiter character is inserted AS-IS
|
|
265
|
-
* (not percent-encoded).
|
|
266
|
-
*/
|
|
267
|
-
toString(): string;
|
|
268
|
-
/**
|
|
269
|
-
* Return parameters as a plain record.
|
|
270
|
-
* - If a parameter has exactly one value, returns that value directly.
|
|
271
|
-
* - If a parameter has multiple values, returns a readonly array of values.
|
|
272
|
-
*/
|
|
273
|
-
toRecord(): Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
274
|
-
/**
|
|
275
|
-
* Return an Angular's HttpParams with an identity parameter codec as the parameters are already encoded.
|
|
276
|
-
*/
|
|
277
|
-
toHttpParams(): HttpParams;
|
|
278
|
-
}
|
|
279
|
-
|
|
280
280
|
/**
|
|
281
281
|
* Dcm.API.Client
|
|
282
282
|
*
|
|
@@ -4105,6 +4105,7 @@ declare const TimelineEventTypes: {
|
|
|
4105
4105
|
readonly ConfirmedOnBoard: "ConfirmedOnBoard";
|
|
4106
4106
|
readonly Departure: "Departure";
|
|
4107
4107
|
readonly Arrival: "Arrival";
|
|
4108
|
+
readonly InlandArrival: "InlandArrival";
|
|
4108
4109
|
readonly Delivery: "Delivery";
|
|
4109
4110
|
};
|
|
4110
4111
|
type TimelineEventTypes = typeof TimelineEventTypes[keyof typeof TimelineEventTypes];
|