@lcdp/api-react-rest-client 3.1.11 → 3.3.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 +8 -6
  4. package/catalog/src/models/ProductInsightCreateOrUpdateParameters.js +6 -4
  5. package/catalog/src/models/ProductSecondaryType.d.ts +25 -0
  6. package/catalog/src/models/ProductSecondaryType.js +48 -0
  7. package/catalog/src/models/ProductType.d.ts +28 -0
  8. package/catalog/src/models/ProductType.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 +4 -3
  12. package/factory/src/models/Product.js +3 -2
  13. package/factory/src/models/ProductType.d.ts +28 -0
  14. package/factory/src/models/ProductType.js +51 -0
  15. package/factory/src/models/index.d.ts +1 -0
  16. package/factory/src/models/index.js +1 -0
  17. package/package.json +1 -1
  18. package/product/src/apis/ManageProductApi.d.ts +2 -2
  19. package/product/src/apis/ManageProductApi.js +2 -2
  20. package/product/src/apis/index.d.ts +0 -1
  21. package/product/src/apis/index.js +0 -1
  22. package/product/src/models/ProductCreationOrUpdateParameters.d.ts +8 -6
  23. package/product/src/models/ProductCreationOrUpdateParameters.js +6 -4
  24. package/product/src/models/ProductSecondaryType.d.ts +7 -19
  25. package/product/src/models/ProductSecondaryType.js +18 -17
  26. package/product/src/models/ProductType.d.ts +10 -19
  27. package/product/src/models/ProductType.js +21 -17
  28. package/user/src/apis/ManageUserRestrictionApi.d.ts +1 -25
  29. package/user/src/apis/ManageUserRestrictionApi.js +12 -152
  30. package/user/src/apis/SearchUserRestrictionApi.d.ts +1 -12
  31. package/user/src/apis/SearchUserRestrictionApi.js +0 -79
  32. package/user/src/models/ProductType.d.ts +28 -0
  33. package/user/src/models/ProductType.js +51 -0
  34. package/user/src/models/RestrictedProductType.d.ts +46 -0
  35. package/user/src/models/RestrictedProductType.js +55 -0
  36. package/user/src/models/User.d.ts +3 -2
  37. package/user/src/models/User.js +3 -2
  38. package/user/src/models/UserUpdateParameters.d.ts +7 -0
  39. package/user/src/models/UserUpdateParameters.js +3 -0
  40. package/user/src/models/index.d.ts +2 -2
  41. package/user/src/models/index.js +2 -2
  42. package/catalog/src/models/ProductSecondaryTypeLink.d.ts +0 -43
  43. package/catalog/src/models/ProductSecondaryTypeLink.js +0 -51
  44. package/catalog/src/models/ProductTypeLink.d.ts +0 -43
  45. package/catalog/src/models/ProductTypeLink.js +0 -51
  46. package/product/src/apis/SearchProductMetadataApi.d.ts +0 -56
  47. package/product/src/apis/SearchProductMetadataApi.js +0 -390
  48. package/user/src/models/ProductTypeLink.d.ts +0 -43
  49. package/user/src/models/ProductTypeLink.js +0 -51
  50. package/user/src/models/UserRestrictedProductTypeCreationParameter.d.ts +0 -31
  51. package/user/src/models/UserRestrictedProductTypeCreationParameter.js +0 -47
@@ -0,0 +1,55 @@
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;
@@ -15,6 +15,7 @@ import type { Address } from './Address';
15
15
  import type { UserStatisticLink } from './UserStatisticLink';
16
16
  import type { UserMangopayTarget } from './UserMangopayTarget';
17
17
  import type { UserDelegatedServices } from './UserDelegatedServices';
18
+ import type { RestrictedProductType } from './RestrictedProductType';
18
19
  import type { HttpLink } from './HttpLink';
19
20
  import type { Gender } from './Gender';
20
21
  import type { ScaEnrollmentStatus } from './ScaEnrollmentStatus';
