@lcdp/api-react-rest-client 3.1.11-develop.25379673526 → 3.2.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 (51) hide show
  1. package/catalog/src/models/ProductInsight.d.ts +6 -6
  2. package/catalog/src/models/ProductInsight.js +6 -6
  3. package/catalog/src/models/ProductInsightCreateOrUpdateParameters.d.ts +6 -8
  4. package/catalog/src/models/ProductInsightCreateOrUpdateParameters.js +4 -6
  5. package/catalog/src/models/ProductSecondaryTypeLink.d.ts +43 -0
  6. package/catalog/src/models/ProductSecondaryTypeLink.js +51 -0
  7. package/catalog/src/models/ProductTypeLink.d.ts +43 -0
  8. package/catalog/src/models/ProductTypeLink.js +51 -0
  9. package/catalog/src/models/index.d.ts +2 -2
  10. package/catalog/src/models/index.js +2 -2
  11. package/factory/src/models/Product.d.ts +3 -4
  12. package/factory/src/models/Product.js +2 -3
  13. package/factory/src/models/index.d.ts +0 -1
  14. package/factory/src/models/index.js +0 -1
  15. package/package.json +1 -1
  16. package/product/src/apis/ManageProductApi.d.ts +2 -2
  17. package/product/src/apis/ManageProductApi.js +2 -2
  18. package/product/src/apis/SearchProductMetadataApi.d.ts +56 -0
  19. package/product/src/apis/SearchProductMetadataApi.js +390 -0
  20. package/product/src/apis/index.d.ts +1 -0
  21. package/product/src/apis/index.js +1 -0
  22. package/product/src/models/ProductCreationOrUpdateParameters.d.ts +6 -8
  23. package/product/src/models/ProductCreationOrUpdateParameters.js +4 -6
  24. package/product/src/models/ProductSecondaryType.d.ts +19 -7
  25. package/product/src/models/ProductSecondaryType.js +17 -18
  26. package/product/src/models/ProductType.d.ts +19 -10
  27. package/product/src/models/ProductType.js +17 -21
  28. package/user/src/apis/ManageUserRestrictionApi.d.ts +25 -1
  29. package/user/src/apis/ManageUserRestrictionApi.js +152 -12
  30. package/user/src/apis/SearchUserRestrictionApi.d.ts +12 -1
  31. package/user/src/apis/SearchUserRestrictionApi.js +79 -0
  32. package/user/src/models/ProductTypeLink.d.ts +43 -0
  33. package/user/src/models/ProductTypeLink.js +51 -0
  34. package/user/src/models/User.d.ts +2 -3
  35. package/user/src/models/User.js +2 -3
  36. package/user/src/models/UserRestrictedProductTypeCreationParameter.d.ts +31 -0
  37. package/user/src/models/UserRestrictedProductTypeCreationParameter.js +47 -0
  38. package/user/src/models/UserUpdateParameters.d.ts +0 -7
  39. package/user/src/models/UserUpdateParameters.js +0 -3
  40. package/user/src/models/index.d.ts +2 -2
  41. package/user/src/models/index.js +2 -2
  42. package/catalog/src/models/ProductSecondaryType.d.ts +0 -25
  43. package/catalog/src/models/ProductSecondaryType.js +0 -48
  44. package/catalog/src/models/ProductType.d.ts +0 -28
  45. package/catalog/src/models/ProductType.js +0 -51
  46. package/factory/src/models/ProductType.d.ts +0 -28
  47. package/factory/src/models/ProductType.js +0 -51
  48. package/user/src/models/ProductType.d.ts +0 -28
  49. package/user/src/models/ProductType.js +0 -51
  50. package/user/src/models/RestrictedProductType.d.ts +0 -46
  51. package/user/src/models/RestrictedProductType.js +0 -55
@@ -19,7 +19,6 @@ var UserCompany_1 = require("./UserCompany");
19
19
  var Address_1 = require("./Address");
20
20
  var UserRole_1 = require("./UserRole");
21
21
  var UserDelegatedServices_1 = require("./UserDelegatedServices");
22
- var RestrictedProductType_1 = require("./RestrictedProductType");
23
22
  var RestrictedProductStorageType_1 = require("./RestrictedProductStorageType");
24
23
  var UserJournalUpdateParameters_1 = require("./UserJournalUpdateParameters");
25
24
  var Gender_1 = require("./Gender");
