@lcdp/api-react-rest-client 2.2.0-LDS-3043.5255236497 → 2.2.0-develop.5257142523

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 (75) hide show
  1. package/package.json +1 -1
  2. package/product/src/apis/ManageProductApi.d.ts +0 -2
  3. package/product/src/apis/ManageProductApi.js +0 -6
  4. package/product/src/apis/SearchProductApi.d.ts +1 -39
  5. package/product/src/apis/SearchProductApi.js +4 -290
  6. package/product/src/apis/SearchProductMetadataApi.d.ts +34 -0
  7. package/{catalog/src/apis/SearchProductInsightApi.js → product/src/apis/SearchProductMetadataApi.js} +22 -48
  8. package/product/src/apis/index.d.ts +1 -0
  9. package/product/src/apis/index.js +1 -0
  10. package/product/src/models/Product.d.ts +37 -38
  11. package/product/src/models/Product.js +31 -31
  12. package/product/src/models/ProductCreationOrUpdateParameters.d.ts +6 -0
  13. package/product/src/models/ProductCreationOrUpdateParameters.js +2 -0
  14. package/product/src/models/{DataProvider.d.ts → ProductProvider.d.ts} +5 -7
  15. package/product/src/models/ProductProvider.js +38 -0
  16. package/product/src/models/index.d.ts +1 -4
  17. package/product/src/models/index.js +1 -4
  18. package/catalog/index.d.ts +0 -1
  19. package/catalog/index.js +0 -17
  20. package/catalog/src/apis/ManageProductInsightApi.d.ts +0 -54
  21. package/catalog/src/apis/ManageProductInsightApi.js +0 -295
  22. package/catalog/src/apis/SearchProductInsightApi.d.ts +0 -53
  23. package/catalog/src/apis/index.d.ts +0 -2
  24. package/catalog/src/apis/index.js +0 -18
  25. package/catalog/src/index.d.ts +0 -3
  26. package/catalog/src/index.js +0 -19
  27. package/catalog/src/models/Barcodes.d.ts +0 -45
  28. package/catalog/src/models/Barcodes.js +0 -48
  29. package/catalog/src/models/HttpLink.d.ts +0 -27
  30. package/catalog/src/models/HttpLink.js +0 -41
  31. package/catalog/src/models/LaboratoryLink.d.ts +0 -34
  32. package/catalog/src/models/LaboratoryLink.js +0 -50
  33. package/catalog/src/models/LaboratoryLinkAllOf.d.ts +0 -33
  34. package/catalog/src/models/LaboratoryLinkAllOf.js +0 -44
  35. package/catalog/src/models/PaginatedObject.d.ts +0 -28
  36. package/catalog/src/models/PaginatedObject.js +0 -42
  37. package/catalog/src/models/PaginatedProductInsights.d.ts +0 -29
  38. package/catalog/src/models/PaginatedProductInsights.js +0 -50
  39. package/catalog/src/models/PaginatedProductInsightsAllOf.d.ts +0 -28
  40. package/catalog/src/models/PaginatedProductInsightsAllOf.js +0 -42
  41. package/catalog/src/models/PagingMetadata.d.ts +0 -45
  42. package/catalog/src/models/PagingMetadata.js +0 -47
  43. package/catalog/src/models/ProductInsight.d.ts +0 -100
  44. package/catalog/src/models/ProductInsight.js +0 -71
  45. package/catalog/src/models/ProductInsightCreationOrUpdateParameters.d.ts +0 -83
  46. package/catalog/src/models/ProductInsightCreationOrUpdateParameters.js +0 -62
  47. package/catalog/src/models/ProductInsightJournal.d.ts +0 -33
  48. package/catalog/src/models/ProductInsightJournal.js +0 -44
  49. package/catalog/src/models/ProductSecondaryTypeLink.d.ts +0 -34
  50. package/catalog/src/models/ProductSecondaryTypeLink.js +0 -50
  51. package/catalog/src/models/ProductSecondaryTypeLinkAllOf.d.ts +0 -33
  52. package/catalog/src/models/ProductSecondaryTypeLinkAllOf.js +0 -44
  53. package/catalog/src/models/ProductStorageType.d.ts +0 -25
  54. package/catalog/src/models/ProductStorageType.js +0 -40
  55. package/catalog/src/models/ProductTypeLink.d.ts +0 -34
  56. package/catalog/src/models/ProductTypeLink.js +0 -50
  57. package/catalog/src/models/ProductTypeLinkAllOf.d.ts +0 -33
  58. package/catalog/src/models/ProductTypeLinkAllOf.js +0 -44
  59. package/catalog/src/models/RestError.d.ts +0 -85
  60. package/catalog/src/models/RestError.js +0 -97
  61. package/catalog/src/models/VatLink.d.ts +0 -40
  62. package/catalog/src/models/VatLink.js +0 -50
  63. package/catalog/src/models/VatLinkAllOf.d.ts +0 -39
  64. package/catalog/src/models/VatLinkAllOf.js +0 -46
  65. package/catalog/src/models/index.d.ts +0 -19
  66. package/catalog/src/models/index.js +0 -35
  67. package/catalog/src/runtime.d.ts +0 -149
  68. package/catalog/src/runtime.js +0 -480
  69. package/product/src/models/DataProvider.js +0 -40
  70. package/product/src/models/ProductJournal.d.ts +0 -27
  71. package/product/src/models/ProductJournal.js +0 -41
  72. package/product/src/models/ProductMetadata.d.ts +0 -28
  73. package/product/src/models/ProductMetadata.js +0 -42
  74. package/product/src/models/ProductMetadataSources.d.ts +0 -124
  75. package/product/src/models/ProductMetadataSources.js +0 -75
