@nextplus/js-sdk 0.0.1
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/LICENSE +19 -0
- package/dist/core/ApiError.d.ts +10 -0
- package/dist/core/ApiRequestOptions.d.ts +13 -0
- package/dist/core/ApiResult.d.ts +7 -0
- package/dist/core/CancelablePromise.d.ts +20 -0
- package/dist/core/OpenAPI.d.ts +16 -0
- package/dist/core/request.d.ts +30 -0
- package/dist/index.d.mts +15467 -0
- package/dist/index.d.ts +209 -0
- package/dist/index.js +27719 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +27586 -0
- package/dist/index.mjs.map +1 -0
- package/dist/models/ACL.d.ts +19 -0
- package/dist/models/AIPrompt.d.ts +13 -0
- package/dist/models/AccessToken.d.ts +12 -0
- package/dist/models/ApiMethod.d.ts +13 -0
- package/dist/models/ApiMethodLog.d.ts +14 -0
- package/dist/models/BreakType.d.ts +10 -0
- package/dist/models/Catalog.d.ts +16 -0
- package/dist/models/Category.d.ts +10 -0
- package/dist/models/Certificate.d.ts +12 -0
- package/dist/models/CertificateMapping.d.ts +11 -0
- package/dist/models/Chapter.d.ts +6 -0
- package/dist/models/Comment.d.ts +13 -0
- package/dist/models/Configuration.d.ts +16 -0
- package/dist/models/Connection.d.ts +10 -0
- package/dist/models/Connector.d.ts +9 -0
- package/dist/models/ConnectorFunction.d.ts +13 -0
- package/dist/models/ContentPackage.d.ts +24 -0
- package/dist/models/ContentPackageSession.d.ts +12 -0
- package/dist/models/ContentPackageView.d.ts +11 -0
- package/dist/models/CustomField.d.ts +18 -0
- package/dist/models/Device.d.ts +10 -0
- package/dist/models/DeviceFamily.d.ts +12 -0
- package/dist/models/Document.d.ts +24 -0
- package/dist/models/Event.d.ts +15 -0
- package/dist/models/Field.d.ts +33 -0
- package/dist/models/FileParser.d.ts +15 -0
- package/dist/models/FileParserJob.d.ts +12 -0
- package/dist/models/FileParserStrategyJob.d.ts +15 -0
- package/dist/models/Folder.d.ts +9 -0
- package/dist/models/Form.d.ts +35 -0
- package/dist/models/FormData.d.ts +55 -0
- package/dist/models/FormDataComment.d.ts +13 -0
- package/dist/models/Forum.d.ts +12 -0
- package/dist/models/Gateway.d.ts +17 -0
- package/dist/models/Group.d.ts +8 -0
- package/dist/models/InventoryTransaction.d.ts +19 -0
- package/dist/models/Kit.d.ts +17 -0
- package/dist/models/List.d.ts +10 -0
- package/dist/models/ListItem.d.ts +13 -0
- package/dist/models/Location.d.ts +13 -0
- package/dist/models/Menus.d.ts +10 -0
- package/dist/models/NPS.d.ts +16 -0
- package/dist/models/Node.d.ts +32 -0
- package/dist/models/ObjectID.d.ts +1 -0
- package/dist/models/OpcUaServer.d.ts +15 -0
- package/dist/models/Operation.d.ts +15 -0
- package/dist/models/Pages.d.ts +11 -0
- package/dist/models/Part.d.ts +10 -0
- package/dist/models/PartAssembly.d.ts +55 -0
- package/dist/models/PartAssemblyDocument.d.ts +9 -0
- package/dist/models/Post.d.ts +16 -0
- package/dist/models/PrintPreset.d.ts +26 -0
- package/dist/models/PriorityLabel.d.ts +12 -0
- package/dist/models/ProductionEntity.d.ts +18 -0
- package/dist/models/ProductionEntityEvent.d.ts +21 -0
- package/dist/models/ProductionEntityMapping.d.ts +16 -0
- package/dist/models/ProductionEntityTransaction.d.ts +19 -0
- package/dist/models/ProductionEntityType.d.ts +10 -0
- package/dist/models/Project.d.ts +10 -0
- package/dist/models/Resource.d.ts +26 -0
- package/dist/models/ResourceMapping.d.ts +9 -0
- package/dist/models/Revision.d.ts +8 -0
- package/dist/models/Role.d.ts +8 -0
- package/dist/models/RoleMapping.d.ts +17 -0
- package/dist/models/Rule.d.ts +11 -0
- package/dist/models/ScromSession.d.ts +11 -0
- package/dist/models/Shift.d.ts +26 -0
- package/dist/models/ShiftType.d.ts +28 -0
- package/dist/models/Station.d.ts +11 -0
- package/dist/models/Stock.d.ts +56 -0
- package/dist/models/StockItem.d.ts +7 -0
- package/dist/models/SyncClients.d.ts +12 -0
- package/dist/models/SyncHistory.d.ts +12 -0
- package/dist/models/Table.d.ts +11 -0
- package/dist/models/TableSetup.d.ts +18 -0
- package/dist/models/TimeLog.d.ts +7 -0
- package/dist/models/TimeLogReport.d.ts +29 -0
- package/dist/models/Timeline.d.ts +17 -0
- package/dist/models/Tool.d.ts +18 -0
- package/dist/models/Translation.d.ts +12 -0
- package/dist/models/Unit.d.ts +11 -0
- package/dist/models/UpdateInfo.d.ts +9 -0
- package/dist/models/UserModel.d.ts +70 -0
- package/dist/models/UserPreferences.d.ts +6 -0
- package/dist/models/Variant.d.ts +13 -0
- package/dist/models/VoteMapping.d.ts +12 -0
- package/dist/models/Warehouse.d.ts +9 -0
- package/dist/models/Webhook.d.ts +15 -0
- package/dist/models/Wire.d.ts +12 -0
- package/dist/models/Wiringlist.d.ts +15 -0
- package/dist/models/Workflow.d.ts +54 -0
- package/dist/models/WorkflowDetails.d.ts +9 -0
- package/dist/models/WorkflowNote.d.ts +18 -0
- package/dist/models/WorkflowSessionItem.d.ts +56 -0
- package/dist/models/WorkflowType.d.ts +17 -0
- package/dist/models/Workorder.d.ts +94 -0
- package/dist/models/WorkorderAction.d.ts +8 -0
- package/dist/models/WorkorderStatus.d.ts +22 -0
- package/dist/models/WorkorderTemplate.d.ts +23 -0
- package/dist/models/meta.d.ts +5 -0
- package/dist/models/x_any.d.ts +1 -0
- package/dist/services/AclService.d.ts +133 -0
- package/dist/services/AiPromptService.d.ts +133 -0
- package/dist/services/AiService.d.ts +12 -0
- package/dist/services/ApiMethodLogService.d.ts +133 -0
- package/dist/services/ApiMethodService.d.ts +140 -0
- package/dist/services/BomService.d.ts +18 -0
- package/dist/services/BreakService.d.ts +19 -0
- package/dist/services/BreakTypeService.d.ts +42 -0
- package/dist/services/CatalogService.d.ts +267 -0
- package/dist/services/CategoryService.d.ts +74 -0
- package/dist/services/CertificateMappingService.d.ts +60 -0
- package/dist/services/CertificateService.d.ts +74 -0
- package/dist/services/ChapterService.d.ts +34 -0
- package/dist/services/CommentService.d.ts +58 -0
- package/dist/services/ConfigurationService.d.ts +49 -0
- package/dist/services/ConnectionService.d.ts +20 -0
- package/dist/services/ConnectorFunctionService.d.ts +149 -0
- package/dist/services/ConnectorService.d.ts +201 -0
- package/dist/services/ContainerService.d.ts +66 -0
- package/dist/services/ContentPackageService.d.ts +115 -0
- package/dist/services/ContentPackageSessionService.d.ts +28 -0
- package/dist/services/ContentPackageViewService.d.ts +165 -0
- package/dist/services/CustomFieldService.d.ts +57 -0
- package/dist/services/DeviceFamilyService.d.ts +64 -0
- package/dist/services/DeviceService.d.ts +21 -0
- package/dist/services/DigestEmailService.d.ts +8 -0
- package/dist/services/DocumentService.d.ts +103 -0
- package/dist/services/EventService.d.ts +20 -0
- package/dist/services/FieldService.d.ts +86 -0
- package/dist/services/FileParserJobService.d.ts +49 -0
- package/dist/services/FileParserService.d.ts +78 -0
- package/dist/services/FileParserStrategyJobService.d.ts +49 -0
- package/dist/services/FolderService.d.ts +50 -0
- package/dist/services/FormDataCommentService.d.ts +159 -0
- package/dist/services/FormDataService.d.ts +242 -0
- package/dist/services/FormService.d.ts +82 -0
- package/dist/services/ForumService.d.ts +49 -0
- package/dist/services/GatewayService.d.ts +59 -0
- package/dist/services/GroupService.d.ts +50 -0
- package/dist/services/IntegrationBuilderService.d.ts +23 -0
- package/dist/services/InventoryTransactionService.d.ts +151 -0
- package/dist/services/LastSeenResourceService.d.ts +16 -0
- package/dist/services/ListItemService.d.ts +96 -0
- package/dist/services/ListService.d.ts +73 -0
- package/dist/services/LocationService.d.ts +80 -0
- package/dist/services/MenusService.d.ts +180 -0
- package/dist/services/NodeService.d.ts +383 -0
- package/dist/services/NpsService.d.ts +56 -0
- package/dist/services/OpcUaServerService.d.ts +182 -0
- package/dist/services/OperationService.d.ts +60 -0
- package/dist/services/PagesService.d.ts +151 -0
- package/dist/services/PartAssemblyDocumentService.d.ts +12 -0
- package/dist/services/PartAssemblyService.d.ts +400 -0
- package/dist/services/PartService.d.ts +133 -0
- package/dist/services/PostService.d.ts +56 -0
- package/dist/services/PrintPresetService.d.ts +155 -0
- package/dist/services/PriorityLabelService.d.ts +45 -0
- package/dist/services/PriorityService.d.ts +51 -0
- package/dist/services/ProductionEntityEventService.d.ts +169 -0
- package/dist/services/ProductionEntityMappingService.d.ts +142 -0
- package/dist/services/ProductionEntityService.d.ts +207 -0
- package/dist/services/ProductionEntityTransactionService.d.ts +142 -0
- package/dist/services/ProductionEntityTypeService.d.ts +151 -0
- package/dist/services/ProjectService.d.ts +142 -0
- package/dist/services/PythonResultService.d.ts +15 -0
- package/dist/services/ResourceMappingService.d.ts +133 -0
- package/dist/services/ResourceService.d.ts +264 -0
- package/dist/services/RevisionService.d.ts +62 -0
- package/dist/services/RoleMappingService.d.ts +151 -0
- package/dist/services/RoleService.d.ts +276 -0
- package/dist/services/RuleService.d.ts +217 -0
- package/dist/services/ScromSessionService.d.ts +18 -0
- package/dist/services/SettingService.d.ts +147 -0
- package/dist/services/ShiftService.d.ts +181 -0
- package/dist/services/ShiftTypeService.d.ts +142 -0
- package/dist/services/StationService.d.ts +50 -0
- package/dist/services/StockService.d.ts +766 -0
- package/dist/services/SyncClientsService.d.ts +142 -0
- package/dist/services/SyncHistoryService.d.ts +142 -0
- package/dist/services/SyncService.d.ts +89 -0
- package/dist/services/TableService.d.ts +154 -0
- package/dist/services/TableSetupService.d.ts +40 -0
- package/dist/services/TimeLogReportService.d.ts +87 -0
- package/dist/services/TimelineService.d.ts +73 -0
- package/dist/services/ToolService.d.ts +73 -0
- package/dist/services/TranslationService.d.ts +172 -0
- package/dist/services/UnitService.d.ts +182 -0
- package/dist/services/UpdateInfoService.d.ts +24 -0
- package/dist/services/UserModelService.d.ts +245 -0
- package/dist/services/VariantService.d.ts +42 -0
- package/dist/services/VoteMappingService.d.ts +19 -0
- package/dist/services/WarehouseService.d.ts +19 -0
- package/dist/services/WebhookService.d.ts +58 -0
- package/dist/services/WireService.d.ts +151 -0
- package/dist/services/WiringlistService.d.ts +340 -0
- package/dist/services/WorkflowDetailsService.d.ts +151 -0
- package/dist/services/WorkflowNoteService.d.ts +173 -0
- package/dist/services/WorkflowService.d.ts +976 -0
- package/dist/services/WorkflowSessionItemRecordService.d.ts +19 -0
- package/dist/services/WorkflowSessionItemService.d.ts +205 -0
- package/dist/services/WorkflowTypeService.d.ts +49 -0
- package/dist/services/WorkorderService.d.ts +1138 -0
- package/dist/services/WorkorderStatusService.d.ts +78 -0
- package/dist/services/WorkorderTemplateService.d.ts +49 -0
- package/package.json +84 -0
- package/tsconfig.build.json +14 -0
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
import type { ProductionEntity } from '../models/ProductionEntity';
|
|
2
|
+
import type { Shift } from '../models/Shift';
|
|
3
|
+
import type { ShiftType } from '../models/ShiftType';
|
|
4
|
+
import type { x_any } from '../models/x_any';
|
|
5
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
6
|
+
export declare class ShiftService {
|
|
7
|
+
/**
|
|
8
|
+
* Fetches belongsTo relation productionEntity.
|
|
9
|
+
* @param id Shift id
|
|
10
|
+
* @param refresh
|
|
11
|
+
* @returns ProductionEntity Request was successful
|
|
12
|
+
* @throws ApiError
|
|
13
|
+
*/
|
|
14
|
+
static shiftPrototypeGetProductionEntity(id: string, refresh?: boolean): CancelablePromise<ProductionEntity>;
|
|
15
|
+
/**
|
|
16
|
+
* Fetches belongsTo relation shiftType.
|
|
17
|
+
* @param id Shift id
|
|
18
|
+
* @param refresh
|
|
19
|
+
* @returns ShiftType Request was successful
|
|
20
|
+
* @throws ApiError
|
|
21
|
+
*/
|
|
22
|
+
static shiftPrototypeGetShiftType(id: string, refresh?: boolean): CancelablePromise<ShiftType>;
|
|
23
|
+
/**
|
|
24
|
+
* Create a new instance of the model and persist it into the data source.
|
|
25
|
+
* @param data Model instance data
|
|
26
|
+
* @returns Shift Request was successful
|
|
27
|
+
* @throws ApiError
|
|
28
|
+
*/
|
|
29
|
+
static shiftCreate(data?: Shift): CancelablePromise<Shift>;
|
|
30
|
+
/**
|
|
31
|
+
* Patch an existing model instance or insert a new one into the data source.
|
|
32
|
+
* @param data Model instance data
|
|
33
|
+
* @returns Shift Request was successful
|
|
34
|
+
* @throws ApiError
|
|
35
|
+
*/
|
|
36
|
+
static shiftPatchOrCreate(data?: Shift): CancelablePromise<Shift>;
|
|
37
|
+
/**
|
|
38
|
+
* Replace an existing model instance or insert a new one into the data source.
|
|
39
|
+
* @param data Model instance data
|
|
40
|
+
* @returns Shift Request was successful
|
|
41
|
+
* @throws ApiError
|
|
42
|
+
*/
|
|
43
|
+
static shiftReplaceOrCreatePutShifts(data?: Shift): CancelablePromise<Shift>;
|
|
44
|
+
/**
|
|
45
|
+
* Find all instances of the model matched by filter from the data source.
|
|
46
|
+
* @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.
|
|
47
|
+
* @returns Shift Request was successful
|
|
48
|
+
* @throws ApiError
|
|
49
|
+
*/
|
|
50
|
+
static shiftFind(filter?: string): CancelablePromise<Array<Shift>>;
|
|
51
|
+
/**
|
|
52
|
+
* Replace an existing model instance or insert a new one into the data source.
|
|
53
|
+
* @param data Model instance data
|
|
54
|
+
* @returns Shift Request was successful
|
|
55
|
+
* @throws ApiError
|
|
56
|
+
*/
|
|
57
|
+
static shiftReplaceOrCreatePostShiftsReplaceOrCreate(data?: Shift): CancelablePromise<Shift>;
|
|
58
|
+
/**
|
|
59
|
+
* Update an existing model instance or insert a new one into the data source based on the where criteria.
|
|
60
|
+
* @param where Criteria to match model instances
|
|
61
|
+
* @param data An object of model property name/value pairs
|
|
62
|
+
* @returns Shift Request was successful
|
|
63
|
+
* @throws ApiError
|
|
64
|
+
*/
|
|
65
|
+
static shiftUpsertWithWhere(where?: string, data?: Shift): CancelablePromise<Shift>;
|
|
66
|
+
/**
|
|
67
|
+
* Check whether a model instance exists in the data source.
|
|
68
|
+
* @param id Model id
|
|
69
|
+
* @returns any Request was successful
|
|
70
|
+
* @throws ApiError
|
|
71
|
+
*/
|
|
72
|
+
static shiftExistsGetShiftsIdExists(id: string): CancelablePromise<{
|
|
73
|
+
exists?: boolean;
|
|
74
|
+
}>;
|
|
75
|
+
/**
|
|
76
|
+
* Check whether a model instance exists in the data source.
|
|
77
|
+
* @param id Model id
|
|
78
|
+
* @returns any Request was successful
|
|
79
|
+
* @throws ApiError
|
|
80
|
+
*/
|
|
81
|
+
static shiftExistsHeadShiftsId(id: string): CancelablePromise<{
|
|
82
|
+
exists?: boolean;
|
|
83
|
+
}>;
|
|
84
|
+
/**
|
|
85
|
+
* Find a model instance by {{id}} from the data source.
|
|
86
|
+
* @param id Model id
|
|
87
|
+
* @param filter Filter defining fields and include - must be a JSON-encoded string ({"something":"value"})
|
|
88
|
+
* @returns Shift Request was successful
|
|
89
|
+
* @throws ApiError
|
|
90
|
+
*/
|
|
91
|
+
static shiftFindById(id: string, filter?: string): CancelablePromise<Shift>;
|
|
92
|
+
/**
|
|
93
|
+
* Replace attributes for a model instance and persist it into the data source.
|
|
94
|
+
* @param id Model id
|
|
95
|
+
* @param data Model instance data
|
|
96
|
+
* @returns Shift Request was successful
|
|
97
|
+
* @throws ApiError
|
|
98
|
+
*/
|
|
99
|
+
static shiftReplaceByIdPutShiftsId(id: string, data?: Shift): CancelablePromise<Shift>;
|
|
100
|
+
/**
|
|
101
|
+
* Delete a model instance by {{id}} from the data source.
|
|
102
|
+
* @param id Model id
|
|
103
|
+
* @returns any Request was successful
|
|
104
|
+
* @throws ApiError
|
|
105
|
+
*/
|
|
106
|
+
static shiftDeleteById(id: string): CancelablePromise<any>;
|
|
107
|
+
/**
|
|
108
|
+
* Patch attributes for a model instance and persist it into the data source.
|
|
109
|
+
* @param id Shift id
|
|
110
|
+
* @param data An object of model property name/value pairs
|
|
111
|
+
* @returns Shift Request was successful
|
|
112
|
+
* @throws ApiError
|
|
113
|
+
*/
|
|
114
|
+
static shiftPrototypePatchAttributes(id: string, data?: Shift): CancelablePromise<Shift>;
|
|
115
|
+
/**
|
|
116
|
+
* Replace attributes for a model instance and persist it into the data source.
|
|
117
|
+
* @param id Model id
|
|
118
|
+
* @param data Model instance data
|
|
119
|
+
* @returns Shift Request was successful
|
|
120
|
+
* @throws ApiError
|
|
121
|
+
*/
|
|
122
|
+
static shiftReplaceByIdPostShiftsIdReplace(id: string, data?: Shift): CancelablePromise<Shift>;
|
|
123
|
+
/**
|
|
124
|
+
* Find first instance of the model matched by filter from the data source.
|
|
125
|
+
* @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.
|
|
126
|
+
* @returns Shift Request was successful
|
|
127
|
+
* @throws ApiError
|
|
128
|
+
*/
|
|
129
|
+
static shiftFindOne(filter?: string): CancelablePromise<Shift>;
|
|
130
|
+
/**
|
|
131
|
+
* Update instances of the model matched by {{where}} from the data source.
|
|
132
|
+
* @param where Criteria to match model instances
|
|
133
|
+
* @param data An object of model property name/value pairs
|
|
134
|
+
* @returns any Request was successful
|
|
135
|
+
* @throws ApiError
|
|
136
|
+
*/
|
|
137
|
+
static shiftUpdateAll(where?: string, data?: Shift): CancelablePromise<{
|
|
138
|
+
/**
|
|
139
|
+
* The number of instances updated
|
|
140
|
+
*/
|
|
141
|
+
count?: number;
|
|
142
|
+
}>;
|
|
143
|
+
/**
|
|
144
|
+
* Count instances of the model matched by where from the data source.
|
|
145
|
+
* @param where Criteria to match model instances
|
|
146
|
+
* @returns any Request was successful
|
|
147
|
+
* @throws ApiError
|
|
148
|
+
*/
|
|
149
|
+
static shiftCount(where?: string): CancelablePromise<{
|
|
150
|
+
count?: number;
|
|
151
|
+
}>;
|
|
152
|
+
/**
|
|
153
|
+
* Get current week shifts
|
|
154
|
+
* @param startDate
|
|
155
|
+
* @returns x_any Request was successful
|
|
156
|
+
* @throws ApiError
|
|
157
|
+
*/
|
|
158
|
+
static shiftGetCurrentWeekShifts(startDate: string): CancelablePromise<Array<x_any>>;
|
|
159
|
+
/**
|
|
160
|
+
* Delete many shifts
|
|
161
|
+
* @param ids
|
|
162
|
+
* @returns any Request was successful
|
|
163
|
+
* @throws ApiError
|
|
164
|
+
*/
|
|
165
|
+
static shiftDeleteMany(ids: string): CancelablePromise<any>;
|
|
166
|
+
/**
|
|
167
|
+
* Set week as default
|
|
168
|
+
* @param ids
|
|
169
|
+
* @returns x_any Request was successful
|
|
170
|
+
* @throws ApiError
|
|
171
|
+
*/
|
|
172
|
+
static shiftSetWeekAsDefault(ids: string): CancelablePromise<Array<x_any>>;
|
|
173
|
+
/**
|
|
174
|
+
* Reset to default
|
|
175
|
+
* @param startDate
|
|
176
|
+
* @param ids
|
|
177
|
+
* @returns x_any Request was successful
|
|
178
|
+
* @throws ApiError
|
|
179
|
+
*/
|
|
180
|
+
static shiftResetToDefault(startDate: string, ids: string): CancelablePromise<Array<x_any>>;
|
|
181
|
+
}
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import type { ShiftType } from '../models/ShiftType';
|
|
2
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
3
|
+
export declare class ShiftTypeService {
|
|
4
|
+
/**
|
|
5
|
+
* Create a new instance of the model and persist it into the data source.
|
|
6
|
+
* @param data Model instance data
|
|
7
|
+
* @returns ShiftType Request was successful
|
|
8
|
+
* @throws ApiError
|
|
9
|
+
*/
|
|
10
|
+
static shiftTypeCreate(data?: ShiftType): CancelablePromise<ShiftType>;
|
|
11
|
+
/**
|
|
12
|
+
* Patch an existing model instance or insert a new one into the data source.
|
|
13
|
+
* @param data Model instance data
|
|
14
|
+
* @returns ShiftType Request was successful
|
|
15
|
+
* @throws ApiError
|
|
16
|
+
*/
|
|
17
|
+
static shiftTypePatchOrCreate(data?: ShiftType): CancelablePromise<ShiftType>;
|
|
18
|
+
/**
|
|
19
|
+
* Replace an existing model instance or insert a new one into the data source.
|
|
20
|
+
* @param data Model instance data
|
|
21
|
+
* @returns ShiftType Request was successful
|
|
22
|
+
* @throws ApiError
|
|
23
|
+
*/
|
|
24
|
+
static shiftTypeReplaceOrCreatePutShiftTypes(data?: ShiftType): CancelablePromise<ShiftType>;
|
|
25
|
+
/**
|
|
26
|
+
* Find all instances of the model matched by filter from the data source.
|
|
27
|
+
* @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.
|
|
28
|
+
* @returns ShiftType Request was successful
|
|
29
|
+
* @throws ApiError
|
|
30
|
+
*/
|
|
31
|
+
static shiftTypeFind(filter?: string): CancelablePromise<Array<ShiftType>>;
|
|
32
|
+
/**
|
|
33
|
+
* Replace an existing model instance or insert a new one into the data source.
|
|
34
|
+
* @param data Model instance data
|
|
35
|
+
* @returns ShiftType Request was successful
|
|
36
|
+
* @throws ApiError
|
|
37
|
+
*/
|
|
38
|
+
static shiftTypeReplaceOrCreatePostShiftTypesReplaceOrCreate(data?: ShiftType): CancelablePromise<ShiftType>;
|
|
39
|
+
/**
|
|
40
|
+
* Update an existing model instance or insert a new one into the data source based on the where criteria.
|
|
41
|
+
* @param where Criteria to match model instances
|
|
42
|
+
* @param data An object of model property name/value pairs
|
|
43
|
+
* @returns ShiftType Request was successful
|
|
44
|
+
* @throws ApiError
|
|
45
|
+
*/
|
|
46
|
+
static shiftTypeUpsertWithWhere(where?: string, data?: ShiftType): CancelablePromise<ShiftType>;
|
|
47
|
+
/**
|
|
48
|
+
* Check whether a model instance exists in the data source.
|
|
49
|
+
* @param id Model id
|
|
50
|
+
* @returns any Request was successful
|
|
51
|
+
* @throws ApiError
|
|
52
|
+
*/
|
|
53
|
+
static shiftTypeExistsGetShiftTypesIdExists(id: string): CancelablePromise<{
|
|
54
|
+
exists?: boolean;
|
|
55
|
+
}>;
|
|
56
|
+
/**
|
|
57
|
+
* Check whether a model instance exists in the data source.
|
|
58
|
+
* @param id Model id
|
|
59
|
+
* @returns any Request was successful
|
|
60
|
+
* @throws ApiError
|
|
61
|
+
*/
|
|
62
|
+
static shiftTypeExistsHeadShiftTypesId(id: string): CancelablePromise<{
|
|
63
|
+
exists?: boolean;
|
|
64
|
+
}>;
|
|
65
|
+
/**
|
|
66
|
+
* Find a model instance by {{id}} from the data source.
|
|
67
|
+
* @param id Model id
|
|
68
|
+
* @param filter Filter defining fields and include - must be a JSON-encoded string ({"something":"value"})
|
|
69
|
+
* @returns ShiftType Request was successful
|
|
70
|
+
* @throws ApiError
|
|
71
|
+
*/
|
|
72
|
+
static shiftTypeFindById(id: string, filter?: string): CancelablePromise<ShiftType>;
|
|
73
|
+
/**
|
|
74
|
+
* Replace attributes for a model instance and persist it into the data source.
|
|
75
|
+
* @param id Model id
|
|
76
|
+
* @param data Model instance data
|
|
77
|
+
* @returns ShiftType Request was successful
|
|
78
|
+
* @throws ApiError
|
|
79
|
+
*/
|
|
80
|
+
static shiftTypeReplaceByIdPutShiftTypesId(id: string, data?: ShiftType): CancelablePromise<ShiftType>;
|
|
81
|
+
/**
|
|
82
|
+
* Delete a model instance by {{id}} from the data source.
|
|
83
|
+
* @param id Model id
|
|
84
|
+
* @returns any Request was successful
|
|
85
|
+
* @throws ApiError
|
|
86
|
+
*/
|
|
87
|
+
static shiftTypeDeleteById(id: string): CancelablePromise<any>;
|
|
88
|
+
/**
|
|
89
|
+
* Patch attributes for a model instance and persist it into the data source.
|
|
90
|
+
* @param id ShiftType id
|
|
91
|
+
* @param data An object of model property name/value pairs
|
|
92
|
+
* @returns ShiftType Request was successful
|
|
93
|
+
* @throws ApiError
|
|
94
|
+
*/
|
|
95
|
+
static shiftTypePrototypePatchAttributes(id: string, data?: ShiftType): CancelablePromise<ShiftType>;
|
|
96
|
+
/**
|
|
97
|
+
* Replace attributes for a model instance and persist it into the data source.
|
|
98
|
+
* @param id Model id
|
|
99
|
+
* @param data Model instance data
|
|
100
|
+
* @returns ShiftType Request was successful
|
|
101
|
+
* @throws ApiError
|
|
102
|
+
*/
|
|
103
|
+
static shiftTypeReplaceByIdPostShiftTypesIdReplace(id: string, data?: ShiftType): CancelablePromise<ShiftType>;
|
|
104
|
+
/**
|
|
105
|
+
* Find first instance of the model matched by filter from the data source.
|
|
106
|
+
* @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.
|
|
107
|
+
* @returns ShiftType Request was successful
|
|
108
|
+
* @throws ApiError
|
|
109
|
+
*/
|
|
110
|
+
static shiftTypeFindOne(filter?: string): CancelablePromise<ShiftType>;
|
|
111
|
+
/**
|
|
112
|
+
* Update instances of the model matched by {{where}} from the data source.
|
|
113
|
+
* @param where Criteria to match model instances
|
|
114
|
+
* @param data An object of model property name/value pairs
|
|
115
|
+
* @returns any Request was successful
|
|
116
|
+
* @throws ApiError
|
|
117
|
+
*/
|
|
118
|
+
static shiftTypeUpdateAll(where?: string, data?: ShiftType): CancelablePromise<{
|
|
119
|
+
/**
|
|
120
|
+
* The number of instances updated
|
|
121
|
+
*/
|
|
122
|
+
count?: number;
|
|
123
|
+
}>;
|
|
124
|
+
/**
|
|
125
|
+
* Count instances of the model matched by where from the data source.
|
|
126
|
+
* @param where Criteria to match model instances
|
|
127
|
+
* @returns any Request was successful
|
|
128
|
+
* @throws ApiError
|
|
129
|
+
*/
|
|
130
|
+
static shiftTypeCount(where?: string): CancelablePromise<{
|
|
131
|
+
count?: number;
|
|
132
|
+
}>;
|
|
133
|
+
/**
|
|
134
|
+
* Count with deleted instances of the model matched by where from the data source.
|
|
135
|
+
* @param where Criteria to match model instances
|
|
136
|
+
* @returns any Request was successful
|
|
137
|
+
* @throws ApiError
|
|
138
|
+
*/
|
|
139
|
+
static shiftTypeCountWithDeleted(where?: string): CancelablePromise<{
|
|
140
|
+
count?: number;
|
|
141
|
+
}>;
|
|
142
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { Station } from '../models/Station';
|
|
2
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
3
|
+
export declare class StationService {
|
|
4
|
+
/**
|
|
5
|
+
* Create a new instance of the model and persist it into the data source.
|
|
6
|
+
* @param data Model instance data
|
|
7
|
+
* @returns Station Request was successful
|
|
8
|
+
* @throws ApiError
|
|
9
|
+
*/
|
|
10
|
+
static stationCreate(data?: Station): CancelablePromise<Station>;
|
|
11
|
+
/**
|
|
12
|
+
* Find all instances of the model matched by filter from the data source.
|
|
13
|
+
* @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.
|
|
14
|
+
* @returns Station Request was successful
|
|
15
|
+
* @throws ApiError
|
|
16
|
+
*/
|
|
17
|
+
static stationFind(filter?: string): CancelablePromise<Array<Station>>;
|
|
18
|
+
/**
|
|
19
|
+
* Find first instance of the model matched by filter from the data source.
|
|
20
|
+
* @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.
|
|
21
|
+
* @returns Station Request was successful
|
|
22
|
+
* @throws ApiError
|
|
23
|
+
*/
|
|
24
|
+
static stationFindOne(filter?: string): CancelablePromise<Station>;
|
|
25
|
+
/**
|
|
26
|
+
* Count instances of the model matched by where from the data source.
|
|
27
|
+
* @param where Criteria to match model instances
|
|
28
|
+
* @returns any Request was successful
|
|
29
|
+
* @throws ApiError
|
|
30
|
+
*/
|
|
31
|
+
static stationCount(where?: string): CancelablePromise<{
|
|
32
|
+
count?: number;
|
|
33
|
+
}>;
|
|
34
|
+
/**
|
|
35
|
+
* Patch attributes for a model instance and persist it into the data source.
|
|
36
|
+
* @param id Station id
|
|
37
|
+
* @param data An object of model property name/value pairs
|
|
38
|
+
* @returns Station Request was successful
|
|
39
|
+
* @throws ApiError
|
|
40
|
+
*/
|
|
41
|
+
static stationPrototypePatchAttributes(id: string, data?: Station): CancelablePromise<Station>;
|
|
42
|
+
/**
|
|
43
|
+
* @param obj
|
|
44
|
+
* @returns any Request was successful
|
|
45
|
+
* @throws ApiError
|
|
46
|
+
*/
|
|
47
|
+
static stationDeleteStation(obj?: string): CancelablePromise<{
|
|
48
|
+
result?: any;
|
|
49
|
+
}>;
|
|
50
|
+
}
|