@lcdp/api-react-rest-client 2.11.5 → 2.12.0

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 (98) hide show
  1. package/auth/src/models/PagingMetadata.d.ts +4 -4
  2. package/auth/src/models/PagingMetadata.js +0 -4
  3. package/banking-operation/src/models/PagingMetadata.d.ts +4 -4
  4. package/banking-operation/src/models/PagingMetadata.js +0 -4
  5. package/catalog/src/models/PagingMetadata.d.ts +4 -4
  6. package/catalog/src/models/PagingMetadata.js +0 -4
  7. package/factory/src/models/PagingMetadata.d.ts +4 -4
  8. package/factory/src/models/PagingMetadata.js +0 -4
  9. package/favorite/src/models/PagingMetadata.d.ts +4 -4
  10. package/favorite/src/models/PagingMetadata.js +0 -4
  11. package/inventory/src/apis/ManageInventoryApi.d.ts +1 -28
  12. package/inventory/src/apis/ManageInventoryApi.js +8 -165
  13. package/inventory/src/apis/ManageInventorySynchronizationApi.d.ts +93 -0
  14. package/inventory/src/apis/ManageInventorySynchronizationApi.js +515 -0
  15. package/inventory/src/apis/index.d.ts +1 -0
  16. package/inventory/src/apis/index.js +1 -0
  17. package/inventory/src/models/AnyBuffer.d.ts +26 -0
  18. package/inventory/src/models/AnyBuffer.js +50 -0
  19. package/inventory/src/models/Buffer.d.ts +33 -0
  20. package/inventory/src/models/Buffer.js +47 -0
  21. package/inventory/src/models/FixedBuffer.d.ts +37 -0
  22. package/inventory/src/models/FixedBuffer.js +49 -0
  23. package/inventory/src/models/IdentifiedSynchronization.d.ts +52 -0
  24. package/inventory/src/models/IdentifiedSynchronization.js +62 -0
  25. package/inventory/src/models/PagingMetadata.d.ts +4 -4
  26. package/inventory/src/models/PagingMetadata.js +0 -4
  27. package/inventory/src/models/SalesForecastBuffer.d.ts +37 -0
  28. package/inventory/src/models/SalesForecastBuffer.js +49 -0
  29. package/inventory/src/models/Synchronization.d.ts +48 -0
  30. package/inventory/src/models/Synchronization.js +58 -0
  31. package/inventory/src/models/SynchronizationMode.d.ts +3 -3
  32. package/inventory/src/models/SynchronizationMode.js +3 -3
  33. package/inventory/src/models/SynchronizationProposal.d.ts +56 -0
  34. package/inventory/src/models/SynchronizationProposal.js +63 -0
  35. package/inventory/src/models/index.d.ts +7 -1
  36. package/inventory/src/models/index.js +7 -1
  37. package/invoice/src/models/Invoice.d.ts +2 -2
  38. package/invoice/src/models/OrderTally.d.ts +4 -4
  39. package/invoice/src/models/PagingMetadata.d.ts +4 -4
  40. package/invoice/src/models/PagingMetadata.js +0 -4
  41. package/laboratory/src/models/PagingMetadata.d.ts +4 -4
  42. package/laboratory/src/models/PagingMetadata.js +0 -4
  43. package/laboratory-store/src/models/PagingMetadata.d.ts +4 -4
  44. package/laboratory-store/src/models/PagingMetadata.js +0 -4
  45. package/laboratory-store-log/src/models/PagingMetadata.d.ts +4 -4
  46. package/laboratory-store-log/src/models/PagingMetadata.js +0 -4
  47. package/lexicon/src/models/PagingMetadata.d.ts +4 -4
  48. package/lexicon/src/models/PagingMetadata.js +0 -4
  49. package/message/src/models/PagingMetadata.d.ts +4 -4
  50. package/message/src/models/PagingMetadata.js +0 -4
  51. package/notification/src/models/PagingMetadata.d.ts +4 -4
  52. package/notification/src/models/PagingMetadata.js +0 -4
  53. package/order/src/models/Order.d.ts +1 -1
  54. package/order/src/models/Order.js +0 -2
  55. package/order/src/models/PagingMetadata.d.ts +4 -4
  56. package/order/src/models/PagingMetadata.js +0 -4
  57. package/order/src/models/UserLink.d.ts +1 -1
  58. package/order-log/src/models/PagingMetadata.d.ts +4 -4
  59. package/order-log/src/models/PagingMetadata.js +0 -4
  60. package/outrage-message/src/models/PagingMetadata.d.ts +4 -4
  61. package/outrage-message/src/models/PagingMetadata.js +0 -4
  62. package/package.json +1 -1
  63. package/product/src/models/PagingMetadata.d.ts +4 -4
  64. package/product/src/models/PagingMetadata.js +0 -4
  65. package/pub/src/models/Image.d.ts +0 -6
  66. package/pub/src/models/Image.js +0 -4
  67. package/pub/src/models/PagingMetadata.d.ts +4 -4
  68. package/pub/src/models/PagingMetadata.js +0 -4
  69. package/recommendation/src/models/PagingMetadata.d.ts +4 -4
  70. package/recommendation/src/models/PagingMetadata.js +0 -4
  71. package/rfx/src/models/PagingMetadata.d.ts +4 -4
  72. package/rfx/src/models/PagingMetadata.js +0 -4
  73. package/sale-offer/src/models/PagingMetadata.d.ts +4 -4
  74. package/sale-offer/src/models/PagingMetadata.js +0 -4
  75. package/sale-offer-log/src/models/PagingMetadata.d.ts +4 -4
  76. package/sale-offer-log/src/models/PagingMetadata.js +0 -4
  77. package/shipment/src/models/PagingMetadata.d.ts +4 -4
  78. package/shipment/src/models/PagingMetadata.js +0 -4
  79. package/shopping-cart/src/models/ProductLink.d.ts +1 -1
  80. package/statistic/src/models/PagingMetadata.d.ts +4 -4
  81. package/statistic/src/models/PagingMetadata.js +0 -4
  82. package/subscription/src/models/PagingMetadata.d.ts +4 -4
  83. package/subscription/src/models/PagingMetadata.js +0 -4
  84. package/thread/src/models/PagingMetadata.d.ts +4 -4
  85. package/thread/src/models/PagingMetadata.js +0 -4
  86. package/ubo/src/models/Birthplace.d.ts +38 -0
  87. package/ubo/src/models/Birthplace.js +52 -0
  88. package/ubo/src/models/Ubo.d.ts +3 -2
  89. package/ubo/src/models/Ubo.js +3 -2
  90. package/ubo/src/models/index.d.ts +1 -0
  91. package/ubo/src/models/index.js +1 -0
  92. package/user/src/models/PagingMetadata.d.ts +4 -4
  93. package/user/src/models/PagingMetadata.js +0 -4
  94. package/user/src/models/UserUpdateParameters.d.ts +1 -1
  95. package/wish/src/models/PagingMetadata.d.ts +4 -4
  96. package/wish/src/models/PagingMetadata.js +0 -4
  97. package/inventory/src/models/ActiveProductUpdateParameters.d.ts +0 -32
  98. package/inventory/src/models/ActiveProductUpdateParameters.js +0 -46
