@lcdp/api-react-rest-client 3.3.0-develop.25665945015 → 3.3.0-develop.25666068643

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.
Files changed (85) hide show
  1. package/auth/src/runtime.d.ts +2 -2
  2. package/auth/src/runtime.js +8 -12
  3. package/banking-operation/src/runtime.d.ts +2 -2
  4. package/banking-operation/src/runtime.js +8 -12
  5. package/catalog/src/runtime.d.ts +2 -2
  6. package/catalog/src/runtime.js +8 -12
  7. package/challenge/src/runtime.d.ts +2 -2
  8. package/challenge/src/runtime.js +8 -12
  9. package/chargebee-hook/src/runtime.d.ts +2 -2
  10. package/chargebee-hook/src/runtime.js +8 -12
  11. package/configuration/src/runtime.d.ts +2 -2
  12. package/configuration/src/runtime.js +8 -12
  13. package/content/src/runtime.d.ts +2 -2
  14. package/content/src/runtime.js +8 -12
  15. package/factory/src/runtime.d.ts +2 -2
  16. package/factory/src/runtime.js +8 -12
  17. package/favorite/src/runtime.d.ts +2 -2
  18. package/favorite/src/runtime.js +8 -12
  19. package/geo/src/runtime.d.ts +2 -2
  20. package/geo/src/runtime.js +8 -12
  21. package/inventory/src/runtime.d.ts +2 -2
  22. package/inventory/src/runtime.js +8 -12
  23. package/invoice/src/runtime.d.ts +2 -2
  24. package/invoice/src/runtime.js +8 -12
  25. package/laboratory/src/runtime.d.ts +2 -2
  26. package/laboratory/src/runtime.js +8 -12
  27. package/laboratory-store/src/runtime.d.ts +2 -2
  28. package/laboratory-store/src/runtime.js +8 -12
  29. package/laboratory-store-log/src/runtime.d.ts +2 -2
  30. package/laboratory-store-log/src/runtime.js +8 -12
  31. package/lexicon/src/runtime.d.ts +2 -2
  32. package/lexicon/src/runtime.js +8 -12
  33. package/litigation/src/runtime.d.ts +2 -2
  34. package/litigation/src/runtime.js +8 -12
  35. package/magic-cart/src/runtime.d.ts +2 -2
  36. package/magic-cart/src/runtime.js +8 -12
  37. package/mandate/src/runtime.d.ts +2 -2
  38. package/mandate/src/runtime.js +8 -12
  39. package/mangopay-hook/src/runtime.d.ts +2 -2
  40. package/mangopay-hook/src/runtime.js +8 -12
  41. package/message/src/runtime.d.ts +2 -2
  42. package/message/src/runtime.js +8 -12
  43. package/notification/src/runtime.d.ts +2 -2
  44. package/notification/src/runtime.js +8 -12
  45. package/order/src/runtime.d.ts +2 -2
  46. package/order/src/runtime.js +8 -12
  47. package/order-log/src/runtime.d.ts +2 -2
  48. package/order-log/src/runtime.js +8 -12
  49. package/outrage-message/src/runtime.d.ts +2 -2
  50. package/outrage-message/src/runtime.js +8 -12
  51. package/package.json +1 -1
  52. package/product/src/runtime.d.ts +2 -2
  53. package/product/src/runtime.js +8 -12
  54. package/pub/src/runtime.d.ts +2 -2
  55. package/pub/src/runtime.js +8 -12
  56. package/recommendation/src/runtime.d.ts +2 -2
  57. package/recommendation/src/runtime.js +8 -12
  58. package/rfx/src/runtime.d.ts +2 -2
  59. package/rfx/src/runtime.js +8 -12
  60. package/sale-offer/src/runtime.d.ts +2 -2
  61. package/sale-offer/src/runtime.js +8 -12
  62. package/sale-offer-log/src/runtime.d.ts +2 -2
  63. package/sale-offer-log/src/runtime.js +8 -12
  64. package/servant/src/runtime.d.ts +2 -2
  65. package/servant/src/runtime.js +8 -12
  66. package/shipment/src/runtime.d.ts +2 -2
  67. package/shipment/src/runtime.js +8 -12
  68. package/shopping-cart/src/runtime.d.ts +2 -2
  69. package/shopping-cart/src/runtime.js +8 -12
  70. package/smuggler/src/runtime.d.ts +2 -2
  71. package/smuggler/src/runtime.js +8 -12
  72. package/statistic/src/runtime.d.ts +2 -2
  73. package/statistic/src/runtime.js +8 -12
  74. package/subscription/src/runtime.d.ts +2 -2
  75. package/subscription/src/runtime.js +8 -12
  76. package/third-party/src/runtime.d.ts +2 -2
  77. package/third-party/src/runtime.js +8 -12
  78. package/thread/src/runtime.d.ts +2 -2
  79. package/thread/src/runtime.js +8 -12
  80. package/ubo/src/runtime.d.ts +2 -2
  81. package/ubo/src/runtime.js +8 -12
  82. package/user/src/runtime.d.ts +2 -2
  83. package/user/src/runtime.js +8 -12
  84. package/wish/src/runtime.d.ts +2 -2
  85. package/wish/src/runtime.js +8 -12
@@ -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: Date): string;
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: string;
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
- if (headers.has(headerName)) {
564
- var headerValue = headers.get(headerName);
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: Date): string;
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: string;
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
- if (headers.has(headerName)) {
564
- var headerValue = headers.get(headerName);
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: Date): string;
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: string;
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
- if (headers.has(headerName)) {
564
- var headerValue = headers.get(headerName);
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: Date): string;
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: string;
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
- if (headers.has(headerName)) {
564
- var headerValue = headers.get(headerName);
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: Date): string;
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: string;
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
- if (headers.has(headerName)) {
564
- var headerValue = headers.get(headerName);
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: Date): string;
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: string;
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
- if (headers.has(headerName)) {
564
- var headerValue = headers.get(headerName);
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: Date): string;
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: string;
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
- if (headers.has(headerName)) {
564
- var headerValue = headers.get(headerName);
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: Date): string;
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: string;
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
- if (headers.has(headerName)) {
564
- var headerValue = headers.get(headerName);
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: Date): string;
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: string;
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
- if (headers.has(headerName)) {
564
- var headerValue = headers.get(headerName);
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: Date): string;
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: string;
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
- if (headers.has(headerName)) {
564
- var headerValue = headers.get(headerName);
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: Date): string;
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: string;
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
- if (headers.has(headerName)) {
564
- var headerValue = headers.get(headerName);
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: Date): string;
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: string;
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
- if (headers.has(headerName)) {
564
- var headerValue = headers.get(headerName);
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: Date): string;
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: string;
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
- if (headers.has(headerName)) {
564
- var headerValue = headers.get(headerName);
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: Date): string;
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: string;
177
+ filename?: string;
178
178
  }
179
179
  export declare function instanceOfBlobWithMeta(object: any): object is BlobWithMeta;
180
180
  export declare class BlobWithMetaApiResponse {