@chevre/factory 4.351.0-alpha.6 → 4.351.0-alpha.8
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/lib/orderStatus.d.ts
CHANGED
package/lib/orderStatus.js
CHANGED
|
@@ -8,7 +8,7 @@ var OrderStatus;
|
|
|
8
8
|
(function (OrderStatus) {
|
|
9
9
|
OrderStatus["OrderCancelled"] = "OrderCancelled";
|
|
10
10
|
OrderStatus["OrderDelivered"] = "OrderDelivered";
|
|
11
|
-
|
|
11
|
+
OrderStatus["OrderInTransit"] = "OrderInTransit";
|
|
12
12
|
OrderStatus["OrderPaymentDue"] = "OrderPaymentDue";
|
|
13
13
|
// OrderPickupAvailable = 'OrderPickupAvailable',
|
|
14
14
|
// OrderProblem = 'OrderProblem',
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { AssetTransactionType } from '../assetTransactionType';
|
|
2
2
|
import { IExtendId } from '../autoGenerated';
|
|
3
|
+
import { OrderType } from '../order';
|
|
3
4
|
import { IProject } from '../project';
|
|
4
5
|
import * as TaskFactory from '../task';
|
|
5
6
|
import { TaskName } from '../taskName';
|
|
6
7
|
import { TransactionStatusType } from '../transactionStatusType';
|
|
7
8
|
export interface IPurposeAsOrder {
|
|
8
|
-
typeOf:
|
|
9
|
+
typeOf: OrderType.Order;
|
|
9
10
|
confirmationNumber: string;
|
|
10
11
|
orderNumber: string;
|
|
11
12
|
}
|
|
@@ -19,9 +20,15 @@ export interface IObjectAsPayTransaction {
|
|
|
19
20
|
};
|
|
20
21
|
};
|
|
21
22
|
}
|
|
23
|
+
export interface IObjectAsReserveTransaction {
|
|
24
|
+
typeOf: AssetTransactionType.Reserve | 'COAReserveTransaction';
|
|
25
|
+
transactionNumber: string;
|
|
26
|
+
status: TransactionStatusType.Confirmed;
|
|
27
|
+
}
|
|
28
|
+
export type IObject = IObjectAsPayTransaction | IObjectAsReserveTransaction;
|
|
22
29
|
export interface IData {
|
|
23
30
|
project: Pick<IProject, 'id' | 'typeOf'>;
|
|
24
|
-
object:
|
|
31
|
+
object: IObject;
|
|
25
32
|
purpose: IPurposeAsOrder;
|
|
26
33
|
useOnOrderStatusChanged: boolean;
|
|
27
34
|
}
|