@managemint-solutions/sdk 0.66.0 → 0.67.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/dist/audit/index.d.ts +1 -1
- package/dist/audit/index.js +14 -0
- package/dist/client.d.ts +7 -0
- package/dist/client.js +14 -0
- package/dist/documents/content.js +6 -1
- package/dist/documents/document-templates.js +12 -5
- package/dist/documents/documents.d.ts +7 -2
- package/dist/documents/documents.js +4 -0
- package/dist/documents/dto.d.ts +7 -2
- package/dist/documents/dto.js +21 -1
- package/dist/documents/render/html.d.ts +5 -0
- package/dist/documents/render/html.js +10 -3
- package/dist/documents/render/index.d.ts +1 -1
- package/dist/documents/render/index.js +2 -1
- package/dist/documents/render/values.d.ts +4 -1
- package/dist/documents/render/values.js +4 -2
- package/dist/index.d.ts +3 -1
- package/dist/index.js +32 -3
- package/dist/inventory/dto.d.ts +134 -0
- package/dist/inventory/dto.js +684 -0
- package/dist/inventory/index.d.ts +7 -0
- package/dist/inventory/index.js +30 -0
- package/dist/inventory/items.d.ts +65 -0
- package/dist/inventory/items.js +216 -0
- package/dist/inventory/levels.d.ts +52 -0
- package/dist/inventory/levels.js +157 -0
- package/dist/inventory/locations.d.ts +29 -0
- package/dist/inventory/locations.js +158 -0
- package/dist/inventory/movements.d.ts +36 -0
- package/dist/inventory/movements.js +103 -0
- package/dist/inventory/stocktakes.d.ts +36 -0
- package/dist/inventory/stocktakes.js +70 -0
- package/dist/inventory/transfers.d.ts +73 -0
- package/dist/inventory/transfers.js +134 -0
- package/dist/organizations/dto.d.ts +3 -1
- package/dist/organizations/dto.js +12 -0
- package/dist/organizations/index.js +2 -0
- package/dist/permissions/dto.d.ts +4 -0
- package/dist/permissions/dto.js +20 -0
- package/dist/service-client/index.d.ts +6 -0
- package/dist/service-client/index.js +10 -0
- package/dist/users/paths.d.ts +5 -6
- package/dist/users/paths.js +12 -12
- package/package.json +2 -2
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import type { UUID } from 'crypto';
|
|
2
|
+
import type { CountInventoryDto as CountInventoryDtoType, CreateInventoryItemDto as CreateInventoryItemDtoType, CreateInventoryLocationDto as CreateInventoryLocationDtoType, CreateInventoryMovementDto as CreateInventoryMovementDtoType, CreateInventoryTransferDto as CreateInventoryTransferDtoType, CreateInventoryTransferLineDto as CreateInventoryTransferLineDtoType, GetInventoryItemsDto as GetInventoryItemsDtoType, GeocodeAddressDto as GeocodeAddressDtoType, GetInventoryLocationsDto as GetInventoryLocationsDtoType, GetInventoryMovementsDto as GetInventoryMovementsDtoType, GetInventoryStocktakesDto as GetInventoryStocktakesDtoType, GetInventoryTransfersDto as GetInventoryTransfersDtoType, ImportInventoryItemDto as ImportInventoryItemDtoType, ImportInventoryItemsDto as ImportInventoryItemsDtoType, InventoryItemFieldsDto as InventoryItemFieldsDtoType, InventoryItemIdDto as InventoryItemIdDtoType, InventoryLevelKeyDto as InventoryLevelKeyDtoType, InventoryLocationIdDto as InventoryLocationIdDtoType, InventoryStocktakeIdDto as InventoryStocktakeIdDtoType, InventoryTransferIdDto as InventoryTransferIdDtoType, ReceiveInventoryTransferDto as ReceiveInventoryTransferDtoType, SuggestAddressesDto as SuggestAddressesDtoType, StaffGetInventoryItemsDto as StaffGetInventoryItemsDtoType, UpdateInventoryItemDto as UpdateInventoryItemDtoType, UpdateInventoryLevelDto as UpdateInventoryLevelDtoType, UpdateInventoryLocationDto as UpdateInventoryLocationDtoType, UpdateInventoryTransferDto as UpdateInventoryTransferDtoType } from '@managemint-solutions/entities/inventory/dto';
|
|
3
|
+
import { InventoryLocationKind, InventoryMovementType, InventoryTransferStatus } from '@managemint-solutions/entities/inventory/enum';
|
|
4
|
+
export declare class GetInventoryLocationsDto implements GetInventoryLocationsDtoType {
|
|
5
|
+
readonly archive: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare class InventoryLocationIdDto implements InventoryLocationIdDtoType {
|
|
8
|
+
readonly locationId: string;
|
|
9
|
+
}
|
|
10
|
+
export declare class CreateInventoryLocationDto implements CreateInventoryLocationDtoType {
|
|
11
|
+
readonly name: string;
|
|
12
|
+
readonly kind: InventoryLocationKind;
|
|
13
|
+
readonly address?: string | null;
|
|
14
|
+
readonly latitude?: number | null;
|
|
15
|
+
readonly longitude?: number | null;
|
|
16
|
+
readonly is_default?: boolean;
|
|
17
|
+
}
|
|
18
|
+
export declare class UpdateInventoryLocationDto extends CreateInventoryLocationDto implements UpdateInventoryLocationDtoType {
|
|
19
|
+
}
|
|
20
|
+
export declare class GeocodeAddressDto implements GeocodeAddressDtoType {
|
|
21
|
+
readonly address?: string | null;
|
|
22
|
+
readonly place_id?: string | null;
|
|
23
|
+
}
|
|
24
|
+
export declare class SuggestAddressesDto implements SuggestAddressesDtoType {
|
|
25
|
+
readonly query: string;
|
|
26
|
+
}
|
|
27
|
+
export declare class GetInventoryItemsDto implements GetInventoryItemsDtoType {
|
|
28
|
+
readonly search?: string | null;
|
|
29
|
+
readonly page: number;
|
|
30
|
+
readonly page_size: number;
|
|
31
|
+
readonly archive: boolean;
|
|
32
|
+
readonly group_name?: string | null;
|
|
33
|
+
readonly location_id?: string | null;
|
|
34
|
+
readonly below_reorder?: boolean | null;
|
|
35
|
+
}
|
|
36
|
+
/** A staff read across organizations, optionally narrowed to one of them. */
|
|
37
|
+
export declare class StaffGetInventoryItemsDto extends GetInventoryItemsDto implements StaffGetInventoryItemsDtoType {
|
|
38
|
+
readonly organization_id?: string | null;
|
|
39
|
+
}
|
|
40
|
+
export declare class InventoryItemIdDto implements InventoryItemIdDtoType {
|
|
41
|
+
readonly itemId: string;
|
|
42
|
+
}
|
|
43
|
+
export declare class InventoryItemFieldsDto implements InventoryItemFieldsDtoType {
|
|
44
|
+
readonly name: string;
|
|
45
|
+
readonly sku?: string | null;
|
|
46
|
+
readonly description?: string | null;
|
|
47
|
+
readonly group_name?: string | null;
|
|
48
|
+
readonly cost_minor?: number | null;
|
|
49
|
+
readonly price_minor?: number | null;
|
|
50
|
+
readonly track_stock?: boolean;
|
|
51
|
+
}
|
|
52
|
+
/** A new item with what is already on the shelf: the opening quantity lands at the named location, or the default one. */
|
|
53
|
+
export declare class CreateInventoryItemDto extends InventoryItemFieldsDto implements CreateInventoryItemDtoType {
|
|
54
|
+
readonly opening_quantity?: number | null;
|
|
55
|
+
readonly location_id?: string | null;
|
|
56
|
+
}
|
|
57
|
+
export declare class UpdateInventoryItemDto extends InventoryItemFieldsDto implements UpdateInventoryItemDtoType {
|
|
58
|
+
}
|
|
59
|
+
/** One CSV row: the item plus an optional opening quantity at a named location. */
|
|
60
|
+
export declare class ImportInventoryItemDto extends InventoryItemFieldsDto implements ImportInventoryItemDtoType {
|
|
61
|
+
readonly opening_quantity?: number | null;
|
|
62
|
+
readonly location_name?: string | null;
|
|
63
|
+
}
|
|
64
|
+
export declare class ImportInventoryItemsDto implements ImportInventoryItemsDtoType {
|
|
65
|
+
readonly items: ImportInventoryItemDto[];
|
|
66
|
+
}
|
|
67
|
+
export declare class InventoryLevelKeyDto implements InventoryLevelKeyDtoType {
|
|
68
|
+
readonly itemId: string;
|
|
69
|
+
readonly locationId: string;
|
|
70
|
+
}
|
|
71
|
+
export declare class UpdateInventoryLevelDto implements UpdateInventoryLevelDtoType {
|
|
72
|
+
readonly reorder_point: number | null;
|
|
73
|
+
readonly reorder_quantity: number | null;
|
|
74
|
+
readonly bin?: string | null;
|
|
75
|
+
}
|
|
76
|
+
export declare class GetInventoryMovementsDto implements GetInventoryMovementsDtoType {
|
|
77
|
+
readonly page: number;
|
|
78
|
+
readonly page_size: number;
|
|
79
|
+
readonly item_id?: string | null;
|
|
80
|
+
readonly location_id?: string | null;
|
|
81
|
+
readonly type?: InventoryMovementType | null;
|
|
82
|
+
}
|
|
83
|
+
export declare class CreateInventoryMovementDto implements CreateInventoryMovementDtoType {
|
|
84
|
+
readonly item_id: UUID;
|
|
85
|
+
readonly location_id: UUID;
|
|
86
|
+
readonly type: InventoryMovementType;
|
|
87
|
+
readonly quantity: number;
|
|
88
|
+
readonly unit_cost_minor?: number | null;
|
|
89
|
+
readonly reason?: string | null;
|
|
90
|
+
readonly supplier?: string | null;
|
|
91
|
+
readonly supplier_reference?: string | null;
|
|
92
|
+
readonly notes?: string | null;
|
|
93
|
+
}
|
|
94
|
+
export declare class CountInventoryLineDto {
|
|
95
|
+
readonly item_id: UUID;
|
|
96
|
+
readonly counted: number;
|
|
97
|
+
readonly reason?: string | null;
|
|
98
|
+
}
|
|
99
|
+
export declare class CountInventoryDto implements CountInventoryDtoType {
|
|
100
|
+
readonly lines: CountInventoryLineDto[];
|
|
101
|
+
readonly notes?: string | null;
|
|
102
|
+
}
|
|
103
|
+
export declare class GetInventoryStocktakesDto implements GetInventoryStocktakesDtoType {
|
|
104
|
+
readonly page: number;
|
|
105
|
+
readonly page_size: number;
|
|
106
|
+
readonly location_id?: string | null;
|
|
107
|
+
}
|
|
108
|
+
export declare class InventoryStocktakeIdDto implements InventoryStocktakeIdDtoType {
|
|
109
|
+
readonly stocktakeId: string;
|
|
110
|
+
}
|
|
111
|
+
export declare class GetInventoryTransfersDto implements GetInventoryTransfersDtoType {
|
|
112
|
+
readonly page: number;
|
|
113
|
+
readonly page_size: number;
|
|
114
|
+
readonly status?: InventoryTransferStatus | null;
|
|
115
|
+
readonly location_id?: string | null;
|
|
116
|
+
}
|
|
117
|
+
export declare class InventoryTransferIdDto implements InventoryTransferIdDtoType {
|
|
118
|
+
readonly transferId: string;
|
|
119
|
+
}
|
|
120
|
+
export declare class CreateInventoryTransferLineDto implements CreateInventoryTransferLineDtoType {
|
|
121
|
+
readonly item_id: UUID;
|
|
122
|
+
readonly quantity: number;
|
|
123
|
+
}
|
|
124
|
+
export declare class CreateInventoryTransferDto implements CreateInventoryTransferDtoType {
|
|
125
|
+
readonly from_location_id: UUID;
|
|
126
|
+
readonly to_location_id: UUID;
|
|
127
|
+
readonly lines: CreateInventoryTransferLineDto[];
|
|
128
|
+
readonly notes?: string | null;
|
|
129
|
+
}
|
|
130
|
+
export declare class UpdateInventoryTransferDto extends CreateInventoryTransferDto implements UpdateInventoryTransferDtoType {
|
|
131
|
+
}
|
|
132
|
+
export declare class ReceiveInventoryTransferDto implements ReceiveInventoryTransferDtoType {
|
|
133
|
+
readonly lines?: CreateInventoryTransferLineDto[] | null;
|
|
134
|
+
}
|