@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
package/content/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
|
}());
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { ProductType } from './ProductType';
|
|
12
13
|
import type { ProductStatus } from './ProductStatus';
|
|
13
14
|
/**
|
|
14
15
|
* Restrictions :
|
|
@@ -50,11 +51,11 @@ export interface Product {
|
|
|
50
51
|
*/
|
|
51
52
|
unitWeight?: number | null;
|
|
52
53
|
/**
|
|
53
|
-
*
|
|
54
|
-
* @type {
|
|
54
|
+
*
|
|
55
|
+
* @type {ProductType}
|
|
55
56
|
* @memberof Product
|
|
56
57
|
*/
|
|
57
|
-
|
|
58
|
+
type?: ProductType | null;
|
|
58
59
|
/**
|
|
59
60
|
* VAT identifier
|
|
60
61
|
* @type {string}
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.ProductToJSON = exports.ProductFromJSONTyped = exports.ProductFromJSON = exports.instanceOfProduct = void 0;
|
|
17
|
+
var ProductType_1 = require("./ProductType");
|
|
17
18
|
var ProductStatus_1 = require("./ProductStatus");
|
|
18
19
|
/**
|
|
19
20
|
* Check if a given object implements the Product interface.
|
|
@@ -36,7 +37,7 @@ function ProductFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
36
37
|
'dci': json['dci'],
|
|
37
38
|
'laboratoryName': json['laboratoryName'],
|
|
38
39
|
'unitWeight': json['unitWeight'],
|
|
39
|
-
'
|
|
40
|
+
'type': (json['type'] === null || json['type'] === undefined) ? json['type'] : (0, ProductType_1.ProductTypeFromJSON)(json['type']),
|
|
40
41
|
'vatId': json['vatId'],
|
|
41
42
|
'unitPrice': json['unitPrice'],
|
|
42
43
|
'status': (json['status'] === null || json['status'] === undefined) ? json['status'] : (0, ProductStatus_1.ProductStatusFromJSON)(json['status']),
|
|
@@ -53,7 +54,7 @@ function ProductToJSON(value) {
|
|
|
53
54
|
'dci': value['dci'],
|
|
54
55
|
'laboratoryName': value['laboratoryName'],
|
|
55
56
|
'unitWeight': value['unitWeight'],
|
|
56
|
-
'
|
|
57
|
+
'type': (0, ProductType_1.ProductTypeToJSON)(value['type']),
|
|
57
58
|
'vatId': value['vatId'],
|
|
58
59
|
'unitPrice': value['unitPrice'],
|
|
59
60
|
'status': (0, ProductStatus_1.ProductStatusToJSON)(value['status']),
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* lcdp-factory-service
|
|
3
|
+
* This is the REST API of LCDP factory
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: contact@lecomptoirdespharmacies.fr
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const ProductType: {
|
|
17
|
+
readonly PARAPHARMACIE: "PARAPHARMACIE";
|
|
18
|
+
readonly DM: "DM";
|
|
19
|
+
readonly MEDICAMENT: "MEDICAMENT";
|
|
20
|
+
readonly HOMEOPATHIE: "HOMEOPATHIE";
|
|
21
|
+
readonly VETERINAIRE: "VETERINAIRE";
|
|
22
|
+
readonly COMPLEMENT: "COMPLEMENT";
|
|
23
|
+
};
|
|
24
|
+
export declare type ProductType = typeof ProductType[keyof typeof ProductType];
|
|
25
|
+
export declare function instanceOfProductType(value: any): boolean;
|
|
26
|
+
export declare function ProductTypeFromJSON(json: any): ProductType;
|
|
27
|
+
export declare function ProductTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductType;
|
|
28
|
+
export declare function ProductTypeToJSON(value?: ProductType | null): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* lcdp-factory-service
|
|
6
|
+
* This is the REST API of LCDP factory
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
* Contact: contact@lecomptoirdespharmacies.fr
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.ProductTypeToJSON = exports.ProductTypeFromJSONTyped = exports.ProductTypeFromJSON = exports.instanceOfProductType = exports.ProductType = void 0;
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
*/
|
|
21
|
+
exports.ProductType = {
|
|
22
|
+
PARAPHARMACIE: 'PARAPHARMACIE',
|
|
23
|
+
DM: 'DM',
|
|
24
|
+
MEDICAMENT: 'MEDICAMENT',
|
|
25
|
+
HOMEOPATHIE: 'HOMEOPATHIE',
|
|
26
|
+
VETERINAIRE: 'VETERINAIRE',
|
|
27
|
+
COMPLEMENT: 'COMPLEMENT'
|
|
28
|
+
};
|
|
29
|
+
function instanceOfProductType(value) {
|
|
30
|
+
for (var key in exports.ProductType) {
|
|
31
|
+
if (Object.prototype.hasOwnProperty.call(exports.ProductType, key)) {
|
|
32
|
+
if (exports.ProductType[key] === value) {
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
return false;
|
|
38
|
+
}
|
|
39
|
+
exports.instanceOfProductType = instanceOfProductType;
|
|
40
|
+
function ProductTypeFromJSON(json) {
|
|
41
|
+
return ProductTypeFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
exports.ProductTypeFromJSON = ProductTypeFromJSON;
|
|
44
|
+
function ProductTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
exports.ProductTypeFromJSONTyped = ProductTypeFromJSONTyped;
|
|
48
|
+
function ProductTypeToJSON(value) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
exports.ProductTypeToJSON = ProductTypeToJSON;
|
|
@@ -16,6 +16,7 @@ export * from './PaginatedObject';
|
|
|
16
16
|
export * from './PagingMetadata';
|
|
17
17
|
export * from './Product';
|
|
18
18
|
export * from './ProductStatus';
|
|
19
|
+
export * from './ProductType';
|
|
19
20
|
export * from './ProductUpsertFactory';
|
|
20
21
|
export * from './ProductUpsertFactoryAllOfRecords';
|
|
21
22
|
export * from './QuotationDistributionMode';
|
|
@@ -34,6 +34,7 @@ __exportStar(require("./PaginatedObject"), exports);
|
|
|
34
34
|
__exportStar(require("./PagingMetadata"), exports);
|
|
35
35
|
__exportStar(require("./Product"), exports);
|
|
36
36
|
__exportStar(require("./ProductStatus"), exports);
|
|
37
|
+
__exportStar(require("./ProductType"), exports);
|
|
37
38
|
__exportStar(require("./ProductUpsertFactory"), exports);
|
|
38
39
|
__exportStar(require("./ProductUpsertFactoryAllOfRecords"), exports);
|
|
39
40
|
__exportStar(require("./QuotationDistributionMode"), exports);
|
package/factory/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/factory/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/favorite/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
|
}());
|
package/geo/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/geo/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/inventory/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
|
}());
|
package/invoice/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/invoice/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
|
}());
|
|
@@ -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
|
}());
|
|
@@ -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/lexicon/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/lexicon/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 {
|