@@ -1,62 +0,0 @@
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.ProductInsightCreationOrUpdateParametersToJSON = exports.ProductInsightCreationOrUpdateParametersFromJSONTyped = exports.ProductInsightCreationOrUpdateParametersFromJSON = void 0;
17
- var runtime_1 = require("../runtime");
18
- var Barcodes_1 = require("./Barcodes");
19
- var ProductStorageType_1 = require("./ProductStorageType");
20
- function ProductInsightCreationOrUpdateParametersFromJSON(json) {
21
- return ProductInsightCreationOrUpdateParametersFromJSONTyped(json, false);
22
- }
23
- exports.ProductInsightCreationOrUpdateParametersFromJSON = ProductInsightCreationOrUpdateParametersFromJSON;
24
- function ProductInsightCreationOrUpdateParametersFromJSONTyped(json, ignoreDiscriminator) {
25
- if ((json === undefined) || (json === null)) {
26
- return json;
27
- }
28
- return {
29
- 'barcodes': !(0, runtime_1.exists)(json, 'barcodes') ? undefined : (0, Barcodes_1.BarcodesFromJSON)(json['barcodes']),
30
- 'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
31
- 'dci': !(0, runtime_1.exists)(json, 'dci') ? json['dci'] : json['dci'],
32
- 'unitWeight': !(0, runtime_1.exists)(json, 'unitWeight') ? json['unitWeight'] : json['unitWeight'],
33
- 'unitPrice': !(0, runtime_1.exists)(json, 'unitPrice') ? json['unitPrice'] : json['unitPrice'],
34
- 'typeId': !(0, runtime_1.exists)(json, 'typeId') ? json['typeId'] : json['typeId'],
35
- 'secondaryTypeId': !(0, runtime_1.exists)(json, 'secondaryTypeId') ? json['secondaryTypeId'] : json['secondaryTypeId'],
36
- 'laboratoryId': !(0, runtime_1.exists)(json, 'laboratoryId') ? json['laboratoryId'] : json['laboratoryId'],
37
- 'vatId': !(0, runtime_1.exists)(json, 'vatId') ? json['vatId'] : json['vatId'],
38
- 'storageType': !(0, runtime_1.exists)(json, 'storageType') ? json['storageType'] : (0, ProductStorageType_1.ProductStorageTypeFromJSON)(json['storageType']),
39
- };
40
- }
41
- exports.ProductInsightCreationOrUpdateParametersFromJSONTyped = ProductInsightCreationOrUpdateParametersFromJSONTyped;
42
- function ProductInsightCreationOrUpdateParametersToJSON(value) {
43
- if (value === undefined) {
44
- return undefined;
45
- }
46
- if (value === null) {
47
- return null;
48
- }
49
- return {
50
- 'barcodes': (0, Barcodes_1.BarcodesToJSON)(value.barcodes),
51
- 'name': value.name,
52
- 'dci': value.dci,
53
- 'unitWeight': value.unitWeight,
54
- 'unitPrice': value.unitPrice,
55
- 'typeId': value.typeId,
56
- 'secondaryTypeId': value.secondaryTypeId,
57
- 'laboratoryId': value.laboratoryId,
58
- 'vatId': value.vatId,
59
- 'storageType': (0, ProductStorageType_1.ProductStorageTypeToJSON)(value.storageType),
60
- };
61
- }
62
- exports.ProductInsightCreationOrUpdateParametersToJSON = ProductInsightCreationOrUpdateParametersToJSON;
@@ -1,33 +0,0 @@
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
- * Journal of the product insight
14
- * @export
15
- * @interface ProductInsightJournal
16
- */
17
- export interface ProductInsightJournal {
18
- /**
19
- * Update date of this product
20
- * @type {Date}
21
- * @memberof ProductInsightJournal
22
- */
23
- updatedAt: Date;
24
- /**
25
- * Date of the updated price (RFC 3339, section 5.6)
26
- * @type {Date}
27
- * @memberof ProductInsightJournal
28
- */
29
- unitPriceUpdatedAt?: Date;
30
- }
31
- export declare function ProductInsightJournalFromJSON(json: any): ProductInsightJournal;
32
- export declare function ProductInsightJournalFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductInsightJournal;
33
- export declare function ProductInsightJournalToJSON(value?: ProductInsightJournal | null): any;
@@ -1,44 +0,0 @@
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;
@@ -1,34 +0,0 @@
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;
@@ -1,50 +0,0 @@
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;
@@ -1,33 +0,0 @@
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;
@@ -1,44 +0,0 @@
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;
@@ -1,25 +0,0 @@
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;
@@ -1,40 +0,0 @@
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;
@@ -1,34 +0,0 @@
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;
@@ -1,50 +0,0 @@
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;
@@ -1,33 +0,0 @@
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;
@@ -1,44 +0,0 @@
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;
@@ -1,85 +0,0 @@
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
- }