@lcdp/api-react-rest-client 3.2.0 → 3.3.0-LDS-5710-move-codegen-in-frontend.25448746177
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/auth/src/runtime.d.ts +2 -2
- package/auth/src/runtime.js +8 -12
- package/banking-operation/src/runtime.d.ts +2 -2
- package/banking-operation/src/runtime.js +8 -12
- package/catalog/src/models/ProductInsight.d.ts +6 -6
- package/catalog/src/models/ProductInsight.js +6 -6
- package/catalog/src/models/ProductInsightCreateOrUpdateParameters.d.ts +8 -6
- package/catalog/src/models/ProductInsightCreateOrUpdateParameters.js +6 -4
- package/catalog/src/models/ProductSecondaryType.d.ts +25 -0
- package/catalog/src/models/ProductSecondaryType.js +48 -0
- package/catalog/src/models/ProductType.d.ts +28 -0
- package/catalog/src/models/ProductType.js +51 -0
- package/catalog/src/models/index.d.ts +2 -2
- package/catalog/src/models/index.js +2 -2
- package/catalog/src/runtime.d.ts +2 -2
- package/catalog/src/runtime.js +8 -12
- package/challenge/src/runtime.d.ts +2 -2
- package/challenge/src/runtime.js +8 -12
- package/chargebee-hook/src/runtime.d.ts +2 -2
- package/chargebee-hook/src/runtime.js +8 -12
- package/configuration/src/runtime.d.ts +2 -2
- package/configuration/src/runtime.js +8 -12
- package/content/src/runtime.d.ts +2 -2
- package/content/src/runtime.js +8 -12
- package/factory/src/models/Product.d.ts +4 -3
- package/factory/src/models/Product.js +3 -2
- package/factory/src/models/ProductType.d.ts +28 -0
- package/factory/src/models/ProductType.js +51 -0
- package/factory/src/models/index.d.ts +1 -0
- package/factory/src/models/index.js +1 -0
- package/factory/src/runtime.d.ts +2 -2
- package/factory/src/runtime.js +8 -12
- package/favorite/src/runtime.d.ts +2 -2
- package/favorite/src/runtime.js +8 -12
- package/geo/src/runtime.d.ts +2 -2
- package/geo/src/runtime.js +8 -12
- package/inventory/src/runtime.d.ts +2 -2
- package/inventory/src/runtime.js +8 -12
- package/invoice/src/runtime.d.ts +2 -2
- package/invoice/src/runtime.js +8 -12
- package/laboratory/src/runtime.d.ts +2 -2
- package/laboratory/src/runtime.js +8 -12
- package/laboratory-store/src/runtime.d.ts +2 -2
- package/laboratory-store/src/runtime.js +8 -12
- package/laboratory-store-log/src/runtime.d.ts +2 -2
- package/laboratory-store-log/src/runtime.js +8 -12
- package/lexicon/src/runtime.d.ts +2 -2
- package/lexicon/src/runtime.js +8 -12
- package/litigation/src/runtime.d.ts +2 -2
- package/litigation/src/runtime.js +8 -12
- package/magic-cart/src/runtime.d.ts +2 -2
- package/magic-cart/src/runtime.js +8 -12
- package/mandate/src/runtime.d.ts +2 -2
- package/mandate/src/runtime.js +8 -12
- package/mangopay-hook/src/runtime.d.ts +2 -2
- package/mangopay-hook/src/runtime.js +8 -12
- package/message/src/runtime.d.ts +2 -2
- package/message/src/runtime.js +8 -12
- package/notification/src/runtime.d.ts +2 -2
- package/notification/src/runtime.js +8 -12
- package/order/src/runtime.d.ts +2 -2
- package/order/src/runtime.js +8 -12
- package/order-log/src/runtime.d.ts +2 -2
- package/order-log/src/runtime.js +8 -12
- package/outrage-message/src/runtime.d.ts +2 -2
- package/outrage-message/src/runtime.js +8 -12
- package/package.json +1 -1
- package/product/src/apis/ManageProductApi.d.ts +2 -2
- package/product/src/apis/ManageProductApi.js +2 -2
- package/product/src/apis/index.d.ts +0 -1
- package/product/src/apis/index.js +0 -1
- package/product/src/models/ProductCreationOrUpdateParameters.d.ts +8 -6
- package/product/src/models/ProductCreationOrUpdateParameters.js +6 -4
- package/product/src/models/ProductSecondaryType.d.ts +7 -19
- package/product/src/models/ProductSecondaryType.js +18 -17
- package/product/src/models/ProductType.d.ts +10 -19
- package/product/src/models/ProductType.js +21 -17
- package/product/src/runtime.d.ts +2 -2
- package/product/src/runtime.js +8 -12
- package/pub/src/runtime.d.ts +2 -2
- package/pub/src/runtime.js +8 -12
- package/recommendation/src/runtime.d.ts +2 -2
- package/recommendation/src/runtime.js +8 -12
- package/rfx/src/runtime.d.ts +2 -2
- package/rfx/src/runtime.js +8 -12
- package/sale-offer/src/runtime.d.ts +2 -2
- package/sale-offer/src/runtime.js +8 -12
- package/sale-offer-log/src/runtime.d.ts +2 -2
- package/sale-offer-log/src/runtime.js +8 -12
- package/servant/src/runtime.d.ts +2 -2
- package/servant/src/runtime.js +8 -12
- package/shipment/src/runtime.d.ts +2 -2
- package/shipment/src/runtime.js +8 -12
- package/shopping-cart/src/runtime.d.ts +2 -2
- package/shopping-cart/src/runtime.js +8 -12
- package/smuggler/src/runtime.d.ts +2 -2
- package/smuggler/src/runtime.js +8 -12
- package/statistic/src/runtime.d.ts +2 -2
- package/statistic/src/runtime.js +8 -12
- package/subscription/src/runtime.d.ts +2 -2
- package/subscription/src/runtime.js +8 -12
- package/third-party/src/runtime.d.ts +2 -2
- package/third-party/src/runtime.js +8 -12
- package/thread/src/runtime.d.ts +2 -2
- package/thread/src/runtime.js +8 -12
- package/ubo/src/runtime.d.ts +2 -2
- package/ubo/src/runtime.js +8 -12
- package/user/src/apis/ManageUserRestrictionApi.d.ts +1 -25
- package/user/src/apis/ManageUserRestrictionApi.js +12 -152
- package/user/src/apis/SearchUserRestrictionApi.d.ts +1 -12
- package/user/src/apis/SearchUserRestrictionApi.js +0 -79
- package/user/src/models/ProductType.d.ts +28 -0
- package/user/src/models/ProductType.js +51 -0
- package/user/src/models/RestrictedProductType.d.ts +46 -0
- package/user/src/models/RestrictedProductType.js +55 -0
- package/user/src/models/User.d.ts +3 -2
- package/user/src/models/User.js +3 -2
- package/user/src/models/UserUpdateParameters.d.ts +7 -0
- package/user/src/models/UserUpdateParameters.js +3 -0
- package/user/src/models/index.d.ts +2 -2
- package/user/src/models/index.js +2 -2
- package/user/src/runtime.d.ts +2 -2
- package/user/src/runtime.js +8 -12
- package/wish/src/runtime.d.ts +2 -2
- package/wish/src/runtime.js +8 -12
- package/catalog/src/models/ProductSecondaryTypeLink.d.ts +0 -43
- package/catalog/src/models/ProductSecondaryTypeLink.js +0 -51
- package/catalog/src/models/ProductTypeLink.d.ts +0 -43
- package/catalog/src/models/ProductTypeLink.js +0 -51
- package/product/src/apis/SearchProductMetadataApi.d.ts +0 -56
- package/product/src/apis/SearchProductMetadataApi.js +0 -390
- package/user/src/models/ProductTypeLink.d.ts +0 -43
- package/user/src/models/ProductTypeLink.js +0 -51
- package/user/src/models/UserRestrictedProductTypeCreationParameter.d.ts +0 -31
- package/user/src/models/UserRestrictedProductTypeCreationParameter.js +0 -47
|
@@ -560,20 +560,16 @@ var BlobWithMetaApiResponse = /** @class */ (function () {
|
|
|
560
560
|
;
|
|
561
561
|
BlobWithMetaApiResponse.prototype.extractFilename = function (headers) {
|
|
562
562
|
var headerName = 'Content-Disposition';
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
var filenameRegex = /filename\*?=['"]?(?:UTF-\d['"]*)?([^;\r\n"']*)['"]?;?/;
|
|
566
|
-
var matches = filenameRegex.exec(headerValue);
|
|
567
|
-
if (matches != null && matches[1]) {
|
|
568
|
-
return matches[1];
|
|
569
|
-
}
|
|
570
|
-
else {
|
|
571
|
-
return undefined;
|
|
572
|
-
}
|
|
573
|
-
}
|
|
574
|
-
else {
|
|
563
|
+
var headerValue = headers.get(headerName);
|
|
564
|
+
if (headerValue == null) {
|
|
575
565
|
return undefined;
|
|
576
566
|
}
|
|
567
|
+
var filenameRegex = /filename\*?=['"]?(?:UTF-\d['"]*)?([^;\r\n"']*)['"]?;?/;
|
|
568
|
+
var matches = filenameRegex.exec(headerValue);
|
|
569
|
+
if (matches != null && matches[1]) {
|
|
570
|
+
return matches[1];
|
|
571
|
+
}
|
|
572
|
+
return undefined;
|
|
577
573
|
};
|
|
578
574
|
return BlobWithMetaApiResponse;
|
|
579
575
|
}());
|
|
@@ -127,7 +127,7 @@ export interface RequestOpts {
|
|
|
127
127
|
export declare function querystring(params: HTTPQuery, prefix?: string): string;
|
|
128
128
|
export declare function mapValues(data: any, fn: (item: any) => any): {};
|
|
129
129
|
export declare function canConsumeForm(consumes: Consume[]): boolean;
|
|
130
|
-
export declare function toDateISOString(date:
|
|
130
|
+
export declare function toDateISOString<D extends Date | null | undefined>(date: D): D extends Date ? string : D;
|
|
131
131
|
export interface Consume {
|
|
132
132
|
contentType: string;
|
|
133
133
|
}
|
|
@@ -174,7 +174,7 @@ export declare class VoidApiResponse {
|
|
|
174
174
|
}
|
|
175
175
|
export interface BlobWithMeta {
|
|
176
176
|
blob: Blob;
|
|
177
|
-
filename
|
|
177
|
+
filename?: string;
|
|
178
178
|
}
|
|
179
179
|
export declare function instanceOfBlobWithMeta(object: any): object is BlobWithMeta;
|
|
180
180
|
export declare class BlobWithMetaApiResponse {
|
|
@@ -560,20 +560,16 @@ var BlobWithMetaApiResponse = /** @class */ (function () {
|
|
|
560
560
|
;
|
|
561
561
|
BlobWithMetaApiResponse.prototype.extractFilename = function (headers) {
|
|
562
562
|
var headerName = 'Content-Disposition';
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
var filenameRegex = /filename\*?=['"]?(?:UTF-\d['"]*)?([^;\r\n"']*)['"]?;?/;
|
|
566
|
-
var matches = filenameRegex.exec(headerValue);
|
|
567
|
-
if (matches != null && matches[1]) {
|
|
568
|
-
return matches[1];
|
|
569
|
-
}
|
|
570
|
-
else {
|
|
571
|
-
return undefined;
|
|
572
|
-
}
|
|
573
|
-
}
|
|
574
|
-
else {
|
|
563
|
+
var headerValue = headers.get(headerName);
|
|
564
|
+
if (headerValue == null) {
|
|
575
565
|
return undefined;
|
|
576
566
|
}
|
|
567
|
+
var filenameRegex = /filename\*?=['"]?(?:UTF-\d['"]*)?([^;\r\n"']*)['"]?;?/;
|
|
568
|
+
var matches = filenameRegex.exec(headerValue);
|
|
569
|
+
if (matches != null && matches[1]) {
|
|
570
|
+
return matches[1];
|
|
571
|
+
}
|
|
572
|
+
return undefined;
|
|
577
573
|
};
|
|
578
574
|
return BlobWithMetaApiResponse;
|
|
579
575
|
}());
|
package/mandate/src/runtime.d.ts
CHANGED
|
@@ -127,7 +127,7 @@ export interface RequestOpts {
|
|
|
127
127
|
export declare function querystring(params: HTTPQuery, prefix?: string): string;
|
|
128
128
|
export declare function mapValues(data: any, fn: (item: any) => any): {};
|
|
129
129
|
export declare function canConsumeForm(consumes: Consume[]): boolean;
|
|
130
|
-
export declare function toDateISOString(date:
|
|
130
|
+
export declare function toDateISOString<D extends Date | null | undefined>(date: D): D extends Date ? string : D;
|
|
131
131
|
export interface Consume {
|
|
132
132
|
contentType: string;
|
|
133
133
|
}
|
|
@@ -174,7 +174,7 @@ export declare class VoidApiResponse {
|
|
|
174
174
|
}
|
|
175
175
|
export interface BlobWithMeta {
|
|
176
176
|
blob: Blob;
|
|
177
|
-
filename
|
|
177
|
+
filename?: string;
|
|
178
178
|
}
|
|
179
179
|
export declare function instanceOfBlobWithMeta(object: any): object is BlobWithMeta;
|
|
180
180
|
export declare class BlobWithMetaApiResponse {
|
package/mandate/src/runtime.js
CHANGED
|
@@ -560,20 +560,16 @@ var BlobWithMetaApiResponse = /** @class */ (function () {
|
|
|
560
560
|
;
|
|
561
561
|
BlobWithMetaApiResponse.prototype.extractFilename = function (headers) {
|
|
562
562
|
var headerName = 'Content-Disposition';
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
var filenameRegex = /filename\*?=['"]?(?:UTF-\d['"]*)?([^;\r\n"']*)['"]?;?/;
|
|
566
|
-
var matches = filenameRegex.exec(headerValue);
|
|
567
|
-
if (matches != null && matches[1]) {
|
|
568
|
-
return matches[1];
|
|
569
|
-
}
|
|
570
|
-
else {
|
|
571
|
-
return undefined;
|
|
572
|
-
}
|
|
573
|
-
}
|
|
574
|
-
else {
|
|
563
|
+
var headerValue = headers.get(headerName);
|
|
564
|
+
if (headerValue == null) {
|
|
575
565
|
return undefined;
|
|
576
566
|
}
|
|
567
|
+
var filenameRegex = /filename\*?=['"]?(?:UTF-\d['"]*)?([^;\r\n"']*)['"]?;?/;
|
|
568
|
+
var matches = filenameRegex.exec(headerValue);
|
|
569
|
+
if (matches != null && matches[1]) {
|
|
570
|
+
return matches[1];
|
|
571
|
+
}
|
|
572
|
+
return undefined;
|
|
577
573
|
};
|
|
578
574
|
return BlobWithMetaApiResponse;
|
|
579
575
|
}());
|
|
@@ -127,7 +127,7 @@ export interface RequestOpts {
|
|
|
127
127
|
export declare function querystring(params: HTTPQuery, prefix?: string): string;
|
|
128
128
|
export declare function mapValues(data: any, fn: (item: any) => any): {};
|
|
129
129
|
export declare function canConsumeForm(consumes: Consume[]): boolean;
|
|
130
|
-
export declare function toDateISOString(date:
|
|
130
|
+
export declare function toDateISOString<D extends Date | null | undefined>(date: D): D extends Date ? string : D;
|
|
131
131
|
export interface Consume {
|
|
132
132
|
contentType: string;
|
|
133
133
|
}
|
|
@@ -174,7 +174,7 @@ export declare class VoidApiResponse {
|
|
|
174
174
|
}
|
|
175
175
|
export interface BlobWithMeta {
|
|
176
176
|
blob: Blob;
|
|
177
|
-
filename
|
|
177
|
+
filename?: string;
|
|
178
178
|
}
|
|
179
179
|
export declare function instanceOfBlobWithMeta(object: any): object is BlobWithMeta;
|
|
180
180
|
export declare class BlobWithMetaApiResponse {
|
|
@@ -560,20 +560,16 @@ var BlobWithMetaApiResponse = /** @class */ (function () {
|
|
|
560
560
|
;
|
|
561
561
|
BlobWithMetaApiResponse.prototype.extractFilename = function (headers) {
|
|
562
562
|
var headerName = 'Content-Disposition';
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
var filenameRegex = /filename\*?=['"]?(?:UTF-\d['"]*)?([^;\r\n"']*)['"]?;?/;
|
|
566
|
-
var matches = filenameRegex.exec(headerValue);
|
|
567
|
-
if (matches != null && matches[1]) {
|
|
568
|
-
return matches[1];
|
|
569
|
-
}
|
|
570
|
-
else {
|
|
571
|
-
return undefined;
|
|
572
|
-
}
|
|
573
|
-
}
|
|
574
|
-
else {
|
|
563
|
+
var headerValue = headers.get(headerName);
|
|
564
|
+
if (headerValue == null) {
|
|
575
565
|
return undefined;
|
|
576
566
|
}
|
|
567
|
+
var filenameRegex = /filename\*?=['"]?(?:UTF-\d['"]*)?([^;\r\n"']*)['"]?;?/;
|
|
568
|
+
var matches = filenameRegex.exec(headerValue);
|
|
569
|
+
if (matches != null && matches[1]) {
|
|
570
|
+
return matches[1];
|
|
571
|
+
}
|
|
572
|
+
return undefined;
|
|
577
573
|
};
|
|
578
574
|
return BlobWithMetaApiResponse;
|
|
579
575
|
}());
|
package/message/src/runtime.d.ts
CHANGED
|
@@ -127,7 +127,7 @@ export interface RequestOpts {
|
|
|
127
127
|
export declare function querystring(params: HTTPQuery, prefix?: string): string;
|
|
128
128
|
export declare function mapValues(data: any, fn: (item: any) => any): {};
|
|
129
129
|
export declare function canConsumeForm(consumes: Consume[]): boolean;
|
|
130
|
-
export declare function toDateISOString(date:
|
|
130
|
+
export declare function toDateISOString<D extends Date | null | undefined>(date: D): D extends Date ? string : D;
|
|
131
131
|
export interface Consume {
|
|
132
132
|
contentType: string;
|
|
133
133
|
}
|
|
@@ -174,7 +174,7 @@ export declare class VoidApiResponse {
|
|
|
174
174
|
}
|
|
175
175
|
export interface BlobWithMeta {
|
|
176
176
|
blob: Blob;
|
|
177
|
-
filename
|
|
177
|
+
filename?: string;
|
|
178
178
|
}
|
|
179
179
|
export declare function instanceOfBlobWithMeta(object: any): object is BlobWithMeta;
|
|
180
180
|
export declare class BlobWithMetaApiResponse {
|
package/message/src/runtime.js
CHANGED
|
@@ -560,20 +560,16 @@ var BlobWithMetaApiResponse = /** @class */ (function () {
|
|
|
560
560
|
;
|
|
561
561
|
BlobWithMetaApiResponse.prototype.extractFilename = function (headers) {
|
|
562
562
|
var headerName = 'Content-Disposition';
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
var filenameRegex = /filename\*?=['"]?(?:UTF-\d['"]*)?([^;\r\n"']*)['"]?;?/;
|
|
566
|
-
var matches = filenameRegex.exec(headerValue);
|
|
567
|
-
if (matches != null && matches[1]) {
|
|
568
|
-
return matches[1];
|
|
569
|
-
}
|
|
570
|
-
else {
|
|
571
|
-
return undefined;
|
|
572
|
-
}
|
|
573
|
-
}
|
|
574
|
-
else {
|
|
563
|
+
var headerValue = headers.get(headerName);
|
|
564
|
+
if (headerValue == null) {
|
|
575
565
|
return undefined;
|
|
576
566
|
}
|
|
567
|
+
var filenameRegex = /filename\*?=['"]?(?:UTF-\d['"]*)?([^;\r\n"']*)['"]?;?/;
|
|
568
|
+
var matches = filenameRegex.exec(headerValue);
|
|
569
|
+
if (matches != null && matches[1]) {
|
|
570
|
+
return matches[1];
|
|
571
|
+
}
|
|
572
|
+
return undefined;
|
|
577
573
|
};
|
|
578
574
|
return BlobWithMetaApiResponse;
|
|
579
575
|
}());
|
|
@@ -127,7 +127,7 @@ export interface RequestOpts {
|
|
|
127
127
|
export declare function querystring(params: HTTPQuery, prefix?: string): string;
|
|
128
128
|
export declare function mapValues(data: any, fn: (item: any) => any): {};
|
|
129
129
|
export declare function canConsumeForm(consumes: Consume[]): boolean;
|
|
130
|
-
export declare function toDateISOString(date:
|
|
130
|
+
export declare function toDateISOString<D extends Date | null | undefined>(date: D): D extends Date ? string : D;
|
|
131
131
|
export interface Consume {
|
|
132
132
|
contentType: string;
|
|
133
133
|
}
|
|
@@ -174,7 +174,7 @@ export declare class VoidApiResponse {
|
|
|
174
174
|
}
|
|
175
175
|
export interface BlobWithMeta {
|
|
176
176
|
blob: Blob;
|
|
177
|
-
filename
|
|
177
|
+
filename?: string;
|
|
178
178
|
}
|
|
179
179
|
export declare function instanceOfBlobWithMeta(object: any): object is BlobWithMeta;
|
|
180
180
|
export declare class BlobWithMetaApiResponse {
|
|
@@ -560,20 +560,16 @@ var BlobWithMetaApiResponse = /** @class */ (function () {
|
|
|
560
560
|
;
|
|
561
561
|
BlobWithMetaApiResponse.prototype.extractFilename = function (headers) {
|
|
562
562
|
var headerName = 'Content-Disposition';
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
var filenameRegex = /filename\*?=['"]?(?:UTF-\d['"]*)?([^;\r\n"']*)['"]?;?/;
|
|
566
|
-
var matches = filenameRegex.exec(headerValue);
|
|
567
|
-
if (matches != null && matches[1]) {
|
|
568
|
-
return matches[1];
|
|
569
|
-
}
|
|
570
|
-
else {
|
|
571
|
-
return undefined;
|
|
572
|
-
}
|
|
573
|
-
}
|
|
574
|
-
else {
|
|
563
|
+
var headerValue = headers.get(headerName);
|
|
564
|
+
if (headerValue == null) {
|
|
575
565
|
return undefined;
|
|
576
566
|
}
|
|
567
|
+
var filenameRegex = /filename\*?=['"]?(?:UTF-\d['"]*)?([^;\r\n"']*)['"]?;?/;
|
|
568
|
+
var matches = filenameRegex.exec(headerValue);
|
|
569
|
+
if (matches != null && matches[1]) {
|
|
570
|
+
return matches[1];
|
|
571
|
+
}
|
|
572
|
+
return undefined;
|
|
577
573
|
};
|
|
578
574
|
return BlobWithMetaApiResponse;
|
|
579
575
|
}());
|
package/order/src/runtime.d.ts
CHANGED
|
@@ -127,7 +127,7 @@ export interface RequestOpts {
|
|
|
127
127
|
export declare function querystring(params: HTTPQuery, prefix?: string): string;
|
|
128
128
|
export declare function mapValues(data: any, fn: (item: any) => any): {};
|
|
129
129
|
export declare function canConsumeForm(consumes: Consume[]): boolean;
|
|
130
|
-
export declare function toDateISOString(date:
|
|
130
|
+
export declare function toDateISOString<D extends Date | null | undefined>(date: D): D extends Date ? string : D;
|
|
131
131
|
export interface Consume {
|
|
132
132
|
contentType: string;
|
|
133
133
|
}
|
|
@@ -174,7 +174,7 @@ export declare class VoidApiResponse {
|
|
|
174
174
|
}
|
|
175
175
|
export interface BlobWithMeta {
|
|
176
176
|
blob: Blob;
|
|
177
|
-
filename
|
|
177
|
+
filename?: string;
|
|
178
178
|
}
|
|
179
179
|
export declare function instanceOfBlobWithMeta(object: any): object is BlobWithMeta;
|
|
180
180
|
export declare class BlobWithMetaApiResponse {
|
package/order/src/runtime.js
CHANGED
|
@@ -560,20 +560,16 @@ var BlobWithMetaApiResponse = /** @class */ (function () {
|
|
|
560
560
|
;
|
|
561
561
|
BlobWithMetaApiResponse.prototype.extractFilename = function (headers) {
|
|
562
562
|
var headerName = 'Content-Disposition';
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
var filenameRegex = /filename\*?=['"]?(?:UTF-\d['"]*)?([^;\r\n"']*)['"]?;?/;
|
|
566
|
-
var matches = filenameRegex.exec(headerValue);
|
|
567
|
-
if (matches != null && matches[1]) {
|
|
568
|
-
return matches[1];
|
|
569
|
-
}
|
|
570
|
-
else {
|
|
571
|
-
return undefined;
|
|
572
|
-
}
|
|
573
|
-
}
|
|
574
|
-
else {
|
|
563
|
+
var headerValue = headers.get(headerName);
|
|
564
|
+
if (headerValue == null) {
|
|
575
565
|
return undefined;
|
|
576
566
|
}
|
|
567
|
+
var filenameRegex = /filename\*?=['"]?(?:UTF-\d['"]*)?([^;\r\n"']*)['"]?;?/;
|
|
568
|
+
var matches = filenameRegex.exec(headerValue);
|
|
569
|
+
if (matches != null && matches[1]) {
|
|
570
|
+
return matches[1];
|
|
571
|
+
}
|
|
572
|
+
return undefined;
|
|
577
573
|
};
|
|
578
574
|
return BlobWithMetaApiResponse;
|
|
579
575
|
}());
|
|
@@ -127,7 +127,7 @@ export interface RequestOpts {
|
|
|
127
127
|
export declare function querystring(params: HTTPQuery, prefix?: string): string;
|
|
128
128
|
export declare function mapValues(data: any, fn: (item: any) => any): {};
|
|
129
129
|
export declare function canConsumeForm(consumes: Consume[]): boolean;
|
|
130
|
-
export declare function toDateISOString(date:
|
|
130
|
+
export declare function toDateISOString<D extends Date | null | undefined>(date: D): D extends Date ? string : D;
|
|
131
131
|
export interface Consume {
|
|
132
132
|
contentType: string;
|
|
133
133
|
}
|
|
@@ -174,7 +174,7 @@ export declare class VoidApiResponse {
|
|
|
174
174
|
}
|
|
175
175
|
export interface BlobWithMeta {
|
|
176
176
|
blob: Blob;
|
|
177
|
-
filename
|
|
177
|
+
filename?: string;
|
|
178
178
|
}
|
|
179
179
|
export declare function instanceOfBlobWithMeta(object: any): object is BlobWithMeta;
|
|
180
180
|
export declare class BlobWithMetaApiResponse {
|
package/order-log/src/runtime.js
CHANGED
|
@@ -560,20 +560,16 @@ var BlobWithMetaApiResponse = /** @class */ (function () {
|
|
|
560
560
|
;
|
|
561
561
|
BlobWithMetaApiResponse.prototype.extractFilename = function (headers) {
|
|
562
562
|
var headerName = 'Content-Disposition';
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
var filenameRegex = /filename\*?=['"]?(?:UTF-\d['"]*)?([^;\r\n"']*)['"]?;?/;
|
|
566
|
-
var matches = filenameRegex.exec(headerValue);
|
|
567
|
-
if (matches != null && matches[1]) {
|
|
568
|
-
return matches[1];
|
|
569
|
-
}
|
|
570
|
-
else {
|
|
571
|
-
return undefined;
|
|
572
|
-
}
|
|
573
|
-
}
|
|
574
|
-
else {
|
|
563
|
+
var headerValue = headers.get(headerName);
|
|
564
|
+
if (headerValue == null) {
|
|
575
565
|
return undefined;
|
|
576
566
|
}
|
|
567
|
+
var filenameRegex = /filename\*?=['"]?(?:UTF-\d['"]*)?([^;\r\n"']*)['"]?;?/;
|
|
568
|
+
var matches = filenameRegex.exec(headerValue);
|
|
569
|
+
if (matches != null && matches[1]) {
|
|
570
|
+
return matches[1];
|
|
571
|
+
}
|
|
572
|
+
return undefined;
|
|
577
573
|
};
|
|
578
574
|
return BlobWithMetaApiResponse;
|
|
579
575
|
}());
|
|
@@ -127,7 +127,7 @@ export interface RequestOpts {
|
|
|
127
127
|
export declare function querystring(params: HTTPQuery, prefix?: string): string;
|
|
128
128
|
export declare function mapValues(data: any, fn: (item: any) => any): {};
|
|
129
129
|
export declare function canConsumeForm(consumes: Consume[]): boolean;
|
|
130
|
-
export declare function toDateISOString(date:
|
|
130
|
+
export declare function toDateISOString<D extends Date | null | undefined>(date: D): D extends Date ? string : D;
|
|
131
131
|
export interface Consume {
|
|
132
132
|
contentType: string;
|
|
133
133
|
}
|
|
@@ -174,7 +174,7 @@ export declare class VoidApiResponse {
|
|
|
174
174
|
}
|
|
175
175
|
export interface BlobWithMeta {
|
|
176
176
|
blob: Blob;
|
|
177
|
-
filename
|
|
177
|
+
filename?: string;
|
|
178
178
|
}
|
|
179
179
|
export declare function instanceOfBlobWithMeta(object: any): object is BlobWithMeta;
|
|
180
180
|
export declare class BlobWithMetaApiResponse {
|
|
@@ -560,20 +560,16 @@ var BlobWithMetaApiResponse = /** @class */ (function () {
|
|
|
560
560
|
;
|
|
561
561
|
BlobWithMetaApiResponse.prototype.extractFilename = function (headers) {
|
|
562
562
|
var headerName = 'Content-Disposition';
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
var filenameRegex = /filename\*?=['"]?(?:UTF-\d['"]*)?([^;\r\n"']*)['"]?;?/;
|
|
566
|
-
var matches = filenameRegex.exec(headerValue);
|
|
567
|
-
if (matches != null && matches[1]) {
|
|
568
|
-
return matches[1];
|
|
569
|
-
}
|
|
570
|
-
else {
|
|
571
|
-
return undefined;
|
|
572
|
-
}
|
|
573
|
-
}
|
|
574
|
-
else {
|
|
563
|
+
var headerValue = headers.get(headerName);
|
|
564
|
+
if (headerValue == null) {
|
|
575
565
|
return undefined;
|
|
576
566
|
}
|
|
567
|
+
var filenameRegex = /filename\*?=['"]?(?:UTF-\d['"]*)?([^;\r\n"']*)['"]?;?/;
|
|
568
|
+
var matches = filenameRegex.exec(headerValue);
|
|
569
|
+
if (matches != null && matches[1]) {
|
|
570
|
+
return matches[1];
|
|
571
|
+
}
|
|
572
|
+
return undefined;
|
|
577
573
|
};
|
|
578
574
|
return BlobWithMetaApiResponse;
|
|
579
575
|
}());
|
package/package.json
CHANGED
|
@@ -25,12 +25,12 @@ export interface UpdateProductRequest {
|
|
|
25
25
|
*/
|
|
26
26
|
export declare class ManageProductApi extends runtime.BaseAPI {
|
|
27
27
|
/**
|
|
28
|
-
* Required parameter for creation of product from external provider: - barcodes.principal Required parameters for creation of product from scratch : - name - barcodes - dci - laboratoryId - unitWeight - vatId - unitPrice -
|
|
28
|
+
* Required parameter for creation of product from external provider: - barcodes.principal Required parameters for creation of product from scratch : - name - barcodes - dci - laboratoryId - unitWeight - vatId - unitPrice - type
|
|
29
29
|
* Create product from product form
|
|
30
30
|
*/
|
|
31
31
|
createProductRaw(requestParameters: CreateProductRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Product | runtime.BlobWithMeta>>;
|
|
32
32
|
/**
|
|
33
|
-
* Required parameter for creation of product from external provider: - barcodes.principal Required parameters for creation of product from scratch : - name - barcodes - dci - laboratoryId - unitWeight - vatId - unitPrice -
|
|
33
|
+
* Required parameter for creation of product from external provider: - barcodes.principal Required parameters for creation of product from scratch : - name - barcodes - dci - laboratoryId - unitWeight - vatId - unitPrice - type
|
|
34
34
|
* Create product from product form
|
|
35
35
|
*/
|
|
36
36
|
createProduct(requestParameters: CreateProductRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Product | runtime.BlobWithMeta>;
|
|
@@ -76,7 +76,7 @@ var ManageProductApi = /** @class */ (function (_super) {
|
|
|
76
76
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
77
|
}
|
|
78
78
|
/**
|
|
79
|
-
* Required parameter for creation of product from external provider: - barcodes.principal Required parameters for creation of product from scratch : - name - barcodes - dci - laboratoryId - unitWeight - vatId - unitPrice -
|
|
79
|
+
* Required parameter for creation of product from external provider: - barcodes.principal Required parameters for creation of product from scratch : - name - barcodes - dci - laboratoryId - unitWeight - vatId - unitPrice - type
|
|
80
80
|
* Create product from product form
|
|
81
81
|
*/
|
|
82
82
|
ManageProductApi.prototype.createProductRaw = function (requestParameters, initOverrides) {
|
|
@@ -144,7 +144,7 @@ var ManageProductApi = /** @class */ (function (_super) {
|
|
|
144
144
|
});
|
|
145
145
|
};
|
|
146
146
|
/**
|
|
147
|
-
* Required parameter for creation of product from external provider: - barcodes.principal Required parameters for creation of product from scratch : - name - barcodes - dci - laboratoryId - unitWeight - vatId - unitPrice -
|
|
147
|
+
* Required parameter for creation of product from external provider: - barcodes.principal Required parameters for creation of product from scratch : - name - barcodes - dci - laboratoryId - unitWeight - vatId - unitPrice - type
|
|
148
148
|
* Create product from product form
|
|
149
149
|
*/
|
|
150
150
|
ManageProductApi.prototype.createProduct = function (requestParameters, initOverrides) {
|
|
@@ -21,5 +21,4 @@ __exportStar(require("./ManageProductImageApi"), exports);
|
|
|
21
21
|
__exportStar(require("./ManageProductProscriptionApi"), exports);
|
|
22
22
|
__exportStar(require("./SearchProductApi"), exports);
|
|
23
23
|
__exportStar(require("./SearchProductImageApi"), exports);
|
|
24
|
-
__exportStar(require("./SearchProductMetadataApi"), exports);
|
|
25
24
|
__exportStar(require("./SearchProductProscriptionApi"), exports);
|
|
@@ -9,7 +9,9 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { ProductSecondaryType } from './ProductSecondaryType';
|
|
12
13
|
import type { ProductStorageType } from './ProductStorageType';
|
|
14
|
+
import type { ProductType } from './ProductType';
|
|
13
15
|
import type { ProductMarketStatus } from './ProductMarketStatus';
|
|
14
16
|
import type { ProductStatus } from './ProductStatus';
|
|
15
17
|
import type { Barcodes } from './Barcodes';
|
|
@@ -63,17 +65,17 @@ export interface ProductCreationOrUpdateParameters {
|
|
|
63
65
|
*/
|
|
64
66
|
unitPriceEffectiveDate?: Date | null;
|
|
65
67
|
/**
|
|
66
|
-
*
|
|
67
|
-
* @type {
|
|
68
|
+
*
|
|
69
|
+
* @type {ProductType}
|
|
68
70
|
* @memberof ProductCreationOrUpdateParameters
|
|
69
71
|
*/
|
|
70
|
-
|
|
72
|
+
type?: ProductType | null;
|
|
71
73
|
/**
|
|
72
|
-
*
|
|
73
|
-
* @type {
|
|
74
|
+
*
|
|
75
|
+
* @type {ProductSecondaryType}
|
|
74
76
|
* @memberof ProductCreationOrUpdateParameters
|
|
75
77
|
*/
|
|
76
|
-
|
|
78
|
+
secondaryType?: ProductSecondaryType | null;
|
|
77
79
|
/**
|
|
78
80
|
* Laboratory ID
|
|
79
81
|
* @type {number}
|
|
@@ -14,7 +14,9 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.ProductCreationOrUpdateParametersToJSON = exports.ProductCreationOrUpdateParametersFromJSONTyped = exports.ProductCreationOrUpdateParametersFromJSON = exports.instanceOfProductCreationOrUpdateParameters = void 0;
|
|
17
|
+
var ProductSecondaryType_1 = require("./ProductSecondaryType");
|
|
17
18
|
var ProductStorageType_1 = require("./ProductStorageType");
|
|
19
|
+
var ProductType_1 = require("./ProductType");
|
|
18
20
|
var ProductMarketStatus_1 = require("./ProductMarketStatus");
|
|
19
21
|
var ProductStatus_1 = require("./ProductStatus");
|
|
20
22
|
var Barcodes_1 = require("./Barcodes");
|
|
@@ -42,8 +44,8 @@ function ProductCreationOrUpdateParametersFromJSONTyped(json, ignoreDiscriminato
|
|
|
42
44
|
'unitWeight': json['unitWeight'],
|
|
43
45
|
'unitPrice': json['unitPrice'],
|
|
44
46
|
'unitPriceEffectiveDate': (json['unitPriceEffectiveDate'] === null || json['unitPriceEffectiveDate'] === undefined) ? json['unitPriceEffectiveDate'] : new Date(json['unitPriceEffectiveDate']),
|
|
45
|
-
'
|
|
46
|
-
'
|
|
47
|
+
'type': (json['type'] === null || json['type'] === undefined) ? json['type'] : (0, ProductType_1.ProductTypeFromJSON)(json['type']),
|
|
48
|
+
'secondaryType': (json['secondaryType'] === null || json['secondaryType'] === undefined) ? json['secondaryType'] : (0, ProductSecondaryType_1.ProductSecondaryTypeFromJSON)(json['secondaryType']),
|
|
47
49
|
'laboratoryId': json['laboratoryId'],
|
|
48
50
|
'vatId': json['vatId'],
|
|
49
51
|
'narcoticPrescription': json['narcoticPrescription'],
|
|
@@ -69,8 +71,8 @@ function ProductCreationOrUpdateParametersToJSON(value) {
|
|
|
69
71
|
'unitWeight': value['unitWeight'],
|
|
70
72
|
'unitPrice': value['unitPrice'],
|
|
71
73
|
'unitPriceEffectiveDate': (value['unitPriceEffectiveDate'] === null || value['unitPriceEffectiveDate'] === undefined) ? value['unitPriceEffectiveDate'] : value['unitPriceEffectiveDate'].toISOString(),
|
|
72
|
-
'
|
|
73
|
-
'
|
|
74
|
+
'type': (0, ProductType_1.ProductTypeToJSON)(value['type']),
|
|
75
|
+
'secondaryType': (0, ProductSecondaryType_1.ProductSecondaryTypeToJSON)(value['secondaryType']),
|
|
74
76
|
'laboratoryId': value['laboratoryId'],
|
|
75
77
|
'vatId': value['vatId'],
|
|
76
78
|
'narcoticPrescription': value['narcoticPrescription'],
|
|
@@ -12,26 +12,14 @@
|
|
|
12
12
|
/**
|
|
13
13
|
*
|
|
14
14
|
* @export
|
|
15
|
-
* @interface ProductSecondaryType
|
|
16
15
|
*/
|
|
17
|
-
export
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* Readable name for display
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof ProductSecondaryType
|
|
28
|
-
*/
|
|
29
|
-
name?: string;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Check if a given object implements the ProductSecondaryType interface.
|
|
33
|
-
*/
|
|
34
|
-
export declare function instanceOfProductSecondaryType(value: object): value is ProductSecondaryType;
|
|
16
|
+
export declare const ProductSecondaryType: {
|
|
17
|
+
readonly OTC: "OTC";
|
|
18
|
+
readonly VIGNETTE: "VIGNETTE";
|
|
19
|
+
readonly NR: "NR";
|
|
20
|
+
};
|
|
21
|
+
export declare type ProductSecondaryType = typeof ProductSecondaryType[keyof typeof ProductSecondaryType];
|
|
22
|
+
export declare function instanceOfProductSecondaryType(value: any): boolean;
|
|
35
23
|
export declare function ProductSecondaryTypeFromJSON(json: any): ProductSecondaryType;
|
|
36
24
|
export declare function ProductSecondaryTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductSecondaryType;
|
|
37
25
|
export declare function ProductSecondaryTypeToJSON(value?: ProductSecondaryType | null): any;
|
|
@@ -13,12 +13,25 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.ProductSecondaryTypeToJSON = exports.ProductSecondaryTypeFromJSONTyped = exports.ProductSecondaryTypeFromJSON = exports.instanceOfProductSecondaryType = void 0;
|
|
16
|
+
exports.ProductSecondaryTypeToJSON = exports.ProductSecondaryTypeFromJSONTyped = exports.ProductSecondaryTypeFromJSON = exports.instanceOfProductSecondaryType = exports.ProductSecondaryType = void 0;
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
19
20
|
*/
|
|
21
|
+
exports.ProductSecondaryType = {
|
|
22
|
+
OTC: 'OTC',
|
|
23
|
+
VIGNETTE: 'VIGNETTE',
|
|
24
|
+
NR: 'NR'
|
|
25
|
+
};
|
|
20
26
|
function instanceOfProductSecondaryType(value) {
|
|
21
|
-
|
|
27
|
+
for (var key in exports.ProductSecondaryType) {
|
|
28
|
+
if (Object.prototype.hasOwnProperty.call(exports.ProductSecondaryType, key)) {
|
|
29
|
+
if (exports.ProductSecondaryType[key] === value) {
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
return false;
|
|
22
35
|
}
|
|
23
36
|
exports.instanceOfProductSecondaryType = instanceOfProductSecondaryType;
|
|
24
37
|
function ProductSecondaryTypeFromJSON(json) {
|
|
@@ -26,22 +39,10 @@ function ProductSecondaryTypeFromJSON(json) {
|
|
|
26
39
|
}
|
|
27
40
|
exports.ProductSecondaryTypeFromJSON = ProductSecondaryTypeFromJSON;
|
|
28
41
|
function ProductSecondaryTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
-
|
|
30
|
-
return json;
|
|
31
|
-
}
|
|
32
|
-
return {
|
|
33
|
-
'id': json['id'],
|
|
34
|
-
'name': json['name'],
|
|
35
|
-
};
|
|
42
|
+
return json;
|
|
36
43
|
}
|
|
37
44
|
exports.ProductSecondaryTypeFromJSONTyped = ProductSecondaryTypeFromJSONTyped;
|
|
38
45
|
function ProductSecondaryTypeToJSON(value) {
|
|
39
|
-
|
|
40
|
-
return value;
|
|
41
|
-
}
|
|
42
|
-
return {
|
|
43
|
-
'id': value['id'],
|
|
44
|
-
'name': value['name'],
|
|
45
|
-
};
|
|
46
|
+
return value;
|
|
46
47
|
}
|
|
47
48
|
exports.ProductSecondaryTypeToJSON = ProductSecondaryTypeToJSON;
|