@lcdp/api-react-rest-client 3.3.0-LDS-5710-move-codegen-in-frontend.25448746177 → 3.3.0-develop.25665945015

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 +12 -8
  3. package/banking-operation/src/runtime.d.ts +2 -2
  4. package/banking-operation/src/runtime.js +12 -8
  5. package/catalog/src/runtime.d.ts +2 -2
  6. package/catalog/src/runtime.js +12 -8
  7. package/challenge/src/runtime.d.ts +2 -2
  8. package/challenge/src/runtime.js +12 -8
  9. package/chargebee-hook/src/runtime.d.ts +2 -2
  10. package/chargebee-hook/src/runtime.js +12 -8
  11. package/configuration/src/runtime.d.ts +2 -2
  12. package/configuration/src/runtime.js +12 -8
  13. package/content/src/runtime.d.ts +2 -2
  14. package/content/src/runtime.js +12 -8
  15. package/factory/src/runtime.d.ts +2 -2
  16. package/factory/src/runtime.js +12 -8
  17. package/favorite/src/runtime.d.ts +2 -2
  18. package/favorite/src/runtime.js +12 -8
  19. package/geo/src/runtime.d.ts +2 -2
  20. package/geo/src/runtime.js +12 -8
  21. package/inventory/src/runtime.d.ts +2 -2
  22. package/inventory/src/runtime.js +12 -8
  23. package/invoice/src/runtime.d.ts +2 -2
  24. package/invoice/src/runtime.js +12 -8
  25. package/laboratory/src/runtime.d.ts +2 -2
  26. package/laboratory/src/runtime.js +12 -8
  27. package/laboratory-store/src/runtime.d.ts +2 -2
  28. package/laboratory-store/src/runtime.js +12 -8
  29. package/laboratory-store-log/src/runtime.d.ts +2 -2
  30. package/laboratory-store-log/src/runtime.js +12 -8
  31. package/lexicon/src/runtime.d.ts +2 -2
  32. package/lexicon/src/runtime.js +12 -8
  33. package/litigation/src/runtime.d.ts +2 -2
  34. package/litigation/src/runtime.js +12 -8
  35. package/magic-cart/src/runtime.d.ts +2 -2
  36. package/magic-cart/src/runtime.js +12 -8
  37. package/mandate/src/runtime.d.ts +2 -2
  38. package/mandate/src/runtime.js +12 -8
  39. package/mangopay-hook/src/runtime.d.ts +2 -2
  40. package/mangopay-hook/src/runtime.js +12 -8
  41. package/message/src/runtime.d.ts +2 -2
  42. package/message/src/runtime.js +12 -8
  43. package/notification/src/runtime.d.ts +2 -2
  44. package/notification/src/runtime.js +12 -8
  45. package/order/src/runtime.d.ts +2 -2
  46. package/order/src/runtime.js +12 -8
  47. package/order-log/src/runtime.d.ts +2 -2
  48. package/order-log/src/runtime.js +12 -8
  49. package/outrage-message/src/runtime.d.ts +2 -2
  50. package/outrage-message/src/runtime.js +12 -8
  51. package/package.json +1 -1
  52. package/product/src/runtime.d.ts +2 -2
  53. package/product/src/runtime.js +12 -8
  54. package/pub/src/runtime.d.ts +2 -2
  55. package/pub/src/runtime.js +12 -8
  56. package/recommendation/src/runtime.d.ts +2 -2
  57. package/recommendation/src/runtime.js +12 -8
  58. package/rfx/src/runtime.d.ts +2 -2
  59. package/rfx/src/runtime.js +12 -8
  60. package/sale-offer/src/runtime.d.ts +2 -2
  61. package/sale-offer/src/runtime.js +12 -8
  62. package/sale-offer-log/src/runtime.d.ts +2 -2
  63. package/sale-offer-log/src/runtime.js +12 -8
  64. package/servant/src/runtime.d.ts +2 -2
  65. package/servant/src/runtime.js +12 -8
  66. package/shipment/src/runtime.d.ts +2 -2
  67. package/shipment/src/runtime.js +12 -8
  68. package/shopping-cart/src/runtime.d.ts +2 -2
  69. package/shopping-cart/src/runtime.js +12 -8
  70. package/smuggler/src/runtime.d.ts +2 -2
  71. package/smuggler/src/runtime.js +12 -8
  72. package/statistic/src/runtime.d.ts +2 -2
  73. package/statistic/src/runtime.js +12 -8
  74. package/subscription/src/runtime.d.ts +2 -2
  75. package/subscription/src/runtime.js +12 -8
  76. package/third-party/src/runtime.d.ts +2 -2
  77. package/third-party/src/runtime.js +12 -8
  78. package/thread/src/runtime.d.ts +2 -2
  79. package/thread/src/runtime.js +12 -8
  80. package/ubo/src/runtime.d.ts +2 -2
  81. package/ubo/src/runtime.js +12 -8
  82. package/user/src/runtime.d.ts +2 -2
  83. package/user/src/runtime.js +12 -8
  84. package/wish/src/runtime.d.ts +2 -2
  85. package/wish/src/runtime.js +12 -8