@@ -58,7 +57,6 @@ function UserUpdateParametersFromJSONTyped(json, ignoreDiscriminator) {
58
57
  'company': (json['company'] === null || json['company'] === undefined) ? json['company'] : (0, UserCompany_1.UserCompanyFromJSON)(json['company']),
59
58
  'pickupEnabled': json['pickupEnabled'],
60
59
  'delegatedServices': (json['delegatedServices'] === null || json['delegatedServices'] === undefined) ? json['delegatedServices'] : (0, UserDelegatedServices_1.UserDelegatedServicesFromJSON)(json['delegatedServices']),
61
- 'restrictedProductTypes': (json['restrictedProductTypes'] === null || json['restrictedProductTypes'] === undefined) ? json['restrictedProductTypes'] : json['restrictedProductTypes'].map(RestrictedProductType_1.RestrictedProductTypeFromJSON),
62
60
  'restrictedProductStorageTypes': (json['restrictedProductStorageTypes'] === null || json['restrictedProductStorageTypes'] === undefined) ? json['restrictedProductStorageTypes'] : json['restrictedProductStorageTypes'].map(RestrictedProductStorageType_1.RestrictedProductStorageTypeFromJSON),
63
61
  'tags': json['tags'],
64
62
  'isMangopaySynced': json['isMangopaySynced'],
@@ -90,7 +88,6 @@ function UserUpdateParametersToJSON(value) {
90
88
  'company': (0, UserCompany_1.UserCompanyToJSON)(value['company']),
91
89
  'pickupEnabled': value['pickupEnabled'],
92
90
  'delegatedServices': (0, UserDelegatedServices_1.UserDelegatedServicesToJSON)(value['delegatedServices']),
93
- 'restrictedProductTypes': (value['restrictedProductTypes'] === null || value['restrictedProductTypes'] === undefined) ? value['restrictedProductTypes'] : value['restrictedProductTypes'].map(RestrictedProductType_1.RestrictedProductTypeToJSON),
94
91
  'restrictedProductStorageTypes': (value['restrictedProductStorageTypes'] === null || value['restrictedProductStorageTypes'] === undefined) ? value['restrictedProductStorageTypes'] : value['restrictedProductStorageTypes'].map(RestrictedProductStorageType_1.RestrictedProductStorageTypeToJSON),
95
92
  'tags': value['tags'],
96
93
  'isMangopaySynced': value['isMangopaySynced'],
@@ -13,10 +13,9 @@ export * from './PagingMetadata';
13
13
  export * from './PasswordResetCompletionParameters';
14
14
  export * from './PasswordResetCreationParameters';
15
15
  export * from './ProductStorageType';
16
- export * from './ProductType';
16
+ export * from './ProductTypeLink';
17
17
  export * from './RestError';
18
18
  export * from './RestrictedProductStorageType';
19
- export * from './RestrictedProductType';
20
19
  export * from './ScaEnrollmentStatus';
21
20
  export * from './SomeonePasswordUpdateParameters';
22
21
  export * from './ThreadLink';
@@ -43,6 +42,7 @@ export * from './UserMangopayTarget';
43
42
  export * from './UserMangopayUbo';
44
43
  export * from './UserRestrictedFeatureCreationParameter';
45
44
  export * from './UserRestrictedNotificationTypeCreationParameter';
45
+ export * from './UserRestrictedProductTypeCreationParameter';
46
46
  export * from './UserRole';
47
47
  export * from './UserRule';
48
48
  export * from './UserRuleActionEnum';
@@ -31,10 +31,9 @@ __exportStar(require("./PagingMetadata"), exports);
31
31
  __exportStar(require("./PasswordResetCompletionParameters"), exports);
32
32
  __exportStar(require("./PasswordResetCreationParameters"), exports);
33
33
  __exportStar(require("./ProductStorageType"), exports);
34
- __exportStar(require("./ProductType"), exports);
34
+ __exportStar(require("./ProductTypeLink"), exports);
35
35
  __exportStar(require("./RestError"), exports);
36
36
  __exportStar(require("./RestrictedProductStorageType"), exports);
37
- __exportStar(require("./RestrictedProductType"), exports);
38
37
  __exportStar(require("./ScaEnrollmentStatus"), exports);
39
38
  __exportStar(require("./SomeonePasswordUpdateParameters"), exports);
40
39
  __exportStar(require("./ThreadLink"), exports);
@@ -61,6 +60,7 @@ __exportStar(require("./UserMangopayTarget"), exports);
61
60
  __exportStar(require("./UserMangopayUbo"), exports);
62
61
  __exportStar(require("./UserRestrictedFeatureCreationParameter"), exports);
63
62
  __exportStar(require("./UserRestrictedNotificationTypeCreationParameter"), exports);
63
+ __exportStar(require("./UserRestrictedProductTypeCreationParameter"), exports);
64
64
  __exportStar(require("./UserRole"), exports);
65
65
  __exportStar(require("./UserRule"), exports);
66
66
  __exportStar(require("./UserRuleActionEnum"), exports);
@@ -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
- */
16
- export declare const ProductSecondaryType: {
17
- readonly OTC: "OTC";
18
- readonly VIGNETTE: "VIGNETTE";
19
- readonly NR: "NR";
20
- };
21
- export declare type ProductSecondaryType = typeof ProductSecondaryType[keyof typeof ProductSecondaryType];
22
- export declare function instanceOfProductSecondaryType(value: any): boolean;
23
- export declare function ProductSecondaryTypeFromJSON(json: any): ProductSecondaryType;
24
- export declare function ProductSecondaryTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductSecondaryType;
25
- export declare function ProductSecondaryTypeToJSON(value?: ProductSecondaryType | null): any;
@@ -1,48 +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.ProductSecondaryTypeToJSON = exports.ProductSecondaryTypeFromJSONTyped = exports.ProductSecondaryTypeFromJSON = exports.instanceOfProductSecondaryType = exports.ProductSecondaryType = void 0;
17
- /**
18
- *
19
- * @export
20
- */
21
- exports.ProductSecondaryType = {
22
- OTC: 'OTC',
23
- VIGNETTE: 'VIGNETTE',
24
- NR: 'NR'
25
- };
26
- function instanceOfProductSecondaryType(value) {
27
- for (var key in exports.ProductSecondaryType) {
28
- if (Object.prototype.hasOwnProperty.call(exports.ProductSecondaryType, key)) {
29
- if (exports.ProductSecondaryType[key] === value) {
30
- return true;
31
- }
32
- }
33
- }
34
- return false;
35
- }
36
- exports.instanceOfProductSecondaryType = instanceOfProductSecondaryType;
37
- function ProductSecondaryTypeFromJSON(json) {
38
- return ProductSecondaryTypeFromJSONTyped(json, false);
39
- }
40
- exports.ProductSecondaryTypeFromJSON = ProductSecondaryTypeFromJSON;
41
- function ProductSecondaryTypeFromJSONTyped(json, ignoreDiscriminator) {
42
- return json;
43
- }
44
- exports.ProductSecondaryTypeFromJSONTyped = ProductSecondaryTypeFromJSONTyped;
45
- function ProductSecondaryTypeToJSON(value) {
46
- return value;
47
- }
48
- exports.ProductSecondaryTypeToJSON = ProductSecondaryTypeToJSON;
@@ -1,28 +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
- */
16
- export declare const ProductType: {
17
- readonly PARAPHARMACIE: "PARAPHARMACIE";
18
- readonly DM: "DM";
19
- readonly MEDICAMENT: "MEDICAMENT";
20
- readonly HOMEOPATHIE: "HOMEOPATHIE";
21
- readonly VETERINAIRE: "VETERINAIRE";
22
- readonly COMPLEMENT: "COMPLEMENT";
23
- };
24
- export declare type ProductType = typeof ProductType[keyof typeof ProductType];
25
- export declare function instanceOfProductType(value: any): boolean;
26
- export declare function ProductTypeFromJSON(json: any): ProductType;
27
- export declare function ProductTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductType;
28
- export declare function ProductTypeToJSON(value?: ProductType | null): any;
@@ -1,51 +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.ProductTypeToJSON = exports.ProductTypeFromJSONTyped = exports.ProductTypeFromJSON = exports.instanceOfProductType = exports.ProductType = void 0;
17
- /**
18
- *
19
- * @export
20
- */
21
- exports.ProductType = {
22
- PARAPHARMACIE: 'PARAPHARMACIE',
23
- DM: 'DM',
24
- MEDICAMENT: 'MEDICAMENT',
25
- HOMEOPATHIE: 'HOMEOPATHIE',
26
- VETERINAIRE: 'VETERINAIRE',
27
- COMPLEMENT: 'COMPLEMENT'
28
- };
29
- function instanceOfProductType(value) {
30
- for (var key in exports.ProductType) {
31
- if (Object.prototype.hasOwnProperty.call(exports.ProductType, key)) {
32
- if (exports.ProductType[key] === value) {
33
- return true;
34
- }
35
- }
36
- }
37
- return false;
38
- }
39
- exports.instanceOfProductType = instanceOfProductType;
40
- function ProductTypeFromJSON(json) {
41
- return ProductTypeFromJSONTyped(json, false);
42
- }
43
- exports.ProductTypeFromJSON = ProductTypeFromJSON;
44
- function ProductTypeFromJSONTyped(json, ignoreDiscriminator) {
45
- return json;
46
- }
47
- exports.ProductTypeFromJSONTyped = ProductTypeFromJSONTyped;
48
- function ProductTypeToJSON(value) {
49
- return value;
50
- }
51
- exports.ProductTypeToJSON = ProductTypeToJSON;
@@ -1,28 +0,0 @@
1
- /**
2
- * lcdp-factory-service
3
- * This is the REST API of LCDP factory
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
- */
16
- export declare const ProductType: {
17
- readonly PARAPHARMACIE: "PARAPHARMACIE";
18
- readonly DM: "DM";
19
- readonly MEDICAMENT: "MEDICAMENT";
20
- readonly HOMEOPATHIE: "HOMEOPATHIE";
21
- readonly VETERINAIRE: "VETERINAIRE";
22
- readonly COMPLEMENT: "COMPLEMENT";
23
- };
24
- export declare type ProductType = typeof ProductType[keyof typeof ProductType];
25
- export declare function instanceOfProductType(value: any): boolean;
26
- export declare function ProductTypeFromJSON(json: any): ProductType;
27
- export declare function ProductTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductType;
28
- export declare function ProductTypeToJSON(value?: ProductType | null): any;
@@ -1,51 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * lcdp-factory-service
6
- * This is the REST API of LCDP factory
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.ProductTypeToJSON = exports.ProductTypeFromJSONTyped = exports.ProductTypeFromJSON = exports.instanceOfProductType = exports.ProductType = void 0;
17
- /**
18
- *
19
- * @export
20
- */
21
- exports.ProductType = {
22
- PARAPHARMACIE: 'PARAPHARMACIE',
23
- DM: 'DM',
24
- MEDICAMENT: 'MEDICAMENT',
25
- HOMEOPATHIE: 'HOMEOPATHIE',
26
- VETERINAIRE: 'VETERINAIRE',
27
- COMPLEMENT: 'COMPLEMENT'
28
- };
29
- function instanceOfProductType(value) {
30
- for (var key in exports.ProductType) {
31
- if (Object.prototype.hasOwnProperty.call(exports.ProductType, key)) {
32
- if (exports.ProductType[key] === value) {
33
- return true;
34
- }
35
- }
36
- }
37
- return false;
38
- }
39
- exports.instanceOfProductType = instanceOfProductType;
40
- function ProductTypeFromJSON(json) {
41
- return ProductTypeFromJSONTyped(json, false);
42
- }
43
- exports.ProductTypeFromJSON = ProductTypeFromJSON;
44
- function ProductTypeFromJSONTyped(json, ignoreDiscriminator) {
45
- return json;
46
- }
47
- exports.ProductTypeFromJSONTyped = ProductTypeFromJSONTyped;
48
- function ProductTypeToJSON(value) {
49
- return value;
50
- }
51
- exports.ProductTypeToJSON = ProductTypeToJSON;
@@ -1,28 +0,0 @@
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
- /**
13
- *
14
- * @export
15
- */
16
- export declare const ProductType: {
17
- readonly PARAPHARMACIE: "PARAPHARMACIE";
18
- readonly DM: "DM";
19
- readonly MEDICAMENT: "MEDICAMENT";
20
- readonly HOMEOPATHIE: "HOMEOPATHIE";
21
- readonly VETERINAIRE: "VETERINAIRE";
22
- readonly COMPLEMENT: "COMPLEMENT";
23
- };
24
- export declare type ProductType = typeof ProductType[keyof typeof ProductType];
25
- export declare function instanceOfProductType(value: any): boolean;
26
- export declare function ProductTypeFromJSON(json: any): ProductType;
27
- export declare function ProductTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductType;
28
- export declare function ProductTypeToJSON(value?: ProductType | null): any;
@@ -1,51 +0,0 @@
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.ProductTypeToJSON = exports.ProductTypeFromJSONTyped = exports.ProductTypeFromJSON = exports.instanceOfProductType = exports.ProductType = void 0;
17
- /**
18
- *
19
- * @export
20
- */
21
- exports.ProductType = {
22
- PARAPHARMACIE: 'PARAPHARMACIE',
23
- DM: 'DM',
24
- MEDICAMENT: 'MEDICAMENT',
25
- HOMEOPATHIE: 'HOMEOPATHIE',
26
- VETERINAIRE: 'VETERINAIRE',
27
- COMPLEMENT: 'COMPLEMENT'
28
- };
29
- function instanceOfProductType(value) {
30
- for (var key in exports.ProductType) {
31
- if (Object.prototype.hasOwnProperty.call(exports.ProductType, key)) {
32
- if (exports.ProductType[key] === value) {
33
- return true;
34
- }
35
- }
36
- }
37
- return false;
38
- }
39
- exports.instanceOfProductType = instanceOfProductType;
40
- function ProductTypeFromJSON(json) {
41
- return ProductTypeFromJSONTyped(json, false);
42
- }
43
- exports.ProductTypeFromJSON = ProductTypeFromJSON;
44
- function ProductTypeFromJSONTyped(json, ignoreDiscriminator) {
45
- return json;
46
- }
47
- exports.ProductTypeFromJSONTyped = ProductTypeFromJSONTyped;
48
- function ProductTypeToJSON(value) {
49
- return value;
50
- }
51
- exports.ProductTypeToJSON = ProductTypeToJSON;
@@ -1,46 +0,0 @@
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 { ProductType } from './ProductType';
13
- /**
14
- *
15
- * @export
16
- * @interface RestrictedProductType
17
- */
18
- export interface RestrictedProductType {
19
- /**
20
- *
21
- * @type {Array<string>}
22
- * @memberof RestrictedProductType
23
- */
24
- actions?: Array<RestrictedProductTypeActionsEnum>;
25
- /**
26
- *
27
- * @type {ProductType}
28
- * @memberof RestrictedProductType
29
- */
30
- target?: ProductType;
31
- }
32
- /**
33
- * @export
34
- */
35
- export declare const RestrictedProductTypeActionsEnum: {
36
- readonly BUY: "BUY";
37
- readonly SELL: "SELL";
38
- };
39
- export declare type RestrictedProductTypeActionsEnum = typeof RestrictedProductTypeActionsEnum[keyof typeof RestrictedProductTypeActionsEnum];
40
- /**
41
- * Check if a given object implements the RestrictedProductType interface.
42
- */
43
- export declare function instanceOfRestrictedProductType(value: object): value is RestrictedProductType;
44
- export declare function RestrictedProductTypeFromJSON(json: any): RestrictedProductType;
45
- export declare function RestrictedProductTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): RestrictedProductType;
46
- export declare function RestrictedProductTypeToJSON(value?: RestrictedProductType | null): any;
@@ -1,55 +0,0 @@
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.RestrictedProductTypeToJSON = exports.RestrictedProductTypeFromJSONTyped = exports.RestrictedProductTypeFromJSON = exports.instanceOfRestrictedProductType = exports.RestrictedProductTypeActionsEnum = void 0;
17
- var ProductType_1 = require("./ProductType");
18
- /**
19
- * @export
20
- */
21
- exports.RestrictedProductTypeActionsEnum = {
22
- BUY: 'BUY',
23
- SELL: 'SELL'
24
- };
25
- /**
26
- * Check if a given object implements the RestrictedProductType interface.
27
- */
28
- function instanceOfRestrictedProductType(value) {
29
- return true;
30
- }
31
- exports.instanceOfRestrictedProductType = instanceOfRestrictedProductType;
32
- function RestrictedProductTypeFromJSON(json) {
33
- return RestrictedProductTypeFromJSONTyped(json, false);
34
- }
35
- exports.RestrictedProductTypeFromJSON = RestrictedProductTypeFromJSON;
36
- function RestrictedProductTypeFromJSONTyped(json, ignoreDiscriminator) {
37
- if (json == null) {
38
- return json;
39
- }
40
- return {
41
- 'actions': json['actions'],
42
- 'target': (json['target'] === null || json['target'] === undefined) ? json['target'] : (0, ProductType_1.ProductTypeFromJSON)(json['target']),
43
- };
44
- }
45
- exports.RestrictedProductTypeFromJSONTyped = RestrictedProductTypeFromJSONTyped;
46
- function RestrictedProductTypeToJSON(value) {
47
- if (value == null) {
48
- return value;
49
- }
50
- return {
51
- 'actions': value['actions'],
52
- 'target': (0, ProductType_1.ProductTypeToJSON)(value['target']),
53
- };
54
- }
55
- exports.RestrictedProductTypeToJSON = RestrictedProductTypeToJSON;