@newpeak/barista-cli 0.1.11 → 0.1.13
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/commands/liberica/dict-types/get.d.ts.map +1 -1
- package/dist/commands/liberica/dict-types/get.js +9 -1
- package/dist/commands/liberica/dict-types/get.js.map +1 -1
- package/dist/commands/liberica/dict-types/index.d.ts.map +1 -1
- package/dist/commands/liberica/dict-types/index.js +2 -0
- package/dist/commands/liberica/dict-types/index.js.map +1 -1
- package/dist/commands/liberica/dict-types/list.d.ts.map +1 -1
- package/dist/commands/liberica/dict-types/list.js +19 -1
- package/dist/commands/liberica/dict-types/list.js.map +1 -1
- package/dist/commands/liberica/dict-types/tenant-items.d.ts +3 -0
- package/dist/commands/liberica/dict-types/tenant-items.d.ts.map +1 -0
- package/dist/commands/liberica/dict-types/tenant-items.js +275 -0
- package/dist/commands/liberica/dict-types/tenant-items.js.map +1 -0
- package/dist/commands/liberica/dicts/get.d.ts.map +1 -1
- package/dist/commands/liberica/dicts/get.js +9 -1
- package/dist/commands/liberica/dicts/get.js.map +1 -1
- package/dist/commands/liberica/dicts/list.d.ts.map +1 -1
- package/dist/commands/liberica/dicts/list.js +9 -1
- package/dist/commands/liberica/dicts/list.js.map +1 -1
- package/dist/core/api/client.d.ts +7 -7
- package/dist/core/api/client.d.ts.map +1 -1
- package/dist/core/api/client.js +15 -12
- package/dist/core/api/client.js.map +1 -1
- package/dist/core/config/manager.d.ts.map +1 -1
- package/dist/core/config/manager.js +1 -0
- package/dist/core/config/manager.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/types/dict.d.ts +2 -0
- package/dist/types/dict.d.ts.map +1 -1
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js.map +1 -1
- package/package.json +7 -3
- package/docs/ARCHITECTURE.md +0 -184
- package/docs/COMMANDS.md +0 -352
- package/docs/COMMAND_DESIGN_SPEC.md +0 -840
- package/docs/INTEGRATION_NOTES.md +0 -270
- package/docs/commands/REFERENCE.md +0 -323
- package/docs/commands/arabica/auth/index.md +0 -296
- package/docs/commands/liberica/auth/index.md +0 -133
- package/docs/commands/liberica/calendar/DESIGN.md +0 -333
- package/docs/commands/liberica/client-contacts/create.md +0 -152
- package/docs/commands/liberica/client-contacts/delete.md +0 -123
- package/docs/commands/liberica/client-contacts/get.md +0 -133
- package/docs/commands/liberica/client-contacts/list.md +0 -143
- package/docs/commands/liberica/client-contacts/update.md +0 -158
- package/docs/commands/liberica/context/index.md +0 -60
- package/docs/commands/liberica/currency/create.md +0 -145
- package/docs/commands/liberica/currency/delete.md +0 -121
- package/docs/commands/liberica/currency/disable.md +0 -119
- package/docs/commands/liberica/currency/enable.md +0 -115
- package/docs/commands/liberica/currency/get.md +0 -118
- package/docs/commands/liberica/currency/list.md +0 -149
- package/docs/commands/liberica/currency/update.md +0 -141
- package/docs/commands/liberica/employees/create.md +0 -185
- package/docs/commands/liberica/employees/disable.md +0 -138
- package/docs/commands/liberica/employees/enable.md +0 -137
- package/docs/commands/liberica/employees/get.md +0 -153
- package/docs/commands/liberica/employees/list.md +0 -168
- package/docs/commands/liberica/employees/update.md +0 -180
- package/docs/commands/liberica/locations/create.md +0 -195
- package/docs/commands/liberica/locations/list.md +0 -171
- package/docs/commands/liberica/materials/create.md +0 -293
- package/docs/commands/liberica/materials/delete.md +0 -240
- package/docs/commands/liberica/materials/disable.md +0 -150
- package/docs/commands/liberica/materials/enable.md +0 -146
- package/docs/commands/liberica/materials/get.md +0 -188
- package/docs/commands/liberica/materials/list.md +0 -198
- package/docs/commands/liberica/materials/update.md +0 -250
- package/docs/commands/liberica/orgs/list.md +0 -62
- package/docs/commands/liberica/positions/list.md +0 -61
- package/docs/commands/liberica/roles/list.md +0 -67
- package/docs/commands/liberica/stock/ledger.md +0 -209
- package/docs/commands/liberica/stock/list.md +0 -165
- package/docs/commands/liberica/supplier-contacts/create.md +0 -152
- package/docs/commands/liberica/supplier-contacts/delete.md +0 -123
- package/docs/commands/liberica/supplier-contacts/get.md +0 -133
- package/docs/commands/liberica/supplier-contacts/list.md +0 -143
- package/docs/commands/liberica/supplier-contacts/update.md +0 -158
- package/docs/commands/liberica/teams/issues/close.md +0 -161
- package/docs/commands/liberica/teams/issues/create.md +0 -212
- package/docs/commands/liberica/teams/issues/delete.md +0 -179
- package/docs/commands/liberica/teams/issues/get.md +0 -167
- package/docs/commands/liberica/teams/issues/list.md +0 -182
- package/docs/commands/liberica/teams/issues/tests-design.md +0 -341
- package/docs/commands/liberica/teams/issues/update.md +0 -202
- package/docs/commands/liberica/teams/projects/create.md +0 -174
- package/docs/commands/liberica/teams/projects/delete.md +0 -180
- package/docs/commands/liberica/teams/projects/get.md +0 -150
- package/docs/commands/liberica/teams/projects/list.md +0 -179
- package/docs/commands/liberica/teams/projects/update.md +0 -175
- package/docs/commands/liberica/teams/tasks/create.md +0 -163
- package/docs/commands/liberica/teams/tasks/delete.md +0 -109
- package/docs/commands/liberica/teams/tasks/get.md +0 -121
- package/docs/commands/liberica/teams/tasks/list.md +0 -148
- package/docs/commands/liberica/teams/tasks/update.md +0 -158
- package/docs/commands/liberica/teams/work-logs/create.md +0 -151
- package/docs/commands/liberica/teams/work-logs/delete.md +0 -130
- package/docs/commands/liberica/teams/work-logs/get.md +0 -131
- package/docs/commands/liberica/teams/work-logs/list.md +0 -153
- package/docs/commands/liberica/teams/work-logs/update.md +0 -150
- package/docs/commands/liberica/transfer-in-forms/batch-delete.md +0 -157
- package/docs/commands/liberica/transfer-in-forms/batch-review.md +0 -157
- package/docs/commands/liberica/transfer-in-forms/batch-unreview.md +0 -157
- package/docs/commands/liberica/transfer-in-forms/create.md +0 -220
- package/docs/commands/liberica/transfer-in-forms/get.md +0 -221
- package/docs/commands/liberica/transfer-in-forms/list.md +0 -242
- package/docs/commands/liberica/transfer-in-forms/update.md +0 -185
- package/docs/commands/liberica/transfer-out-forms/batch-delete.md +0 -187
- package/docs/commands/liberica/transfer-out-forms/batch-review.md +0 -157
- package/docs/commands/liberica/transfer-out-forms/batch-unreview.md +0 -157
- package/docs/commands/liberica/transfer-out-forms/create.md +0 -280
- package/docs/commands/liberica/transfer-out-forms/get.md +0 -211
- package/docs/commands/liberica/transfer-out-forms/list.md +0 -233
- package/docs/commands/liberica/transfer-out-forms/update.md +0 -286
- package/docs/commands/liberica/uoms/create.md +0 -136
- package/docs/commands/liberica/uoms/delete.md +0 -119
- package/docs/commands/liberica/uoms/disable.md +0 -117
- package/docs/commands/liberica/uoms/enable.md +0 -115
- package/docs/commands/liberica/uoms/get.md +0 -119
- package/docs/commands/liberica/uoms/list.md +0 -155
- package/docs/commands/liberica/uoms/update.md +0 -148
- package/docs/commands/liberica/users/create.md +0 -170
- package/docs/commands/liberica/users/get.md +0 -151
- package/docs/commands/liberica/users/list.md +0 -175
- package/docs/commands/liberica/warehouses/create.md +0 -222
- package/docs/commands/liberica/warehouses/list.md +0 -184
- package/src/commands/arabica/auth/index.ts +0 -277
- package/src/commands/arabica/auth/login.ts +0 -5
- package/src/commands/arabica/auth/logout.ts +0 -5
- package/src/commands/arabica/auth/register.ts +0 -5
- package/src/commands/arabica/auth/status.ts +0 -5
- package/src/commands/arabica/index.ts +0 -23
- package/src/commands/auth.ts +0 -107
- package/src/commands/context.ts +0 -60
- package/src/commands/liberica/auth/index.ts +0 -176
- package/src/commands/liberica/calendar/index.ts +0 -13
- package/src/commands/liberica/calendar/list.ts +0 -214
- package/src/commands/liberica/calendar/set.ts +0 -130
- package/src/commands/liberica/client-contacts/create.ts +0 -115
- package/src/commands/liberica/client-contacts/delete.ts +0 -140
- package/src/commands/liberica/client-contacts/get.ts +0 -103
- package/src/commands/liberica/client-contacts/index.ts +0 -19
- package/src/commands/liberica/client-contacts/list.ts +0 -118
- package/src/commands/liberica/client-contacts/update.ts +0 -137
- package/src/commands/liberica/clients/create.ts +0 -122
- package/src/commands/liberica/clients/delete.ts +0 -125
- package/src/commands/liberica/clients/get.ts +0 -88
- package/src/commands/liberica/clients/index.ts +0 -19
- package/src/commands/liberica/clients/list.ts +0 -123
- package/src/commands/liberica/clients/update.ts +0 -103
- package/src/commands/liberica/context/index.ts +0 -43
- package/src/commands/liberica/currency/create.ts +0 -183
- package/src/commands/liberica/currency/delete.ts +0 -124
- package/src/commands/liberica/currency/disable.ts +0 -147
- package/src/commands/liberica/currency/enable.ts +0 -128
- package/src/commands/liberica/currency/get.ts +0 -91
- package/src/commands/liberica/currency/index.ts +0 -23
- package/src/commands/liberica/currency/list.ts +0 -140
- package/src/commands/liberica/currency/update.ts +0 -129
- package/src/commands/liberica/dict-types/get.ts +0 -74
- package/src/commands/liberica/dict-types/index.ts +0 -15
- package/src/commands/liberica/dict-types/list.ts +0 -118
- package/src/commands/liberica/dict-types/update.ts +0 -134
- package/src/commands/liberica/dicts/create.ts +0 -175
- package/src/commands/liberica/dicts/delete.ts +0 -107
- package/src/commands/liberica/dicts/get.ts +0 -80
- package/src/commands/liberica/dicts/index.ts +0 -19
- package/src/commands/liberica/dicts/list.ts +0 -114
- package/src/commands/liberica/dicts/update.ts +0 -116
- package/src/commands/liberica/employees/create.ts +0 -275
- package/src/commands/liberica/employees/delete.ts +0 -122
- package/src/commands/liberica/employees/disable.ts +0 -97
- package/src/commands/liberica/employees/enable.ts +0 -97
- package/src/commands/liberica/employees/get.ts +0 -115
- package/src/commands/liberica/employees/index.ts +0 -23
- package/src/commands/liberica/employees/list.ts +0 -131
- package/src/commands/liberica/employees/update.ts +0 -157
- package/src/commands/liberica/index.ts +0 -81
- package/src/commands/liberica/materials/create.ts +0 -199
- package/src/commands/liberica/materials/delete.ts +0 -105
- package/src/commands/liberica/materials/disable.ts +0 -148
- package/src/commands/liberica/materials/enable.ts +0 -129
- package/src/commands/liberica/materials/get.ts +0 -83
- package/src/commands/liberica/materials/index.ts +0 -23
- package/src/commands/liberica/materials/list.ts +0 -142
- package/src/commands/liberica/materials/update.ts +0 -125
- package/src/commands/liberica/mould/get.ts +0 -111
- package/src/commands/liberica/mould/index.ts +0 -17
- package/src/commands/liberica/mould/list.ts +0 -157
- package/src/commands/liberica/mould/set-status.ts +0 -99
- package/src/commands/liberica/mould/stock-in.ts +0 -165
- package/src/commands/liberica/operations/active.ts +0 -153
- package/src/commands/liberica/operations/batch-delete.ts +0 -131
- package/src/commands/liberica/operations/copy.ts +0 -138
- package/src/commands/liberica/operations/create.ts +0 -223
- package/src/commands/liberica/operations/deactive.ts +0 -152
- package/src/commands/liberica/operations/delete.ts +0 -128
- package/src/commands/liberica/operations/design.md +0 -587
- package/src/commands/liberica/operations/get.ts +0 -112
- package/src/commands/liberica/operations/index.ts +0 -27
- package/src/commands/liberica/operations/list.ts +0 -180
- package/src/commands/liberica/operations/update.ts +0 -218
- package/src/commands/liberica/orgs/index.ts +0 -34
- package/src/commands/liberica/positions/index.ts +0 -30
- package/src/commands/liberica/roles/index.ts +0 -59
- package/src/commands/liberica/stock/index.ts +0 -13
- package/src/commands/liberica/stock/ledger.ts +0 -159
- package/src/commands/liberica/stock/list.ts +0 -128
- package/src/commands/liberica/supplier-contacts/create.ts +0 -120
- package/src/commands/liberica/supplier-contacts/delete.ts +0 -88
- package/src/commands/liberica/supplier-contacts/get.ts +0 -94
- package/src/commands/liberica/supplier-contacts/index.ts +0 -19
- package/src/commands/liberica/supplier-contacts/list.ts +0 -130
- package/src/commands/liberica/supplier-contacts/update.ts +0 -127
- package/src/commands/liberica/suppliers/create.ts +0 -149
- package/src/commands/liberica/suppliers/delete.ts +0 -102
- package/src/commands/liberica/suppliers/disable.ts +0 -145
- package/src/commands/liberica/suppliers/enable.ts +0 -126
- package/src/commands/liberica/suppliers/get.ts +0 -86
- package/src/commands/liberica/suppliers/index.ts +0 -23
- package/src/commands/liberica/suppliers/list.ts +0 -134
- package/src/commands/liberica/suppliers/update.ts +0 -128
- package/src/commands/liberica/teams/index.ts +0 -17
- package/src/commands/liberica/teams/issues/close.ts +0 -104
- package/src/commands/liberica/teams/issues/create.ts +0 -254
- package/src/commands/liberica/teams/issues/delete.ts +0 -58
- package/src/commands/liberica/teams/issues/get.ts +0 -78
- package/src/commands/liberica/teams/issues/index.ts +0 -21
- package/src/commands/liberica/teams/issues/list.ts +0 -144
- package/src/commands/liberica/teams/issues/update.ts +0 -141
- package/src/commands/liberica/teams/projects/create.ts +0 -159
- package/src/commands/liberica/teams/projects/delete.ts +0 -58
- package/src/commands/liberica/teams/projects/get.ts +0 -87
- package/src/commands/liberica/teams/projects/index.ts +0 -19
- package/src/commands/liberica/teams/projects/list.ts +0 -147
- package/src/commands/liberica/teams/projects/update.ts +0 -117
- package/src/commands/liberica/teams/tasks/create.ts +0 -102
- package/src/commands/liberica/teams/tasks/delete.ts +0 -92
- package/src/commands/liberica/teams/tasks/get.ts +0 -64
- package/src/commands/liberica/teams/tasks/index.ts +0 -19
- package/src/commands/liberica/teams/tasks/list.ts +0 -102
- package/src/commands/liberica/teams/tasks/update.ts +0 -122
- package/src/commands/liberica/teams/work-logs/create.ts +0 -204
- package/src/commands/liberica/teams/work-logs/delete.ts +0 -58
- package/src/commands/liberica/teams/work-logs/get.ts +0 -87
- package/src/commands/liberica/teams/work-logs/index.ts +0 -19
- package/src/commands/liberica/teams/work-logs/list.ts +0 -141
- package/src/commands/liberica/teams/work-logs/update.ts +0 -120
- package/src/commands/liberica/transfer-in-forms/batch-delete.ts +0 -152
- package/src/commands/liberica/transfer-in-forms/batch-review.ts +0 -151
- package/src/commands/liberica/transfer-in-forms/batch-unreview.ts +0 -152
- package/src/commands/liberica/transfer-in-forms/create.ts +0 -179
- package/src/commands/liberica/transfer-in-forms/get.ts +0 -107
- package/src/commands/liberica/transfer-in-forms/index.ts +0 -23
- package/src/commands/liberica/transfer-in-forms/list.ts +0 -97
- package/src/commands/liberica/transfer-in-forms/update.ts +0 -213
- package/src/commands/liberica/transfer-out-forms/batch-delete.ts +0 -83
- package/src/commands/liberica/transfer-out-forms/batch-review.ts +0 -148
- package/src/commands/liberica/transfer-out-forms/batch-unreview.ts +0 -56
- package/src/commands/liberica/transfer-out-forms/create.ts +0 -194
- package/src/commands/liberica/transfer-out-forms/get.ts +0 -114
- package/src/commands/liberica/transfer-out-forms/index.ts +0 -23
- package/src/commands/liberica/transfer-out-forms/list.ts +0 -125
- package/src/commands/liberica/transfer-out-forms/update.ts +0 -197
- package/src/commands/liberica/uoms/create.ts +0 -134
- package/src/commands/liberica/uoms/delete.ts +0 -105
- package/src/commands/liberica/uoms/disable.ts +0 -148
- package/src/commands/liberica/uoms/enable.ts +0 -129
- package/src/commands/liberica/uoms/get.ts +0 -83
- package/src/commands/liberica/uoms/index.ts +0 -23
- package/src/commands/liberica/uoms/list.ts +0 -129
- package/src/commands/liberica/uoms/update.ts +0 -124
- package/src/commands/liberica/users/create.ts +0 -133
- package/src/commands/liberica/users/delete.ts +0 -49
- package/src/commands/liberica/users/disable.ts +0 -41
- package/src/commands/liberica/users/enable.ts +0 -30
- package/src/commands/liberica/users/get.ts +0 -46
- package/src/commands/liberica/users/index.ts +0 -27
- package/src/commands/liberica/users/list.ts +0 -68
- package/src/commands/liberica/users/me.ts +0 -42
- package/src/commands/liberica/users/reset-password.ts +0 -42
- package/src/commands/liberica/users/update.ts +0 -48
- package/src/commands/liberica/warehouses/create.ts +0 -204
- package/src/commands/liberica/warehouses/delete.ts +0 -112
- package/src/commands/liberica/warehouses/disable.ts +0 -174
- package/src/commands/liberica/warehouses/enable.ts +0 -174
- package/src/commands/liberica/warehouses/get.ts +0 -101
- package/src/commands/liberica/warehouses/index.ts +0 -25
- package/src/commands/liberica/warehouses/list.ts +0 -136
- package/src/commands/liberica/warehouses/locations/create.ts +0 -209
- package/src/commands/liberica/warehouses/locations/delete.ts +0 -116
- package/src/commands/liberica/warehouses/locations/disable.ts +0 -174
- package/src/commands/liberica/warehouses/locations/enable.ts +0 -174
- package/src/commands/liberica/warehouses/locations/get.ts +0 -84
- package/src/commands/liberica/warehouses/locations/index.ts +0 -23
- package/src/commands/liberica/warehouses/locations/list.ts +0 -140
- package/src/commands/liberica/warehouses/locations/update.ts +0 -135
- package/src/commands/liberica/warehouses/update.ts +0 -142
- package/src/core/api/client.ts +0 -4443
- package/src/core/auth/token-manager.ts +0 -183
- package/src/core/config/manager.ts +0 -164
- package/src/index.ts +0 -35
- package/src/types/calendar.ts +0 -36
- package/src/types/client-contact.ts +0 -78
- package/src/types/client.ts +0 -115
- package/src/types/currency.ts +0 -90
- package/src/types/dict.ts +0 -121
- package/src/types/employee.ts +0 -102
- package/src/types/index.ts +0 -93
- package/src/types/location.ts +0 -66
- package/src/types/material.ts +0 -61
- package/src/types/mould-stock-in.ts +0 -82
- package/src/types/mould.ts +0 -74
- package/src/types/operation.ts +0 -72
- package/src/types/org.ts +0 -25
- package/src/types/position.ts +0 -24
- package/src/types/stock.ts +0 -161
- package/src/types/supplier-contact.ts +0 -78
- package/src/types/supplier.ts +0 -66
- package/src/types/team-issue.ts +0 -94
- package/src/types/team-project.ts +0 -74
- package/src/types/team-task.ts +0 -98
- package/src/types/team-work-log.ts +0 -87
- package/src/types/transfer-in-form.ts +0 -265
- package/src/types/transfer-out-form.ts +0 -290
- package/src/types/uom.ts +0 -60
- package/src/types/user.ts +0 -64
- package/src/types/warehouse.ts +0 -82
package/src/types/position.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
// Position entity
|
|
2
|
-
export interface Position {
|
|
3
|
-
positionId: string;
|
|
4
|
-
positionCode?: string;
|
|
5
|
-
positionName?: string;
|
|
6
|
-
jobType?: string;
|
|
7
|
-
jobLevelNo?: string;
|
|
8
|
-
statusFlag?: number;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
// API response for position list (generic id+name for reuse)
|
|
12
|
-
export interface PositionListItem {
|
|
13
|
-
id: string;
|
|
14
|
-
name: string;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export interface PositionListResponse {
|
|
18
|
-
success: boolean;
|
|
19
|
-
data?: PositionListItem[];
|
|
20
|
-
error?: {
|
|
21
|
-
code: string;
|
|
22
|
-
message: string;
|
|
23
|
-
};
|
|
24
|
-
}
|
package/src/types/stock.ts
DELETED
|
@@ -1,161 +0,0 @@
|
|
|
1
|
-
// Stock query types for Liberica production management
|
|
2
|
-
|
|
3
|
-
// ============================================
|
|
4
|
-
// Master Stock (Warehouse Stock) Query Types
|
|
5
|
-
// ============================================
|
|
6
|
-
|
|
7
|
-
// Params for GET /enterprise/master/stock/page/withWarehouse
|
|
8
|
-
export interface MasterStockQueryParams {
|
|
9
|
-
warehouseCode?: string;
|
|
10
|
-
materialCode?: string;
|
|
11
|
-
materialNo?: string;
|
|
12
|
-
materialName?: string;
|
|
13
|
-
materialType?: string;
|
|
14
|
-
lotNo?: string;
|
|
15
|
-
color?: string;
|
|
16
|
-
longX?: number;
|
|
17
|
-
wideY?: number;
|
|
18
|
-
highZ?: number;
|
|
19
|
-
sourceType?: string;
|
|
20
|
-
sourceCode?: string;
|
|
21
|
-
stockId?: string; // BigInteger → string
|
|
22
|
-
excludeZeroStock?: boolean;
|
|
23
|
-
startDate?: string; // YYYY-MM-DD
|
|
24
|
-
endDate?: string; // YYYY-MM-DD
|
|
25
|
-
pageNo: number; // 0-based (API convention)
|
|
26
|
-
pageSize: number;
|
|
27
|
-
sortField?: string;
|
|
28
|
-
sortOrder?: 'asc' | 'desc';
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
// Response item from GET /enterprise/master/stock/page/withWarehouse
|
|
32
|
-
export interface MasterWarehouseStockItem {
|
|
33
|
-
tenantId: string;
|
|
34
|
-
warehouseStockId: string;
|
|
35
|
-
warehouseCode: string;
|
|
36
|
-
materialCode: string;
|
|
37
|
-
materialNo: string;
|
|
38
|
-
materialName: string;
|
|
39
|
-
materialType: string;
|
|
40
|
-
color: string;
|
|
41
|
-
longX: number;
|
|
42
|
-
wideY: number;
|
|
43
|
-
highZ: number;
|
|
44
|
-
stockCount: number;
|
|
45
|
-
materialUomCode: string;
|
|
46
|
-
unitPrice: number;
|
|
47
|
-
localCurrency: string;
|
|
48
|
-
stockAmount: number;
|
|
49
|
-
lastStockFlag: string;
|
|
50
|
-
lastStockDate: string;
|
|
51
|
-
remark: string;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
// Paginated response wrapper
|
|
55
|
-
export interface MasterStockPageResult<T> {
|
|
56
|
-
totalRows: number;
|
|
57
|
-
pageSize: number;
|
|
58
|
-
pageNo: number;
|
|
59
|
-
rows: T[];
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
// API Response wrapper for master stock
|
|
63
|
-
export interface MasterStockApiResponse {
|
|
64
|
-
success: boolean;
|
|
65
|
-
data?: MasterStockPageResult<MasterWarehouseStockItem>;
|
|
66
|
-
error?: {
|
|
67
|
-
code: string;
|
|
68
|
-
message: string;
|
|
69
|
-
};
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
// ============================================
|
|
73
|
-
// Stock Journey (Stock Ledger) Query Types
|
|
74
|
-
// ============================================
|
|
75
|
-
|
|
76
|
-
// Stock flag literal type
|
|
77
|
-
export type StockFlag = 'INBOUND' | 'OUTBOUND';
|
|
78
|
-
|
|
79
|
-
// Params for GET /enterprise/master/stock/journey/page
|
|
80
|
-
export interface StockJourneyQueryParams {
|
|
81
|
-
stockId?: string;
|
|
82
|
-
stockFormCode?: string;
|
|
83
|
-
stockType?: string;
|
|
84
|
-
stockFlag?: StockFlag;
|
|
85
|
-
warehouseCode?: string;
|
|
86
|
-
materialCode?: string;
|
|
87
|
-
materialNo?: string;
|
|
88
|
-
materialName?: string;
|
|
89
|
-
materialType?: string;
|
|
90
|
-
color?: string;
|
|
91
|
-
lotNo?: string;
|
|
92
|
-
lotCode?: string;
|
|
93
|
-
sourceType?: string;
|
|
94
|
-
sourceCode?: string;
|
|
95
|
-
startDate?: string; // YYYY-MM-DD
|
|
96
|
-
endDate?: string; // YYYY-MM-DD
|
|
97
|
-
postingMonth?: string; // YYYY-MM
|
|
98
|
-
pageNo: number;
|
|
99
|
-
pageSize: number;
|
|
100
|
-
sortField?: string;
|
|
101
|
-
sortOrder?: 'asc' | 'desc';
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
// Response item from GET /enterprise/master/stock/journey/page
|
|
105
|
-
export interface StockJourneyItem {
|
|
106
|
-
tenantId: string;
|
|
107
|
-
stockId: string;
|
|
108
|
-
stockFormCode: string;
|
|
109
|
-
stockType: string;
|
|
110
|
-
stockFlag: string;
|
|
111
|
-
warehouseCode: string;
|
|
112
|
-
materialCode: string;
|
|
113
|
-
materialNo: string;
|
|
114
|
-
materialName: string;
|
|
115
|
-
materialType: string;
|
|
116
|
-
color: string;
|
|
117
|
-
lotNo: string;
|
|
118
|
-
lotCode: string;
|
|
119
|
-
sourceCode: string;
|
|
120
|
-
sourceType: string;
|
|
121
|
-
inboundCount: number;
|
|
122
|
-
outboundCount: number;
|
|
123
|
-
materialUomCode: string;
|
|
124
|
-
unitPrice: number;
|
|
125
|
-
localCurrency: string;
|
|
126
|
-
inboundAmount: number;
|
|
127
|
-
outboundAmount: number;
|
|
128
|
-
inboundDate: string;
|
|
129
|
-
outboundDate: string;
|
|
130
|
-
stockDate: string;
|
|
131
|
-
postingMonth: string;
|
|
132
|
-
remark: string;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
// API Response wrapper for stock journey
|
|
136
|
-
export interface StockJourneyApiResponse {
|
|
137
|
-
success: boolean;
|
|
138
|
-
data?: MasterStockPageResult<StockJourneyItem>;
|
|
139
|
-
error?: {
|
|
140
|
-
code: string;
|
|
141
|
-
message: string;
|
|
142
|
-
};
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
// Summary response for GET /enterprise/master/stock/journey/page/summary
|
|
146
|
-
export interface StockJourneySummary {
|
|
147
|
-
totalInboundCount: number;
|
|
148
|
-
totalOutboundCount: number;
|
|
149
|
-
totalInboundAmount: number;
|
|
150
|
-
totalOutboundAmount: number;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
// API Response wrapper for stock journey summary
|
|
154
|
-
export interface StockJourneySummaryApiResponse {
|
|
155
|
-
success: boolean;
|
|
156
|
-
data?: StockJourneySummary;
|
|
157
|
-
error?: {
|
|
158
|
-
code: string;
|
|
159
|
-
message: string;
|
|
160
|
-
};
|
|
161
|
-
}
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
// Supplier Contact entity (from MasterSupplierContact)
|
|
2
|
-
// All ID fields use string due to BigInteger backend
|
|
3
|
-
|
|
4
|
-
export interface SupplierContact {
|
|
5
|
-
supplierContactId: string;
|
|
6
|
-
supplierId: string;
|
|
7
|
-
supplierContactName: string;
|
|
8
|
-
supplierContactPhone?: string;
|
|
9
|
-
supplierContactTelephone?: string;
|
|
10
|
-
supplierContactEmail?: string;
|
|
11
|
-
supplierContactSex?: string;
|
|
12
|
-
supplierContactBirthday?: string;
|
|
13
|
-
supplierContactQq?: string;
|
|
14
|
-
supplierContactWechat?: string;
|
|
15
|
-
supplierContactAddress?: string;
|
|
16
|
-
defaultFlag?: string; // Y/N
|
|
17
|
-
remark?: string;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
// Request for creating supplier contact (add endpoint)
|
|
21
|
-
export interface CreateSupplierContactRequest {
|
|
22
|
-
supplierId: string;
|
|
23
|
-
supplierContactName: string;
|
|
24
|
-
supplierContactPhone?: string;
|
|
25
|
-
supplierContactTelephone?: string;
|
|
26
|
-
supplierContactEmail?: string;
|
|
27
|
-
supplierContactSex?: string;
|
|
28
|
-
supplierContactBirthday?: string;
|
|
29
|
-
supplierContactQq?: string;
|
|
30
|
-
supplierContactWechat?: string;
|
|
31
|
-
supplierContactAddress?: string;
|
|
32
|
-
defaultFlag?: string;
|
|
33
|
-
remark?: string;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
// Request for updating supplier contact (edit endpoint)
|
|
37
|
-
export interface UpdateSupplierContactRequest {
|
|
38
|
-
supplierContactId: string;
|
|
39
|
-
supplierContactName?: string;
|
|
40
|
-
supplierContactPhone?: string;
|
|
41
|
-
supplierContactTelephone?: string;
|
|
42
|
-
supplierContactEmail?: string;
|
|
43
|
-
supplierContactSex?: string;
|
|
44
|
-
supplierContactBirthday?: string;
|
|
45
|
-
supplierContactQq?: string;
|
|
46
|
-
supplierContactWechat?: string;
|
|
47
|
-
supplierContactAddress?: string;
|
|
48
|
-
defaultFlag?: string;
|
|
49
|
-
remark?: string;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
// Query params for list/pagination
|
|
53
|
-
export interface SupplierContactQueryParams {
|
|
54
|
-
supplierId: string;
|
|
55
|
-
pageNo?: number;
|
|
56
|
-
pageSize?: number;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
// Paginated response wrapper (PageResult from Roses framework)
|
|
60
|
-
export interface PageResult<T> {
|
|
61
|
-
totalRows: number;
|
|
62
|
-
pageSize: number;
|
|
63
|
-
pageNo: number;
|
|
64
|
-
rows: T[];
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
// List response type
|
|
68
|
-
export interface SupplierContactListResponse extends PageResult<SupplierContact> {}
|
|
69
|
-
|
|
70
|
-
// API response wrapper
|
|
71
|
-
export interface SupplierContactApiResponse {
|
|
72
|
-
success: boolean;
|
|
73
|
-
data?: SupplierContact | SupplierContactListResponse;
|
|
74
|
-
error?: {
|
|
75
|
-
code: string;
|
|
76
|
-
message: string;
|
|
77
|
-
};
|
|
78
|
-
}
|
package/src/types/supplier.ts
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
// Status flag literal type
|
|
2
|
-
export type StatusFlag = 1 | 2;
|
|
3
|
-
|
|
4
|
-
// Full Supplier entity
|
|
5
|
-
export interface Supplier {
|
|
6
|
-
supplierId: string;
|
|
7
|
-
supplierCode: string;
|
|
8
|
-
supplierName: string;
|
|
9
|
-
supplierType?: string;
|
|
10
|
-
statusFlag: StatusFlag;
|
|
11
|
-
contactPerson?: string;
|
|
12
|
-
contactPhone?: string;
|
|
13
|
-
address?: string;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
// Request for creating supplier (add endpoint)
|
|
17
|
-
export interface CreateSupplierRequest {
|
|
18
|
-
supplierCode: string;
|
|
19
|
-
supplierName?: string;
|
|
20
|
-
supplierType?: string;
|
|
21
|
-
statusFlag?: StatusFlag;
|
|
22
|
-
contactPerson?: string;
|
|
23
|
-
contactPhone?: string;
|
|
24
|
-
address?: string;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
// Request for updating supplier (edit endpoint)
|
|
28
|
-
export interface UpdateSupplierRequest {
|
|
29
|
-
supplierId: string;
|
|
30
|
-
supplierName?: string;
|
|
31
|
-
supplierType?: string;
|
|
32
|
-
statusFlag?: StatusFlag;
|
|
33
|
-
contactPerson?: string;
|
|
34
|
-
contactPhone?: string;
|
|
35
|
-
address?: string;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
// Query params for list/pagination
|
|
39
|
-
export interface SupplierQueryParams {
|
|
40
|
-
pageNo?: number;
|
|
41
|
-
pageSize?: number;
|
|
42
|
-
status?: StatusFlag;
|
|
43
|
-
supplierCode?: string;
|
|
44
|
-
supplierName?: string;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
// Paginated response wrapper (PageResult from Roses framework)
|
|
48
|
-
export interface PageResult<T> {
|
|
49
|
-
totalRows: number;
|
|
50
|
-
pageSize: number;
|
|
51
|
-
pageNo: number;
|
|
52
|
-
rows: T[];
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
// List response type
|
|
56
|
-
export interface SupplierListResponse extends PageResult<Supplier> {}
|
|
57
|
-
|
|
58
|
-
// API response wrapper
|
|
59
|
-
export interface SupplierApiResponse {
|
|
60
|
-
success: boolean;
|
|
61
|
-
data?: Supplier | SupplierListResponse;
|
|
62
|
-
error?: {
|
|
63
|
-
code: string;
|
|
64
|
-
message: string;
|
|
65
|
-
};
|
|
66
|
-
}
|
package/src/types/team-issue.ts
DELETED
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import type { PageResult } from './employee.js';
|
|
2
|
-
|
|
3
|
-
export type IssueType = 'BUG' | 'REQUIREMENT' | 'QUESTION';
|
|
4
|
-
|
|
5
|
-
export type TeamIssueStatus = 'OPEN' | 'IN_PROGRESS' | 'RESOLVED' | 'CLOSED';
|
|
6
|
-
|
|
7
|
-
export type TeamIssuePriority = 'LOW' | 'MEDIUM' | 'HIGH' | 'URGENT';
|
|
8
|
-
|
|
9
|
-
export interface TeamIssue {
|
|
10
|
-
teamIssueId: string;
|
|
11
|
-
teamIssueCode?: string;
|
|
12
|
-
issueTitle: string;
|
|
13
|
-
issueTitleTranslations?: string;
|
|
14
|
-
issueType: IssueType;
|
|
15
|
-
issueDesc?: string;
|
|
16
|
-
issueDescTranslations?: string;
|
|
17
|
-
solution?: string;
|
|
18
|
-
solutionTranslations?: string;
|
|
19
|
-
projectId: string;
|
|
20
|
-
projectCode: string;
|
|
21
|
-
projectName: string;
|
|
22
|
-
reporterAccount?: string;
|
|
23
|
-
reporterName: string;
|
|
24
|
-
reporterEmail: string;
|
|
25
|
-
reporterTenantId?: string;
|
|
26
|
-
reportDate?: string;
|
|
27
|
-
assignTo?: string;
|
|
28
|
-
teamIssueStatus: TeamIssueStatus;
|
|
29
|
-
priority: TeamIssuePriority;
|
|
30
|
-
resolutionTime?: string;
|
|
31
|
-
closeTime?: string;
|
|
32
|
-
tags?: string;
|
|
33
|
-
refId?: string;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export interface CreateTeamIssueRequest {
|
|
37
|
-
issueTitle: string;
|
|
38
|
-
issueType: IssueType;
|
|
39
|
-
issueDesc?: string;
|
|
40
|
-
projectId: string;
|
|
41
|
-
projectCode: string;
|
|
42
|
-
projectName: string;
|
|
43
|
-
reporterName?: string;
|
|
44
|
-
reporterEmail?: string;
|
|
45
|
-
reporterAccount?: string;
|
|
46
|
-
reportDate?: string;
|
|
47
|
-
assignTo?: string[];
|
|
48
|
-
teamIssueStatus?: TeamIssueStatus;
|
|
49
|
-
priority?: TeamIssuePriority;
|
|
50
|
-
tags?: string[];
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
export interface UpdateTeamIssueRequest {
|
|
54
|
-
teamIssueId: string;
|
|
55
|
-
issueTitle?: string;
|
|
56
|
-
issueType?: IssueType;
|
|
57
|
-
issueDesc?: string;
|
|
58
|
-
projectId?: string;
|
|
59
|
-
projectCode?: string;
|
|
60
|
-
projectName?: string;
|
|
61
|
-
reporterName?: string;
|
|
62
|
-
reporterEmail?: string;
|
|
63
|
-
assignTo?: string[];
|
|
64
|
-
teamIssueStatus?: TeamIssueStatus;
|
|
65
|
-
priority?: TeamIssuePriority;
|
|
66
|
-
tags?: string[];
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
export interface TeamIssueQueryParams {
|
|
70
|
-
pageNo?: number;
|
|
71
|
-
pageSize?: number;
|
|
72
|
-
teamIssueId?: string;
|
|
73
|
-
teamIssueCode?: string;
|
|
74
|
-
issueTitle?: string;
|
|
75
|
-
issueType?: IssueType;
|
|
76
|
-
teamIssueStatus?: TeamIssueStatus;
|
|
77
|
-
priority?: TeamIssuePriority;
|
|
78
|
-
projectId?: string;
|
|
79
|
-
projectCode?: string;
|
|
80
|
-
projectName?: string;
|
|
81
|
-
reporterName?: string;
|
|
82
|
-
reporterEmail?: string;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
export interface TeamIssueListResponse extends PageResult<TeamIssue> {}
|
|
86
|
-
|
|
87
|
-
export interface TeamIssueApiResponse {
|
|
88
|
-
success: boolean;
|
|
89
|
-
data?: TeamIssue | TeamIssueListResponse;
|
|
90
|
-
error?: {
|
|
91
|
-
code: string;
|
|
92
|
-
message: string;
|
|
93
|
-
};
|
|
94
|
-
}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import type { PageResult } from './employee.js';
|
|
2
|
-
|
|
3
|
-
export type ProjectStatus = 'ACTIVE' | 'INACTIVE' | 'ARCHIVED';
|
|
4
|
-
|
|
5
|
-
export type ProjectPriority = 'LOW' | 'MEDIUM' | 'HIGH' | 'URGENT';
|
|
6
|
-
|
|
7
|
-
export interface TeamProject {
|
|
8
|
-
teamProjectId: string;
|
|
9
|
-
projectCode?: string;
|
|
10
|
-
projectName: string;
|
|
11
|
-
projectDesc?: string;
|
|
12
|
-
projectStatus?: ProjectStatus;
|
|
13
|
-
priority?: ProjectPriority;
|
|
14
|
-
startDate?: string;
|
|
15
|
-
endDate?: string;
|
|
16
|
-
managerId?: string;
|
|
17
|
-
managerName?: string;
|
|
18
|
-
teamId?: string;
|
|
19
|
-
teamName?: string;
|
|
20
|
-
memberCount?: number;
|
|
21
|
-
createBy?: string;
|
|
22
|
-
createTime?: string;
|
|
23
|
-
updateBy?: string;
|
|
24
|
-
updateTime?: string;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export interface CreateTeamProjectRequest {
|
|
28
|
-
projectCode?: string;
|
|
29
|
-
projectName: string;
|
|
30
|
-
projectDesc?: string;
|
|
31
|
-
projectStatus?: ProjectStatus;
|
|
32
|
-
priority?: ProjectPriority;
|
|
33
|
-
startDate?: string;
|
|
34
|
-
endDate?: string;
|
|
35
|
-
managerId?: string;
|
|
36
|
-
teamId?: string;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export interface UpdateTeamProjectRequest {
|
|
40
|
-
teamProjectId: string;
|
|
41
|
-
projectCode?: string;
|
|
42
|
-
projectName?: string;
|
|
43
|
-
projectDesc?: string;
|
|
44
|
-
projectStatus?: ProjectStatus;
|
|
45
|
-
priority?: ProjectPriority;
|
|
46
|
-
startDate?: string;
|
|
47
|
-
endDate?: string;
|
|
48
|
-
managerId?: string;
|
|
49
|
-
teamId?: string;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export interface TeamProjectQueryParams {
|
|
53
|
-
pageNo?: number;
|
|
54
|
-
pageSize?: number;
|
|
55
|
-
teamProjectId?: string;
|
|
56
|
-
projectCode?: string;
|
|
57
|
-
projectName?: string;
|
|
58
|
-
projectStatus?: ProjectStatus;
|
|
59
|
-
priority?: ProjectPriority;
|
|
60
|
-
teamId?: string;
|
|
61
|
-
managerId?: string;
|
|
62
|
-
projectId?: string;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
export interface TeamProjectListResponse extends PageResult<TeamProject> {}
|
|
66
|
-
|
|
67
|
-
export interface TeamProjectApiResponse {
|
|
68
|
-
success: boolean;
|
|
69
|
-
data?: TeamProject | TeamProjectListResponse;
|
|
70
|
-
error?: {
|
|
71
|
-
code: string;
|
|
72
|
-
message: string;
|
|
73
|
-
};
|
|
74
|
-
}
|
package/src/types/team-task.ts
DELETED
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import type { PageResult } from './employee.js';
|
|
2
|
-
|
|
3
|
-
export type TaskType = 'BUG' | 'REQUIREMENT' | 'QUESTION';
|
|
4
|
-
|
|
5
|
-
export type TeamTaskStatus = 'OPEN' | 'IN_PROGRESS' | 'RESOLVED' | 'CLOSED';
|
|
6
|
-
|
|
7
|
-
export type TeamTaskPriority = 'LOW' | 'MEDIUM' | 'HIGH' | 'URGENT';
|
|
8
|
-
|
|
9
|
-
export interface TeamTask {
|
|
10
|
-
teamTaskId: string;
|
|
11
|
-
teamTaskCode?: string;
|
|
12
|
-
taskTitle: string;
|
|
13
|
-
taskTitleTranslations?: string;
|
|
14
|
-
taskType: TaskType;
|
|
15
|
-
taskDesc?: string;
|
|
16
|
-
taskDescTranslations?: string;
|
|
17
|
-
solution?: string;
|
|
18
|
-
solutionTranslations?: string;
|
|
19
|
-
projectId: string;
|
|
20
|
-
projectCode: string;
|
|
21
|
-
projectName: string;
|
|
22
|
-
reporterAccount?: string;
|
|
23
|
-
reporterName: string;
|
|
24
|
-
reporterEmail: string;
|
|
25
|
-
reporterTenantId?: string;
|
|
26
|
-
reportDate?: string;
|
|
27
|
-
assignTo?: string;
|
|
28
|
-
teamTaskStatus: TeamTaskStatus;
|
|
29
|
-
priority: TeamTaskPriority;
|
|
30
|
-
resolutionTime?: string;
|
|
31
|
-
closeTime?: string;
|
|
32
|
-
tags?: string;
|
|
33
|
-
refId?: string;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export interface CreateTeamTaskRequest {
|
|
37
|
-
taskTitle: string;
|
|
38
|
-
taskType: TaskType;
|
|
39
|
-
taskDesc?: string;
|
|
40
|
-
projectId: string;
|
|
41
|
-
projectCode: string;
|
|
42
|
-
projectName: string;
|
|
43
|
-
reporterName?: string;
|
|
44
|
-
reporterEmail?: string;
|
|
45
|
-
reporterAccount?: string;
|
|
46
|
-
reportDate?: string;
|
|
47
|
-
assignTo?: string[];
|
|
48
|
-
teamTaskStatus?: TeamTaskStatus;
|
|
49
|
-
priority?: TeamTaskPriority;
|
|
50
|
-
tags?: string[];
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
export interface UpdateTeamTaskRequest {
|
|
54
|
-
teamTaskId: string;
|
|
55
|
-
taskTitle?: string;
|
|
56
|
-
taskType?: TaskType;
|
|
57
|
-
taskDesc?: string;
|
|
58
|
-
taskCode?: string;
|
|
59
|
-
projectId?: string;
|
|
60
|
-
projectCode?: string;
|
|
61
|
-
projectName?: string;
|
|
62
|
-
assignTo?: string[];
|
|
63
|
-
teamTaskStatus?: TeamTaskStatus;
|
|
64
|
-
priority?: TeamTaskPriority;
|
|
65
|
-
tags?: string[];
|
|
66
|
-
startTime?: string;
|
|
67
|
-
endTime?: string;
|
|
68
|
-
completionRate?: number;
|
|
69
|
-
refId?: string;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
export interface TeamTaskQueryParams {
|
|
73
|
-
pageNo?: number;
|
|
74
|
-
pageSize?: number;
|
|
75
|
-
teamTaskId?: string;
|
|
76
|
-
teamTaskCode?: string;
|
|
77
|
-
taskTitle?: string;
|
|
78
|
-
taskType?: TaskType;
|
|
79
|
-
teamTaskStatus?: TeamTaskStatus;
|
|
80
|
-
priority?: TeamTaskPriority;
|
|
81
|
-
projectId?: string;
|
|
82
|
-
projectCode?: string;
|
|
83
|
-
projectName?: string;
|
|
84
|
-
reporterName?: string;
|
|
85
|
-
reporterEmail?: string;
|
|
86
|
-
assignTo?: string;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
export interface TeamTaskListResponse extends PageResult<TeamTask> {}
|
|
90
|
-
|
|
91
|
-
export interface TeamTaskApiResponse {
|
|
92
|
-
success: boolean;
|
|
93
|
-
data?: TeamTask | TeamTaskListResponse;
|
|
94
|
-
error?: {
|
|
95
|
-
code: string;
|
|
96
|
-
message: string;
|
|
97
|
-
};
|
|
98
|
-
}
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import type { PageResult } from './employee.js';
|
|
2
|
-
|
|
3
|
-
export type WorkLogType = 'DAILY' | 'WEEKLY' | 'MONTHLY' | 'PROJECT' | 'OTHER';
|
|
4
|
-
|
|
5
|
-
export type WorkLogStatus = 'DRAFT' | 'SUBMITTED' | 'APPROVED' | 'REJECTED';
|
|
6
|
-
|
|
7
|
-
export interface TeamWorkLog {
|
|
8
|
-
teamWorkLogId: string;
|
|
9
|
-
workLogCode?: string;
|
|
10
|
-
workLogTitle: string;
|
|
11
|
-
workLogTitleTranslations?: string;
|
|
12
|
-
workLogType: WorkLogType;
|
|
13
|
-
workLogContent?: string;
|
|
14
|
-
workLogContentTranslations?: string;
|
|
15
|
-
projectId?: string;
|
|
16
|
-
projectCode?: string;
|
|
17
|
-
projectName?: string;
|
|
18
|
-
creatorId?: string;
|
|
19
|
-
creatorName: string;
|
|
20
|
-
creatorEmail: string;
|
|
21
|
-
creatorTenantId?: string;
|
|
22
|
-
createDate?: string;
|
|
23
|
-
submitDate?: string;
|
|
24
|
-
approveDate?: string;
|
|
25
|
-
approverId?: string;
|
|
26
|
-
approverName?: string;
|
|
27
|
-
approverComment?: string;
|
|
28
|
-
workLogStatus: WorkLogStatus;
|
|
29
|
-
workHours?: number;
|
|
30
|
-
attachments?: string;
|
|
31
|
-
refId?: string;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export interface CreateTeamWorkLogRequest {
|
|
35
|
-
workLogTitle: string;
|
|
36
|
-
workLogType: WorkLogType;
|
|
37
|
-
workLogContent?: string;
|
|
38
|
-
projectId?: string;
|
|
39
|
-
projectCode?: string;
|
|
40
|
-
projectName?: string;
|
|
41
|
-
creatorName?: string;
|
|
42
|
-
creatorEmail?: string;
|
|
43
|
-
creatorAccount?: string;
|
|
44
|
-
createDate?: string;
|
|
45
|
-
workLogStatus?: WorkLogStatus;
|
|
46
|
-
workHours?: number;
|
|
47
|
-
attachments?: string[];
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
export interface UpdateTeamWorkLogRequest {
|
|
51
|
-
teamWorkLogId: string;
|
|
52
|
-
workLogTitle?: string;
|
|
53
|
-
workLogType?: WorkLogType;
|
|
54
|
-
workLogContent?: string;
|
|
55
|
-
projectId?: string;
|
|
56
|
-
projectCode?: string;
|
|
57
|
-
projectName?: string;
|
|
58
|
-
workLogStatus?: WorkLogStatus;
|
|
59
|
-
workHours?: number;
|
|
60
|
-
attachments?: string[];
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export interface TeamWorkLogQueryParams {
|
|
64
|
-
pageNo?: number;
|
|
65
|
-
pageSize?: number;
|
|
66
|
-
teamWorkLogId?: string;
|
|
67
|
-
workLogCode?: string;
|
|
68
|
-
workLogTitle?: string;
|
|
69
|
-
workLogType?: WorkLogType;
|
|
70
|
-
workLogStatus?: WorkLogStatus;
|
|
71
|
-
projectId?: string;
|
|
72
|
-
projectCode?: string;
|
|
73
|
-
projectName?: string;
|
|
74
|
-
creatorName?: string;
|
|
75
|
-
creatorEmail?: string;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
export interface TeamWorkLogListResponse extends PageResult<TeamWorkLog> {}
|
|
79
|
-
|
|
80
|
-
export interface TeamWorkLogApiResponse {
|
|
81
|
-
success: boolean;
|
|
82
|
-
data?: TeamWorkLog | TeamWorkLogListResponse;
|
|
83
|
-
error?: {
|
|
84
|
-
code: string;
|
|
85
|
-
message: string;
|
|
86
|
-
};
|
|
87
|
-
}
|