@@ -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<D extends Date | null | undefined>(date: D): D extends Date ? string : D;
130
+ export declare function toDateISOString(date: Date): string;
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,16 +560,20 @@ var BlobWithMetaApiResponse = /** @class */ (function () {
560
560
  ;
561
561
  BlobWithMetaApiResponse.prototype.extractFilename = function (headers) {
562
562
  var headerName = 'Content-Disposition';
563
- var headerValue = headers.get(headerName);
564
- if (headerValue == null) {
565
- return undefined;
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
+ }
566
573
  }
567
- var filenameRegex = /filename\*?=['"]?(?:UTF-\d['"]*)?([^;\r\n"']*)['"]?;?/;
568
- var matches = filenameRegex.exec(headerValue);
569
- if (matches != null && matches[1]) {
570
- return matches[1];
574
+ else {
575
+ return undefined;
571
576
  }
572
- return undefined;
573
577
  };
574
578
  return BlobWithMetaApiResponse;
575
579
  }());
@@ -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<D extends Date | null | undefined>(date: D): D extends Date ? string : D;
130
+ export declare function toDateISOString(date: Date): string;
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,16 +560,20 @@ var BlobWithMetaApiResponse = /** @class */ (function () {
560
560
  ;
561
561
  BlobWithMetaApiResponse.prototype.extractFilename = function (headers) {
562
562
  var headerName = 'Content-Disposition';
563
- var headerValue = headers.get(headerName);
564
- if (headerValue == null) {
565
- return undefined;
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
+ }
566
573
  }
567
- var filenameRegex = /filename\*?=['"]?(?:UTF-\d['"]*)?([^;\r\n"']*)['"]?;?/;
568
- var matches = filenameRegex.exec(headerValue);
569
- if (matches != null && matches[1]) {
570
- return matches[1];
574
+ else {
575
+ return undefined;
571
576
  }
572
- return undefined;
573
577
  };
574
578
  return BlobWithMetaApiResponse;
575
579
  }());
@@ -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<D extends Date | null | undefined>(date: D): D extends Date ? string : D;
130
+ export declare function toDateISOString(date: Date): string;
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,16 +560,20 @@ var BlobWithMetaApiResponse = /** @class */ (function () {
560
560
  ;
561
561
  BlobWithMetaApiResponse.prototype.extractFilename = function (headers) {
562
562
  var headerName = 'Content-Disposition';
563
- var headerValue = headers.get(headerName);
564
- if (headerValue == null) {
565
- return undefined;
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
+ }
566
573
  }
567
- var filenameRegex = /filename\*?=['"]?(?:UTF-\d['"]*)?([^;\r\n"']*)['"]?;?/;
568
- var matches = filenameRegex.exec(headerValue);
569
- if (matches != null && matches[1]) {
570
- return matches[1];
574
+ else {
575
+ return undefined;
571
576
  }
572
- return undefined;
573
577
  };
574
578
  return BlobWithMetaApiResponse;
575
579
  }());