@lcdp/api-react-rest-client 2.11.5 → 2.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/auth/src/models/PagingMetadata.d.ts +4 -4
- package/auth/src/models/PagingMetadata.js +0 -4
- package/banking-operation/src/models/PagingMetadata.d.ts +4 -4
- package/banking-operation/src/models/PagingMetadata.js +0 -4
- package/catalog/src/models/PagingMetadata.d.ts +4 -4
- package/catalog/src/models/PagingMetadata.js +0 -4
- package/factory/src/models/PagingMetadata.d.ts +4 -4
- package/factory/src/models/PagingMetadata.js +0 -4
- package/favorite/src/models/PagingMetadata.d.ts +4 -4
- package/favorite/src/models/PagingMetadata.js +0 -4
- package/inventory/src/apis/ManageInventoryApi.d.ts +1 -28
- package/inventory/src/apis/ManageInventoryApi.js +8 -165
- package/inventory/src/apis/ManageInventorySynchronizationApi.d.ts +93 -0
- package/inventory/src/apis/ManageInventorySynchronizationApi.js +515 -0
- package/inventory/src/apis/index.d.ts +1 -0
- package/inventory/src/apis/index.js +1 -0
- package/inventory/src/models/AnyBuffer.d.ts +26 -0
- package/inventory/src/models/AnyBuffer.js +50 -0
- package/inventory/src/models/Buffer.d.ts +33 -0
- package/inventory/src/models/Buffer.js +47 -0
- package/inventory/src/models/FixedBuffer.d.ts +37 -0
- package/inventory/src/models/FixedBuffer.js +49 -0
- package/inventory/src/models/IdentifiedSynchronization.d.ts +52 -0
- package/inventory/src/models/IdentifiedSynchronization.js +62 -0
- package/inventory/src/models/PagingMetadata.d.ts +4 -4
- package/inventory/src/models/PagingMetadata.js +0 -4
- package/inventory/src/models/SalesForecastBuffer.d.ts +37 -0
- package/inventory/src/models/SalesForecastBuffer.js +49 -0
- package/inventory/src/models/Synchronization.d.ts +48 -0
- package/inventory/src/models/Synchronization.js +58 -0
- package/inventory/src/models/SynchronizationMode.d.ts +3 -3
- package/inventory/src/models/SynchronizationMode.js +3 -3
- package/inventory/src/models/SynchronizationProposal.d.ts +56 -0
- package/inventory/src/models/SynchronizationProposal.js +63 -0
- package/inventory/src/models/index.d.ts +7 -1
- package/inventory/src/models/index.js +7 -1
- package/invoice/src/models/Invoice.d.ts +2 -2
- package/invoice/src/models/OrderTally.d.ts +4 -4
- package/invoice/src/models/PagingMetadata.d.ts +4 -4
- package/invoice/src/models/PagingMetadata.js +0 -4
- package/laboratory/src/models/PagingMetadata.d.ts +4 -4
- package/laboratory/src/models/PagingMetadata.js +0 -4
- package/laboratory-store/src/models/PagingMetadata.d.ts +4 -4
- package/laboratory-store/src/models/PagingMetadata.js +0 -4
- package/laboratory-store-log/src/models/PagingMetadata.d.ts +4 -4
- package/laboratory-store-log/src/models/PagingMetadata.js +0 -4
- package/lexicon/src/models/PagingMetadata.d.ts +4 -4
- package/lexicon/src/models/PagingMetadata.js +0 -4
- package/message/src/models/PagingMetadata.d.ts +4 -4
- package/message/src/models/PagingMetadata.js +0 -4
- package/notification/src/models/PagingMetadata.d.ts +4 -4
- package/notification/src/models/PagingMetadata.js +0 -4
- package/order/src/models/Order.d.ts +1 -1
- package/order/src/models/Order.js +0 -2
- package/order/src/models/PagingMetadata.d.ts +4 -4
- package/order/src/models/PagingMetadata.js +0 -4
- package/order/src/models/UserLink.d.ts +1 -1
- package/order-log/src/models/PagingMetadata.d.ts +4 -4
- package/order-log/src/models/PagingMetadata.js +0 -4
- package/outrage-message/src/models/PagingMetadata.d.ts +4 -4
- package/outrage-message/src/models/PagingMetadata.js +0 -4
- package/package.json +1 -1
- package/product/src/models/PagingMetadata.d.ts +4 -4
- package/product/src/models/PagingMetadata.js +0 -4
- package/pub/src/models/Image.d.ts +0 -6
- package/pub/src/models/Image.js +0 -4
- package/pub/src/models/PagingMetadata.d.ts +4 -4
- package/pub/src/models/PagingMetadata.js +0 -4
- package/recommendation/src/models/PagingMetadata.d.ts +4 -4
- package/recommendation/src/models/PagingMetadata.js +0 -4
- package/rfx/src/models/PagingMetadata.d.ts +4 -4
- package/rfx/src/models/PagingMetadata.js +0 -4
- package/sale-offer/src/models/PagingMetadata.d.ts +4 -4
- package/sale-offer/src/models/PagingMetadata.js +0 -4
- package/sale-offer-log/src/models/PagingMetadata.d.ts +4 -4
- package/sale-offer-log/src/models/PagingMetadata.js +0 -4
- package/shipment/src/models/PagingMetadata.d.ts +4 -4
- package/shipment/src/models/PagingMetadata.js +0 -4
- package/shopping-cart/src/models/ProductLink.d.ts +1 -1
- package/statistic/src/models/PagingMetadata.d.ts +4 -4
- package/statistic/src/models/PagingMetadata.js +0 -4
- package/subscription/src/models/PagingMetadata.d.ts +4 -4
- package/subscription/src/models/PagingMetadata.js +0 -4
- package/thread/src/models/PagingMetadata.d.ts +4 -4
- package/thread/src/models/PagingMetadata.js +0 -4
- package/ubo/src/models/Birthplace.d.ts +38 -0
- package/ubo/src/models/Birthplace.js +52 -0
- package/ubo/src/models/Ubo.d.ts +3 -2
- package/ubo/src/models/Ubo.js +3 -2
- package/ubo/src/models/index.d.ts +1 -0
- package/ubo/src/models/index.js +1 -0
- package/user/src/models/PagingMetadata.d.ts +4 -4
- package/user/src/models/PagingMetadata.js +0 -4
- package/user/src/models/UserUpdateParameters.d.ts +1 -1
- package/wish/src/models/PagingMetadata.d.ts +4 -4
- package/wish/src/models/PagingMetadata.js +0 -4
- package/inventory/src/models/ActiveProductUpdateParameters.d.ts +0 -32
- package/inventory/src/models/ActiveProductUpdateParameters.js +0 -46
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* lcdp-pharmaide-service
|
|
6
|
+
* This is the REST API of LCDP products
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
* Contact: contact@lecomptoirdespharmacies.fr
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.BufferToJSON = exports.BufferFromJSONTyped = exports.BufferFromJSON = exports.instanceOfBuffer = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the Buffer interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfBuffer(value) {
|
|
21
|
+
if (!('strategy' in value) || value['strategy'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
exports.instanceOfBuffer = instanceOfBuffer;
|
|
26
|
+
function BufferFromJSON(json) {
|
|
27
|
+
return BufferFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
exports.BufferFromJSON = BufferFromJSON;
|
|
30
|
+
function BufferFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'strategy': json['strategy'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
exports.BufferFromJSONTyped = BufferFromJSONTyped;
|
|
39
|
+
function BufferToJSON(value) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'strategy': value['strategy'],
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
exports.BufferToJSON = BufferToJSON;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* lcdp-pharmaide-service
|
|
3
|
+
* This is the REST API of LCDP products
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: contact@lecomptoirdespharmacies.fr
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface FixedBuffer
|
|
16
|
+
*/
|
|
17
|
+
export interface FixedBuffer {
|
|
18
|
+
/**
|
|
19
|
+
* Buffer strategy
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof FixedBuffer
|
|
22
|
+
*/
|
|
23
|
+
strategy: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof FixedBuffer
|
|
28
|
+
*/
|
|
29
|
+
quantity?: number;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the FixedBuffer interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfFixedBuffer(value: object): value is FixedBuffer;
|
|
35
|
+
export declare function FixedBufferFromJSON(json: any): FixedBuffer;
|
|
36
|
+
export declare function FixedBufferFromJSONTyped(json: any, ignoreDiscriminator: boolean): FixedBuffer;
|
|
37
|
+
export declare function FixedBufferToJSON(value?: FixedBuffer | null): any;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* lcdp-pharmaide-service
|
|
6
|
+
* This is the REST API of LCDP products
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
* Contact: contact@lecomptoirdespharmacies.fr
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.FixedBufferToJSON = exports.FixedBufferFromJSONTyped = exports.FixedBufferFromJSON = exports.instanceOfFixedBuffer = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the FixedBuffer interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfFixedBuffer(value) {
|
|
21
|
+
if (!('strategy' in value) || value['strategy'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
exports.instanceOfFixedBuffer = instanceOfFixedBuffer;
|
|
26
|
+
function FixedBufferFromJSON(json) {
|
|
27
|
+
return FixedBufferFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
exports.FixedBufferFromJSON = FixedBufferFromJSON;
|
|
30
|
+
function FixedBufferFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'strategy': json['strategy'],
|
|
36
|
+
'quantity': json['quantity'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
exports.FixedBufferFromJSONTyped = FixedBufferFromJSONTyped;
|
|
40
|
+
function FixedBufferToJSON(value) {
|
|
41
|
+
if (value == null) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'strategy': value['strategy'],
|
|
46
|
+
'quantity': value['quantity'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
exports.FixedBufferToJSON = FixedBufferToJSON;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* lcdp-pharmaide-service
|
|
3
|
+
* This is the REST API of LCDP products
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: contact@lecomptoirdespharmacies.fr
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { SynchronizationMode } from './SynchronizationMode';
|
|
13
|
+
import type { SynchronizationProposal } from './SynchronizationProposal';
|
|
14
|
+
import type { AnyBuffer } from './AnyBuffer';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface IdentifiedSynchronization
|
|
19
|
+
*/
|
|
20
|
+
export interface IdentifiedSynchronization {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {AnyBuffer}
|
|
24
|
+
* @memberof IdentifiedSynchronization
|
|
25
|
+
*/
|
|
26
|
+
buffer: AnyBuffer | null;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {SynchronizationProposal}
|
|
30
|
+
* @memberof IdentifiedSynchronization
|
|
31
|
+
*/
|
|
32
|
+
proposal: SynchronizationProposal | null;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {SynchronizationMode}
|
|
36
|
+
* @memberof IdentifiedSynchronization
|
|
37
|
+
*/
|
|
38
|
+
mode: SynchronizationMode;
|
|
39
|
+
/**
|
|
40
|
+
* Id of the synchronization, linked to the product id associated with this synchronization
|
|
41
|
+
* @type {number}
|
|
42
|
+
* @memberof IdentifiedSynchronization
|
|
43
|
+
*/
|
|
44
|
+
id: number;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Check if a given object implements the IdentifiedSynchronization interface.
|
|
48
|
+
*/
|
|
49
|
+
export declare function instanceOfIdentifiedSynchronization(value: object): value is IdentifiedSynchronization;
|
|
50
|
+
export declare function IdentifiedSynchronizationFromJSON(json: any): IdentifiedSynchronization;
|
|
51
|
+
export declare function IdentifiedSynchronizationFromJSONTyped(json: any, ignoreDiscriminator: boolean): IdentifiedSynchronization;
|
|
52
|
+
export declare function IdentifiedSynchronizationToJSON(value?: IdentifiedSynchronization | null): any;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* lcdp-pharmaide-service
|
|
6
|
+
* This is the REST API of LCDP products
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
* Contact: contact@lecomptoirdespharmacies.fr
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.IdentifiedSynchronizationToJSON = exports.IdentifiedSynchronizationFromJSONTyped = exports.IdentifiedSynchronizationFromJSON = exports.instanceOfIdentifiedSynchronization = void 0;
|
|
17
|
+
var SynchronizationMode_1 = require("./SynchronizationMode");
|
|
18
|
+
var SynchronizationProposal_1 = require("./SynchronizationProposal");
|
|
19
|
+
var AnyBuffer_1 = require("./AnyBuffer");
|
|
20
|
+
/**
|
|
21
|
+
* Check if a given object implements the IdentifiedSynchronization interface.
|
|
22
|
+
*/
|
|
23
|
+
function instanceOfIdentifiedSynchronization(value) {
|
|
24
|
+
if (!('buffer' in value) || value['buffer'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('proposal' in value) || value['proposal'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('mode' in value) || value['mode'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
exports.instanceOfIdentifiedSynchronization = instanceOfIdentifiedSynchronization;
|
|
35
|
+
function IdentifiedSynchronizationFromJSON(json) {
|
|
36
|
+
return IdentifiedSynchronizationFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
exports.IdentifiedSynchronizationFromJSON = IdentifiedSynchronizationFromJSON;
|
|
39
|
+
function IdentifiedSynchronizationFromJSONTyped(json, ignoreDiscriminator) {
|
|
40
|
+
if (json == null) {
|
|
41
|
+
return json;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'buffer': (json['buffer'] === null || json['buffer'] === undefined) ? json['buffer'] : (0, AnyBuffer_1.AnyBufferFromJSON)(json['buffer']),
|
|
45
|
+
'proposal': (json['proposal'] === null || json['proposal'] === undefined) ? json['proposal'] : (0, SynchronizationProposal_1.SynchronizationProposalFromJSON)(json['proposal']),
|
|
46
|
+
'mode': (json['mode'] === null || json['mode'] === undefined) ? json['mode'] : (0, SynchronizationMode_1.SynchronizationModeFromJSON)(json['mode']),
|
|
47
|
+
'id': json['id'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
exports.IdentifiedSynchronizationFromJSONTyped = IdentifiedSynchronizationFromJSONTyped;
|
|
51
|
+
function IdentifiedSynchronizationToJSON(value) {
|
|
52
|
+
if (value == null) {
|
|
53
|
+
return value;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
'buffer': (0, AnyBuffer_1.AnyBufferToJSON)(value['buffer']),
|
|
57
|
+
'proposal': (0, SynchronizationProposal_1.SynchronizationProposalToJSON)(value['proposal']),
|
|
58
|
+
'mode': (0, SynchronizationMode_1.SynchronizationModeToJSON)(value['mode']),
|
|
59
|
+
'id': value['id'],
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
exports.IdentifiedSynchronizationToJSON = IdentifiedSynchronizationToJSON;
|
|
@@ -16,17 +16,17 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface PagingMetadata {
|
|
18
18
|
/**
|
|
19
|
-
* Current page requested. Start at 0.
|
|
19
|
+
* Current page requested. Start at 0. May not be present if user do not request specific page.
|
|
20
20
|
* @type {number}
|
|
21
21
|
* @memberof PagingMetadata
|
|
22
22
|
*/
|
|
23
|
-
page
|
|
23
|
+
page?: number;
|
|
24
24
|
/**
|
|
25
|
-
* Number of item per page. 0 means that you only required
|
|
25
|
+
* Number of item per page. 0 means that you only required metadata. May not be present if user do not request specific perPage.
|
|
26
26
|
* @type {number}
|
|
27
27
|
* @memberof PagingMetadata
|
|
28
28
|
*/
|
|
29
|
-
perPage
|
|
29
|
+
perPage?: number;
|
|
30
30
|
/**
|
|
31
31
|
* Total number of item visible by the client in the request
|
|
32
32
|
* @type {number}
|
|
@@ -18,10 +18,6 @@ exports.PagingMetadataToJSON = exports.PagingMetadataFromJSONTyped = exports.Pag
|
|
|
18
18
|
* Check if a given object implements the PagingMetadata interface.
|
|
19
19
|
*/
|
|
20
20
|
function instanceOfPagingMetadata(value) {
|
|
21
|
-
if (!('page' in value) || value['page'] === undefined)
|
|
22
|
-
return false;
|
|
23
|
-
if (!('perPage' in value) || value['perPage'] === undefined)
|
|
24
|
-
return false;
|
|
25
21
|
if (!('totalVisible' in value) || value['totalVisible'] === undefined)
|
|
26
22
|
return false;
|
|
27
23
|
if (!('totalFound' in value) || value['totalFound'] === undefined)
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* lcdp-pharmaide-service
|
|
3
|
+
* This is the REST API of LCDP products
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: contact@lecomptoirdespharmacies.fr
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface SalesForecastBuffer
|
|
16
|
+
*/
|
|
17
|
+
export interface SalesForecastBuffer {
|
|
18
|
+
/**
|
|
19
|
+
* Buffer strategy
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SalesForecastBuffer
|
|
22
|
+
*/
|
|
23
|
+
strategy: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof SalesForecastBuffer
|
|
28
|
+
*/
|
|
29
|
+
coefficient?: number;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the SalesForecastBuffer interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfSalesForecastBuffer(value: object): value is SalesForecastBuffer;
|
|
35
|
+
export declare function SalesForecastBufferFromJSON(json: any): SalesForecastBuffer;
|
|
36
|
+
export declare function SalesForecastBufferFromJSONTyped(json: any, ignoreDiscriminator: boolean): SalesForecastBuffer;
|
|
37
|
+
export declare function SalesForecastBufferToJSON(value?: SalesForecastBuffer | null): any;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* lcdp-pharmaide-service
|
|
6
|
+
* This is the REST API of LCDP products
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
* Contact: contact@lecomptoirdespharmacies.fr
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.SalesForecastBufferToJSON = exports.SalesForecastBufferFromJSONTyped = exports.SalesForecastBufferFromJSON = exports.instanceOfSalesForecastBuffer = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the SalesForecastBuffer interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfSalesForecastBuffer(value) {
|
|
21
|
+
if (!('strategy' in value) || value['strategy'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
exports.instanceOfSalesForecastBuffer = instanceOfSalesForecastBuffer;
|
|
26
|
+
function SalesForecastBufferFromJSON(json) {
|
|
27
|
+
return SalesForecastBufferFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
exports.SalesForecastBufferFromJSON = SalesForecastBufferFromJSON;
|
|
30
|
+
function SalesForecastBufferFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'strategy': json['strategy'],
|
|
36
|
+
'coefficient': json['coefficient'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
exports.SalesForecastBufferFromJSONTyped = SalesForecastBufferFromJSONTyped;
|
|
40
|
+
function SalesForecastBufferToJSON(value) {
|
|
41
|
+
if (value == null) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'strategy': value['strategy'],
|
|
46
|
+
'coefficient': value['coefficient'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
exports.SalesForecastBufferToJSON = SalesForecastBufferToJSON;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* lcdp-pharmaide-service
|
|
3
|
+
* This is the REST API of LCDP products
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: contact@lecomptoirdespharmacies.fr
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { SynchronizationMode } from './SynchronizationMode';
|
|
13
|
+
import type { SynchronizationProposal } from './SynchronizationProposal';
|
|
14
|
+
import type { AnyBuffer } from './AnyBuffer';
|
|
15
|
+
/**
|
|
16
|
+
* Object that describe the way products should be synchronized.
|
|
17
|
+
* Note : 'proposal' should only be given when mode is 'UP_AND_DOWN'
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface Synchronization
|
|
21
|
+
*/
|
|
22
|
+
export interface Synchronization {
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @type {AnyBuffer}
|
|
26
|
+
* @memberof Synchronization
|
|
27
|
+
*/
|
|
28
|
+
buffer: AnyBuffer | null;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {SynchronizationProposal}
|
|
32
|
+
* @memberof Synchronization
|
|
33
|
+
*/
|
|
34
|
+
proposal: SynchronizationProposal | null;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {SynchronizationMode}
|
|
38
|
+
* @memberof Synchronization
|
|
39
|
+
*/
|
|
40
|
+
mode: SynchronizationMode;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the Synchronization interface.
|
|
44
|
+
*/
|
|
45
|
+
export declare function instanceOfSynchronization(value: object): value is Synchronization;
|
|
46
|
+
export declare function SynchronizationFromJSON(json: any): Synchronization;
|
|
47
|
+
export declare function SynchronizationFromJSONTyped(json: any, ignoreDiscriminator: boolean): Synchronization;
|
|
48
|
+
export declare function SynchronizationToJSON(value?: Synchronization | null): any;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* lcdp-pharmaide-service
|
|
6
|
+
* This is the REST API of LCDP products
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
* Contact: contact@lecomptoirdespharmacies.fr
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.SynchronizationToJSON = exports.SynchronizationFromJSONTyped = exports.SynchronizationFromJSON = exports.instanceOfSynchronization = void 0;
|
|
17
|
+
var SynchronizationMode_1 = require("./SynchronizationMode");
|
|
18
|
+
var SynchronizationProposal_1 = require("./SynchronizationProposal");
|
|
19
|
+
var AnyBuffer_1 = require("./AnyBuffer");
|
|
20
|
+
/**
|
|
21
|
+
* Check if a given object implements the Synchronization interface.
|
|
22
|
+
*/
|
|
23
|
+
function instanceOfSynchronization(value) {
|
|
24
|
+
if (!('buffer' in value) || value['buffer'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('proposal' in value) || value['proposal'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('mode' in value) || value['mode'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
exports.instanceOfSynchronization = instanceOfSynchronization;
|
|
33
|
+
function SynchronizationFromJSON(json) {
|
|
34
|
+
return SynchronizationFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
exports.SynchronizationFromJSON = SynchronizationFromJSON;
|
|
37
|
+
function SynchronizationFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
if (json == null) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'buffer': (json['buffer'] === null || json['buffer'] === undefined) ? json['buffer'] : (0, AnyBuffer_1.AnyBufferFromJSON)(json['buffer']),
|
|
43
|
+
'proposal': (json['proposal'] === null || json['proposal'] === undefined) ? json['proposal'] : (0, SynchronizationProposal_1.SynchronizationProposalFromJSON)(json['proposal']),
|
|
44
|
+
'mode': (json['mode'] === null || json['mode'] === undefined) ? json['mode'] : (0, SynchronizationMode_1.SynchronizationModeFromJSON)(json['mode']),
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
exports.SynchronizationFromJSONTyped = SynchronizationFromJSONTyped;
|
|
48
|
+
function SynchronizationToJSON(value) {
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'buffer': (0, AnyBuffer_1.AnyBufferToJSON)(value['buffer']),
|
|
54
|
+
'proposal': (0, SynchronizationProposal_1.SynchronizationProposalToJSON)(value['proposal']),
|
|
55
|
+
'mode': (0, SynchronizationMode_1.SynchronizationModeToJSON)(value['mode']),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
exports.SynchronizationToJSON = SynchronizationToJSON;
|
|
@@ -13,11 +13,11 @@
|
|
|
13
13
|
* Synchronization state of the product
|
|
14
14
|
* * UP_AND_DOWN: Automatic creation/update and deletion of sale offers according to your available stock.
|
|
15
15
|
* Note : Will create its own offer, meaning if you already have a sale offer on a product, it will create a duplicate.
|
|
16
|
-
* Note 2 : Setting 'NONE' to a
|
|
16
|
+
* Note 2 : Setting 'NONE' to a synchronizationId with mode 'UP_AND_DOWN' will delete the associated sale offers.
|
|
17
17
|
* * DOWN: Automatic update of existing sale offers according to your available stock.
|
|
18
18
|
* Note : Will only update sale offer if there is only one sale offer active on a given product.
|
|
19
|
-
* Note 2 : Setting 'NONE' to a
|
|
20
|
-
* * NONE: Do not synchronize
|
|
19
|
+
* Note 2 : Setting 'NONE' to a synchronizationId with mode 'DOWN' will not archive the existing sale offers.
|
|
20
|
+
* * NONE: Do not synchronize synchronizationId according to available stock.
|
|
21
21
|
*
|
|
22
22
|
* @export
|
|
23
23
|
*/
|
|
@@ -18,11 +18,11 @@ exports.SynchronizationModeToJSON = exports.SynchronizationModeFromJSONTyped = e
|
|
|
18
18
|
* Synchronization state of the product
|
|
19
19
|
* * UP_AND_DOWN: Automatic creation/update and deletion of sale offers according to your available stock.
|
|
20
20
|
* Note : Will create its own offer, meaning if you already have a sale offer on a product, it will create a duplicate.
|
|
21
|
-
* Note 2 : Setting 'NONE' to a
|
|
21
|
+
* Note 2 : Setting 'NONE' to a synchronizationId with mode 'UP_AND_DOWN' will delete the associated sale offers.
|
|
22
22
|
* * DOWN: Automatic update of existing sale offers according to your available stock.
|
|
23
23
|
* Note : Will only update sale offer if there is only one sale offer active on a given product.
|
|
24
|
-
* Note 2 : Setting 'NONE' to a
|
|
25
|
-
* * NONE: Do not synchronize
|
|
24
|
+
* Note 2 : Setting 'NONE' to a synchronizationId with mode 'DOWN' will not archive the existing sale offers.
|
|
25
|
+
* * NONE: Do not synchronize synchronizationId according to available stock.
|
|
26
26
|
*
|
|
27
27
|
* @export
|
|
28
28
|
*/
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* lcdp-pharmaide-service
|
|
3
|
+
* This is the REST API of LCDP products
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: contact@lecomptoirdespharmacies.fr
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Data to use when a sale offer should be created because user stock is too high
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface SynchronizationProposal
|
|
17
|
+
*/
|
|
18
|
+
export interface SynchronizationProposal {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof SynchronizationProposal
|
|
23
|
+
*/
|
|
24
|
+
unitPrice: number;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof SynchronizationProposal
|
|
29
|
+
*/
|
|
30
|
+
soldBy: number;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof SynchronizationProposal
|
|
35
|
+
*/
|
|
36
|
+
minimalQuantity: number;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Date}
|
|
40
|
+
* @memberof SynchronizationProposal
|
|
41
|
+
*/
|
|
42
|
+
lapsingDate: Date | null;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof SynchronizationProposal
|
|
47
|
+
*/
|
|
48
|
+
batch: string | null;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the SynchronizationProposal interface.
|
|
52
|
+
*/
|
|
53
|
+
export declare function instanceOfSynchronizationProposal(value: object): value is SynchronizationProposal;
|
|
54
|
+
export declare function SynchronizationProposalFromJSON(json: any): SynchronizationProposal;
|
|
55
|
+
export declare function SynchronizationProposalFromJSONTyped(json: any, ignoreDiscriminator: boolean): SynchronizationProposal;
|
|
56
|
+
export declare function SynchronizationProposalToJSON(value?: SynchronizationProposal | null): any;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* lcdp-pharmaide-service
|
|
6
|
+
* This is the REST API of LCDP products
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
* Contact: contact@lecomptoirdespharmacies.fr
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.SynchronizationProposalToJSON = exports.SynchronizationProposalFromJSONTyped = exports.SynchronizationProposalFromJSON = exports.instanceOfSynchronizationProposal = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the SynchronizationProposal interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfSynchronizationProposal(value) {
|
|
21
|
+
if (!('unitPrice' in value) || value['unitPrice'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('soldBy' in value) || value['soldBy'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('minimalQuantity' in value) || value['minimalQuantity'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('lapsingDate' in value) || value['lapsingDate'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('batch' in value) || value['batch'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
exports.instanceOfSynchronizationProposal = instanceOfSynchronizationProposal;
|
|
34
|
+
function SynchronizationProposalFromJSON(json) {
|
|
35
|
+
return SynchronizationProposalFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
exports.SynchronizationProposalFromJSON = SynchronizationProposalFromJSON;
|
|
38
|
+
function SynchronizationProposalFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'unitPrice': json['unitPrice'],
|
|
44
|
+
'soldBy': json['soldBy'],
|
|
45
|
+
'minimalQuantity': json['minimalQuantity'],
|
|
46
|
+
'lapsingDate': (json['lapsingDate'] === null || json['lapsingDate'] === undefined) ? json['lapsingDate'] : new Date(json['lapsingDate']),
|
|
47
|
+
'batch': json['batch'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
exports.SynchronizationProposalFromJSONTyped = SynchronizationProposalFromJSONTyped;
|
|
51
|
+
function SynchronizationProposalToJSON(value) {
|
|
52
|
+
if (value == null) {
|
|
53
|
+
return value;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
'unitPrice': value['unitPrice'],
|
|
57
|
+
'soldBy': value['soldBy'],
|
|
58
|
+
'minimalQuantity': value['minimalQuantity'],
|
|
59
|
+
'lapsingDate': (value['lapsingDate'] === null || value['lapsingDate'] === undefined) ? value['lapsingDate'] : value['lapsingDate'].toISOString(),
|
|
60
|
+
'batch': value['batch'],
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
exports.SynchronizationProposalToJSON = SynchronizationProposalToJSON;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
export * from './ActiveProduct';
|
|
2
|
-
export * from './
|
|
2
|
+
export * from './AnyBuffer';
|
|
3
3
|
export * from './Barcodes';
|
|
4
|
+
export * from './Buffer';
|
|
5
|
+
export * from './FixedBuffer';
|
|
4
6
|
export * from './HttpLink';
|
|
7
|
+
export * from './IdentifiedSynchronization';
|
|
5
8
|
export * from './Inventory';
|
|
6
9
|
export * from './InventoryJournal';
|
|
7
10
|
export * from './MisalignedProduct';
|
|
@@ -16,9 +19,12 @@ export * from './PaginatedUnderstockProducts';
|
|
|
16
19
|
export * from './PagingMetadata';
|
|
17
20
|
export * from './ProductLink';
|
|
18
21
|
export * from './RestError';
|
|
22
|
+
export * from './SalesForecastBuffer';
|
|
19
23
|
export * from './Statistics';
|
|
20
24
|
export * from './StatisticsActiveProducts';
|
|
21
25
|
export * from './StatisticsMisalignedProducts';
|
|
22
26
|
export * from './StatisticsOverstockProducts';
|
|
27
|
+
export * from './Synchronization';
|
|
23
28
|
export * from './SynchronizationMode';
|
|
29
|
+
export * from './SynchronizationProposal';
|
|
24
30
|
export * from './UnderstockProduct';
|