@@ -267,10 +268,10 @@ export interface User {
267
268
  restrictedFeatures?: HttpLink;
268
269
  /**
269
270
  *
270
- * @type {HttpLink}
271
+ * @type {Array<RestrictedProductType>}
271
272
  * @memberof User
272
273
  */
273
- restrictedProductTypes?: HttpLink;
274
+ restrictedProductTypes?: Array<RestrictedProductType>;
274
275
  /**
275
276
  *
276
277
  * @type {Array<RestrictedProductStorageType>}
@@ -21,6 +21,7 @@ var Address_1 = require("./Address");
21
21
  var UserStatisticLink_1 = require("./UserStatisticLink");
22
22
  var UserMangopayTarget_1 = require("./UserMangopayTarget");
23
23
  var UserDelegatedServices_1 = require("./UserDelegatedServices");
24
+ var RestrictedProductType_1 = require("./RestrictedProductType");
24
25
  var HttpLink_1 = require("./HttpLink");
25
26
  var Gender_1 = require("./Gender");
26
27
  var ScaEnrollmentStatus_1 = require("./ScaEnrollmentStatus");
@@ -105,7 +106,7 @@ function UserFromJSONTyped(json, ignoreDiscriminator) {
105
106
  'threads': (json['threads'] === null || json['threads'] === undefined) ? json['threads'] : (0, UserThreads_1.UserThreadsFromJSON)(json['threads']),
106
107
  'rules': (json['rules'] === null || json['rules'] === undefined) ? json['rules'] : (0, HttpLink_1.HttpLinkFromJSON)(json['rules']),
107
108
  'restrictedFeatures': (json['restrictedFeatures'] === null || json['restrictedFeatures'] === undefined) ? json['restrictedFeatures'] : (0, HttpLink_1.HttpLinkFromJSON)(json['restrictedFeatures']),
108
- 'restrictedProductTypes': (json['restrictedProductTypes'] === null || json['restrictedProductTypes'] === undefined) ? json['restrictedProductTypes'] : (0, HttpLink_1.HttpLinkFromJSON)(json['restrictedProductTypes']),
109
+ 'restrictedProductTypes': (json['restrictedProductTypes'] === null || json['restrictedProductTypes'] === undefined) ? json['restrictedProductTypes'] : json['restrictedProductTypes'].map(RestrictedProductType_1.RestrictedProductTypeFromJSON),
109
110
  'restrictedProductStorageTypes': (json['restrictedProductStorageTypes'] === null || json['restrictedProductStorageTypes'] === undefined) ? json['restrictedProductStorageTypes'] : json['restrictedProductStorageTypes'].map(RestrictedProductStorageType_1.RestrictedProductStorageTypeFromJSON),
110
111
  'restrictedNotificationTypes': (json['restrictedNotificationTypes'] === null || json['restrictedNotificationTypes'] === undefined) ? json['restrictedNotificationTypes'] : (0, HttpLink_1.HttpLinkFromJSON)(json['restrictedNotificationTypes']),
111
112
  'customCommissions': (json['customCommissions'] === null || json['customCommissions'] === undefined) ? json['customCommissions'] : (0, HttpLink_1.HttpLinkFromJSON)(json['customCommissions']),
@@ -166,7 +167,7 @@ function UserToJSON(value) {
166
167
  'threads': (0, UserThreads_1.UserThreadsToJSON)(value['threads']),
167
168
  'rules': (0, HttpLink_1.HttpLinkToJSON)(value['rules']),
168
169
  'restrictedFeatures': (0, HttpLink_1.HttpLinkToJSON)(value['restrictedFeatures']),
169
- 'restrictedProductTypes': (0, HttpLink_1.HttpLinkToJSON)(value['restrictedProductTypes']),
170
+ 'restrictedProductTypes': (value['restrictedProductTypes'] === null || value['restrictedProductTypes'] === undefined) ? value['restrictedProductTypes'] : value['restrictedProductTypes'].map(RestrictedProductType_1.RestrictedProductTypeToJSON),
170
171
  'restrictedProductStorageTypes': (value['restrictedProductStorageTypes'] === null || value['restrictedProductStorageTypes'] === undefined) ? value['restrictedProductStorageTypes'] : value['restrictedProductStorageTypes'].map(RestrictedProductStorageType_1.RestrictedProductStorageTypeToJSON),
171
172
  'restrictedNotificationTypes': (0, HttpLink_1.HttpLinkToJSON)(value['restrictedNotificationTypes']),
172
173
  'customCommissions': (0, HttpLink_1.HttpLinkToJSON)(value['customCommissions']),
@@ -13,6 +13,7 @@ import type { UserCompany } from './UserCompany';
13
13
  import type { Address } from './Address';
14
14
  import type { UserRole } from './UserRole';
15
15
  import type { UserDelegatedServices } from './UserDelegatedServices';
16
+ import type { RestrictedProductType } from './RestrictedProductType';
16
17
  import type { RestrictedProductStorageType } from './RestrictedProductStorageType';
17
18
  import type { UserJournalUpdateParameters } from './UserJournalUpdateParameters';
18
19
  import type { Gender } from './Gender';
@@ -136,6 +137,12 @@ export interface UserUpdateParameters {
136
137
  * @memberof UserUpdateParameters
137
138
  */
138
139
  delegatedServices?: UserDelegatedServices;
140
+ /**
141
+ *
142
+ * @type {Array<RestrictedProductType>}
143
+ * @memberof UserUpdateParameters
144
+ */
145
+ restrictedProductTypes?: Array<RestrictedProductType>;
139
146
  /**
140
147
  *
141
148
  * @type {Array<RestrictedProductStorageType>}
@@ -19,6 +19,7 @@ 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");
22
23
  var RestrictedProductStorageType_1 = require("./RestrictedProductStorageType");
23
24
  var UserJournalUpdateParameters_1 = require("./UserJournalUpdateParameters");
24
25
  var Gender_1 = require("./Gender");
@@ -57,6 +58,7 @@ function UserUpdateParametersFromJSONTyped(json, ignoreDiscriminator) {
57
58
  'company': (json['company'] === null || json['company'] === undefined) ? json['company'] : (0, UserCompany_1.UserCompanyFromJSON)(json['company']),
58
59
  'pickupEnabled': json['pickupEnabled'],
59
60
  '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),
60
62
  'restrictedProductStorageTypes': (json['restrictedProductStorageTypes'] === null || json['restrictedProductStorageTypes'] === undefined) ? json['restrictedProductStorageTypes'] : json['restrictedProductStorageTypes'].map(RestrictedProductStorageType_1.RestrictedProductStorageTypeFromJSON),
61
63
  'tags': json['tags'],
62
64
  'isMangopaySynced': json['isMangopaySynced'],
@@ -88,6 +90,7 @@ function UserUpdateParametersToJSON(value) {
88
90
  'company': (0, UserCompany_1.UserCompanyToJSON)(value['company']),
89
91
  'pickupEnabled': value['pickupEnabled'],
90
92
  'delegatedServices': (0, UserDelegatedServices_1.UserDelegatedServicesToJSON)(value['delegatedServices']),
93
+ 'restrictedProductTypes': (value['restrictedProductTypes'] === null || value['restrictedProductTypes'] === undefined) ? value['restrictedProductTypes'] : value['restrictedProductTypes'].map(RestrictedProductType_1.RestrictedProductTypeToJSON),
91
94
  'restrictedProductStorageTypes': (value['restrictedProductStorageTypes'] === null || value['restrictedProductStorageTypes'] === undefined) ? value['restrictedProductStorageTypes'] : value['restrictedProductStorageTypes'].map(RestrictedProductStorageType_1.RestrictedProductStorageTypeToJSON),
92
95
  'tags': value['tags'],
93
96
  'isMangopaySynced': value['isMangopaySynced'],
@@ -13,9 +13,10 @@ export * from './PagingMetadata';
13
13
  export * from './PasswordResetCompletionParameters';
14
14
  export * from './PasswordResetCreationParameters';
15
15
  export * from './ProductStorageType';
16
- export * from './ProductTypeLink';
16
+ export * from './ProductType';
17
17
  export * from './RestError';
18
18
  export * from './RestrictedProductStorageType';
19
+ export * from './RestrictedProductType';
19
20
  export * from './ScaEnrollmentStatus';
20
21
  export * from './SomeonePasswordUpdateParameters';
21
22
  export * from './ThreadLink';
@@ -42,7 +43,6 @@ export * from './UserMangopayTarget';
42
43
  export * from './UserMangopayUbo';
43
44
  export * from './UserRestrictedFeatureCreationParameter';
44
45
  export * from './UserRestrictedNotificationTypeCreationParameter';
45
- export * from './UserRestrictedProductTypeCreationParameter';
46
46
  export * from './UserRole';
47
47
  export * from './UserRule';
48
48
  export * from './UserRuleActionEnum';
@@ -31,9 +31,10 @@ __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("./ProductTypeLink"), exports);
34
+ __exportStar(require("./ProductType"), exports);
35
35
  __exportStar(require("./RestError"), exports);
36
36
  __exportStar(require("./RestrictedProductStorageType"), exports);
37
+ __exportStar(require("./RestrictedProductType"), exports);
37
38
  __exportStar(require("./ScaEnrollmentStatus"), exports);
38
39
  __exportStar(require("./SomeonePasswordUpdateParameters"), exports);
39
40
  __exportStar(require("./ThreadLink"), exports);
@@ -60,7 +61,6 @@ __exportStar(require("./UserMangopayTarget"), exports);
60
61
  __exportStar(require("./UserMangopayUbo"), exports);
61
62
  __exportStar(require("./UserRestrictedFeatureCreationParameter"), exports);
62
63
  __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,43 +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 ProductSecondaryTypeLink
16
- */
17
- export interface ProductSecondaryTypeLink {
18
- /**
19
- * Any URL that is using http or https protocol
20
- * @type {string}
21
- * @memberof ProductSecondaryTypeLink
22
- */
23
- href: string;
24
- /**
25
- * Id of the product secondary type
26
- * @type {string}
27
- * @memberof ProductSecondaryTypeLink
28
- */
29
- id?: string;
30
- /**
31
- * Readable name for display
32
- * @type {string}
33
- * @memberof ProductSecondaryTypeLink
34
- */
35
- name?: string;
36
- }
37
- /**
38
- * Check if a given object implements the ProductSecondaryTypeLink interface.
39
- */
40
- export declare function instanceOfProductSecondaryTypeLink(value: object): value is ProductSecondaryTypeLink;
41
- export declare function ProductSecondaryTypeLinkFromJSON(json: any): ProductSecondaryTypeLink;
42
- export declare function ProductSecondaryTypeLinkFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductSecondaryTypeLink;
43
- export declare function ProductSecondaryTypeLinkToJSON(value?: ProductSecondaryTypeLink | 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.ProductSecondaryTypeLinkToJSON = exports.ProductSecondaryTypeLinkFromJSONTyped = exports.ProductSecondaryTypeLinkFromJSON = exports.instanceOfProductSecondaryTypeLink = void 0;
17
- /**
18
- * Check if a given object implements the ProductSecondaryTypeLink interface.
19
- */
20
- function instanceOfProductSecondaryTypeLink(value) {
21
- if (!('href' in value) || value['href'] === undefined)
22
- return false;
23
- return true;
24
- }
25
- exports.instanceOfProductSecondaryTypeLink = instanceOfProductSecondaryTypeLink;
26
- function ProductSecondaryTypeLinkFromJSON(json) {
27
- return ProductSecondaryTypeLinkFromJSONTyped(json, false);
28
- }
29
- exports.ProductSecondaryTypeLinkFromJSON = ProductSecondaryTypeLinkFromJSON;
30
- function ProductSecondaryTypeLinkFromJSONTyped(json, ignoreDiscriminator) {
31
- if (json == null) {
32
- return json;
33
- }
34
- return {
35
- 'href': json['href'],
36
- 'id': json['id'],
37
- 'name': json['name'],
38
- };
39
- }
40
- exports.ProductSecondaryTypeLinkFromJSONTyped = ProductSecondaryTypeLinkFromJSONTyped;
41
- function ProductSecondaryTypeLinkToJSON(value) {
42
- if (value == null) {
43
- return value;
44
- }
45
- return {
46
- 'href': value['href'],
47
- 'id': value['id'],
48
- 'name': value['name'],
49
- };
50
- }
51
- exports.ProductSecondaryTypeLinkToJSON = ProductSecondaryTypeLinkToJSON;
@@ -1,43 +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 ProductTypeLink
16
- */
17
- export interface ProductTypeLink {
18
- /**
19
- * Any URL that is using http or https protocol
20
- * @type {string}
21
- * @memberof ProductTypeLink
22
- */
23
- href: string;
24
- /**
25
- * Id of the product type (machine name)
26
- * @type {string}
27
- * @memberof ProductTypeLink
28
- */
29
- id?: string;
30
- /**
31
- * Readable name for display
32
- * @type {string}
33
- * @memberof ProductTypeLink
34
- */
35
- name?: string;
36
- }
37
- /**
38
- * Check if a given object implements the ProductTypeLink interface.
39
- */
40
- export declare function instanceOfProductTypeLink(value: object): value is ProductTypeLink;
41
- export declare function ProductTypeLinkFromJSON(json: any): ProductTypeLink;
42
- export declare function ProductTypeLinkFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductTypeLink;
43
- export declare function ProductTypeLinkToJSON(value?: ProductTypeLink | 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.ProductTypeLinkToJSON = exports.ProductTypeLinkFromJSONTyped = exports.ProductTypeLinkFromJSON = exports.instanceOfProductTypeLink = void 0;
17
- /**
18
- * Check if a given object implements the ProductTypeLink interface.
19
- */
20
- function instanceOfProductTypeLink(value) {
21
- if (!('href' in value) || value['href'] === undefined)
22
- return false;
23
- return true;
24
- }
25
- exports.instanceOfProductTypeLink = instanceOfProductTypeLink;
26
- function ProductTypeLinkFromJSON(json) {
27
- return ProductTypeLinkFromJSONTyped(json, false);
28
- }
29
- exports.ProductTypeLinkFromJSON = ProductTypeLinkFromJSON;
30
- function ProductTypeLinkFromJSONTyped(json, ignoreDiscriminator) {
31
- if (json == null) {
32
- return json;
33
- }
34
- return {
35
- 'href': json['href'],
36
- 'id': json['id'],
37
- 'name': json['name'],
38
- };
39
- }
40
- exports.ProductTypeLinkFromJSONTyped = ProductTypeLinkFromJSONTyped;
41
- function ProductTypeLinkToJSON(value) {
42
- if (value == null) {
43
- return value;
44
- }
45
- return {
46
- 'href': value['href'],
47
- 'id': value['id'],
48
- 'name': value['name'],
49
- };
50
- }
51
- exports.ProductTypeLinkToJSON = ProductTypeLinkToJSON;
@@ -1,56 +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 * as runtime from '../runtime';
13
- import type { ProductSecondaryType, ProductType } from '../models/index';
14
- export interface GetProductSecondaryTypeRequest {
15
- secondaryTypeId: string;
16
- }
17
- export interface GetProductTypeRequest {
18
- typeId: string;
19
- }
20
- /**
21
- *
22
- */
23
- export declare class SearchProductMetadataApi extends runtime.BaseAPI {
24
- /**
25
- * Get product secondary type
26
- */
27
- getProductSecondaryTypeRaw(requestParameters: GetProductSecondaryTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductSecondaryType | runtime.BlobWithMeta>>;
28
- /**
29
- * Get product secondary type
30
- */
31
- getProductSecondaryType(requestParameters: GetProductSecondaryTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductSecondaryType | runtime.BlobWithMeta>;
32
- /**
33
- * Get product secondary types
34
- */
35
- getProductSecondaryTypesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ProductSecondaryType> | runtime.BlobWithMeta>>;
36
- /**
37
- * Get product secondary types
38
- */
39
- getProductSecondaryTypes(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ProductSecondaryType> | runtime.BlobWithMeta>;
40
- /**
41
- * Get product type
42
- */
43
- getProductTypeRaw(requestParameters: GetProductTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductType | runtime.BlobWithMeta>>;
44
- /**
45
- * Get product type
46
- */
47
- getProductType(requestParameters: GetProductTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductType | runtime.BlobWithMeta>;
48
- /**
49
- * Get product types
50
- */
51
- getProductTypesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ProductType> | runtime.BlobWithMeta>>;
52
- /**
53
- * Get product types
54
- */
55
- getProductTypes(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ProductType> | runtime.BlobWithMeta>;
56
- }