truflow 0.0.140 → 0.0.141
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/dist/IOrder.d.ts +2 -3
- package/package.json +15 -15
- package/src/API/Allmoxy/IAnnouncement.ts +41 -41
- package/src/API/Allmoxy/ICompany.ts +199 -199
- package/src/API/Allmoxy/IGeneric.ts +111 -111
- package/src/API/Allmoxy/IInventoryItem.ts +56 -56
- package/src/API/Allmoxy/IInventoryOrder.ts +43 -43
- package/src/API/Allmoxy/ILocation.ts +19 -19
- package/src/API/Allmoxy/IOrder.ts +89 -89
- package/src/API/Allmoxy/IOrderProductItems.ts +92 -92
- package/src/API/Allmoxy/IOrderProducts.ts +46 -46
- package/src/API/Allmoxy/IProduct.ts +88 -88
- package/src/API/Allmoxy/IProductAttribute.ts +21 -21
- package/src/API/Allmoxy/IProductAttributeOptions.ts +30 -30
- package/src/API/Allmoxy/IProductProductAttribute.ts +23 -23
- package/src/API/Allmoxy/ITrigger.ts +52 -52
- package/src/API/Allmoxy/index.ts +14 -14
- package/src/Classes/ICRUDRouter.ts +6 -6
- package/src/Classes/ILogger.ts +17 -17
- package/src/Events/IDateEntryMoved.ts +13 -13
- package/src/Events/INegativeValue.ts +10 -10
- package/src/Events/IOrderDetails.ts +12 -12
- package/src/Events/IOrderMoved.ts +14 -14
- package/src/Events/IOrderProcessed.ts +6 -6
- package/src/Helpers/IAdministration.ts +9 -9
- package/src/Helpers/IAllmoxy.ts +4 -4
- package/src/Helpers/IEvents.ts +23 -23
- package/src/Helpers/IExporters.ts +45 -45
- package/src/Helpers/IOrders/IMoveDateEntry.ts +21 -21
- package/src/Helpers/IOrders/IMoveOrder.ts +28 -28
- package/src/Helpers/IOrders/IUpdateFullDailyTotal.ts +13 -13
- package/src/Helpers/IOrders/IUpdateIndividualDailyTotal.ts +8 -8
- package/src/Helpers/IOrders/index.ts +10 -10
- package/src/Helpers/ITotals.ts +16 -16
- package/src/Helpers/IZapier/index.ts +54 -54
- package/src/IAllmoxy.ts +12 -12
- package/src/IConfig.ts +11 -11
- package/src/IDailyTotal.ts +9 -9
- package/src/IEvent.ts +21 -21
- package/src/IExporter.ts +20 -20
- package/src/IExpress.ts +14 -14
- package/src/IIntegration.ts +30 -30
- package/src/IJWT.ts +4 -4
- package/src/IMailCache.ts +19 -19
- package/src/INotification.ts +11 -11
- package/src/IOrder.ts +41 -42
- package/src/IScript.ts +10 -10
- package/src/ISetting.ts +83 -83
- package/src/IUser.ts +13 -13
- package/src/IWebsocket.ts +7 -7
- package/src/Routes/IOrderRoutes.ts +37 -37
- package/src/Routes/IZapierRoutes.ts +12 -12
- package/src/Templates/IDailyTotals.ts +4 -4
- package/src/index.ts +28 -28
- package/tsconfig.json +11 -11
|
@@ -1,52 +1,52 @@
|
|
|
1
|
-
interface IAction {
|
|
2
|
-
action: string;
|
|
3
|
-
task?: string;
|
|
4
|
-
assign_to?: string[];
|
|
5
|
-
hour?: string;
|
|
6
|
-
minute?: string;
|
|
7
|
-
ampm?: string;
|
|
8
|
-
email_address?: { [key: string]: string };
|
|
9
|
-
custom_email?: Array<{ name: string; email: string }>;
|
|
10
|
-
email?: string;
|
|
11
|
-
subject?: string;
|
|
12
|
-
from?: string;
|
|
13
|
-
url?: string;
|
|
14
|
-
method?: string;
|
|
15
|
-
content_type?: string;
|
|
16
|
-
headers?: Record<string, string> | string;
|
|
17
|
-
tags?: string;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export interface ITrigger {
|
|
21
|
-
company_id?: number;
|
|
22
|
-
name: string;
|
|
23
|
-
event: string;
|
|
24
|
-
condition: string | null;
|
|
25
|
-
additional_conds?: any[] | null;
|
|
26
|
-
actions: string | IAction;
|
|
27
|
-
uses_company_tags?: number;
|
|
28
|
-
uses_recipient_tags?: number;
|
|
29
|
-
flags?: number;
|
|
30
|
-
status: number;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export interface ITriggerResponse {
|
|
34
|
-
trigger_id: number;
|
|
35
|
-
company_id: number;
|
|
36
|
-
name: string;
|
|
37
|
-
event: string;
|
|
38
|
-
condition: string | null;
|
|
39
|
-
additional_conds: any[] | null;
|
|
40
|
-
actions: IAction;
|
|
41
|
-
uses_company_tags: number;
|
|
42
|
-
uses_recipient_tags: number;
|
|
43
|
-
flags: number;
|
|
44
|
-
status: number;
|
|
45
|
-
timestamp: string;
|
|
46
|
-
createdby: string | null;
|
|
47
|
-
createdbyid: number | null;
|
|
48
|
-
createddate: string | null;
|
|
49
|
-
updatedby: string | null;
|
|
50
|
-
updatedbyid: number | null;
|
|
51
|
-
updateddate: string | null;
|
|
52
|
-
}
|
|
1
|
+
interface IAction {
|
|
2
|
+
action: string;
|
|
3
|
+
task?: string;
|
|
4
|
+
assign_to?: string[];
|
|
5
|
+
hour?: string;
|
|
6
|
+
minute?: string;
|
|
7
|
+
ampm?: string;
|
|
8
|
+
email_address?: { [key: string]: string };
|
|
9
|
+
custom_email?: Array<{ name: string; email: string }>;
|
|
10
|
+
email?: string;
|
|
11
|
+
subject?: string;
|
|
12
|
+
from?: string;
|
|
13
|
+
url?: string;
|
|
14
|
+
method?: string;
|
|
15
|
+
content_type?: string;
|
|
16
|
+
headers?: Record<string, string> | string;
|
|
17
|
+
tags?: string;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export interface ITrigger {
|
|
21
|
+
company_id?: number;
|
|
22
|
+
name: string;
|
|
23
|
+
event: string;
|
|
24
|
+
condition: string | null;
|
|
25
|
+
additional_conds?: any[] | null;
|
|
26
|
+
actions: string | IAction;
|
|
27
|
+
uses_company_tags?: number;
|
|
28
|
+
uses_recipient_tags?: number;
|
|
29
|
+
flags?: number;
|
|
30
|
+
status: number;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export interface ITriggerResponse {
|
|
34
|
+
trigger_id: number;
|
|
35
|
+
company_id: number;
|
|
36
|
+
name: string;
|
|
37
|
+
event: string;
|
|
38
|
+
condition: string | null;
|
|
39
|
+
additional_conds: any[] | null;
|
|
40
|
+
actions: IAction;
|
|
41
|
+
uses_company_tags: number;
|
|
42
|
+
uses_recipient_tags: number;
|
|
43
|
+
flags: number;
|
|
44
|
+
status: number;
|
|
45
|
+
timestamp: string;
|
|
46
|
+
createdby: string | null;
|
|
47
|
+
createdbyid: number | null;
|
|
48
|
+
createddate: string | null;
|
|
49
|
+
updatedby: string | null;
|
|
50
|
+
updatedbyid: number | null;
|
|
51
|
+
updateddate: string | null;
|
|
52
|
+
}
|
package/src/API/Allmoxy/index.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export * from "./IAnnouncement";
|
|
2
|
-
export * from "./ICompany";
|
|
3
|
-
export * from "./IGeneric";
|
|
4
|
-
export * from "./IInventoryItem";
|
|
5
|
-
export * from "./IInventoryOrder";
|
|
6
|
-
export * from "./ILocation";
|
|
7
|
-
export * from "./IOrder";
|
|
8
|
-
export * from "./IOrderProducts";
|
|
9
|
-
export * from "./IOrderProductItems";
|
|
10
|
-
export * from "./IProduct";
|
|
11
|
-
export * from "./IProductAttribute";
|
|
12
|
-
export * from "./IProductAttributeOptions";
|
|
13
|
-
export * from "./IProductProductAttribute";
|
|
14
|
-
export * from "./ITrigger";
|
|
1
|
+
export * from "./IAnnouncement";
|
|
2
|
+
export * from "./ICompany";
|
|
3
|
+
export * from "./IGeneric";
|
|
4
|
+
export * from "./IInventoryItem";
|
|
5
|
+
export * from "./IInventoryOrder";
|
|
6
|
+
export * from "./ILocation";
|
|
7
|
+
export * from "./IOrder";
|
|
8
|
+
export * from "./IOrderProducts";
|
|
9
|
+
export * from "./IOrderProductItems";
|
|
10
|
+
export * from "./IProduct";
|
|
11
|
+
export * from "./IProductAttribute";
|
|
12
|
+
export * from "./IProductAttributeOptions";
|
|
13
|
+
export * from "./IProductProductAttribute";
|
|
14
|
+
export * from "./ITrigger";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export interface ICRUDRouterAuthorization {
|
|
2
|
-
view: string;
|
|
3
|
-
create: string;
|
|
4
|
-
update: string;
|
|
5
|
-
delete: string;
|
|
6
|
-
}
|
|
1
|
+
export interface ICRUDRouterAuthorization {
|
|
2
|
+
view: string;
|
|
3
|
+
create: string;
|
|
4
|
+
update: string;
|
|
5
|
+
delete: string;
|
|
6
|
+
}
|
package/src/Classes/ILogger.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
// Define the log levels as a type for better type-checking
|
|
2
|
-
export type LogLevel = "INFO" | "WARNING" | "ERROR";
|
|
3
|
-
|
|
4
|
-
// Interface for the Logger class
|
|
5
|
-
export interface ILogger {
|
|
6
|
-
// Optional property for database connection
|
|
7
|
-
db: any | null;
|
|
8
|
-
|
|
9
|
-
// Method signatures
|
|
10
|
-
log(message: string, level?: LogLevel): void;
|
|
11
|
-
info(message: string): void;
|
|
12
|
-
warning(message: string): void;
|
|
13
|
-
error(message: string): void;
|
|
14
|
-
|
|
15
|
-
// Method to save logs to the database
|
|
16
|
-
saveToDatabase(message: string): void;
|
|
17
|
-
}
|
|
1
|
+
// Define the log levels as a type for better type-checking
|
|
2
|
+
export type LogLevel = "INFO" | "WARNING" | "ERROR";
|
|
3
|
+
|
|
4
|
+
// Interface for the Logger class
|
|
5
|
+
export interface ILogger {
|
|
6
|
+
// Optional property for database connection
|
|
7
|
+
db: any | null;
|
|
8
|
+
|
|
9
|
+
// Method signatures
|
|
10
|
+
log(message: string, level?: LogLevel): void;
|
|
11
|
+
info(message: string): void;
|
|
12
|
+
warning(message: string): void;
|
|
13
|
+
error(message: string): void;
|
|
14
|
+
|
|
15
|
+
// Method to save logs to the database
|
|
16
|
+
saveToDatabase(message: string): void;
|
|
17
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { ILeanDailyTotal } from "../IDailyTotal";
|
|
2
|
-
|
|
3
|
-
export interface IMoveData {
|
|
4
|
-
type: string;
|
|
5
|
-
quantity: number;
|
|
6
|
-
originalStartDate: string;
|
|
7
|
-
updatedStartDate: string;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export interface IDateEntryMoved {
|
|
11
|
-
moveData: IMoveData;
|
|
12
|
-
dailyTotalsData: ILeanDailyTotal;
|
|
13
|
-
}
|
|
1
|
+
import { ILeanDailyTotal } from "../IDailyTotal";
|
|
2
|
+
|
|
3
|
+
export interface IMoveData {
|
|
4
|
+
type: string;
|
|
5
|
+
quantity: number;
|
|
6
|
+
originalStartDate: string;
|
|
7
|
+
updatedStartDate: string;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface IDateEntryMoved {
|
|
11
|
+
moveData: IMoveData;
|
|
12
|
+
dailyTotalsData: ILeanDailyTotal;
|
|
13
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ILeanDailyTotal } from "../IDailyTotal";
|
|
2
|
-
import { IDateEntry } from "../IOrder";
|
|
3
|
-
|
|
4
|
-
export interface INegativeValue {
|
|
5
|
-
time: Date;
|
|
6
|
-
dateEntry: IDateEntry;
|
|
7
|
-
dailyTotals: ILeanDailyTotal;
|
|
8
|
-
negativeType: string;
|
|
9
|
-
negativeValue: number;
|
|
10
|
-
}
|
|
1
|
+
import { ILeanDailyTotal } from "../IDailyTotal";
|
|
2
|
+
import { IDateEntry } from "../IOrder";
|
|
3
|
+
|
|
4
|
+
export interface INegativeValue {
|
|
5
|
+
time: Date;
|
|
6
|
+
dateEntry: IDateEntry;
|
|
7
|
+
dailyTotals: ILeanDailyTotal;
|
|
8
|
+
negativeType: string;
|
|
9
|
+
negativeValue: number;
|
|
10
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export interface IOrderDetail {
|
|
2
|
-
id: number;
|
|
3
|
-
name: string;
|
|
4
|
-
companyName: string;
|
|
5
|
-
date: string;
|
|
6
|
-
shipDate: string;
|
|
7
|
-
requestedShipDate: string;
|
|
8
|
-
companyID: number;
|
|
9
|
-
summary: string;
|
|
10
|
-
orderTags: string[];
|
|
11
|
-
companyTags: string[];
|
|
12
|
-
}
|
|
1
|
+
export interface IOrderDetail {
|
|
2
|
+
id: number;
|
|
3
|
+
name: string;
|
|
4
|
+
companyName: string;
|
|
5
|
+
date: string;
|
|
6
|
+
shipDate: string;
|
|
7
|
+
requestedShipDate: string;
|
|
8
|
+
companyID: number;
|
|
9
|
+
summary: string;
|
|
10
|
+
orderTags: string[];
|
|
11
|
+
companyTags: string[];
|
|
12
|
+
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { ILeanDailyTotal } from "../IDailyTotal";
|
|
2
|
-
|
|
3
|
-
export interface IOrderMoveData {
|
|
4
|
-
types: any[];
|
|
5
|
-
quantity: number;
|
|
6
|
-
originalStartDates: any[];
|
|
7
|
-
updatedStartDate: string;
|
|
8
|
-
applyToOrder: boolean;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export interface IOrderMoved {
|
|
12
|
-
moveData: IOrderMoveData;
|
|
13
|
-
dailyTotalsData: ILeanDailyTotal[];
|
|
14
|
-
}
|
|
1
|
+
import { ILeanDailyTotal } from "../IDailyTotal";
|
|
2
|
+
|
|
3
|
+
export interface IOrderMoveData {
|
|
4
|
+
types: any[];
|
|
5
|
+
quantity: number;
|
|
6
|
+
originalStartDates: any[];
|
|
7
|
+
updatedStartDate: string;
|
|
8
|
+
applyToOrder: boolean;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export interface IOrderMoved {
|
|
12
|
+
moveData: IOrderMoveData;
|
|
13
|
+
dailyTotalsData: ILeanDailyTotal[];
|
|
14
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { IOrderDetail } from "./IOrderDetails";
|
|
2
|
-
|
|
3
|
-
export interface IOrderProcessed {
|
|
4
|
-
orderDetails?: IOrderDetail;
|
|
5
|
-
message: string;
|
|
6
|
-
}
|
|
1
|
+
import { IOrderDetail } from "./IOrderDetails";
|
|
2
|
+
|
|
3
|
+
export interface IOrderProcessed {
|
|
4
|
+
orderDetails?: IOrderDetail;
|
|
5
|
+
message: string;
|
|
6
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export type IEmitUpdateData = (
|
|
2
|
-
step: string,
|
|
3
|
-
stage: string,
|
|
4
|
-
data?: {
|
|
5
|
-
order: string;
|
|
6
|
-
lastOrder: number;
|
|
7
|
-
percent: number;
|
|
8
|
-
}
|
|
9
|
-
) => void;
|
|
1
|
+
export type IEmitUpdateData = (
|
|
2
|
+
step: string,
|
|
3
|
+
stage: string,
|
|
4
|
+
data?: {
|
|
5
|
+
order: string;
|
|
6
|
+
lastOrder: number;
|
|
7
|
+
percent: number;
|
|
8
|
+
}
|
|
9
|
+
) => void;
|
package/src/Helpers/IAllmoxy.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type IFetchAllmoxyAuthToken = (
|
|
2
|
-
clientID: string,
|
|
3
|
-
clientSecret: string
|
|
4
|
-
) => Promise<string>;
|
|
1
|
+
export type IFetchAllmoxyAuthToken = (
|
|
2
|
+
clientID: string,
|
|
3
|
+
clientSecret: string
|
|
4
|
+
) => Promise<string>;
|
package/src/Helpers/IEvents.ts
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { IZapierOrder } from "../Routes/IZapierRoutes";
|
|
2
|
-
import { IMoveDateEntryEventData, IMoveOrderEventData } from "./IOrders";
|
|
3
|
-
|
|
4
|
-
interface IOrderDetails {
|
|
5
|
-
orderID: string;
|
|
6
|
-
companyName: string;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export type IOrderMoved = (
|
|
10
|
-
orderDetails: IOrderDetails,
|
|
11
|
-
eventData: IMoveOrderEventData
|
|
12
|
-
) => Promise<string>;
|
|
13
|
-
|
|
14
|
-
export type IDateEntryMoved = (
|
|
15
|
-
orderDetails: IOrderDetails,
|
|
16
|
-
eventData: IMoveDateEntryEventData
|
|
17
|
-
) => Promise<string>;
|
|
18
|
-
|
|
19
|
-
export type IOrderProcessed = (
|
|
20
|
-
orderDetails: IZapierOrder,
|
|
21
|
-
status: number,
|
|
22
|
-
message: string
|
|
23
|
-
) => Promise<void>;
|
|
1
|
+
import { IZapierOrder } from "../Routes/IZapierRoutes";
|
|
2
|
+
import { IMoveDateEntryEventData, IMoveOrderEventData } from "./IOrders";
|
|
3
|
+
|
|
4
|
+
interface IOrderDetails {
|
|
5
|
+
orderID: string;
|
|
6
|
+
companyName: string;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export type IOrderMoved = (
|
|
10
|
+
orderDetails: IOrderDetails,
|
|
11
|
+
eventData: IMoveOrderEventData
|
|
12
|
+
) => Promise<string>;
|
|
13
|
+
|
|
14
|
+
export type IDateEntryMoved = (
|
|
15
|
+
orderDetails: IOrderDetails,
|
|
16
|
+
eventData: IMoveDateEntryEventData
|
|
17
|
+
) => Promise<string>;
|
|
18
|
+
|
|
19
|
+
export type IOrderProcessed = (
|
|
20
|
+
orderDetails: IZapierOrder,
|
|
21
|
+
status: number,
|
|
22
|
+
message: string
|
|
23
|
+
) => Promise<void>;
|
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
export interface ICloudPanelAccount {
|
|
2
|
-
name: string;
|
|
3
|
-
username: string;
|
|
4
|
-
password: string;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
export interface ICloudPanelAPIRequest {
|
|
8
|
-
DisplayName: string;
|
|
9
|
-
Company: string;
|
|
10
|
-
Username: string;
|
|
11
|
-
Domain: string;
|
|
12
|
-
Pwd: string;
|
|
13
|
-
confirmPwd: string;
|
|
14
|
-
PasswordNeverExpires: boolean;
|
|
15
|
-
EnableMailbox: boolean;
|
|
16
|
-
LocalPart: string;
|
|
17
|
-
DomainPart: string;
|
|
18
|
-
MailboxPlan: number;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export interface IPosteBox {
|
|
22
|
-
address: string;
|
|
23
|
-
user: string;
|
|
24
|
-
home: string;
|
|
25
|
-
name: string;
|
|
26
|
-
disabled: boolean;
|
|
27
|
-
domain_admin: boolean;
|
|
28
|
-
super_admin: boolean;
|
|
29
|
-
strict_from_disabled: boolean;
|
|
30
|
-
created: string;
|
|
31
|
-
updated: string;
|
|
32
|
-
redirect_only: boolean;
|
|
33
|
-
redirect_to: [];
|
|
34
|
-
discard: boolean;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export interface ICreatePosteBox {
|
|
38
|
-
name: string;
|
|
39
|
-
email: string;
|
|
40
|
-
passwordPlaintext: string;
|
|
41
|
-
disabled: boolean;
|
|
42
|
-
superAdmin: boolean;
|
|
43
|
-
redirectTo?: ["string"];
|
|
44
|
-
referenceId?: "string";
|
|
45
|
-
}
|
|
1
|
+
export interface ICloudPanelAccount {
|
|
2
|
+
name: string;
|
|
3
|
+
username: string;
|
|
4
|
+
password: string;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export interface ICloudPanelAPIRequest {
|
|
8
|
+
DisplayName: string;
|
|
9
|
+
Company: string;
|
|
10
|
+
Username: string;
|
|
11
|
+
Domain: string;
|
|
12
|
+
Pwd: string;
|
|
13
|
+
confirmPwd: string;
|
|
14
|
+
PasswordNeverExpires: boolean;
|
|
15
|
+
EnableMailbox: boolean;
|
|
16
|
+
LocalPart: string;
|
|
17
|
+
DomainPart: string;
|
|
18
|
+
MailboxPlan: number;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export interface IPosteBox {
|
|
22
|
+
address: string;
|
|
23
|
+
user: string;
|
|
24
|
+
home: string;
|
|
25
|
+
name: string;
|
|
26
|
+
disabled: boolean;
|
|
27
|
+
domain_admin: boolean;
|
|
28
|
+
super_admin: boolean;
|
|
29
|
+
strict_from_disabled: boolean;
|
|
30
|
+
created: string;
|
|
31
|
+
updated: string;
|
|
32
|
+
redirect_only: boolean;
|
|
33
|
+
redirect_to: [];
|
|
34
|
+
discard: boolean;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export interface ICreatePosteBox {
|
|
38
|
+
name: string;
|
|
39
|
+
email: string;
|
|
40
|
+
passwordPlaintext: string;
|
|
41
|
+
disabled: boolean;
|
|
42
|
+
superAdmin: boolean;
|
|
43
|
+
redirectTo?: ["string"];
|
|
44
|
+
referenceId?: "string";
|
|
45
|
+
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { ITotalsData } from ".";
|
|
2
|
-
import { IOrder } from "../../IOrder";
|
|
3
|
-
import { IUpdateOrder } from "../../Routes/IOrderRoutes";
|
|
4
|
-
|
|
5
|
-
export interface IMoveDateEntryMoveData {
|
|
6
|
-
type: string;
|
|
7
|
-
quantity: number;
|
|
8
|
-
originalStartDate: string;
|
|
9
|
-
updatedStartDate: string;
|
|
10
|
-
applyToOrder: boolean;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export interface IMoveDateEntryEventData {
|
|
14
|
-
moveData: IMoveDateEntryMoveData;
|
|
15
|
-
dailyTotalsData: ITotalsData[];
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export type IMoveDateEntry = (
|
|
19
|
-
data: IUpdateOrder,
|
|
20
|
-
order: IOrder
|
|
21
|
-
) => Promise<{ eventData: IMoveDateEntryEventData; updatedOrder: IOrder }>;
|
|
1
|
+
import { ITotalsData } from ".";
|
|
2
|
+
import { IOrder } from "../../IOrder";
|
|
3
|
+
import { IUpdateOrder } from "../../Routes/IOrderRoutes";
|
|
4
|
+
|
|
5
|
+
export interface IMoveDateEntryMoveData {
|
|
6
|
+
type: string;
|
|
7
|
+
quantity: number;
|
|
8
|
+
originalStartDate: string;
|
|
9
|
+
updatedStartDate: string;
|
|
10
|
+
applyToOrder: boolean;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export interface IMoveDateEntryEventData {
|
|
14
|
+
moveData: IMoveDateEntryMoveData;
|
|
15
|
+
dailyTotalsData: ITotalsData[];
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export type IMoveDateEntry = (
|
|
19
|
+
data: IUpdateOrder,
|
|
20
|
+
order: IOrder
|
|
21
|
+
) => Promise<{ eventData: IMoveDateEntryEventData; updatedOrder: IOrder }>;
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { IOrder } from "../../IOrder";
|
|
2
|
-
import { IUpdateOrder } from "../../Routes/IOrderRoutes";
|
|
3
|
-
import { IUpdateFullDailyTotalReturnData } from "./IUpdateFullDailyTotal";
|
|
4
|
-
|
|
5
|
-
export interface IMoveOrderTotalsData {
|
|
6
|
-
startDate: string;
|
|
7
|
-
updatedStartDate: string;
|
|
8
|
-
entries: {
|
|
9
|
-
limitsGroup: string;
|
|
10
|
-
quantity: number;
|
|
11
|
-
}[];
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export interface IMoveOrderEventData {
|
|
15
|
-
moveData: {
|
|
16
|
-
types: Set<unknown>;
|
|
17
|
-
quantity: number;
|
|
18
|
-
originalStartDates: Set<unknown>;
|
|
19
|
-
updatedStartDate: string;
|
|
20
|
-
applyToOrder: boolean;
|
|
21
|
-
};
|
|
22
|
-
dailyTotalsData: IUpdateFullDailyTotalReturnData[];
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export type IMoveOrder = (
|
|
26
|
-
originalOrder: IOrder,
|
|
27
|
-
updatedOrder: IOrder
|
|
28
|
-
) => Promise<{ eventData: IMoveOrderEventData; updatedOrder: IOrder }>;
|
|
1
|
+
import { IOrder } from "../../IOrder";
|
|
2
|
+
import { IUpdateOrder } from "../../Routes/IOrderRoutes";
|
|
3
|
+
import { IUpdateFullDailyTotalReturnData } from "./IUpdateFullDailyTotal";
|
|
4
|
+
|
|
5
|
+
export interface IMoveOrderTotalsData {
|
|
6
|
+
startDate: string;
|
|
7
|
+
updatedStartDate: string;
|
|
8
|
+
entries: {
|
|
9
|
+
limitsGroup: string;
|
|
10
|
+
quantity: number;
|
|
11
|
+
}[];
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export interface IMoveOrderEventData {
|
|
15
|
+
moveData: {
|
|
16
|
+
types: Set<unknown>;
|
|
17
|
+
quantity: number;
|
|
18
|
+
originalStartDates: Set<unknown>;
|
|
19
|
+
updatedStartDate: string;
|
|
20
|
+
applyToOrder: boolean;
|
|
21
|
+
};
|
|
22
|
+
dailyTotalsData: IUpdateFullDailyTotalReturnData[];
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export type IMoveOrder = (
|
|
26
|
+
originalOrder: IOrder,
|
|
27
|
+
updatedOrder: IOrder
|
|
28
|
+
) => Promise<{ eventData: IMoveOrderEventData; updatedOrder: IOrder }>;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { IOrder } from "../../IOrder";
|
|
2
|
-
import { IMoveOrderTotalsData, ITotalsData } from ".";
|
|
3
|
-
|
|
4
|
-
export interface IUpdateFullDailyTotalReturnData {
|
|
5
|
-
oldStartDate: string;
|
|
6
|
-
updatedStartDate: string;
|
|
7
|
-
totalsData: ITotalsData[];
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export type IUpdateFullDailyTotal = (
|
|
11
|
-
data: IMoveOrderTotalsData,
|
|
12
|
-
order: IOrder
|
|
13
|
-
) => Promise<IUpdateFullDailyTotalReturnData>;
|
|
1
|
+
import { IOrder } from "../../IOrder";
|
|
2
|
+
import { IMoveOrderTotalsData, ITotalsData } from ".";
|
|
3
|
+
|
|
4
|
+
export interface IUpdateFullDailyTotalReturnData {
|
|
5
|
+
oldStartDate: string;
|
|
6
|
+
updatedStartDate: string;
|
|
7
|
+
totalsData: ITotalsData[];
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export type IUpdateFullDailyTotal = (
|
|
11
|
+
data: IMoveOrderTotalsData,
|
|
12
|
+
order: IOrder
|
|
13
|
+
) => Promise<IUpdateFullDailyTotalReturnData>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ITotalsData } from ".";
|
|
2
|
-
import { IDateEntry, IOrder } from "../../IOrder";
|
|
3
|
-
|
|
4
|
-
export type IUpdateIndividualDailyTotal = (
|
|
5
|
-
originalStartDate: string,
|
|
6
|
-
data: IDateEntry,
|
|
7
|
-
order: IOrder
|
|
8
|
-
) => Promise<ITotalsData[]>;
|
|
1
|
+
import { ITotalsData } from ".";
|
|
2
|
+
import { IDateEntry, IOrder } from "../../IOrder";
|
|
3
|
+
|
|
4
|
+
export type IUpdateIndividualDailyTotal = (
|
|
5
|
+
originalStartDate: string,
|
|
6
|
+
data: IDateEntry,
|
|
7
|
+
order: IOrder
|
|
8
|
+
) => Promise<ITotalsData[]>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ILeanDailyTotal } from "../../IDailyTotal";
|
|
2
|
-
|
|
3
|
-
export interface ITotalsData extends ILeanDailyTotal {
|
|
4
|
-
position: string;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
export * from "./IMoveDateEntry";
|
|
8
|
-
export * from "./IMoveOrder";
|
|
9
|
-
export * from "./IUpdateFullDailyTotal";
|
|
10
|
-
export * from "./IUpdateIndividualDailyTotal";
|
|
1
|
+
import { ILeanDailyTotal } from "../../IDailyTotal";
|
|
2
|
+
|
|
3
|
+
export interface ITotalsData extends ILeanDailyTotal {
|
|
4
|
+
position: string;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export * from "./IMoveDateEntry";
|
|
8
|
+
export * from "./IMoveOrder";
|
|
9
|
+
export * from "./IUpdateFullDailyTotal";
|
|
10
|
+
export * from "./IUpdateIndividualDailyTotal";
|