@lcdp/api-react-rest-client 2.4.0 → 2.5.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 (84) hide show
  1. package/catalog/index.d.ts +1 -0
  2. package/catalog/index.js +17 -0
  3. package/catalog/src/apis/ManageProductInsightApi.d.ts +54 -0
  4. package/catalog/src/apis/ManageProductInsightApi.js +295 -0
  5. package/catalog/src/apis/SearchProductInsightApi.d.ts +54 -0
  6. package/catalog/src/apis/SearchProductInsightApi.js +249 -0
  7. package/catalog/src/apis/index.d.ts +2 -0
  8. package/catalog/src/apis/index.js +18 -0
  9. package/catalog/src/index.d.ts +3 -0
  10. package/catalog/src/index.js +19 -0
  11. package/catalog/src/models/Barcodes.d.ts +45 -0
  12. package/catalog/src/models/Barcodes.js +48 -0
  13. package/catalog/src/models/HttpLink.d.ts +27 -0
  14. package/catalog/src/models/HttpLink.js +41 -0
  15. package/catalog/src/models/LaboratoryLink.d.ts +34 -0
  16. package/catalog/src/models/LaboratoryLink.js +50 -0
  17. package/catalog/src/models/LaboratoryLinkAllOf.d.ts +33 -0
  18. package/catalog/src/models/LaboratoryLinkAllOf.js +44 -0
  19. package/catalog/src/models/PaginatedObject.d.ts +28 -0
  20. package/catalog/src/models/PaginatedObject.js +42 -0
  21. package/catalog/src/models/PaginatedProductInsights.d.ts +29 -0
  22. package/catalog/src/models/PaginatedProductInsights.js +50 -0
  23. package/catalog/src/models/PaginatedProductInsightsAllOf.d.ts +28 -0
  24. package/catalog/src/models/PaginatedProductInsightsAllOf.js +42 -0
  25. package/catalog/src/models/PagingMetadata.d.ts +45 -0
  26. package/catalog/src/models/PagingMetadata.js +47 -0
  27. package/catalog/src/models/ProductInsight.d.ts +106 -0
  28. package/catalog/src/models/ProductInsight.js +73 -0
  29. package/catalog/src/models/ProductInsightCreateOrUpdateParameters.d.ts +89 -0
  30. package/catalog/src/models/ProductInsightCreateOrUpdateParameters.js +64 -0
  31. package/catalog/src/models/ProductInsightJournal.d.ts +33 -0
  32. package/catalog/src/models/ProductInsightJournal.js +44 -0
  33. package/catalog/src/models/ProductSecondaryTypeLink.d.ts +34 -0
  34. package/catalog/src/models/ProductSecondaryTypeLink.js +50 -0
  35. package/catalog/src/models/ProductSecondaryTypeLinkAllOf.d.ts +33 -0
  36. package/catalog/src/models/ProductSecondaryTypeLinkAllOf.js +44 -0
  37. package/catalog/src/models/ProductStorageType.d.ts +25 -0
  38. package/catalog/src/models/ProductStorageType.js +40 -0
  39. package/catalog/src/models/ProductTypeLink.d.ts +34 -0
  40. package/catalog/src/models/ProductTypeLink.js +50 -0
  41. package/catalog/src/models/ProductTypeLinkAllOf.d.ts +33 -0
  42. package/catalog/src/models/ProductTypeLinkAllOf.js +44 -0
  43. package/catalog/src/models/RestError.d.ts +85 -0
  44. package/catalog/src/models/RestError.js +97 -0
  45. package/catalog/src/models/VatLink.d.ts +40 -0
  46. package/catalog/src/models/VatLink.js +50 -0
  47. package/catalog/src/models/VatLinkAllOf.d.ts +39 -0
  48. package/catalog/src/models/VatLinkAllOf.js +46 -0
  49. package/catalog/src/models/index.d.ts +19 -0
  50. package/catalog/src/models/index.js +35 -0
  51. package/catalog/src/runtime.d.ts +149 -0
  52. package/catalog/src/runtime.js +480 -0
  53. package/notification/src/apis/SearchNotificationTypeApi.d.ts +13 -2
  54. package/notification/src/apis/SearchNotificationTypeApi.js +82 -9
  55. package/package.json +1 -1
  56. package/product/src/apis/ManageProductApi.d.ts +2 -0
  57. package/product/src/apis/ManageProductApi.js +6 -0
  58. package/product/src/apis/SearchProductApi.d.ts +1 -0
  59. package/product/src/apis/SearchProductApi.js +3 -0
  60. package/product/src/apis/SearchProductMetadataApi.d.ts +22 -0
  61. package/product/src/apis/SearchProductMetadataApi.js +154 -8
  62. package/product/src/models/{ProductProvider.d.ts → DataProvider.d.ts} +7 -5
  63. package/product/src/models/DataProvider.js +40 -0
  64. package/product/src/models/Image.d.ts +7 -0
  65. package/product/src/models/Image.js +3 -0
  66. package/product/src/models/Product.d.ts +44 -37
  67. package/product/src/models/Product.js +33 -31
  68. package/product/src/models/ProductCreationOrUpdateParameters.d.ts +6 -6
  69. package/product/src/models/ProductCreationOrUpdateParameters.js +2 -2
  70. package/product/src/models/ProductJournal.d.ts +27 -0
  71. package/product/src/models/ProductJournal.js +41 -0
  72. package/product/src/models/ProductProscription.d.ts +7 -0
  73. package/product/src/models/ProductProscription.js +3 -0
  74. package/product/src/models/ProductSource.d.ts +47 -0
  75. package/product/src/models/ProductSource.js +49 -0
  76. package/product/src/models/ProductSourceBcb.d.ts +39 -0
  77. package/product/src/models/ProductSourceBcb.js +46 -0
  78. package/product/src/models/ProductSourceFields.d.ts +131 -0
  79. package/product/src/models/ProductSourceFields.js +77 -0
  80. package/product/src/models/ProductSourceFieldsBarcodes.d.ts +46 -0
  81. package/product/src/models/ProductSourceFieldsBarcodes.js +48 -0
  82. package/product/src/models/index.d.ts +6 -1
  83. package/product/src/models/index.js +6 -1
  84. package/product/src/models/ProductProvider.js +0 -38
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * lcdp-catalog
6
+ * This is the REST API of LCDP catalog
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.ProductInsightJournalToJSON = exports.ProductInsightJournalFromJSONTyped = exports.ProductInsightJournalFromJSON = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ function ProductInsightJournalFromJSON(json) {
19
+ return ProductInsightJournalFromJSONTyped(json, false);
20
+ }
21
+ exports.ProductInsightJournalFromJSON = ProductInsightJournalFromJSON;
22
+ function ProductInsightJournalFromJSONTyped(json, ignoreDiscriminator) {
23
+ if ((json === undefined) || (json === null)) {
24
+ return json;
25
+ }
26
+ return {
27
+ 'updatedAt': (new Date(json['updatedAt'])),
28
+ 'unitPriceUpdatedAt': !(0, runtime_1.exists)(json, 'unitPriceUpdatedAt') ? undefined : (new Date(json['unitPriceUpdatedAt'])),
29
+ };
30
+ }
31
+ exports.ProductInsightJournalFromJSONTyped = ProductInsightJournalFromJSONTyped;
32
+ function ProductInsightJournalToJSON(value) {
33
+ if (value === undefined) {
34
+ return undefined;
35
+ }
36
+ if (value === null) {
37
+ return null;
38
+ }
39
+ return {
40
+ 'updatedAt': (value.updatedAt.toISOString()),
41
+ 'unitPriceUpdatedAt': value.unitPriceUpdatedAt === undefined ? undefined : (value.unitPriceUpdatedAt.toISOString()),
42
+ };
43
+ }
44
+ exports.ProductInsightJournalToJSON = ProductInsightJournalToJSON;
@@ -0,0 +1,34 @@
1
+ /**
2
+ * lcdp-catalog
3
+ * This is the REST API of LCDP catalog
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 { HttpLink } from './HttpLink';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ProductSecondaryTypeLink
17
+ */
18
+ export interface ProductSecondaryTypeLink extends HttpLink {
19
+ /**
20
+ * Id of the product secondary type
21
+ * @type {string}
22
+ * @memberof ProductSecondaryTypeLink
23
+ */
24
+ id?: string;
25
+ /**
26
+ * Readable name for display
27
+ * @type {string}
28
+ * @memberof ProductSecondaryTypeLink
29
+ */
30
+ name?: string;
31
+ }
32
+ export declare function ProductSecondaryTypeLinkFromJSON(json: any): ProductSecondaryTypeLink;
33
+ export declare function ProductSecondaryTypeLinkFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductSecondaryTypeLink;
34
+ export declare function ProductSecondaryTypeLinkToJSON(value?: ProductSecondaryTypeLink | null): any;
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * lcdp-catalog
6
+ * This is the REST API of LCDP catalog
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
+ var __assign = (this && this.__assign) || function () {
16
+ __assign = Object.assign || function(t) {
17
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
18
+ s = arguments[i];
19
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
20
+ t[p] = s[p];
21
+ }
22
+ return t;
23
+ };
24
+ return __assign.apply(this, arguments);
25
+ };
26
+ Object.defineProperty(exports, "__esModule", { value: true });
27
+ exports.ProductSecondaryTypeLinkToJSON = exports.ProductSecondaryTypeLinkFromJSONTyped = exports.ProductSecondaryTypeLinkFromJSON = void 0;
28
+ var runtime_1 = require("../runtime");
29
+ var HttpLink_1 = require("./HttpLink");
30
+ function ProductSecondaryTypeLinkFromJSON(json) {
31
+ return ProductSecondaryTypeLinkFromJSONTyped(json, false);
32
+ }
33
+ exports.ProductSecondaryTypeLinkFromJSON = ProductSecondaryTypeLinkFromJSON;
34
+ function ProductSecondaryTypeLinkFromJSONTyped(json, ignoreDiscriminator) {
35
+ if ((json === undefined) || (json === null)) {
36
+ return json;
37
+ }
38
+ return __assign(__assign({}, (0, HttpLink_1.HttpLinkFromJSONTyped)(json, ignoreDiscriminator)), { 'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'], 'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'] });
39
+ }
40
+ exports.ProductSecondaryTypeLinkFromJSONTyped = ProductSecondaryTypeLinkFromJSONTyped;
41
+ function ProductSecondaryTypeLinkToJSON(value) {
42
+ if (value === undefined) {
43
+ return undefined;
44
+ }
45
+ if (value === null) {
46
+ return null;
47
+ }
48
+ return __assign(__assign({}, (0, HttpLink_1.HttpLinkToJSON)(value)), { 'id': value.id, 'name': value.name });
49
+ }
50
+ exports.ProductSecondaryTypeLinkToJSON = ProductSecondaryTypeLinkToJSON;
@@ -0,0 +1,33 @@
1
+ /**
2
+ * lcdp-catalog
3
+ * This is the REST API of LCDP catalog
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
+ * @interface ProductSecondaryTypeLinkAllOf
16
+ */
17
+ export interface ProductSecondaryTypeLinkAllOf {
18
+ /**
19
+ * Id of the product secondary type
20
+ * @type {string}
21
+ * @memberof ProductSecondaryTypeLinkAllOf
22
+ */
23
+ id?: string;
24
+ /**
25
+ * Readable name for display
26
+ * @type {string}
27
+ * @memberof ProductSecondaryTypeLinkAllOf
28
+ */
29
+ name?: string;
30
+ }
31
+ export declare function ProductSecondaryTypeLinkAllOfFromJSON(json: any): ProductSecondaryTypeLinkAllOf;
32
+ export declare function ProductSecondaryTypeLinkAllOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductSecondaryTypeLinkAllOf;
33
+ export declare function ProductSecondaryTypeLinkAllOfToJSON(value?: ProductSecondaryTypeLinkAllOf | null): any;
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * lcdp-catalog
6
+ * This is the REST API of LCDP catalog
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.ProductSecondaryTypeLinkAllOfToJSON = exports.ProductSecondaryTypeLinkAllOfFromJSONTyped = exports.ProductSecondaryTypeLinkAllOfFromJSON = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ function ProductSecondaryTypeLinkAllOfFromJSON(json) {
19
+ return ProductSecondaryTypeLinkAllOfFromJSONTyped(json, false);
20
+ }
21
+ exports.ProductSecondaryTypeLinkAllOfFromJSON = ProductSecondaryTypeLinkAllOfFromJSON;
22
+ function ProductSecondaryTypeLinkAllOfFromJSONTyped(json, ignoreDiscriminator) {
23
+ if ((json === undefined) || (json === null)) {
24
+ return json;
25
+ }
26
+ return {
27
+ 'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'],
28
+ 'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
29
+ };
30
+ }
31
+ exports.ProductSecondaryTypeLinkAllOfFromJSONTyped = ProductSecondaryTypeLinkAllOfFromJSONTyped;
32
+ function ProductSecondaryTypeLinkAllOfToJSON(value) {
33
+ if (value === undefined) {
34
+ return undefined;
35
+ }
36
+ if (value === null) {
37
+ return null;
38
+ }
39
+ return {
40
+ 'id': value.id,
41
+ 'name': value.name,
42
+ };
43
+ }
44
+ exports.ProductSecondaryTypeLinkAllOfToJSON = ProductSecondaryTypeLinkAllOfToJSON;
@@ -0,0 +1,25 @@
1
+ /**
2
+ * lcdp-catalog
3
+ * This is the REST API of LCDP catalog
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
+ * @enum {string}
16
+ */
17
+ export declare enum ProductStorageType {
18
+ FREE = "FREE",
19
+ FRIDGE = "FRIDGE",
20
+ FREEZER = "FREEZER",
21
+ FRESH = "FRESH"
22
+ }
23
+ export declare function ProductStorageTypeFromJSON(json: any): ProductStorageType;
24
+ export declare function ProductStorageTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductStorageType;
25
+ export declare function ProductStorageTypeToJSON(value?: ProductStorageType | null): any;
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * lcdp-catalog
6
+ * This is the REST API of LCDP catalog
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.ProductStorageTypeToJSON = exports.ProductStorageTypeFromJSONTyped = exports.ProductStorageTypeFromJSON = exports.ProductStorageType = void 0;
17
+ /**
18
+ *
19
+ * @export
20
+ * @enum {string}
21
+ */
22
+ var ProductStorageType;
23
+ (function (ProductStorageType) {
24
+ ProductStorageType["FREE"] = "FREE";
25
+ ProductStorageType["FRIDGE"] = "FRIDGE";
26
+ ProductStorageType["FREEZER"] = "FREEZER";
27
+ ProductStorageType["FRESH"] = "FRESH";
28
+ })(ProductStorageType = exports.ProductStorageType || (exports.ProductStorageType = {}));
29
+ function ProductStorageTypeFromJSON(json) {
30
+ return ProductStorageTypeFromJSONTyped(json, false);
31
+ }
32
+ exports.ProductStorageTypeFromJSON = ProductStorageTypeFromJSON;
33
+ function ProductStorageTypeFromJSONTyped(json, ignoreDiscriminator) {
34
+ return json;
35
+ }
36
+ exports.ProductStorageTypeFromJSONTyped = ProductStorageTypeFromJSONTyped;
37
+ function ProductStorageTypeToJSON(value) {
38
+ return value;
39
+ }
40
+ exports.ProductStorageTypeToJSON = ProductStorageTypeToJSON;
@@ -0,0 +1,34 @@
1
+ /**
2
+ * lcdp-catalog
3
+ * This is the REST API of LCDP catalog
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 { HttpLink } from './HttpLink';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ProductTypeLink
17
+ */
18
+ export interface ProductTypeLink extends HttpLink {
19
+ /**
20
+ * Id of the product type (machine name)
21
+ * @type {string}
22
+ * @memberof ProductTypeLink
23
+ */
24
+ id?: string;
25
+ /**
26
+ * Readable name for display
27
+ * @type {string}
28
+ * @memberof ProductTypeLink
29
+ */
30
+ name?: string;
31
+ }
32
+ export declare function ProductTypeLinkFromJSON(json: any): ProductTypeLink;
33
+ export declare function ProductTypeLinkFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductTypeLink;
34
+ export declare function ProductTypeLinkToJSON(value?: ProductTypeLink | null): any;
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * lcdp-catalog
6
+ * This is the REST API of LCDP catalog
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
+ var __assign = (this && this.__assign) || function () {
16
+ __assign = Object.assign || function(t) {
17
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
18
+ s = arguments[i];
19
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
20
+ t[p] = s[p];
21
+ }
22
+ return t;
23
+ };
24
+ return __assign.apply(this, arguments);
25
+ };
26
+ Object.defineProperty(exports, "__esModule", { value: true });
27
+ exports.ProductTypeLinkToJSON = exports.ProductTypeLinkFromJSONTyped = exports.ProductTypeLinkFromJSON = void 0;
28
+ var runtime_1 = require("../runtime");
29
+ var HttpLink_1 = require("./HttpLink");
30
+ function ProductTypeLinkFromJSON(json) {
31
+ return ProductTypeLinkFromJSONTyped(json, false);
32
+ }
33
+ exports.ProductTypeLinkFromJSON = ProductTypeLinkFromJSON;
34
+ function ProductTypeLinkFromJSONTyped(json, ignoreDiscriminator) {
35
+ if ((json === undefined) || (json === null)) {
36
+ return json;
37
+ }
38
+ return __assign(__assign({}, (0, HttpLink_1.HttpLinkFromJSONTyped)(json, ignoreDiscriminator)), { 'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'], 'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'] });
39
+ }
40
+ exports.ProductTypeLinkFromJSONTyped = ProductTypeLinkFromJSONTyped;
41
+ function ProductTypeLinkToJSON(value) {
42
+ if (value === undefined) {
43
+ return undefined;
44
+ }
45
+ if (value === null) {
46
+ return null;
47
+ }
48
+ return __assign(__assign({}, (0, HttpLink_1.HttpLinkToJSON)(value)), { 'id': value.id, 'name': value.name });
49
+ }
50
+ exports.ProductTypeLinkToJSON = ProductTypeLinkToJSON;
@@ -0,0 +1,33 @@
1
+ /**
2
+ * lcdp-catalog
3
+ * This is the REST API of LCDP catalog
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
+ * @interface ProductTypeLinkAllOf
16
+ */
17
+ export interface ProductTypeLinkAllOf {
18
+ /**
19
+ * Id of the product type (machine name)
20
+ * @type {string}
21
+ * @memberof ProductTypeLinkAllOf
22
+ */
23
+ id?: string;
24
+ /**
25
+ * Readable name for display
26
+ * @type {string}
27
+ * @memberof ProductTypeLinkAllOf
28
+ */
29
+ name?: string;
30
+ }
31
+ export declare function ProductTypeLinkAllOfFromJSON(json: any): ProductTypeLinkAllOf;
32
+ export declare function ProductTypeLinkAllOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductTypeLinkAllOf;
33
+ export declare function ProductTypeLinkAllOfToJSON(value?: ProductTypeLinkAllOf | null): any;
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * lcdp-catalog
6
+ * This is the REST API of LCDP catalog
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.ProductTypeLinkAllOfToJSON = exports.ProductTypeLinkAllOfFromJSONTyped = exports.ProductTypeLinkAllOfFromJSON = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ function ProductTypeLinkAllOfFromJSON(json) {
19
+ return ProductTypeLinkAllOfFromJSONTyped(json, false);
20
+ }
21
+ exports.ProductTypeLinkAllOfFromJSON = ProductTypeLinkAllOfFromJSON;
22
+ function ProductTypeLinkAllOfFromJSONTyped(json, ignoreDiscriminator) {
23
+ if ((json === undefined) || (json === null)) {
24
+ return json;
25
+ }
26
+ return {
27
+ 'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'],
28
+ 'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
29
+ };
30
+ }
31
+ exports.ProductTypeLinkAllOfFromJSONTyped = ProductTypeLinkAllOfFromJSONTyped;
32
+ function ProductTypeLinkAllOfToJSON(value) {
33
+ if (value === undefined) {
34
+ return undefined;
35
+ }
36
+ if (value === null) {
37
+ return null;
38
+ }
39
+ return {
40
+ 'id': value.id,
41
+ 'name': value.name,
42
+ };
43
+ }
44
+ exports.ProductTypeLinkAllOfToJSON = ProductTypeLinkAllOfToJSON;
@@ -0,0 +1,85 @@
1
+ /**
2
+ * lcdp-catalog
3
+ * This is the REST API of LCDP catalog
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
+ * @interface RestError
16
+ */
17
+ export interface RestError {
18
+ /**
19
+ * Unique code to identify an error : * `CODE000` - Using outdated resource * `CODE001` - Invalid credentials * `CODE002` - Cannot renew token * `CODE003` - Invalid User CGV * `CODE004` - Resource already exists * `CODE005` - User account is disabled * `CODE006` - Invalid schedule * `CODE007` - Wrong Address according CHRONOPOST * `CODE008` - Invalid Mangopay Mandate * `CODE009` - Invalid Status * `CODE010` - Image dimension exceeded * `CODE011` - Empty User Address * `CODE012` - Empty User Legal Name * `CODE013` - Invalid quantities * `CODE014` - Invalid Meta-Order * `CODE015` - Can not release quantity greater than claimed * `CODE016` - Can not release a negative quantity of items * `CODE017` - Batch is forbidden for sale * `CODE018` - Trial already used * `CODE019` - Unable to generate session from disposableToken for admin users
20
+ * @type {string}
21
+ * @memberof RestError
22
+ */
23
+ code: RestErrorCodeEnum;
24
+ /**
25
+ * Unique code to identify an error : * `MESSAGE000` - Using outdated resource * `MESSAGE001` - Invalid credentials * `MESSAGE002` - Cannot renew token * `MESSAGE003` - Invalid User CGV * `MESSAGE004` - Resource already exists * `MESSAGE005` - User account is disabled * `MESSAGE006` - Invalid schedule * `MESSAGE007` - Wrong Address according CHRONOPOST * `MESSAGE008` - Invalid Mangopay Mandate * `MESSAGE009` - Invalid Status * `MESSAGE010` - Image dimension exceeded * `MESSAGE011` - Empty User Address * `MESSAGE012` - Empty User Legal Name * `MESSAGE013` - Invalid quantities * `MESSAGE014` - Invalid Meta-Order * `MESSAGE015` - Can not release quantity greater than claimed * `MESSAGE016` - Can not release a negative quantity of items * `MESSAGE017` - Batch is forbidden for sale * `MESSAGE018` - Trial already used * `MESSAGE019` - Unable to generate session from disposableToken for admin users
26
+ * @type {string}
27
+ * @memberof RestError
28
+ */
29
+ message: RestErrorMessageEnum;
30
+ }
31
+ export declare function RestErrorFromJSON(json: any): RestError;
32
+ export declare function RestErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): RestError;
33
+ export declare function RestErrorToJSON(value?: RestError | null): any;
34
+ /**
35
+ * @export
36
+ * @enum {string}
37
+ */
38
+ export declare enum RestErrorCodeEnum {
39
+ CODE000 = "CODE000",
40
+ CODE001 = "CODE001",
41
+ CODE002 = "CODE002",
42
+ CODE003 = "CODE003",
43
+ CODE004 = "CODE004",
44
+ CODE005 = "CODE005",
45
+ CODE006 = "CODE006",
46
+ CODE007 = "CODE007",
47
+ CODE008 = "CODE008",
48
+ CODE009 = "CODE009",
49
+ CODE010 = "CODE010",
50
+ CODE011 = "CODE011",
51
+ CODE012 = "CODE012",
52
+ CODE013 = "CODE013",
53
+ CODE014 = "CODE014",
54
+ CODE015 = "CODE015",
55
+ CODE016 = "CODE016",
56
+ CODE017 = "CODE017",
57
+ CODE018 = "CODE018",
58
+ CODE019 = "CODE019"
59
+ }
60
+ /**
61
+ * @export
62
+ * @enum {string}
63
+ */
64
+ export declare enum RestErrorMessageEnum {
65
+ MESSAGE000 = "Using outdated resource",
66
+ MESSAGE001 = "Login failed",
67
+ MESSAGE002 = "Cannot renew token",
68
+ MESSAGE003 = "Invalid User CGV",
69
+ MESSAGE004 = "Resource already exists",
70
+ MESSAGE005 = "User account is disabled",
71
+ MESSAGE006 = "Invalid schedule",
72
+ MESSAGE007 = "Wrong Address according CHRONOPOST",
73
+ MESSAGE008 = "Invalid Mangopay Mandate",
74
+ MESSAGE009 = "Invalid Status",
75
+ MESSAGE010 = "Image dimension exceeded",
76
+ MESSAGE011 = "Empty User Address",
77
+ MESSAGE012 = "Empty User Legal Name",
78
+ MESSAGE013 = "Invalid quantities",
79
+ MESSAGE014 = "Invalid Meta-Order",
80
+ MESSAGE015 = "Can not release quantity greater than claimed",
81
+ MESSAGE016 = "Can not release a negative quantity of items",
82
+ MESSAGE017 = "Batch is forbidden for sale",
83
+ MESSAGE018 = "Trial already used",
84
+ MESSAGE019 = "Unable to generate session from disposableToken for admin users"
85
+ }
@@ -0,0 +1,97 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * lcdp-catalog
6
+ * This is the REST API of LCDP catalog
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.RestErrorMessageEnum = exports.RestErrorCodeEnum = exports.RestErrorToJSON = exports.RestErrorFromJSONTyped = exports.RestErrorFromJSON = void 0;
17
+ function RestErrorFromJSON(json) {
18
+ return RestErrorFromJSONTyped(json, false);
19
+ }
20
+ exports.RestErrorFromJSON = RestErrorFromJSON;
21
+ function RestErrorFromJSONTyped(json, ignoreDiscriminator) {
22
+ if ((json === undefined) || (json === null)) {
23
+ return json;
24
+ }
25
+ return {
26
+ 'code': json['code'],
27
+ 'message': json['message'],
28
+ };
29
+ }
30
+ exports.RestErrorFromJSONTyped = RestErrorFromJSONTyped;
31
+ function RestErrorToJSON(value) {
32
+ if (value === undefined) {
33
+ return undefined;
34
+ }
35
+ if (value === null) {
36
+ return null;
37
+ }
38
+ return {
39
+ 'code': value.code,
40
+ 'message': value.message,
41
+ };
42
+ }
43
+ exports.RestErrorToJSON = RestErrorToJSON;
44
+ /**
45
+ * @export
46
+ * @enum {string}
47
+ */
48
+ var RestErrorCodeEnum;
49
+ (function (RestErrorCodeEnum) {
50
+ RestErrorCodeEnum["CODE000"] = "CODE000";
51
+ RestErrorCodeEnum["CODE001"] = "CODE001";
52
+ RestErrorCodeEnum["CODE002"] = "CODE002";
53
+ RestErrorCodeEnum["CODE003"] = "CODE003";
54
+ RestErrorCodeEnum["CODE004"] = "CODE004";
55
+ RestErrorCodeEnum["CODE005"] = "CODE005";
56
+ RestErrorCodeEnum["CODE006"] = "CODE006";
57
+ RestErrorCodeEnum["CODE007"] = "CODE007";
58
+ RestErrorCodeEnum["CODE008"] = "CODE008";
59
+ RestErrorCodeEnum["CODE009"] = "CODE009";
60
+ RestErrorCodeEnum["CODE010"] = "CODE010";
61
+ RestErrorCodeEnum["CODE011"] = "CODE011";
62
+ RestErrorCodeEnum["CODE012"] = "CODE012";
63
+ RestErrorCodeEnum["CODE013"] = "CODE013";
64
+ RestErrorCodeEnum["CODE014"] = "CODE014";
65
+ RestErrorCodeEnum["CODE015"] = "CODE015";
66
+ RestErrorCodeEnum["CODE016"] = "CODE016";
67
+ RestErrorCodeEnum["CODE017"] = "CODE017";
68
+ RestErrorCodeEnum["CODE018"] = "CODE018";
69
+ RestErrorCodeEnum["CODE019"] = "CODE019";
70
+ })(RestErrorCodeEnum = exports.RestErrorCodeEnum || (exports.RestErrorCodeEnum = {}));
71
+ /**
72
+ * @export
73
+ * @enum {string}
74
+ */
75
+ var RestErrorMessageEnum;
76
+ (function (RestErrorMessageEnum) {
77
+ RestErrorMessageEnum["MESSAGE000"] = "Using outdated resource";
78
+ RestErrorMessageEnum["MESSAGE001"] = "Login failed";
79
+ RestErrorMessageEnum["MESSAGE002"] = "Cannot renew token";
80
+ RestErrorMessageEnum["MESSAGE003"] = "Invalid User CGV";
81
+ RestErrorMessageEnum["MESSAGE004"] = "Resource already exists";
82
+ RestErrorMessageEnum["MESSAGE005"] = "User account is disabled";
83
+ RestErrorMessageEnum["MESSAGE006"] = "Invalid schedule";
84
+ RestErrorMessageEnum["MESSAGE007"] = "Wrong Address according CHRONOPOST";
85
+ RestErrorMessageEnum["MESSAGE008"] = "Invalid Mangopay Mandate";
86
+ RestErrorMessageEnum["MESSAGE009"] = "Invalid Status";
87
+ RestErrorMessageEnum["MESSAGE010"] = "Image dimension exceeded";
88
+ RestErrorMessageEnum["MESSAGE011"] = "Empty User Address";
89
+ RestErrorMessageEnum["MESSAGE012"] = "Empty User Legal Name";
90
+ RestErrorMessageEnum["MESSAGE013"] = "Invalid quantities";
91
+ RestErrorMessageEnum["MESSAGE014"] = "Invalid Meta-Order";
92
+ RestErrorMessageEnum["MESSAGE015"] = "Can not release quantity greater than claimed";
93
+ RestErrorMessageEnum["MESSAGE016"] = "Can not release a negative quantity of items";
94
+ RestErrorMessageEnum["MESSAGE017"] = "Batch is forbidden for sale";
95
+ RestErrorMessageEnum["MESSAGE018"] = "Trial already used";
96
+ RestErrorMessageEnum["MESSAGE019"] = "Unable to generate session from disposableToken for admin users";
97
+ })(RestErrorMessageEnum = exports.RestErrorMessageEnum || (exports.RestErrorMessageEnum = {}));
@@ -0,0 +1,40 @@
1
+ /**
2
+ * lcdp-catalog
3
+ * This is the REST API of LCDP catalog
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 { HttpLink } from './HttpLink';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface VatLink
17
+ */
18
+ export interface VatLink extends HttpLink {
19
+ /**
20
+ * Vat Id
21
+ * @type {string}
22
+ * @memberof VatLink
23
+ */
24
+ id?: string;
25
+ /**
26
+ * Vat name
27
+ * @type {string}
28
+ * @memberof VatLink
29
+ */
30
+ name?: string;
31
+ /**
32
+ * Vat value
33
+ * @type {number}
34
+ * @memberof VatLink
35
+ */
36
+ value?: number;
37
+ }
38
+ export declare function VatLinkFromJSON(json: any): VatLink;
39
+ export declare function VatLinkFromJSONTyped(json: any, ignoreDiscriminator: boolean): VatLink;
40
+ export declare function VatLinkToJSON(value?: VatLink | null): any;