@@ -16,17 +16,17 @@
16
16
  */
17
17
  export interface PagingMetadata {
18
18
  /**
19
- * Current page requested. Start at 0.
19
+ * Current page requested. Start at 0. May not be present if user do not request specific page.
20
20
  * @type {number}
21
21
  * @memberof PagingMetadata
22
22
  */
23
- page: number;
23
+ page?: number;
24
24
  /**
25
- * Number of item per page. 0 means that you only required metdata.
25
+ * Number of item per page. 0 means that you only required metadata. May not be present if user do not request specific perPage.
26
26
  * @type {number}
27
27
  * @memberof PagingMetadata
28
28
  */
29
- perPage: number;
29
+ perPage?: number;
30
30
  /**
31
31
  * Total number of item visible by the client in the request
32
32
  * @type {number}
@@ -18,10 +18,6 @@ exports.PagingMetadataToJSON = exports.PagingMetadataFromJSONTyped = exports.Pag
18
18
  * Check if a given object implements the PagingMetadata interface.
19
19
  */
20
20
  function instanceOfPagingMetadata(value) {
21
- if (!('page' in value) || value['page'] === undefined)
22
- return false;
23
- if (!('perPage' in value) || value['perPage'] === undefined)
24
- return false;
25
21
  if (!('totalVisible' in value) || value['totalVisible'] === undefined)
26
22
  return false;
27
23
  if (!('totalFound' in value) || value['totalFound'] === undefined)
@@ -16,17 +16,17 @@
16
16
  */
17
17
  export interface PagingMetadata {
18
18
  /**
19
- * Current page requested. Start at 0.
19
+ * Current page requested. Start at 0. May not be present if user do not request specific page.
20
20
  * @type {number}
21
21
  * @memberof PagingMetadata
22
22
  */
23
- page: number;
23
+ page?: number;
24
24
  /**
25
- * Number of item per page. 0 means that you only required metdata.
25
+ * Number of item per page. 0 means that you only required metadata. May not be present if user do not request specific perPage.
26
26
  * @type {number}
27
27
  * @memberof PagingMetadata
28
28
  */
29
- perPage: number;
29
+ perPage?: number;
30
30
  /**
31
31
  * Total number of item visible by the client in the request
32
32
  * @type {number}
@@ -18,10 +18,6 @@ exports.PagingMetadataToJSON = exports.PagingMetadataFromJSONTyped = exports.Pag
18
18
  * Check if a given object implements the PagingMetadata interface.
19
19
  */
20
20
  function instanceOfPagingMetadata(value) {
21
- if (!('page' in value) || value['page'] === undefined)
22
- return false;
23
- if (!('perPage' in value) || value['perPage'] === undefined)
24
- return false;
25
21
  if (!('totalVisible' in value) || value['totalVisible'] === undefined)
26
22
  return false;
27
23
  if (!('totalFound' in value) || value['totalFound'] === undefined)
@@ -16,17 +16,17 @@
16
16
  */
17
17
  export interface PagingMetadata {
18
18
  /**
19
- * Current page requested. Start at 0.
19
+ * Current page requested. Start at 0. May not be present if user do not request specific page.
20
20
  * @type {number}
21
21
  * @memberof PagingMetadata
22
22
  */
23
- page: number;
23
+ page?: number;
24
24
  /**
25
- * Number of item per page. 0 means that you only required metdata.
25
+ * Number of item per page. 0 means that you only required metadata. May not be present if user do not request specific perPage.
26
26
  * @type {number}
27
27
  * @memberof PagingMetadata
28
28
  */
29
- perPage: number;
29
+ perPage?: number;
30
30
  /**
31
31
  * Total number of item visible by the client in the request
32
32
  * @type {number}
@@ -18,10 +18,6 @@ exports.PagingMetadataToJSON = exports.PagingMetadataFromJSONTyped = exports.Pag
18
18
  * Check if a given object implements the PagingMetadata interface.
19
19
  */
20
20
  function instanceOfPagingMetadata(value) {
21
- if (!('page' in value) || value['page'] === undefined)
22
- return false;
23
- if (!('perPage' in value) || value['perPage'] === undefined)
24
- return false;
25
21
  if (!('totalVisible' in value) || value['totalVisible'] === undefined)
26
22
  return false;
27
23
  if (!('totalFound' in value) || value['totalFound'] === undefined)
@@ -46,7 +46,7 @@ export interface ProductLink {
46
46
  * @type {string}
47
47
  * @memberof ProductLink
48
48
  */
49
- shortName: string;
49
+ shortName: string | null;
50
50
  /**
51
51
  *
52
52
  * @type {ProductStorageType}
@@ -16,17 +16,17 @@
16
16
  */
17
17
  export interface PagingMetadata {
18
18
  /**
19
- * Current page requested. Start at 0.
19
+ * Current page requested. Start at 0. May not be present if user do not request specific page.
20
20
  * @type {number}
21
21
  * @memberof PagingMetadata
22
22
  */
23
- page: number;
23
+ page?: number;
24
24
  /**
25
- * Number of item per page. 0 means that you only required metdata.
25
+ * Number of item per page. 0 means that you only required metadata. May not be present if user do not request specific perPage.
26
26
  * @type {number}
27
27
  * @memberof PagingMetadata
28
28
  */
29
- perPage: number;
29
+ perPage?: number;
30
30
  /**
31
31
  * Total number of item visible by the client in the request
32
32
  * @type {number}
@@ -18,10 +18,6 @@ exports.PagingMetadataToJSON = exports.PagingMetadataFromJSONTyped = exports.Pag
18
18
  * Check if a given object implements the PagingMetadata interface.
19
19
  */
20
20
  function instanceOfPagingMetadata(value) {
21
- if (!('page' in value) || value['page'] === undefined)
22
- return false;
23
- if (!('perPage' in value) || value['perPage'] === undefined)
24
- return false;
25
21
  if (!('totalVisible' in value) || value['totalVisible'] === undefined)
26
22
  return false;
27
23
  if (!('totalFound' in value) || value['totalFound'] === undefined)
@@ -16,17 +16,17 @@
16
16
  */
17
17
  export interface PagingMetadata {
18
18
  /**
19
- * Current page requested. Start at 0.
19
+ * Current page requested. Start at 0. May not be present if user do not request specific page.
20
20
  * @type {number}
21
21
  * @memberof PagingMetadata
22
22
  */
23
- page: number;
23
+ page?: number;
24
24
  /**
25
- * Number of item per page. 0 means that you only required metdata.
25
+ * Number of item per page. 0 means that you only required metadata. May not be present if user do not request specific perPage.
26
26
  * @type {number}
27
27
  * @memberof PagingMetadata
28
28
  */
29
- perPage: number;
29
+ perPage?: number;
30
30
  /**
31
31
  * Total number of item visible by the client in the request
32
32
  * @type {number}
@@ -18,10 +18,6 @@ exports.PagingMetadataToJSON = exports.PagingMetadataFromJSONTyped = exports.Pag
18
18
  * Check if a given object implements the PagingMetadata interface.
19
19
  */
20
20
  function instanceOfPagingMetadata(value) {
21
- if (!('page' in value) || value['page'] === undefined)
22
- return false;
23
- if (!('perPage' in value) || value['perPage'] === undefined)
24
- return false;
25
21
  if (!('totalVisible' in value) || value['totalVisible'] === undefined)
26
22
  return false;
27
23
  if (!('totalFound' in value) || value['totalFound'] === undefined)
@@ -16,17 +16,17 @@
16
16
  */
17
17
  export interface PagingMetadata {
18
18
  /**
19
- * Current page requested. Start at 0.
19
+ * Current page requested. Start at 0. May not be present if user do not request specific page.
20
20
  * @type {number}
21
21
  * @memberof PagingMetadata
22
22
  */
23
- page: number;
23
+ page?: number;
24
24
  /**
25
- * Number of item per page. 0 means that you only required metdata.
25
+ * Number of item per page. 0 means that you only required metadata. May not be present if user do not request specific perPage.
26
26
  * @type {number}
27
27
  * @memberof PagingMetadata
28
28
  */
29
- perPage: number;
29
+ perPage?: number;
30
30
  /**
31
31
  * Total number of item visible by the client in the request
32
32
  * @type {number}
@@ -18,10 +18,6 @@ exports.PagingMetadataToJSON = exports.PagingMetadataFromJSONTyped = exports.Pag
18
18
  * Check if a given object implements the PagingMetadata interface.
19
19
  */
20
20
  function instanceOfPagingMetadata(value) {
21
- if (!('page' in value) || value['page'] === undefined)
22
- return false;
23
- if (!('perPage' in value) || value['perPage'] === undefined)
24
- return false;
25
21
  if (!('totalVisible' in value) || value['totalVisible'] === undefined)
26
22
  return false;
27
23
  if (!('totalFound' in value) || value['totalFound'] === undefined)
@@ -0,0 +1,38 @@
1
+ /**
2
+ * lcdp-monolith-service
3
+ * This is the REST API of LCDP products
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
+ import type { Country } from './Country';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface Birthplace
17
+ */
18
+ export interface Birthplace {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof Birthplace
23
+ */
24
+ city: string;
25
+ /**
26
+ *
27
+ * @type {Country}
28
+ * @memberof Birthplace
29
+ */
30
+ country: Country;
31
+ }
32
+ /**
33
+ * Check if a given object implements the Birthplace interface.
34
+ */
35
+ export declare function instanceOfBirthplace(value: object): value is Birthplace;
36
+ export declare function BirthplaceFromJSON(json: any): Birthplace;
37
+ export declare function BirthplaceFromJSONTyped(json: any, ignoreDiscriminator: boolean): Birthplace;
38
+ export declare function BirthplaceToJSON(value?: Birthplace | null): any;
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * lcdp-monolith-service
6
+ * This is the REST API of LCDP products
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.BirthplaceToJSON = exports.BirthplaceFromJSONTyped = exports.BirthplaceFromJSON = exports.instanceOfBirthplace = void 0;
17
+ var Country_1 = require("./Country");
18
+ /**
19
+ * Check if a given object implements the Birthplace interface.
20
+ */
21
+ function instanceOfBirthplace(value) {
22
+ if (!('city' in value) || value['city'] === undefined)
23
+ return false;
24
+ if (!('country' in value) || value['country'] === undefined)
25
+ return false;
26
+ return true;
27
+ }
28
+ exports.instanceOfBirthplace = instanceOfBirthplace;
29
+ function BirthplaceFromJSON(json) {
30
+ return BirthplaceFromJSONTyped(json, false);
31
+ }
32
+ exports.BirthplaceFromJSON = BirthplaceFromJSON;
33
+ function BirthplaceFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'city': json['city'],
39
+ 'country': (json['country'] === null || json['country'] === undefined) ? json['country'] : (0, Country_1.CountryFromJSON)(json['country']),
40
+ };
41
+ }
42
+ exports.BirthplaceFromJSONTyped = BirthplaceFromJSONTyped;
43
+ function BirthplaceToJSON(value) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'city': value['city'],
49
+ 'country': (0, Country_1.CountryToJSON)(value['country']),
50
+ };
51
+ }
52
+ exports.BirthplaceToJSON = BirthplaceToJSON;
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { Address } from './Address';
13
+ import type { Birthplace } from './Birthplace';
13
14
  import type { Country } from './Country';
14
15
  /**
15
16
  *
@@ -55,10 +56,10 @@ export interface Ubo {
55
56
  birthday: Date;
56
57
  /**
57
58
  *
58
- * @type {Address}
59
+ * @type {Birthplace}
59
60
  * @memberof Ubo
60
61
  */
61
- birthplace: Address;
62
+ birthplace: Birthplace;
62
63
  }
63
64
  /**
64
65
  * Check if a given object implements the Ubo interface.
@@ -16,6 +16,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.UboToJSON = exports.UboFromJSONTyped = exports.UboFromJSON = exports.instanceOfUbo = void 0;
17
17
  var runtime_1 = require("../runtime");
18
18
  var Address_1 = require("./Address");
19
+ var Birthplace_1 = require("./Birthplace");
19
20
  var Country_1 = require("./Country");
20
21
  /**
21
22
  * Check if a given object implements the Ubo interface.
@@ -51,7 +52,7 @@ function UboFromJSONTyped(json, ignoreDiscriminator) {
51
52
  'address': (json['address'] === null || json['address'] === undefined) ? json['address'] : (0, Address_1.AddressFromJSON)(json['address']),
52
53
  'nationality': (json['nationality'] === null || json['nationality'] === undefined) ? json['nationality'] : (0, Country_1.CountryFromJSON)(json['nationality']),
53
54
  'birthday': (json['birthday'] === null || json['birthday'] === undefined) ? json['birthday'] : new Date(json['birthday']),
54
- 'birthplace': (json['birthplace'] === null || json['birthplace'] === undefined) ? json['birthplace'] : (0, Address_1.AddressFromJSON)(json['birthplace']),
55
+ 'birthplace': (json['birthplace'] === null || json['birthplace'] === undefined) ? json['birthplace'] : (0, Birthplace_1.BirthplaceFromJSON)(json['birthplace']),
55
56
  };
56
57
  }
57
58
  exports.UboFromJSONTyped = UboFromJSONTyped;
@@ -66,7 +67,7 @@ function UboToJSON(value) {
66
67
  'address': (0, Address_1.AddressToJSON)(value['address']),
67
68
  'nationality': (0, Country_1.CountryToJSON)(value['nationality']),
68
69
  'birthday': (value['birthday'] === null || value['birthday'] === undefined) ? value['birthday'] : (0, runtime_1.toDateISOString)(value['birthday']),
69
- 'birthplace': (0, Address_1.AddressToJSON)(value['birthplace']),
70
+ 'birthplace': (0, Birthplace_1.BirthplaceToJSON)(value['birthplace']),
70
71
  };
71
72
  }
72
73
  exports.UboToJSON = UboToJSON;
@@ -1,4 +1,5 @@
1
1
  export * from './Address';
2
+ export * from './Birthplace';
2
3
  export * from './Country';
3
4
  export * from './RestError';
4
5
  export * from './Ubo';
@@ -17,6 +17,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  /* tslint:disable */
18
18
  /* eslint-disable */
19
19
  __exportStar(require("./Address"), exports);
20
+ __exportStar(require("./Birthplace"), exports);
20
21
  __exportStar(require("./Country"), exports);
21
22
  __exportStar(require("./RestError"), exports);
22
23
  __exportStar(require("./Ubo"), exports);
@@ -16,17 +16,17 @@
16
16
  */
17
17
  export interface PagingMetadata {
18
18
  /**
19
- * Current page requested. Start at 0.
19
+ * Current page requested. Start at 0. May not be present if user do not request specific page.
20
20
  * @type {number}
21
21
  * @memberof PagingMetadata
22
22
  */
23
- page: number;
23
+ page?: number;
24
24
  /**
25
- * Number of item per page. 0 means that you only required metdata.
25
+ * Number of item per page. 0 means that you only required metadata. May not be present if user do not request specific perPage.
26
26
  * @type {number}
27
27
  * @memberof PagingMetadata
28
28
  */
29
- perPage: number;
29
+ perPage?: number;
30
30
  /**
31
31
  * Total number of item visible by the client in the request
32
32
  * @type {number}
@@ -18,10 +18,6 @@ exports.PagingMetadataToJSON = exports.PagingMetadataFromJSONTyped = exports.Pag
18
18
  * Check if a given object implements the PagingMetadata interface.
19
19
  */
20
20
  function instanceOfPagingMetadata(value) {
21
- if (!('page' in value) || value['page'] === undefined)
22
- return false;
23
- if (!('perPage' in value) || value['perPage'] === undefined)
24
- return false;
25
21
  if (!('totalVisible' in value) || value['totalVisible'] === undefined)
26
22
  return false;
27
23
  if (!('totalFound' in value) || value['totalFound'] === undefined)
@@ -63,7 +63,7 @@ export interface UserUpdateParameters {
63
63
  */
64
64
  nickname?: string;
65
65
  /**
66
- * User phone number
66
+ *
67
67
  * @type {string}
68
68
  * @memberof UserUpdateParameters
69
69
  */
@@ -16,17 +16,17 @@
16
16
  */
17
17
  export interface PagingMetadata {
18
18
  /**
19
- * Current page requested. Start at 0.
19
+ * Current page requested. Start at 0. May not be present if user do not request specific page.
20
20
  * @type {number}
21
21
  * @memberof PagingMetadata
22
22
  */
23
- page: number;
23
+ page?: number;
24
24
  /**
25
- * Number of item per page. 0 means that you only required metdata.
25
+ * Number of item per page. 0 means that you only required metadata. May not be present if user do not request specific perPage.
26
26
  * @type {number}
27
27
  * @memberof PagingMetadata
28
28
  */
29
- perPage: number;
29
+ perPage?: number;
30
30
  /**
31
31
  * Total number of item visible by the client in the request
32
32
  * @type {number}
@@ -18,10 +18,6 @@ exports.PagingMetadataToJSON = exports.PagingMetadataFromJSONTyped = exports.Pag
18
18
  * Check if a given object implements the PagingMetadata interface.
19
19
  */
20
20
  function instanceOfPagingMetadata(value) {
21
- if (!('page' in value) || value['page'] === undefined)
22
- return false;
23
- if (!('perPage' in value) || value['perPage'] === undefined)
24
- return false;
25
21
  if (!('totalVisible' in value) || value['totalVisible'] === undefined)
26
22
  return false;
27
23
  if (!('totalFound' in value) || value['totalFound'] === undefined)
@@ -1,32 +0,0 @@
1
- /**
2
- * lcdp-pharmaide-service
3
- * This is the REST API of LCDP products
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
- import type { SynchronizationMode } from './SynchronizationMode';
13
- /**
14
- *
15
- * @export
16
- * @interface ActiveProductUpdateParameters
17
- */
18
- export interface ActiveProductUpdateParameters {
19
- /**
20
- *
21
- * @type {SynchronizationMode}
22
- * @memberof ActiveProductUpdateParameters
23
- */
24
- synchronizationMode?: SynchronizationMode;
25
- }
26
- /**
27
- * Check if a given object implements the ActiveProductUpdateParameters interface.
28
- */
29
- export declare function instanceOfActiveProductUpdateParameters(value: object): value is ActiveProductUpdateParameters;
30
- export declare function ActiveProductUpdateParametersFromJSON(json: any): ActiveProductUpdateParameters;
31
- export declare function ActiveProductUpdateParametersFromJSONTyped(json: any, ignoreDiscriminator: boolean): ActiveProductUpdateParameters;
32
- export declare function ActiveProductUpdateParametersToJSON(value?: ActiveProductUpdateParameters | null): any;
@@ -1,46 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * lcdp-pharmaide-service
6
- * This is the REST API of LCDP products
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.ActiveProductUpdateParametersToJSON = exports.ActiveProductUpdateParametersFromJSONTyped = exports.ActiveProductUpdateParametersFromJSON = exports.instanceOfActiveProductUpdateParameters = void 0;
17
- var SynchronizationMode_1 = require("./SynchronizationMode");
18
- /**
19
- * Check if a given object implements the ActiveProductUpdateParameters interface.
20
- */
21
- function instanceOfActiveProductUpdateParameters(value) {
22
- return true;
23
- }
24
- exports.instanceOfActiveProductUpdateParameters = instanceOfActiveProductUpdateParameters;
25
- function ActiveProductUpdateParametersFromJSON(json) {
26
- return ActiveProductUpdateParametersFromJSONTyped(json, false);
27
- }
28
- exports.ActiveProductUpdateParametersFromJSON = ActiveProductUpdateParametersFromJSON;
29
- function ActiveProductUpdateParametersFromJSONTyped(json, ignoreDiscriminator) {
30
- if (json == null) {
31
- return json;
32
- }
33
- return {
34
- 'synchronizationMode': (json['synchronizationMode'] === null || json['synchronizationMode'] === undefined) ? json['synchronizationMode'] : (0, SynchronizationMode_1.SynchronizationModeFromJSON)(json['synchronizationMode']),
35
- };
36
- }
37
- exports.ActiveProductUpdateParametersFromJSONTyped = ActiveProductUpdateParametersFromJSONTyped;
38
- function ActiveProductUpdateParametersToJSON(value) {
39
- if (value == null) {
40
- return value;
41
- }
42
- return {
43
- 'synchronizationMode': (0, SynchronizationMode_1.SynchronizationModeToJSON)(value['synchronizationMode']),
44
- };
45
- }
46
- exports.ActiveProductUpdateParametersToJSON = ActiveProductUpdateParametersToJSON;