@nextplus/js-sdk 0.0.1 → 0.0.4
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/README.md +228 -0
- package/dist/chunk-DNVJS7WW.js +20836 -0
- package/dist/chunk-FXXZNC42.js +726 -0
- package/dist/index.d.ts +34 -209
- package/dist/index.js +244 -27585
- package/dist/sdk/client/index.d.ts +39 -0
- package/dist/sdk/client/index.js +18 -0
- package/dist/sdk/sdk.gen.d.ts +34568 -0
- package/dist/sdk/sdk.gen.js +213 -0
- package/dist/types.gen-vDP9AbtO.d.ts +258 -0
- package/openapi-ts.config.ts +36 -0
- package/package.json +32 -74
- package/prettier.config.js +5 -0
- package/src/index.ts +219 -0
- package/src/sdk/client/client.gen.ts +199 -0
- package/src/sdk/client/index.ts +25 -0
- package/src/sdk/client/types.gen.ts +232 -0
- package/src/sdk/client/utils.gen.ts +424 -0
- package/src/sdk/client.gen.ts +28 -0
- package/src/sdk/core/auth.gen.ts +42 -0
- package/src/sdk/core/bodySerializer.gen.ts +90 -0
- package/src/sdk/core/params.gen.ts +153 -0
- package/src/sdk/core/pathSerializer.gen.ts +181 -0
- package/src/sdk/core/types.gen.ts +120 -0
- package/src/sdk/index.ts +3 -0
- package/src/sdk/schemas.gen.ts +6968 -0
- package/src/sdk/sdk.gen.ts +31790 -0
- package/src/sdk/transformers.gen.ts +8383 -0
- package/src/sdk/types.gen.ts +40708 -0
- package/src/smoke.ts +74 -0
- package/tsconfig.json +23 -0
- package/tsconfig.node.json +11 -0
- package/LICENSE +0 -19
- package/dist/core/ApiError.d.ts +0 -10
- package/dist/core/ApiRequestOptions.d.ts +0 -13
- package/dist/core/ApiResult.d.ts +0 -7
- package/dist/core/CancelablePromise.d.ts +0 -20
- package/dist/core/OpenAPI.d.ts +0 -16
- package/dist/core/request.d.ts +0 -30
- package/dist/index.d.mts +0 -15467
- package/dist/index.js.map +0 -1
- package/dist/index.mjs +0 -27586
- package/dist/index.mjs.map +0 -1
- package/dist/models/ACL.d.ts +0 -19
- package/dist/models/AIPrompt.d.ts +0 -13
- package/dist/models/AccessToken.d.ts +0 -12
- package/dist/models/ApiMethod.d.ts +0 -13
- package/dist/models/ApiMethodLog.d.ts +0 -14
- package/dist/models/BreakType.d.ts +0 -10
- package/dist/models/Catalog.d.ts +0 -16
- package/dist/models/Category.d.ts +0 -10
- package/dist/models/Certificate.d.ts +0 -12
- package/dist/models/CertificateMapping.d.ts +0 -11
- package/dist/models/Chapter.d.ts +0 -6
- package/dist/models/Comment.d.ts +0 -13
- package/dist/models/Configuration.d.ts +0 -16
- package/dist/models/Connection.d.ts +0 -10
- package/dist/models/Connector.d.ts +0 -9
- package/dist/models/ConnectorFunction.d.ts +0 -13
- package/dist/models/ContentPackage.d.ts +0 -24
- package/dist/models/ContentPackageSession.d.ts +0 -12
- package/dist/models/ContentPackageView.d.ts +0 -11
- package/dist/models/CustomField.d.ts +0 -18
- package/dist/models/Device.d.ts +0 -10
- package/dist/models/DeviceFamily.d.ts +0 -12
- package/dist/models/Document.d.ts +0 -24
- package/dist/models/Event.d.ts +0 -15
- package/dist/models/Field.d.ts +0 -33
- package/dist/models/FileParser.d.ts +0 -15
- package/dist/models/FileParserJob.d.ts +0 -12
- package/dist/models/FileParserStrategyJob.d.ts +0 -15
- package/dist/models/Folder.d.ts +0 -9
- package/dist/models/Form.d.ts +0 -35
- package/dist/models/FormData.d.ts +0 -55
- package/dist/models/FormDataComment.d.ts +0 -13
- package/dist/models/Forum.d.ts +0 -12
- package/dist/models/Gateway.d.ts +0 -17
- package/dist/models/Group.d.ts +0 -8
- package/dist/models/InventoryTransaction.d.ts +0 -19
- package/dist/models/Kit.d.ts +0 -17
- package/dist/models/List.d.ts +0 -10
- package/dist/models/ListItem.d.ts +0 -13
- package/dist/models/Location.d.ts +0 -13
- package/dist/models/Menus.d.ts +0 -10
- package/dist/models/NPS.d.ts +0 -16
- package/dist/models/Node.d.ts +0 -32
- package/dist/models/ObjectID.d.ts +0 -1
- package/dist/models/OpcUaServer.d.ts +0 -15
- package/dist/models/Operation.d.ts +0 -15
- package/dist/models/Pages.d.ts +0 -11
- package/dist/models/Part.d.ts +0 -10
- package/dist/models/PartAssembly.d.ts +0 -55
- package/dist/models/PartAssemblyDocument.d.ts +0 -9
- package/dist/models/Post.d.ts +0 -16
- package/dist/models/PrintPreset.d.ts +0 -26
- package/dist/models/PriorityLabel.d.ts +0 -12
- package/dist/models/ProductionEntity.d.ts +0 -18
- package/dist/models/ProductionEntityEvent.d.ts +0 -21
- package/dist/models/ProductionEntityMapping.d.ts +0 -16
- package/dist/models/ProductionEntityTransaction.d.ts +0 -19
- package/dist/models/ProductionEntityType.d.ts +0 -10
- package/dist/models/Project.d.ts +0 -10
- package/dist/models/Resource.d.ts +0 -26
- package/dist/models/ResourceMapping.d.ts +0 -9
- package/dist/models/Revision.d.ts +0 -8
- package/dist/models/Role.d.ts +0 -8
- package/dist/models/RoleMapping.d.ts +0 -17
- package/dist/models/Rule.d.ts +0 -11
- package/dist/models/ScromSession.d.ts +0 -11
- package/dist/models/Shift.d.ts +0 -26
- package/dist/models/ShiftType.d.ts +0 -28
- package/dist/models/Station.d.ts +0 -11
- package/dist/models/Stock.d.ts +0 -56
- package/dist/models/StockItem.d.ts +0 -7
- package/dist/models/SyncClients.d.ts +0 -12
- package/dist/models/SyncHistory.d.ts +0 -12
- package/dist/models/Table.d.ts +0 -11
- package/dist/models/TableSetup.d.ts +0 -18
- package/dist/models/TimeLog.d.ts +0 -7
- package/dist/models/TimeLogReport.d.ts +0 -29
- package/dist/models/Timeline.d.ts +0 -17
- package/dist/models/Tool.d.ts +0 -18
- package/dist/models/Translation.d.ts +0 -12
- package/dist/models/Unit.d.ts +0 -11
- package/dist/models/UpdateInfo.d.ts +0 -9
- package/dist/models/UserModel.d.ts +0 -70
- package/dist/models/UserPreferences.d.ts +0 -6
- package/dist/models/Variant.d.ts +0 -13
- package/dist/models/VoteMapping.d.ts +0 -12
- package/dist/models/Warehouse.d.ts +0 -9
- package/dist/models/Webhook.d.ts +0 -15
- package/dist/models/Wire.d.ts +0 -12
- package/dist/models/Wiringlist.d.ts +0 -15
- package/dist/models/Workflow.d.ts +0 -54
- package/dist/models/WorkflowDetails.d.ts +0 -9
- package/dist/models/WorkflowNote.d.ts +0 -18
- package/dist/models/WorkflowSessionItem.d.ts +0 -56
- package/dist/models/WorkflowType.d.ts +0 -17
- package/dist/models/Workorder.d.ts +0 -94
- package/dist/models/WorkorderAction.d.ts +0 -8
- package/dist/models/WorkorderStatus.d.ts +0 -22
- package/dist/models/WorkorderTemplate.d.ts +0 -23
- package/dist/models/meta.d.ts +0 -5
- package/dist/models/x_any.d.ts +0 -1
- package/dist/services/AclService.d.ts +0 -133
- package/dist/services/AiPromptService.d.ts +0 -133
- package/dist/services/AiService.d.ts +0 -12
- package/dist/services/ApiMethodLogService.d.ts +0 -133
- package/dist/services/ApiMethodService.d.ts +0 -140
- package/dist/services/BomService.d.ts +0 -18
- package/dist/services/BreakService.d.ts +0 -19
- package/dist/services/BreakTypeService.d.ts +0 -42
- package/dist/services/CatalogService.d.ts +0 -267
- package/dist/services/CategoryService.d.ts +0 -74
- package/dist/services/CertificateMappingService.d.ts +0 -60
- package/dist/services/CertificateService.d.ts +0 -74
- package/dist/services/ChapterService.d.ts +0 -34
- package/dist/services/CommentService.d.ts +0 -58
- package/dist/services/ConfigurationService.d.ts +0 -49
- package/dist/services/ConnectionService.d.ts +0 -20
- package/dist/services/ConnectorFunctionService.d.ts +0 -149
- package/dist/services/ConnectorService.d.ts +0 -201
- package/dist/services/ContainerService.d.ts +0 -66
- package/dist/services/ContentPackageService.d.ts +0 -115
- package/dist/services/ContentPackageSessionService.d.ts +0 -28
- package/dist/services/ContentPackageViewService.d.ts +0 -165
- package/dist/services/CustomFieldService.d.ts +0 -57
- package/dist/services/DeviceFamilyService.d.ts +0 -64
- package/dist/services/DeviceService.d.ts +0 -21
- package/dist/services/DigestEmailService.d.ts +0 -8
- package/dist/services/DocumentService.d.ts +0 -103
- package/dist/services/EventService.d.ts +0 -20
- package/dist/services/FieldService.d.ts +0 -86
- package/dist/services/FileParserJobService.d.ts +0 -49
- package/dist/services/FileParserService.d.ts +0 -78
- package/dist/services/FileParserStrategyJobService.d.ts +0 -49
- package/dist/services/FolderService.d.ts +0 -50
- package/dist/services/FormDataCommentService.d.ts +0 -159
- package/dist/services/FormDataService.d.ts +0 -242
- package/dist/services/FormService.d.ts +0 -82
- package/dist/services/ForumService.d.ts +0 -49
- package/dist/services/GatewayService.d.ts +0 -59
- package/dist/services/GroupService.d.ts +0 -50
- package/dist/services/IntegrationBuilderService.d.ts +0 -23
- package/dist/services/InventoryTransactionService.d.ts +0 -151
- package/dist/services/LastSeenResourceService.d.ts +0 -16
- package/dist/services/ListItemService.d.ts +0 -96
- package/dist/services/ListService.d.ts +0 -73
- package/dist/services/LocationService.d.ts +0 -80
- package/dist/services/MenusService.d.ts +0 -180
- package/dist/services/NodeService.d.ts +0 -383
- package/dist/services/NpsService.d.ts +0 -56
- package/dist/services/OpcUaServerService.d.ts +0 -182
- package/dist/services/OperationService.d.ts +0 -60
- package/dist/services/PagesService.d.ts +0 -151
- package/dist/services/PartAssemblyDocumentService.d.ts +0 -12
- package/dist/services/PartAssemblyService.d.ts +0 -400
- package/dist/services/PartService.d.ts +0 -133
- package/dist/services/PostService.d.ts +0 -56
- package/dist/services/PrintPresetService.d.ts +0 -155
- package/dist/services/PriorityLabelService.d.ts +0 -45
- package/dist/services/PriorityService.d.ts +0 -51
- package/dist/services/ProductionEntityEventService.d.ts +0 -169
- package/dist/services/ProductionEntityMappingService.d.ts +0 -142
- package/dist/services/ProductionEntityService.d.ts +0 -207
- package/dist/services/ProductionEntityTransactionService.d.ts +0 -142
- package/dist/services/ProductionEntityTypeService.d.ts +0 -151
- package/dist/services/ProjectService.d.ts +0 -142
- package/dist/services/PythonResultService.d.ts +0 -15
- package/dist/services/ResourceMappingService.d.ts +0 -133
- package/dist/services/ResourceService.d.ts +0 -264
- package/dist/services/RevisionService.d.ts +0 -62
- package/dist/services/RoleMappingService.d.ts +0 -151
- package/dist/services/RoleService.d.ts +0 -276
- package/dist/services/RuleService.d.ts +0 -217
- package/dist/services/ScromSessionService.d.ts +0 -18
- package/dist/services/SettingService.d.ts +0 -147
- package/dist/services/ShiftService.d.ts +0 -181
- package/dist/services/ShiftTypeService.d.ts +0 -142
- package/dist/services/StationService.d.ts +0 -50
- package/dist/services/StockService.d.ts +0 -766
- package/dist/services/SyncClientsService.d.ts +0 -142
- package/dist/services/SyncHistoryService.d.ts +0 -142
- package/dist/services/SyncService.d.ts +0 -89
- package/dist/services/TableService.d.ts +0 -154
- package/dist/services/TableSetupService.d.ts +0 -40
- package/dist/services/TimeLogReportService.d.ts +0 -87
- package/dist/services/TimelineService.d.ts +0 -73
- package/dist/services/ToolService.d.ts +0 -73
- package/dist/services/TranslationService.d.ts +0 -172
- package/dist/services/UnitService.d.ts +0 -182
- package/dist/services/UpdateInfoService.d.ts +0 -24
- package/dist/services/UserModelService.d.ts +0 -245
- package/dist/services/VariantService.d.ts +0 -42
- package/dist/services/VoteMappingService.d.ts +0 -19
- package/dist/services/WarehouseService.d.ts +0 -19
- package/dist/services/WebhookService.d.ts +0 -58
- package/dist/services/WireService.d.ts +0 -151
- package/dist/services/WiringlistService.d.ts +0 -340
- package/dist/services/WorkflowDetailsService.d.ts +0 -151
- package/dist/services/WorkflowNoteService.d.ts +0 -173
- package/dist/services/WorkflowService.d.ts +0 -976
- package/dist/services/WorkflowSessionItemRecordService.d.ts +0 -19
- package/dist/services/WorkflowSessionItemService.d.ts +0 -205
- package/dist/services/WorkflowTypeService.d.ts +0 -49
- package/dist/services/WorkorderService.d.ts +0 -1138
- package/dist/services/WorkorderStatusService.d.ts +0 -78
- package/dist/services/WorkorderTemplateService.d.ts +0 -49
- package/tsconfig.build.json +0 -14
|
@@ -1,766 +0,0 @@
|
|
|
1
|
-
import type { Location } from '../models/Location';
|
|
2
|
-
import type { Part } from '../models/Part';
|
|
3
|
-
import type { Stock } from '../models/Stock';
|
|
4
|
-
import type { StockItem } from '../models/StockItem';
|
|
5
|
-
import type { TimeLog } from '../models/TimeLog';
|
|
6
|
-
import type { UserModel } from '../models/UserModel';
|
|
7
|
-
import type { WorkflowSessionItem } from '../models/WorkflowSessionItem';
|
|
8
|
-
import type { Workorder } from '../models/Workorder';
|
|
9
|
-
import type { WorkorderAction } from '../models/WorkorderAction';
|
|
10
|
-
import type { x_any } from '../models/x_any';
|
|
11
|
-
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
12
|
-
export declare class StockService {
|
|
13
|
-
/**
|
|
14
|
-
* Find a related item by id for StockActions.
|
|
15
|
-
* @param id Stock id
|
|
16
|
-
* @param fk Foreign key for StockActions
|
|
17
|
-
* @returns WorkorderAction Request was successful
|
|
18
|
-
* @throws ApiError
|
|
19
|
-
*/
|
|
20
|
-
static stockPrototypeFindByIdStockActions(id: string, fk: string): CancelablePromise<WorkorderAction>;
|
|
21
|
-
/**
|
|
22
|
-
* Delete a related item by id for StockActions.
|
|
23
|
-
* @param id Stock id
|
|
24
|
-
* @param fk Foreign key for StockActions
|
|
25
|
-
* @returns void
|
|
26
|
-
* @throws ApiError
|
|
27
|
-
*/
|
|
28
|
-
static stockPrototypeDestroyByIdStockActions(id: string, fk: string): CancelablePromise<void>;
|
|
29
|
-
/**
|
|
30
|
-
* Update a related item by id for StockActions.
|
|
31
|
-
* @param id Stock id
|
|
32
|
-
* @param fk Foreign key for StockActions
|
|
33
|
-
* @param data
|
|
34
|
-
* @returns WorkorderAction Request was successful
|
|
35
|
-
* @throws ApiError
|
|
36
|
-
*/
|
|
37
|
-
static stockPrototypeUpdateByIdStockActions(id: string, fk: string, data?: WorkorderAction): CancelablePromise<WorkorderAction>;
|
|
38
|
-
/**
|
|
39
|
-
* Fetches belongsTo relation part.
|
|
40
|
-
* @param id Stock id
|
|
41
|
-
* @param refresh
|
|
42
|
-
* @returns Part Request was successful
|
|
43
|
-
* @throws ApiError
|
|
44
|
-
*/
|
|
45
|
-
static stockPrototypeGetPart(id: string, refresh?: boolean): CancelablePromise<Part>;
|
|
46
|
-
/**
|
|
47
|
-
* Fetches belongsTo relation location.
|
|
48
|
-
* @param id Stock id
|
|
49
|
-
* @param refresh
|
|
50
|
-
* @returns Location Request was successful
|
|
51
|
-
* @throws ApiError
|
|
52
|
-
*/
|
|
53
|
-
static stockPrototypeGetLocation(id: string, refresh?: boolean): CancelablePromise<Location>;
|
|
54
|
-
/**
|
|
55
|
-
* Find a related item by id for locations.
|
|
56
|
-
* @param id Stock id
|
|
57
|
-
* @param fk Foreign key for locations
|
|
58
|
-
* @returns Location Request was successful
|
|
59
|
-
* @throws ApiError
|
|
60
|
-
*/
|
|
61
|
-
static stockPrototypeFindByIdLocations(id: string, fk: string): CancelablePromise<Location>;
|
|
62
|
-
/**
|
|
63
|
-
* Delete a related item by id for locations.
|
|
64
|
-
* @param id Stock id
|
|
65
|
-
* @param fk Foreign key for locations
|
|
66
|
-
* @returns void
|
|
67
|
-
* @throws ApiError
|
|
68
|
-
*/
|
|
69
|
-
static stockPrototypeDestroyByIdLocations(id: string, fk: string): CancelablePromise<void>;
|
|
70
|
-
/**
|
|
71
|
-
* Update a related item by id for locations.
|
|
72
|
-
* @param id Stock id
|
|
73
|
-
* @param fk Foreign key for locations
|
|
74
|
-
* @param data
|
|
75
|
-
* @returns Location Request was successful
|
|
76
|
-
* @throws ApiError
|
|
77
|
-
*/
|
|
78
|
-
static stockPrototypeUpdateByIdLocations(id: string, fk: string, data?: Location): CancelablePromise<Location>;
|
|
79
|
-
/**
|
|
80
|
-
* Add a related item by id for locations.
|
|
81
|
-
* @param id Stock id
|
|
82
|
-
* @param fk Foreign key for locations
|
|
83
|
-
* @returns Location Request was successful
|
|
84
|
-
* @throws ApiError
|
|
85
|
-
*/
|
|
86
|
-
static stockPrototypeLinkLocations(id: string, fk: string): CancelablePromise<Location>;
|
|
87
|
-
/**
|
|
88
|
-
* Remove the locations relation to an item by id.
|
|
89
|
-
* @param id Stock id
|
|
90
|
-
* @param fk Foreign key for locations
|
|
91
|
-
* @returns void
|
|
92
|
-
* @throws ApiError
|
|
93
|
-
*/
|
|
94
|
-
static stockPrototypeUnlinkLocations(id: string, fk: string): CancelablePromise<void>;
|
|
95
|
-
/**
|
|
96
|
-
* Check the existence of locations relation to an item by id.
|
|
97
|
-
* @param id Stock id
|
|
98
|
-
* @param fk Foreign key for locations
|
|
99
|
-
* @returns boolean Request was successful
|
|
100
|
-
* @throws ApiError
|
|
101
|
-
*/
|
|
102
|
-
static stockPrototypeExistsLocations(id: string, fk: string): CancelablePromise<boolean>;
|
|
103
|
-
/**
|
|
104
|
-
* Fetches belongsTo relation workorder.
|
|
105
|
-
* @param id Stock id
|
|
106
|
-
* @param refresh
|
|
107
|
-
* @returns Workorder Request was successful
|
|
108
|
-
* @throws ApiError
|
|
109
|
-
*/
|
|
110
|
-
static stockPrototypeGetWorkorder(id: string, refresh?: boolean): CancelablePromise<Workorder>;
|
|
111
|
-
/**
|
|
112
|
-
* Fetches belongsTo relation activeUser.
|
|
113
|
-
* @param id Stock id
|
|
114
|
-
* @param refresh
|
|
115
|
-
* @returns UserModel Request was successful
|
|
116
|
-
* @throws ApiError
|
|
117
|
-
*/
|
|
118
|
-
static stockPrototypeGetActiveUser(id: string, refresh?: boolean): CancelablePromise<UserModel>;
|
|
119
|
-
/**
|
|
120
|
-
* Fetches belongsTo relation parentStock.
|
|
121
|
-
* @param id Stock id
|
|
122
|
-
* @param refresh
|
|
123
|
-
* @returns Stock Request was successful
|
|
124
|
-
* @throws ApiError
|
|
125
|
-
*/
|
|
126
|
-
static stockPrototypeGetParentStock(id: string, refresh?: boolean): CancelablePromise<Stock>;
|
|
127
|
-
/**
|
|
128
|
-
* Find a related item by id for childStock.
|
|
129
|
-
* @param id Stock id
|
|
130
|
-
* @param fk Foreign key for childStock
|
|
131
|
-
* @returns Stock Request was successful
|
|
132
|
-
* @throws ApiError
|
|
133
|
-
*/
|
|
134
|
-
static stockPrototypeFindByIdChildStock(id: string, fk: string): CancelablePromise<Stock>;
|
|
135
|
-
/**
|
|
136
|
-
* Delete a related item by id for childStock.
|
|
137
|
-
* @param id Stock id
|
|
138
|
-
* @param fk Foreign key for childStock
|
|
139
|
-
* @returns void
|
|
140
|
-
* @throws ApiError
|
|
141
|
-
*/
|
|
142
|
-
static stockPrototypeDestroyByIdChildStock(id: string, fk: string): CancelablePromise<void>;
|
|
143
|
-
/**
|
|
144
|
-
* Update a related item by id for childStock.
|
|
145
|
-
* @param id Stock id
|
|
146
|
-
* @param fk Foreign key for childStock
|
|
147
|
-
* @param data
|
|
148
|
-
* @returns Stock Request was successful
|
|
149
|
-
* @throws ApiError
|
|
150
|
-
*/
|
|
151
|
-
static stockPrototypeUpdateByIdChildStock(id: string, fk: string, data?: Stock): CancelablePromise<Stock>;
|
|
152
|
-
/**
|
|
153
|
-
* Add a related item by id for childStock.
|
|
154
|
-
* @param id Stock id
|
|
155
|
-
* @param fk Foreign key for childStock
|
|
156
|
-
* @returns Stock Request was successful
|
|
157
|
-
* @throws ApiError
|
|
158
|
-
*/
|
|
159
|
-
static stockPrototypeLinkChildStock(id: string, fk: string): CancelablePromise<Stock>;
|
|
160
|
-
/**
|
|
161
|
-
* Remove the childStock relation to an item by id.
|
|
162
|
-
* @param id Stock id
|
|
163
|
-
* @param fk Foreign key for childStock
|
|
164
|
-
* @returns void
|
|
165
|
-
* @throws ApiError
|
|
166
|
-
*/
|
|
167
|
-
static stockPrototypeUnlinkChildStock(id: string, fk: string): CancelablePromise<void>;
|
|
168
|
-
/**
|
|
169
|
-
* Check the existence of childStock relation to an item by id.
|
|
170
|
-
* @param id Stock id
|
|
171
|
-
* @param fk Foreign key for childStock
|
|
172
|
-
* @returns boolean Request was successful
|
|
173
|
-
* @throws ApiError
|
|
174
|
-
*/
|
|
175
|
-
static stockPrototypeExistsChildStock(id: string, fk: string): CancelablePromise<boolean>;
|
|
176
|
-
/**
|
|
177
|
-
* Find a related item by id for users.
|
|
178
|
-
* @param id Stock id
|
|
179
|
-
* @param fk Foreign key for users
|
|
180
|
-
* @returns UserModel Request was successful
|
|
181
|
-
* @throws ApiError
|
|
182
|
-
*/
|
|
183
|
-
static stockPrototypeFindByIdUsers(id: string, fk: string): CancelablePromise<UserModel>;
|
|
184
|
-
/**
|
|
185
|
-
* Delete a related item by id for users.
|
|
186
|
-
* @param id Stock id
|
|
187
|
-
* @param fk Foreign key for users
|
|
188
|
-
* @returns void
|
|
189
|
-
* @throws ApiError
|
|
190
|
-
*/
|
|
191
|
-
static stockPrototypeDestroyByIdUsers(id: string, fk: string): CancelablePromise<void>;
|
|
192
|
-
/**
|
|
193
|
-
* Update a related item by id for users.
|
|
194
|
-
* @param id Stock id
|
|
195
|
-
* @param fk Foreign key for users
|
|
196
|
-
* @param data
|
|
197
|
-
* @returns UserModel Request was successful
|
|
198
|
-
* @throws ApiError
|
|
199
|
-
*/
|
|
200
|
-
static stockPrototypeUpdateByIdUsers(id: string, fk: string, data?: UserModel): CancelablePromise<UserModel>;
|
|
201
|
-
/**
|
|
202
|
-
* Add a related item by id for users.
|
|
203
|
-
* @param id Stock id
|
|
204
|
-
* @param fk Foreign key for users
|
|
205
|
-
* @returns UserModel Request was successful
|
|
206
|
-
* @throws ApiError
|
|
207
|
-
*/
|
|
208
|
-
static stockPrototypeLinkUsers(id: string, fk: string): CancelablePromise<UserModel>;
|
|
209
|
-
/**
|
|
210
|
-
* Remove the users relation to an item by id.
|
|
211
|
-
* @param id Stock id
|
|
212
|
-
* @param fk Foreign key for users
|
|
213
|
-
* @returns void
|
|
214
|
-
* @throws ApiError
|
|
215
|
-
*/
|
|
216
|
-
static stockPrototypeUnlinkUsers(id: string, fk: string): CancelablePromise<void>;
|
|
217
|
-
/**
|
|
218
|
-
* Check the existence of users relation to an item by id.
|
|
219
|
-
* @param id Stock id
|
|
220
|
-
* @param fk Foreign key for users
|
|
221
|
-
* @returns boolean Request was successful
|
|
222
|
-
* @throws ApiError
|
|
223
|
-
*/
|
|
224
|
-
static stockPrototypeExistsUsers(id: string, fk: string): CancelablePromise<boolean>;
|
|
225
|
-
/**
|
|
226
|
-
* Fetches belongsTo relation workWithoutKitApproved.
|
|
227
|
-
* @param id Stock id
|
|
228
|
-
* @param refresh
|
|
229
|
-
* @returns UserModel Request was successful
|
|
230
|
-
* @throws ApiError
|
|
231
|
-
*/
|
|
232
|
-
static stockPrototypeGetWorkWithoutKitApproved(id: string, refresh?: boolean): CancelablePromise<UserModel>;
|
|
233
|
-
/**
|
|
234
|
-
* Find a related item by id for TimeLog.
|
|
235
|
-
* @param id Stock id
|
|
236
|
-
* @param fk Foreign key for TimeLog
|
|
237
|
-
* @returns TimeLog Request was successful
|
|
238
|
-
* @throws ApiError
|
|
239
|
-
*/
|
|
240
|
-
static stockPrototypeFindByIdTimeLog(id: string, fk: string): CancelablePromise<TimeLog>;
|
|
241
|
-
/**
|
|
242
|
-
* Delete a related item by id for TimeLog.
|
|
243
|
-
* @param id Stock id
|
|
244
|
-
* @param fk Foreign key for TimeLog
|
|
245
|
-
* @returns void
|
|
246
|
-
* @throws ApiError
|
|
247
|
-
*/
|
|
248
|
-
static stockPrototypeDestroyByIdTimeLog(id: string, fk: string): CancelablePromise<void>;
|
|
249
|
-
/**
|
|
250
|
-
* Update a related item by id for TimeLog.
|
|
251
|
-
* @param id Stock id
|
|
252
|
-
* @param fk Foreign key for TimeLog
|
|
253
|
-
* @param data
|
|
254
|
-
* @returns TimeLog Request was successful
|
|
255
|
-
* @throws ApiError
|
|
256
|
-
*/
|
|
257
|
-
static stockPrototypeUpdateByIdTimeLog(id: string, fk: string, data?: TimeLog): CancelablePromise<TimeLog>;
|
|
258
|
-
/**
|
|
259
|
-
* Find a related item by id for StockItems.
|
|
260
|
-
* @param id Stock id
|
|
261
|
-
* @param fk Foreign key for StockItems
|
|
262
|
-
* @returns StockItem Request was successful
|
|
263
|
-
* @throws ApiError
|
|
264
|
-
*/
|
|
265
|
-
static stockPrototypeFindByIdStockItems(id: string, fk: string): CancelablePromise<StockItem>;
|
|
266
|
-
/**
|
|
267
|
-
* Delete a related item by id for StockItems.
|
|
268
|
-
* @param id Stock id
|
|
269
|
-
* @param fk Foreign key for StockItems
|
|
270
|
-
* @returns void
|
|
271
|
-
* @throws ApiError
|
|
272
|
-
*/
|
|
273
|
-
static stockPrototypeDestroyByIdStockItems(id: string, fk: string): CancelablePromise<void>;
|
|
274
|
-
/**
|
|
275
|
-
* Update a related item by id for StockItems.
|
|
276
|
-
* @param id Stock id
|
|
277
|
-
* @param fk Foreign key for StockItems
|
|
278
|
-
* @param data
|
|
279
|
-
* @returns StockItem Request was successful
|
|
280
|
-
* @throws ApiError
|
|
281
|
-
*/
|
|
282
|
-
static stockPrototypeUpdateByIdStockItems(id: string, fk: string, data?: StockItem): CancelablePromise<StockItem>;
|
|
283
|
-
/**
|
|
284
|
-
* Fetches belongsTo relation workflowSessionItem.
|
|
285
|
-
* @param id Stock id
|
|
286
|
-
* @param refresh
|
|
287
|
-
* @returns WorkflowSessionItem Request was successful
|
|
288
|
-
* @throws ApiError
|
|
289
|
-
*/
|
|
290
|
-
static stockPrototypeGetWorkflowSessionItem(id: string, refresh?: boolean): CancelablePromise<WorkflowSessionItem>;
|
|
291
|
-
/**
|
|
292
|
-
* Fetches belongsTo relation user.
|
|
293
|
-
* @param id Stock id
|
|
294
|
-
* @param refresh
|
|
295
|
-
* @returns UserModel Request was successful
|
|
296
|
-
* @throws ApiError
|
|
297
|
-
*/
|
|
298
|
-
static stockPrototypeGetUser(id: string, refresh?: boolean): CancelablePromise<UserModel>;
|
|
299
|
-
/**
|
|
300
|
-
* Queries StockActions of Stock.
|
|
301
|
-
* @param id Stock id
|
|
302
|
-
* @param filter
|
|
303
|
-
* @returns WorkorderAction Request was successful
|
|
304
|
-
* @throws ApiError
|
|
305
|
-
*/
|
|
306
|
-
static stockPrototypeGetStockActions(id: string, filter?: string): CancelablePromise<Array<WorkorderAction>>;
|
|
307
|
-
/**
|
|
308
|
-
* Creates a new instance in StockActions of this model.
|
|
309
|
-
* @param id Stock id
|
|
310
|
-
* @param data
|
|
311
|
-
* @returns WorkorderAction Request was successful
|
|
312
|
-
* @throws ApiError
|
|
313
|
-
*/
|
|
314
|
-
static stockPrototypeCreateStockActions(id: string, data?: WorkorderAction): CancelablePromise<WorkorderAction>;
|
|
315
|
-
/**
|
|
316
|
-
* Deletes all StockActions of this model.
|
|
317
|
-
* @param id Stock id
|
|
318
|
-
* @returns void
|
|
319
|
-
* @throws ApiError
|
|
320
|
-
*/
|
|
321
|
-
static stockPrototypeDeleteStockActions(id: string): CancelablePromise<void>;
|
|
322
|
-
/**
|
|
323
|
-
* Counts StockActions of Stock.
|
|
324
|
-
* @param id Stock id
|
|
325
|
-
* @param where Criteria to match model instances
|
|
326
|
-
* @returns any Request was successful
|
|
327
|
-
* @throws ApiError
|
|
328
|
-
*/
|
|
329
|
-
static stockPrototypeCountStockActions(id: string, where?: string): CancelablePromise<{
|
|
330
|
-
count?: number;
|
|
331
|
-
}>;
|
|
332
|
-
/**
|
|
333
|
-
* Queries locations of Stock.
|
|
334
|
-
* @param id Stock id
|
|
335
|
-
* @param filter
|
|
336
|
-
* @returns Location Request was successful
|
|
337
|
-
* @throws ApiError
|
|
338
|
-
*/
|
|
339
|
-
static stockPrototypeGetLocations(id: string, filter?: string): CancelablePromise<Array<Location>>;
|
|
340
|
-
/**
|
|
341
|
-
* Creates a new instance in locations of this model.
|
|
342
|
-
* @param id Stock id
|
|
343
|
-
* @param data
|
|
344
|
-
* @returns Location Request was successful
|
|
345
|
-
* @throws ApiError
|
|
346
|
-
*/
|
|
347
|
-
static stockPrototypeCreateLocations(id: string, data?: Location): CancelablePromise<Location>;
|
|
348
|
-
/**
|
|
349
|
-
* Deletes all locations of this model.
|
|
350
|
-
* @param id Stock id
|
|
351
|
-
* @returns void
|
|
352
|
-
* @throws ApiError
|
|
353
|
-
*/
|
|
354
|
-
static stockPrototypeDeleteLocations(id: string): CancelablePromise<void>;
|
|
355
|
-
/**
|
|
356
|
-
* Counts locations of Stock.
|
|
357
|
-
* @param id Stock id
|
|
358
|
-
* @param where Criteria to match model instances
|
|
359
|
-
* @returns any Request was successful
|
|
360
|
-
* @throws ApiError
|
|
361
|
-
*/
|
|
362
|
-
static stockPrototypeCountLocations(id: string, where?: string): CancelablePromise<{
|
|
363
|
-
count?: number;
|
|
364
|
-
}>;
|
|
365
|
-
/**
|
|
366
|
-
* Queries childStock of Stock.
|
|
367
|
-
* @param id Stock id
|
|
368
|
-
* @param filter
|
|
369
|
-
* @returns Stock Request was successful
|
|
370
|
-
* @throws ApiError
|
|
371
|
-
*/
|
|
372
|
-
static stockPrototypeGetChildStock(id: string, filter?: string): CancelablePromise<Array<Stock>>;
|
|
373
|
-
/**
|
|
374
|
-
* Creates a new instance in childStock of this model.
|
|
375
|
-
* @param id Stock id
|
|
376
|
-
* @param data
|
|
377
|
-
* @returns Stock Request was successful
|
|
378
|
-
* @throws ApiError
|
|
379
|
-
*/
|
|
380
|
-
static stockPrototypeCreateChildStock(id: string, data?: Stock): CancelablePromise<Stock>;
|
|
381
|
-
/**
|
|
382
|
-
* Deletes all childStock of this model.
|
|
383
|
-
* @param id Stock id
|
|
384
|
-
* @returns void
|
|
385
|
-
* @throws ApiError
|
|
386
|
-
*/
|
|
387
|
-
static stockPrototypeDeleteChildStock(id: string): CancelablePromise<void>;
|
|
388
|
-
/**
|
|
389
|
-
* Counts childStock of Stock.
|
|
390
|
-
* @param id Stock id
|
|
391
|
-
* @param where Criteria to match model instances
|
|
392
|
-
* @returns any Request was successful
|
|
393
|
-
* @throws ApiError
|
|
394
|
-
*/
|
|
395
|
-
static stockPrototypeCountChildStock(id: string, where?: string): CancelablePromise<{
|
|
396
|
-
count?: number;
|
|
397
|
-
}>;
|
|
398
|
-
/**
|
|
399
|
-
* Queries users of Stock.
|
|
400
|
-
* @param id Stock id
|
|
401
|
-
* @param filter
|
|
402
|
-
* @returns UserModel Request was successful
|
|
403
|
-
* @throws ApiError
|
|
404
|
-
*/
|
|
405
|
-
static stockPrototypeGetUsers(id: string, filter?: string): CancelablePromise<Array<UserModel>>;
|
|
406
|
-
/**
|
|
407
|
-
* Creates a new instance in users of this model.
|
|
408
|
-
* @param id Stock id
|
|
409
|
-
* @param data
|
|
410
|
-
* @returns UserModel Request was successful
|
|
411
|
-
* @throws ApiError
|
|
412
|
-
*/
|
|
413
|
-
static stockPrototypeCreateUsers(id: string, data?: UserModel): CancelablePromise<UserModel>;
|
|
414
|
-
/**
|
|
415
|
-
* Deletes all users of this model.
|
|
416
|
-
* @param id Stock id
|
|
417
|
-
* @returns void
|
|
418
|
-
* @throws ApiError
|
|
419
|
-
*/
|
|
420
|
-
static stockPrototypeDeleteUsers(id: string): CancelablePromise<void>;
|
|
421
|
-
/**
|
|
422
|
-
* Counts users of Stock.
|
|
423
|
-
* @param id Stock id
|
|
424
|
-
* @param where Criteria to match model instances
|
|
425
|
-
* @returns any Request was successful
|
|
426
|
-
* @throws ApiError
|
|
427
|
-
*/
|
|
428
|
-
static stockPrototypeCountUsers(id: string, where?: string): CancelablePromise<{
|
|
429
|
-
count?: number;
|
|
430
|
-
}>;
|
|
431
|
-
/**
|
|
432
|
-
* Queries TimeLog of Stock.
|
|
433
|
-
* @param id Stock id
|
|
434
|
-
* @param filter
|
|
435
|
-
* @returns TimeLog Request was successful
|
|
436
|
-
* @throws ApiError
|
|
437
|
-
*/
|
|
438
|
-
static stockPrototypeGetTimeLog(id: string, filter?: string): CancelablePromise<Array<TimeLog>>;
|
|
439
|
-
/**
|
|
440
|
-
* Creates a new instance in TimeLog of this model.
|
|
441
|
-
* @param id Stock id
|
|
442
|
-
* @param data
|
|
443
|
-
* @returns TimeLog Request was successful
|
|
444
|
-
* @throws ApiError
|
|
445
|
-
*/
|
|
446
|
-
static stockPrototypeCreateTimeLog(id: string, data?: TimeLog): CancelablePromise<TimeLog>;
|
|
447
|
-
/**
|
|
448
|
-
* Deletes all TimeLog of this model.
|
|
449
|
-
* @param id Stock id
|
|
450
|
-
* @returns void
|
|
451
|
-
* @throws ApiError
|
|
452
|
-
*/
|
|
453
|
-
static stockPrototypeDeleteTimeLog(id: string): CancelablePromise<void>;
|
|
454
|
-
/**
|
|
455
|
-
* Counts TimeLog of Stock.
|
|
456
|
-
* @param id Stock id
|
|
457
|
-
* @param where Criteria to match model instances
|
|
458
|
-
* @returns any Request was successful
|
|
459
|
-
* @throws ApiError
|
|
460
|
-
*/
|
|
461
|
-
static stockPrototypeCountTimeLog(id: string, where?: string): CancelablePromise<{
|
|
462
|
-
count?: number;
|
|
463
|
-
}>;
|
|
464
|
-
/**
|
|
465
|
-
* Queries StockItems of Stock.
|
|
466
|
-
* @param id Stock id
|
|
467
|
-
* @param filter
|
|
468
|
-
* @returns StockItem Request was successful
|
|
469
|
-
* @throws ApiError
|
|
470
|
-
*/
|
|
471
|
-
static stockPrototypeGetStockItems(id: string, filter?: string): CancelablePromise<Array<StockItem>>;
|
|
472
|
-
/**
|
|
473
|
-
* Creates a new instance in StockItems of this model.
|
|
474
|
-
* @param id Stock id
|
|
475
|
-
* @param data
|
|
476
|
-
* @returns StockItem Request was successful
|
|
477
|
-
* @throws ApiError
|
|
478
|
-
*/
|
|
479
|
-
static stockPrototypeCreateStockItems(id: string, data?: StockItem): CancelablePromise<StockItem>;
|
|
480
|
-
/**
|
|
481
|
-
* Deletes all StockItems of this model.
|
|
482
|
-
* @param id Stock id
|
|
483
|
-
* @returns void
|
|
484
|
-
* @throws ApiError
|
|
485
|
-
*/
|
|
486
|
-
static stockPrototypeDeleteStockItems(id: string): CancelablePromise<void>;
|
|
487
|
-
/**
|
|
488
|
-
* Counts StockItems of Stock.
|
|
489
|
-
* @param id Stock id
|
|
490
|
-
* @param where Criteria to match model instances
|
|
491
|
-
* @returns any Request was successful
|
|
492
|
-
* @throws ApiError
|
|
493
|
-
*/
|
|
494
|
-
static stockPrototypeCountStockItems(id: string, where?: string): CancelablePromise<{
|
|
495
|
-
count?: number;
|
|
496
|
-
}>;
|
|
497
|
-
/**
|
|
498
|
-
* Create a new instance of the model and persist it into the data source.
|
|
499
|
-
* @param data Model instance data
|
|
500
|
-
* @returns Stock Request was successful
|
|
501
|
-
* @throws ApiError
|
|
502
|
-
*/
|
|
503
|
-
static stockCreate(data?: Stock): CancelablePromise<Stock>;
|
|
504
|
-
/**
|
|
505
|
-
* Patch an existing model instance or insert a new one into the data source.
|
|
506
|
-
* @param data Model instance data
|
|
507
|
-
* @returns Stock Request was successful
|
|
508
|
-
* @throws ApiError
|
|
509
|
-
*/
|
|
510
|
-
static stockPatchOrCreate(data?: Stock): CancelablePromise<Stock>;
|
|
511
|
-
/**
|
|
512
|
-
* Replace an existing model instance or insert a new one into the data source.
|
|
513
|
-
* @param data Model instance data
|
|
514
|
-
* @returns Stock Request was successful
|
|
515
|
-
* @throws ApiError
|
|
516
|
-
*/
|
|
517
|
-
static stockReplaceOrCreatePutStocks(data?: Stock): CancelablePromise<Stock>;
|
|
518
|
-
/**
|
|
519
|
-
* Find all instances of the model matched by filter from the data source.
|
|
520
|
-
* @param filter Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string (`{"where":{"something":"value"}}`). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.
|
|
521
|
-
* @returns Stock Request was successful
|
|
522
|
-
* @throws ApiError
|
|
523
|
-
*/
|
|
524
|
-
static stockFind(filter?: string): CancelablePromise<Array<Stock>>;
|
|
525
|
-
/**
|
|
526
|
-
* Replace an existing model instance or insert a new one into the data source.
|
|
527
|
-
* @param data Model instance data
|
|
528
|
-
* @returns Stock Request was successful
|
|
529
|
-
* @throws ApiError
|
|
530
|
-
*/
|
|
531
|
-
static stockReplaceOrCreatePostStocksReplaceOrCreate(data?: Stock): CancelablePromise<Stock>;
|
|
532
|
-
/**
|
|
533
|
-
* Update an existing model instance or insert a new one into the data source based on the where criteria.
|
|
534
|
-
* @param where Criteria to match model instances
|
|
535
|
-
* @param data An object of model property name/value pairs
|
|
536
|
-
* @returns Stock Request was successful
|
|
537
|
-
* @throws ApiError
|
|
538
|
-
*/
|
|
539
|
-
static stockUpsertWithWhere(where?: string, data?: Stock): CancelablePromise<Stock>;
|
|
540
|
-
/**
|
|
541
|
-
* Check whether a model instance exists in the data source.
|
|
542
|
-
* @param id Model id
|
|
543
|
-
* @returns any Request was successful
|
|
544
|
-
* @throws ApiError
|
|
545
|
-
*/
|
|
546
|
-
static stockExistsGetStocksIdExists(id: string): CancelablePromise<{
|
|
547
|
-
exists?: boolean;
|
|
548
|
-
}>;
|
|
549
|
-
/**
|
|
550
|
-
* Check whether a model instance exists in the data source.
|
|
551
|
-
* @param id Model id
|
|
552
|
-
* @returns any Request was successful
|
|
553
|
-
* @throws ApiError
|
|
554
|
-
*/
|
|
555
|
-
static stockExistsHeadStocksId(id: string): CancelablePromise<{
|
|
556
|
-
exists?: boolean;
|
|
557
|
-
}>;
|
|
558
|
-
/**
|
|
559
|
-
* Find a model instance by {{id}} from the data source.
|
|
560
|
-
* @param id Model id
|
|
561
|
-
* @param filter Filter defining fields and include - must be a JSON-encoded string ({"something":"value"})
|
|
562
|
-
* @returns Stock Request was successful
|
|
563
|
-
* @throws ApiError
|
|
564
|
-
*/
|
|
565
|
-
static stockFindById(id: string, filter?: string): CancelablePromise<Stock>;
|
|
566
|
-
/**
|
|
567
|
-
* Replace attributes for a model instance and persist it into the data source.
|
|
568
|
-
* @param id Model id
|
|
569
|
-
* @param data Model instance data
|
|
570
|
-
* @returns Stock Request was successful
|
|
571
|
-
* @throws ApiError
|
|
572
|
-
*/
|
|
573
|
-
static stockReplaceByIdPutStocksId(id: string, data?: Stock): CancelablePromise<Stock>;
|
|
574
|
-
/**
|
|
575
|
-
* Delete a model instance by {{id}} from the data source.
|
|
576
|
-
* @param id Model id
|
|
577
|
-
* @returns any Request was successful
|
|
578
|
-
* @throws ApiError
|
|
579
|
-
*/
|
|
580
|
-
static stockDeleteById(id: string): CancelablePromise<any>;
|
|
581
|
-
/**
|
|
582
|
-
* Patch attributes for a model instance and persist it into the data source.
|
|
583
|
-
* @param id Stock id
|
|
584
|
-
* @param data An object of model property name/value pairs
|
|
585
|
-
* @returns Stock Request was successful
|
|
586
|
-
* @throws ApiError
|
|
587
|
-
*/
|
|
588
|
-
static stockPrototypePatchAttributes(id: string, data?: Stock): CancelablePromise<Stock>;
|
|
589
|
-
/**
|
|
590
|
-
* Replace attributes for a model instance and persist it into the data source.
|
|
591
|
-
* @param id Model id
|
|
592
|
-
* @param data Model instance data
|
|
593
|
-
* @returns Stock Request was successful
|
|
594
|
-
* @throws ApiError
|
|
595
|
-
*/
|
|
596
|
-
static stockReplaceByIdPostStocksIdReplace(id: string, data?: Stock): CancelablePromise<Stock>;
|
|
597
|
-
/**
|
|
598
|
-
* Find first instance of the model matched by filter from the data source.
|
|
599
|
-
* @param filter Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string (`{"where":{"something":"value"}}`). See https://loopback.io/doc/en/lb3/Querying-data.html#using-stringified-json-in-rest-queries for more details.
|
|
600
|
-
* @returns Stock Request was successful
|
|
601
|
-
* @throws ApiError
|
|
602
|
-
*/
|
|
603
|
-
static stockFindOne(filter?: string): CancelablePromise<Stock>;
|
|
604
|
-
/**
|
|
605
|
-
* Update instances of the model matched by {{where}} from the data source.
|
|
606
|
-
* @param where Criteria to match model instances
|
|
607
|
-
* @param data An object of model property name/value pairs
|
|
608
|
-
* @returns any Request was successful
|
|
609
|
-
* @throws ApiError
|
|
610
|
-
*/
|
|
611
|
-
static stockUpdateAll(where?: string, data?: Stock): CancelablePromise<{
|
|
612
|
-
/**
|
|
613
|
-
* The number of instances updated
|
|
614
|
-
*/
|
|
615
|
-
count?: number;
|
|
616
|
-
}>;
|
|
617
|
-
/**
|
|
618
|
-
* Count instances of the model matched by where from the data source.
|
|
619
|
-
* @param where Criteria to match model instances
|
|
620
|
-
* @returns any Request was successful
|
|
621
|
-
* @throws ApiError
|
|
622
|
-
*/
|
|
623
|
-
static stockCount(where?: string): CancelablePromise<{
|
|
624
|
-
count?: number;
|
|
625
|
-
}>;
|
|
626
|
-
/**
|
|
627
|
-
* Fetch stock
|
|
628
|
-
* @param stocks
|
|
629
|
-
* @returns any[] Request was successful
|
|
630
|
-
* @throws ApiError
|
|
631
|
-
*/
|
|
632
|
-
static stockFetch(stocks: string): CancelablePromise<any[]>;
|
|
633
|
-
/**
|
|
634
|
-
* Update the time log for a specific stock
|
|
635
|
-
* @param id Stock id
|
|
636
|
-
* @param timeLogs
|
|
637
|
-
* @returns Stock Request was successful
|
|
638
|
-
* @throws ApiError
|
|
639
|
-
*/
|
|
640
|
-
static stockPrototypeUpdateTimeLogs(id: string, timeLogs: string): CancelablePromise<Stock>;
|
|
641
|
-
/**
|
|
642
|
-
* generate as built report for a stock by id
|
|
643
|
-
* @param stockIds
|
|
644
|
-
* @param lang
|
|
645
|
-
* @param filters
|
|
646
|
-
* @returns x_any Request was successful
|
|
647
|
-
* @throws ApiError
|
|
648
|
-
*/
|
|
649
|
-
static stockGenerateAsBuiltReport(stockIds: string, lang: string, filters?: string): CancelablePromise<Array<x_any>>;
|
|
650
|
-
/**
|
|
651
|
-
* @param stockId
|
|
652
|
-
* @param priority
|
|
653
|
-
* @returns any Request was successful
|
|
654
|
-
* @throws ApiError
|
|
655
|
-
*/
|
|
656
|
-
static stockUpdatePriority(stockId?: string, priority?: number): CancelablePromise<{
|
|
657
|
-
result?: any;
|
|
658
|
-
}>;
|
|
659
|
-
/**
|
|
660
|
-
* Replace stockItems in a stock
|
|
661
|
-
* @param action
|
|
662
|
-
* @param parentSku
|
|
663
|
-
* @param parentSerial
|
|
664
|
-
* @param childrenSku
|
|
665
|
-
* @param addChildrenSerial
|
|
666
|
-
* @param removeChildrenSerial
|
|
667
|
-
* @param assemblyWarehouseName
|
|
668
|
-
* @param assemblyWarehouseLocation
|
|
669
|
-
* @param disassemblyWarehouseName
|
|
670
|
-
* @param disassemblyWarehouseLocation
|
|
671
|
-
* @returns any Request was successful
|
|
672
|
-
* @throws ApiError
|
|
673
|
-
*/
|
|
674
|
-
static stockServiceCall(action: string, parentSku: string, parentSerial: string, childrenSku: string, addChildrenSerial?: string, removeChildrenSerial?: string, assemblyWarehouseName?: string, assemblyWarehouseLocation?: string, disassemblyWarehouseName?: string, disassemblyWarehouseLocation?: string): CancelablePromise<any>;
|
|
675
|
-
/**
|
|
676
|
-
* @param sourceSku
|
|
677
|
-
* @param sourceSerial
|
|
678
|
-
* @param targetSku
|
|
679
|
-
* @param targetSerial
|
|
680
|
-
* @returns any Request was successful
|
|
681
|
-
* @throws ApiError
|
|
682
|
-
*/
|
|
683
|
-
static stockConvertStock(sourceSku: string, sourceSerial: string, targetSku: string, targetSerial: string): CancelablePromise<any>;
|
|
684
|
-
/**
|
|
685
|
-
* Validate stock kit items
|
|
686
|
-
* @param stockIds
|
|
687
|
-
* @returns any Request was successful
|
|
688
|
-
* @throws ApiError
|
|
689
|
-
*/
|
|
690
|
-
static stockValidateLocalSerials(stockIds: string): CancelablePromise<any>;
|
|
691
|
-
/**
|
|
692
|
-
* @param stockId
|
|
693
|
-
* @param includeProductTree
|
|
694
|
-
* @returns any Request was successful
|
|
695
|
-
* @throws ApiError
|
|
696
|
-
*/
|
|
697
|
-
static stockGetDetails(stockId: string, includeProductTree?: boolean): CancelablePromise<any>;
|
|
698
|
-
/**
|
|
699
|
-
* @param stockId
|
|
700
|
-
* @returns any Request was successful
|
|
701
|
-
* @throws ApiError
|
|
702
|
-
*/
|
|
703
|
-
static stockGetStockForSerialAttachment(stockId: string): CancelablePromise<any>;
|
|
704
|
-
/**
|
|
705
|
-
* @param stockId
|
|
706
|
-
* @param deleteStockFromWorkorder
|
|
707
|
-
* @returns string Request was successful
|
|
708
|
-
* @throws ApiError
|
|
709
|
-
*/
|
|
710
|
-
static stockDeleteStock(stockId: string, deleteStockFromWorkorder?: boolean): CancelablePromise<string>;
|
|
711
|
-
/**
|
|
712
|
-
* @param stockId
|
|
713
|
-
* @param newRev
|
|
714
|
-
* @returns string Request was successful
|
|
715
|
-
* @throws ApiError
|
|
716
|
-
*/
|
|
717
|
-
static stockUpdateFormsRevision(stockId: string, newRev: string): CancelablePromise<string>;
|
|
718
|
-
/**
|
|
719
|
-
* @param stockToCreate
|
|
720
|
-
* @returns any Request was successful
|
|
721
|
-
* @throws ApiError
|
|
722
|
-
*/
|
|
723
|
-
static stockCreateManualStock(stockToCreate: string): CancelablePromise<any>;
|
|
724
|
-
/**
|
|
725
|
-
* @param stocksToCreate
|
|
726
|
-
* @returns x_any Request was successful
|
|
727
|
-
* @throws ApiError
|
|
728
|
-
*/
|
|
729
|
-
static stockCreateApprovedStocks(stocksToCreate: string): CancelablePromise<Array<x_any>>;
|
|
730
|
-
/**
|
|
731
|
-
* @param stockId
|
|
732
|
-
* @param quantity
|
|
733
|
-
* @returns any Request was successful
|
|
734
|
-
* @throws ApiError
|
|
735
|
-
*/
|
|
736
|
-
static stockEditStockQuantity(stockId: string, quantity: number): CancelablePromise<any>;
|
|
737
|
-
/**
|
|
738
|
-
* @param stockId
|
|
739
|
-
* @param conflictedStockId
|
|
740
|
-
* @returns any Request was successful
|
|
741
|
-
* @throws ApiError
|
|
742
|
-
*/
|
|
743
|
-
static stockAttachOldStockToWorkorder(stockId: string, conflictedStockId: string): CancelablePromise<any>;
|
|
744
|
-
/**
|
|
745
|
-
* @param where
|
|
746
|
-
* @param maxDepth
|
|
747
|
-
* @returns x_any Request was successful
|
|
748
|
-
* @throws ApiError
|
|
749
|
-
*/
|
|
750
|
-
static stockGetAllStocksHierarchyFlat(where: string, maxDepth?: number): CancelablePromise<Array<x_any>>;
|
|
751
|
-
/**
|
|
752
|
-
* @param stockIds
|
|
753
|
-
* @returns x_any Request was successful
|
|
754
|
-
* @throws ApiError
|
|
755
|
-
*/
|
|
756
|
-
static stockIsThereAStockInUse(stockIds: string): CancelablePromise<Array<x_any>>;
|
|
757
|
-
/**
|
|
758
|
-
* Count with deleted instances of the model matched by where from the data source.
|
|
759
|
-
* @param where Criteria to match model instances
|
|
760
|
-
* @returns any Request was successful
|
|
761
|
-
* @throws ApiError
|
|
762
|
-
*/
|
|
763
|
-
static stockCountWithDeleted(where?: string): CancelablePromise<{
|
|
764
|
-
count?: number;
|
|
765
|
-
}>;
|
|
766
|
-
}
|