@nomalism-com/types 0.33.68 → 0.33.69
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.
|
@@ -15,9 +15,17 @@ export interface IGetOrSetNpcsRequest {
|
|
|
15
15
|
export interface IGetOrSetNpcsResponse {
|
|
16
16
|
npcs: INpc[];
|
|
17
17
|
}
|
|
18
|
+
export interface IprintJobResponse {
|
|
19
|
+
id: string;
|
|
20
|
+
moloni_json?: unknown;
|
|
21
|
+
external_url?: string | null;
|
|
22
|
+
printer_id: string;
|
|
23
|
+
orientation: 'landscape' | 'portrait';
|
|
24
|
+
}
|
|
18
25
|
export type IUpdateRequest = INpc;
|
|
19
26
|
export interface IRepository {
|
|
20
27
|
find: () => Promise<Entity[]>;
|
|
28
|
+
findPrintJobsForNpc(selector: IShared.IFindByIdRequest): Promise<IprintJobResponse[]>;
|
|
21
29
|
update: (params: IShared.IFindByIdRequest, data: IUpdateRequest) => Promise<Entity | null>;
|
|
22
30
|
getOrSetNpcs: (data: IGetOrSetNpcsRequest) => Promise<IGetOrSetNpcsResponse>;
|
|
23
31
|
}
|
|
@@ -21,20 +21,20 @@ export interface IUpdateRequest {
|
|
|
21
21
|
lowDensity: number;
|
|
22
22
|
imagePrintMode: number;
|
|
23
23
|
}
|
|
24
|
-
export interface
|
|
24
|
+
export interface IPrintersRequest {
|
|
25
25
|
printers_a4: string[];
|
|
26
26
|
printers_pos: string[];
|
|
27
27
|
}
|
|
28
|
-
export interface IGetOrSetPrintersRequest extends
|
|
28
|
+
export interface IGetOrSetPrintersRequest extends IPrintersRequest {
|
|
29
29
|
mac_address: string;
|
|
30
30
|
}
|
|
31
|
-
export type IPrintersResponse =
|
|
31
|
+
export type IPrintersResponse = IPrintersRequest;
|
|
32
32
|
export type IGetOrSetPrintersResponse = IPrintersResponse;
|
|
33
33
|
export interface IRepository {
|
|
34
34
|
find: () => Promise<IFindDetailedResponse[]>;
|
|
35
35
|
findByOwnerId: (selector: IShared.IFindByOwnerIdRequest) => Promise<Entity[]>;
|
|
36
36
|
update: (params: IShared.IFindByIdRequest, data: IUpdateRequest) => Promise<Entity | null>;
|
|
37
37
|
getOrSetPrinters: (data: IGetOrSetPrintersRequest) => Promise<IGetOrSetPrintersResponse>;
|
|
38
|
-
checkConnectivity: (data:
|
|
38
|
+
checkConnectivity: (data: IPrintersRequest) => Promise<IPrintersResponse>;
|
|
39
39
|
}
|
|
40
40
|
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
@@ -21,13 +21,13 @@ export interface ICreateManySchedulePrintJobRequest {
|
|
|
21
21
|
export interface IDispatchSchedulePrintJobResponse {
|
|
22
22
|
npc_id: string;
|
|
23
23
|
secret?: string | null;
|
|
24
|
-
|
|
24
|
+
print_jobs: {
|
|
25
25
|
id: string;
|
|
26
26
|
moloni_json?: unknown;
|
|
27
27
|
external_url?: string | null;
|
|
28
28
|
printer_id: string;
|
|
29
29
|
orientation: 'landscape' | 'portrait';
|
|
30
|
-
};
|
|
30
|
+
}[];
|
|
31
31
|
}
|
|
32
32
|
export interface IRepository {
|
|
33
33
|
dispatchSchedulePrintJob: (data: IDispatchSchedulePrintJobRequest) => Promise<IDispatchSchedulePrintJobResponse>;
|