@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,133 @@
|
|
|
1
|
+
import type { ResourceMapping } from '../models/ResourceMapping';
|
|
2
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
3
|
+
export declare class ResourceMappingService {
|
|
4
|
+
/**
|
|
5
|
+
* Create a new instance of the model and persist it into the data source.
|
|
6
|
+
* @param data Model instance data
|
|
7
|
+
* @returns ResourceMapping Request was successful
|
|
8
|
+
* @throws ApiError
|
|
9
|
+
*/
|
|
10
|
+
static resourceMappingCreate(data?: ResourceMapping): CancelablePromise<ResourceMapping>;
|
|
11
|
+
/**
|
|
12
|
+
* Patch an existing model instance or insert a new one into the data source.
|
|
13
|
+
* @param data Model instance data
|
|
14
|
+
* @returns ResourceMapping Request was successful
|
|
15
|
+
* @throws ApiError
|
|
16
|
+
*/
|
|
17
|
+
static resourceMappingPatchOrCreate(data?: ResourceMapping): CancelablePromise<ResourceMapping>;
|
|
18
|
+
/**
|
|
19
|
+
* Replace an existing model instance or insert a new one into the data source.
|
|
20
|
+
* @param data Model instance data
|
|
21
|
+
* @returns ResourceMapping Request was successful
|
|
22
|
+
* @throws ApiError
|
|
23
|
+
*/
|
|
24
|
+
static resourceMappingReplaceOrCreatePutResourceMappings(data?: ResourceMapping): CancelablePromise<ResourceMapping>;
|
|
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 ResourceMapping Request was successful
|
|
29
|
+
* @throws ApiError
|
|
30
|
+
*/
|
|
31
|
+
static resourceMappingFind(filter?: string): CancelablePromise<Array<ResourceMapping>>;
|
|
32
|
+
/**
|
|
33
|
+
* Replace an existing model instance or insert a new one into the data source.
|
|
34
|
+
* @param data Model instance data
|
|
35
|
+
* @returns ResourceMapping Request was successful
|
|
36
|
+
* @throws ApiError
|
|
37
|
+
*/
|
|
38
|
+
static resourceMappingReplaceOrCreatePostResourceMappingsReplaceOrCreate(data?: ResourceMapping): CancelablePromise<ResourceMapping>;
|
|
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 ResourceMapping Request was successful
|
|
44
|
+
* @throws ApiError
|
|
45
|
+
*/
|
|
46
|
+
static resourceMappingUpsertWithWhere(where?: string, data?: ResourceMapping): CancelablePromise<ResourceMapping>;
|
|
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 resourceMappingExistsGetResourceMappingsIdExists(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 resourceMappingExistsHeadResourceMappingsId(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 ResourceMapping Request was successful
|
|
70
|
+
* @throws ApiError
|
|
71
|
+
*/
|
|
72
|
+
static resourceMappingFindById(id: string, filter?: string): CancelablePromise<ResourceMapping>;
|
|
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 ResourceMapping Request was successful
|
|
78
|
+
* @throws ApiError
|
|
79
|
+
*/
|
|
80
|
+
static resourceMappingReplaceByIdPutResourceMappingsId(id: string, data?: ResourceMapping): CancelablePromise<ResourceMapping>;
|
|
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 resourceMappingDeleteById(id: string): CancelablePromise<any>;
|
|
88
|
+
/**
|
|
89
|
+
* Patch attributes for a model instance and persist it into the data source.
|
|
90
|
+
* @param id ResourceMapping id
|
|
91
|
+
* @param data An object of model property name/value pairs
|
|
92
|
+
* @returns ResourceMapping Request was successful
|
|
93
|
+
* @throws ApiError
|
|
94
|
+
*/
|
|
95
|
+
static resourceMappingPrototypePatchAttributes(id: string, data?: ResourceMapping): CancelablePromise<ResourceMapping>;
|
|
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 ResourceMapping Request was successful
|
|
101
|
+
* @throws ApiError
|
|
102
|
+
*/
|
|
103
|
+
static resourceMappingReplaceByIdPostResourceMappingsIdReplace(id: string, data?: ResourceMapping): CancelablePromise<ResourceMapping>;
|
|
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 ResourceMapping Request was successful
|
|
108
|
+
* @throws ApiError
|
|
109
|
+
*/
|
|
110
|
+
static resourceMappingFindOne(filter?: string): CancelablePromise<ResourceMapping>;
|
|
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 resourceMappingUpdateAll(where?: string, data?: ResourceMapping): 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 resourceMappingCount(where?: string): CancelablePromise<{
|
|
131
|
+
count?: number;
|
|
132
|
+
}>;
|
|
133
|
+
}
|
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
import type { meta } from '../models/meta';
|
|
2
|
+
import type { Resource } from '../models/Resource';
|
|
3
|
+
import type { UserModel } from '../models/UserModel';
|
|
4
|
+
import type { x_any } from '../models/x_any';
|
|
5
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
6
|
+
export declare class ResourceService {
|
|
7
|
+
/**
|
|
8
|
+
* Fetches belongsTo relation user.
|
|
9
|
+
* @param id Resource id
|
|
10
|
+
* @param refresh
|
|
11
|
+
* @returns UserModel Request was successful
|
|
12
|
+
* @throws ApiError
|
|
13
|
+
*/
|
|
14
|
+
static resourcePrototypeGetUser(id: string, refresh?: boolean): CancelablePromise<UserModel>;
|
|
15
|
+
/**
|
|
16
|
+
* Find a related item by id for meta.
|
|
17
|
+
* @param id Resource id
|
|
18
|
+
* @param fk Foreign key for meta
|
|
19
|
+
* @returns meta Request was successful
|
|
20
|
+
* @throws ApiError
|
|
21
|
+
*/
|
|
22
|
+
static resourcePrototypeFindByIdMeta(id: string, fk: string): CancelablePromise<meta>;
|
|
23
|
+
/**
|
|
24
|
+
* Delete a related item by id for meta.
|
|
25
|
+
* @param id Resource id
|
|
26
|
+
* @param fk Foreign key for meta
|
|
27
|
+
* @returns void
|
|
28
|
+
* @throws ApiError
|
|
29
|
+
*/
|
|
30
|
+
static resourcePrototypeDestroyByIdMeta(id: string, fk: string): CancelablePromise<void>;
|
|
31
|
+
/**
|
|
32
|
+
* Update a related item by id for meta.
|
|
33
|
+
* @param id Resource id
|
|
34
|
+
* @param fk Foreign key for meta
|
|
35
|
+
* @param data
|
|
36
|
+
* @returns meta Request was successful
|
|
37
|
+
* @throws ApiError
|
|
38
|
+
*/
|
|
39
|
+
static resourcePrototypeUpdateByIdMeta(id: string, fk: string, data?: meta): CancelablePromise<meta>;
|
|
40
|
+
/**
|
|
41
|
+
* Queries meta of Resource.
|
|
42
|
+
* @param id Resource id
|
|
43
|
+
* @param filter
|
|
44
|
+
* @returns meta Request was successful
|
|
45
|
+
* @throws ApiError
|
|
46
|
+
*/
|
|
47
|
+
static resourcePrototypeGetMeta(id: string, filter?: string): CancelablePromise<Array<meta>>;
|
|
48
|
+
/**
|
|
49
|
+
* Creates a new instance in meta of this model.
|
|
50
|
+
* @param id Resource id
|
|
51
|
+
* @param data
|
|
52
|
+
* @returns meta Request was successful
|
|
53
|
+
* @throws ApiError
|
|
54
|
+
*/
|
|
55
|
+
static resourcePrototypeCreateMeta(id: string, data?: meta): CancelablePromise<meta>;
|
|
56
|
+
/**
|
|
57
|
+
* Deletes all meta of this model.
|
|
58
|
+
* @param id Resource id
|
|
59
|
+
* @returns void
|
|
60
|
+
* @throws ApiError
|
|
61
|
+
*/
|
|
62
|
+
static resourcePrototypeDeleteMeta(id: string): CancelablePromise<void>;
|
|
63
|
+
/**
|
|
64
|
+
* Counts meta of Resource.
|
|
65
|
+
* @param id Resource id
|
|
66
|
+
* @param where Criteria to match model instances
|
|
67
|
+
* @returns any Request was successful
|
|
68
|
+
* @throws ApiError
|
|
69
|
+
*/
|
|
70
|
+
static resourcePrototypeCountMeta(id: string, where?: string): CancelablePromise<{
|
|
71
|
+
count?: number;
|
|
72
|
+
}>;
|
|
73
|
+
/**
|
|
74
|
+
* Create a new instance of the model and persist it into the data source.
|
|
75
|
+
* @param data Model instance data
|
|
76
|
+
* @returns Resource Request was successful
|
|
77
|
+
* @throws ApiError
|
|
78
|
+
*/
|
|
79
|
+
static resourceCreate(data?: Resource): CancelablePromise<Resource>;
|
|
80
|
+
/**
|
|
81
|
+
* Patch an existing model instance or insert a new one into the data source.
|
|
82
|
+
* @param data Model instance data
|
|
83
|
+
* @returns Resource Request was successful
|
|
84
|
+
* @throws ApiError
|
|
85
|
+
*/
|
|
86
|
+
static resourcePatchOrCreate(data?: Resource): CancelablePromise<Resource>;
|
|
87
|
+
/**
|
|
88
|
+
* Replace an existing model instance or insert a new one into the data source.
|
|
89
|
+
* @param data Model instance data
|
|
90
|
+
* @returns Resource Request was successful
|
|
91
|
+
* @throws ApiError
|
|
92
|
+
*/
|
|
93
|
+
static resourceReplaceOrCreatePutResources(data?: Resource): CancelablePromise<Resource>;
|
|
94
|
+
/**
|
|
95
|
+
* Find all instances of the model matched by filter from the data source.
|
|
96
|
+
* @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.
|
|
97
|
+
* @returns Resource Request was successful
|
|
98
|
+
* @throws ApiError
|
|
99
|
+
*/
|
|
100
|
+
static resourceFind(filter?: string): CancelablePromise<Array<Resource>>;
|
|
101
|
+
/**
|
|
102
|
+
* Replace an existing model instance or insert a new one into the data source.
|
|
103
|
+
* @param data Model instance data
|
|
104
|
+
* @returns Resource Request was successful
|
|
105
|
+
* @throws ApiError
|
|
106
|
+
*/
|
|
107
|
+
static resourceReplaceOrCreatePostResourcesReplaceOrCreate(data?: Resource): CancelablePromise<Resource>;
|
|
108
|
+
/**
|
|
109
|
+
* Update an existing model instance or insert a new one into the data source based on the where criteria.
|
|
110
|
+
* @param where Criteria to match model instances
|
|
111
|
+
* @param data An object of model property name/value pairs
|
|
112
|
+
* @returns Resource Request was successful
|
|
113
|
+
* @throws ApiError
|
|
114
|
+
*/
|
|
115
|
+
static resourceUpsertWithWhere(where?: string, data?: Resource): CancelablePromise<Resource>;
|
|
116
|
+
/**
|
|
117
|
+
* Check whether a model instance exists in the data source.
|
|
118
|
+
* @param id Model id
|
|
119
|
+
* @returns any Request was successful
|
|
120
|
+
* @throws ApiError
|
|
121
|
+
*/
|
|
122
|
+
static resourceExistsGetResourcesIdExists(id: string): CancelablePromise<{
|
|
123
|
+
exists?: boolean;
|
|
124
|
+
}>;
|
|
125
|
+
/**
|
|
126
|
+
* Check whether a model instance exists in the data source.
|
|
127
|
+
* @param id Model id
|
|
128
|
+
* @returns any Request was successful
|
|
129
|
+
* @throws ApiError
|
|
130
|
+
*/
|
|
131
|
+
static resourceExistsHeadResourcesId(id: string): CancelablePromise<{
|
|
132
|
+
exists?: boolean;
|
|
133
|
+
}>;
|
|
134
|
+
/**
|
|
135
|
+
* Find a model instance by {{id}} from the data source.
|
|
136
|
+
* @param id Model id
|
|
137
|
+
* @param filter Filter defining fields and include - must be a JSON-encoded string ({"something":"value"})
|
|
138
|
+
* @returns Resource Request was successful
|
|
139
|
+
* @throws ApiError
|
|
140
|
+
*/
|
|
141
|
+
static resourceFindById(id: string, filter?: string): CancelablePromise<Resource>;
|
|
142
|
+
/**
|
|
143
|
+
* Replace attributes for a model instance and persist it into the data source.
|
|
144
|
+
* @param id Model id
|
|
145
|
+
* @param data Model instance data
|
|
146
|
+
* @returns Resource Request was successful
|
|
147
|
+
* @throws ApiError
|
|
148
|
+
*/
|
|
149
|
+
static resourceReplaceByIdPutResourcesId(id: string, data?: Resource): CancelablePromise<Resource>;
|
|
150
|
+
/**
|
|
151
|
+
* Delete a model instance by {{id}} from the data source.
|
|
152
|
+
* @param id Model id
|
|
153
|
+
* @returns any Request was successful
|
|
154
|
+
* @throws ApiError
|
|
155
|
+
*/
|
|
156
|
+
static resourceDeleteById(id: string): CancelablePromise<any>;
|
|
157
|
+
/**
|
|
158
|
+
* Patch attributes for a model instance and persist it into the data source.
|
|
159
|
+
* @param id Resource id
|
|
160
|
+
* @param data An object of model property name/value pairs
|
|
161
|
+
* @returns Resource Request was successful
|
|
162
|
+
* @throws ApiError
|
|
163
|
+
*/
|
|
164
|
+
static resourcePrototypePatchAttributes(id: string, data?: Resource): CancelablePromise<Resource>;
|
|
165
|
+
/**
|
|
166
|
+
* Replace attributes for a model instance and persist it into the data source.
|
|
167
|
+
* @param id Model id
|
|
168
|
+
* @param data Model instance data
|
|
169
|
+
* @returns Resource Request was successful
|
|
170
|
+
* @throws ApiError
|
|
171
|
+
*/
|
|
172
|
+
static resourceReplaceByIdPostResourcesIdReplace(id: string, data?: Resource): CancelablePromise<Resource>;
|
|
173
|
+
/**
|
|
174
|
+
* Find first instance of the model matched by filter from the data source.
|
|
175
|
+
* @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.
|
|
176
|
+
* @returns Resource Request was successful
|
|
177
|
+
* @throws ApiError
|
|
178
|
+
*/
|
|
179
|
+
static resourceFindOne(filter?: string): CancelablePromise<Resource>;
|
|
180
|
+
/**
|
|
181
|
+
* Update instances of the model matched by {{where}} from the data source.
|
|
182
|
+
* @param where Criteria to match model instances
|
|
183
|
+
* @param data An object of model property name/value pairs
|
|
184
|
+
* @returns any Request was successful
|
|
185
|
+
* @throws ApiError
|
|
186
|
+
*/
|
|
187
|
+
static resourceUpdateAll(where?: string, data?: Resource): CancelablePromise<{
|
|
188
|
+
/**
|
|
189
|
+
* The number of instances updated
|
|
190
|
+
*/
|
|
191
|
+
count?: number;
|
|
192
|
+
}>;
|
|
193
|
+
/**
|
|
194
|
+
* Count instances of the model matched by where from the data source.
|
|
195
|
+
* @param where Criteria to match model instances
|
|
196
|
+
* @returns any Request was successful
|
|
197
|
+
* @throws ApiError
|
|
198
|
+
*/
|
|
199
|
+
static resourceCount(where?: string): CancelablePromise<{
|
|
200
|
+
count?: number;
|
|
201
|
+
}>;
|
|
202
|
+
/**
|
|
203
|
+
* Uploads a file
|
|
204
|
+
* @param options
|
|
205
|
+
* @returns any Request was successful
|
|
206
|
+
* @throws ApiError
|
|
207
|
+
*/
|
|
208
|
+
static resourceUpload(options?: string): CancelablePromise<any>;
|
|
209
|
+
/**
|
|
210
|
+
* Upload a file in chunks
|
|
211
|
+
* @param options
|
|
212
|
+
* @returns any Request was successful
|
|
213
|
+
* @throws ApiError
|
|
214
|
+
*/
|
|
215
|
+
static resourceChunkUpload(options?: string): CancelablePromise<any>;
|
|
216
|
+
/**
|
|
217
|
+
* Get file thumbnail
|
|
218
|
+
* @param partNumber
|
|
219
|
+
* @returns x_any Request was successful
|
|
220
|
+
* @throws ApiError
|
|
221
|
+
*/
|
|
222
|
+
static resourceAssemblyPicture(partNumber: string): CancelablePromise<x_any>;
|
|
223
|
+
/**
|
|
224
|
+
* Get external image dataUrl
|
|
225
|
+
* @param imageUrl
|
|
226
|
+
* @returns x_any Request was successful
|
|
227
|
+
* @throws ApiError
|
|
228
|
+
*/
|
|
229
|
+
static resourceImageProxy(imageUrl: string): CancelablePromise<x_any>;
|
|
230
|
+
/**
|
|
231
|
+
* Get file thumbnail
|
|
232
|
+
* @param id
|
|
233
|
+
* @param type
|
|
234
|
+
* @param view
|
|
235
|
+
* @returns x_any Request was successful
|
|
236
|
+
* @throws ApiError
|
|
237
|
+
*/
|
|
238
|
+
static resourceThumbnail(id: string, type: string, view: string): CancelablePromise<x_any>;
|
|
239
|
+
/**
|
|
240
|
+
* @param id
|
|
241
|
+
* @returns x_any Request was successful
|
|
242
|
+
* @throws ApiError
|
|
243
|
+
*/
|
|
244
|
+
static resourceGetResourceIncluded(id?: string): CancelablePromise<Array<x_any>>;
|
|
245
|
+
/**
|
|
246
|
+
* @param id
|
|
247
|
+
* @returns any Request was successful
|
|
248
|
+
* @throws ApiError
|
|
249
|
+
*/
|
|
250
|
+
static resourceDeleteFileById(id: string): CancelablePromise<any>;
|
|
251
|
+
/**
|
|
252
|
+
* @param id
|
|
253
|
+
* @returns any Request was successful
|
|
254
|
+
* @throws ApiError
|
|
255
|
+
*/
|
|
256
|
+
static resourceProcessingFile(id?: string): CancelablePromise<any>;
|
|
257
|
+
/**
|
|
258
|
+
* Get file
|
|
259
|
+
* @param id
|
|
260
|
+
* @returns x_any Request was successful
|
|
261
|
+
* @throws ApiError
|
|
262
|
+
*/
|
|
263
|
+
static resourceDownload(id: string): CancelablePromise<x_any>;
|
|
264
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import type { PartAssemblyDocument } from '../models/PartAssemblyDocument';
|
|
2
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
3
|
+
export declare class RevisionService {
|
|
4
|
+
/**
|
|
5
|
+
* Find a related item by id for documents.
|
|
6
|
+
* @param id Revision id
|
|
7
|
+
* @param fk Foreign key for documents
|
|
8
|
+
* @returns PartAssemblyDocument Request was successful
|
|
9
|
+
* @throws ApiError
|
|
10
|
+
*/
|
|
11
|
+
static revisionPrototypeFindByIdDocuments(id: string, fk: string): CancelablePromise<PartAssemblyDocument>;
|
|
12
|
+
/**
|
|
13
|
+
* Delete a related item by id for documents.
|
|
14
|
+
* @param id Revision id
|
|
15
|
+
* @param fk Foreign key for documents
|
|
16
|
+
* @returns void
|
|
17
|
+
* @throws ApiError
|
|
18
|
+
*/
|
|
19
|
+
static revisionPrototypeDestroyByIdDocuments(id: string, fk: string): CancelablePromise<void>;
|
|
20
|
+
/**
|
|
21
|
+
* Update a related item by id for documents.
|
|
22
|
+
* @param id Revision id
|
|
23
|
+
* @param fk Foreign key for documents
|
|
24
|
+
* @param data
|
|
25
|
+
* @returns PartAssemblyDocument Request was successful
|
|
26
|
+
* @throws ApiError
|
|
27
|
+
*/
|
|
28
|
+
static revisionPrototypeUpdateByIdDocuments(id: string, fk: string, data?: PartAssemblyDocument): CancelablePromise<PartAssemblyDocument>;
|
|
29
|
+
/**
|
|
30
|
+
* Queries documents of Revision.
|
|
31
|
+
* @param id Revision id
|
|
32
|
+
* @param filter
|
|
33
|
+
* @returns PartAssemblyDocument Request was successful
|
|
34
|
+
* @throws ApiError
|
|
35
|
+
*/
|
|
36
|
+
static revisionPrototypeGetDocuments(id: string, filter?: string): CancelablePromise<Array<PartAssemblyDocument>>;
|
|
37
|
+
/**
|
|
38
|
+
* Creates a new instance in documents of this model.
|
|
39
|
+
* @param id Revision id
|
|
40
|
+
* @param data
|
|
41
|
+
* @returns PartAssemblyDocument Request was successful
|
|
42
|
+
* @throws ApiError
|
|
43
|
+
*/
|
|
44
|
+
static revisionPrototypeCreateDocuments(id: string, data?: PartAssemblyDocument): CancelablePromise<PartAssemblyDocument>;
|
|
45
|
+
/**
|
|
46
|
+
* Deletes all documents of this model.
|
|
47
|
+
* @param id Revision id
|
|
48
|
+
* @returns void
|
|
49
|
+
* @throws ApiError
|
|
50
|
+
*/
|
|
51
|
+
static revisionPrototypeDeleteDocuments(id: string): CancelablePromise<void>;
|
|
52
|
+
/**
|
|
53
|
+
* Counts documents of Revision.
|
|
54
|
+
* @param id Revision id
|
|
55
|
+
* @param where Criteria to match model instances
|
|
56
|
+
* @returns any Request was successful
|
|
57
|
+
* @throws ApiError
|
|
58
|
+
*/
|
|
59
|
+
static revisionPrototypeCountDocuments(id: string, where?: string): CancelablePromise<{
|
|
60
|
+
count?: number;
|
|
61
|
+
}>;
|
|
62
|
+
}
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import type { Role } from '../models/Role';
|
|
2
|
+
import type { RoleMapping } from '../models/RoleMapping';
|
|
3
|
+
import type { UserModel } from '../models/UserModel';
|
|
4
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
5
|
+
export declare class RoleMappingService {
|
|
6
|
+
/**
|
|
7
|
+
* Fetches belongsTo relation role.
|
|
8
|
+
* @param id RoleMapping id
|
|
9
|
+
* @param refresh
|
|
10
|
+
* @returns Role Request was successful
|
|
11
|
+
* @throws ApiError
|
|
12
|
+
*/
|
|
13
|
+
static roleMappingPrototypeGetRole(id: string, refresh?: boolean): CancelablePromise<Role>;
|
|
14
|
+
/**
|
|
15
|
+
* Fetches belongsTo relation userModel.
|
|
16
|
+
* @param id RoleMapping id
|
|
17
|
+
* @param refresh
|
|
18
|
+
* @returns UserModel Request was successful
|
|
19
|
+
* @throws ApiError
|
|
20
|
+
*/
|
|
21
|
+
static roleMappingPrototypeGetUserModel(id: string, refresh?: boolean): CancelablePromise<UserModel>;
|
|
22
|
+
/**
|
|
23
|
+
* Create a new instance of the model and persist it into the data source.
|
|
24
|
+
* @param data Model instance data
|
|
25
|
+
* @returns RoleMapping Request was successful
|
|
26
|
+
* @throws ApiError
|
|
27
|
+
*/
|
|
28
|
+
static roleMappingCreate(data?: RoleMapping): CancelablePromise<RoleMapping>;
|
|
29
|
+
/**
|
|
30
|
+
* Patch an existing model instance or insert a new one into the data source.
|
|
31
|
+
* @param data Model instance data
|
|
32
|
+
* @returns RoleMapping Request was successful
|
|
33
|
+
* @throws ApiError
|
|
34
|
+
*/
|
|
35
|
+
static roleMappingPatchOrCreate(data?: RoleMapping): CancelablePromise<RoleMapping>;
|
|
36
|
+
/**
|
|
37
|
+
* Replace an existing model instance or insert a new one into the data source.
|
|
38
|
+
* @param data Model instance data
|
|
39
|
+
* @returns RoleMapping Request was successful
|
|
40
|
+
* @throws ApiError
|
|
41
|
+
*/
|
|
42
|
+
static roleMappingReplaceOrCreatePutRoleMappings(data?: RoleMapping): CancelablePromise<RoleMapping>;
|
|
43
|
+
/**
|
|
44
|
+
* Find all instances of the model matched by filter from the data source.
|
|
45
|
+
* @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.
|
|
46
|
+
* @returns RoleMapping Request was successful
|
|
47
|
+
* @throws ApiError
|
|
48
|
+
*/
|
|
49
|
+
static roleMappingFind(filter?: string): CancelablePromise<Array<RoleMapping>>;
|
|
50
|
+
/**
|
|
51
|
+
* Replace an existing model instance or insert a new one into the data source.
|
|
52
|
+
* @param data Model instance data
|
|
53
|
+
* @returns RoleMapping Request was successful
|
|
54
|
+
* @throws ApiError
|
|
55
|
+
*/
|
|
56
|
+
static roleMappingReplaceOrCreatePostRoleMappingsReplaceOrCreate(data?: RoleMapping): CancelablePromise<RoleMapping>;
|
|
57
|
+
/**
|
|
58
|
+
* Update an existing model instance or insert a new one into the data source based on the where criteria.
|
|
59
|
+
* @param where Criteria to match model instances
|
|
60
|
+
* @param data An object of model property name/value pairs
|
|
61
|
+
* @returns RoleMapping Request was successful
|
|
62
|
+
* @throws ApiError
|
|
63
|
+
*/
|
|
64
|
+
static roleMappingUpsertWithWhere(where?: string, data?: RoleMapping): CancelablePromise<RoleMapping>;
|
|
65
|
+
/**
|
|
66
|
+
* Check whether a model instance exists in the data source.
|
|
67
|
+
* @param id Model id
|
|
68
|
+
* @returns any Request was successful
|
|
69
|
+
* @throws ApiError
|
|
70
|
+
*/
|
|
71
|
+
static roleMappingExistsGetRoleMappingsIdExists(id: string): CancelablePromise<{
|
|
72
|
+
exists?: boolean;
|
|
73
|
+
}>;
|
|
74
|
+
/**
|
|
75
|
+
* Check whether a model instance exists in the data source.
|
|
76
|
+
* @param id Model id
|
|
77
|
+
* @returns any Request was successful
|
|
78
|
+
* @throws ApiError
|
|
79
|
+
*/
|
|
80
|
+
static roleMappingExistsHeadRoleMappingsId(id: string): CancelablePromise<{
|
|
81
|
+
exists?: boolean;
|
|
82
|
+
}>;
|
|
83
|
+
/**
|
|
84
|
+
* Find a model instance by {{id}} from the data source.
|
|
85
|
+
* @param id Model id
|
|
86
|
+
* @param filter Filter defining fields and include - must be a JSON-encoded string ({"something":"value"})
|
|
87
|
+
* @returns RoleMapping Request was successful
|
|
88
|
+
* @throws ApiError
|
|
89
|
+
*/
|
|
90
|
+
static roleMappingFindById(id: string, filter?: string): CancelablePromise<RoleMapping>;
|
|
91
|
+
/**
|
|
92
|
+
* Replace attributes for a model instance and persist it into the data source.
|
|
93
|
+
* @param id Model id
|
|
94
|
+
* @param data Model instance data
|
|
95
|
+
* @returns RoleMapping Request was successful
|
|
96
|
+
* @throws ApiError
|
|
97
|
+
*/
|
|
98
|
+
static roleMappingReplaceByIdPutRoleMappingsId(id: string, data?: RoleMapping): CancelablePromise<RoleMapping>;
|
|
99
|
+
/**
|
|
100
|
+
* Delete a model instance by {{id}} from the data source.
|
|
101
|
+
* @param id Model id
|
|
102
|
+
* @returns any Request was successful
|
|
103
|
+
* @throws ApiError
|
|
104
|
+
*/
|
|
105
|
+
static roleMappingDeleteById(id: string): CancelablePromise<any>;
|
|
106
|
+
/**
|
|
107
|
+
* Patch attributes for a model instance and persist it into the data source.
|
|
108
|
+
* @param id RoleMapping id
|
|
109
|
+
* @param data An object of model property name/value pairs
|
|
110
|
+
* @returns RoleMapping Request was successful
|
|
111
|
+
* @throws ApiError
|
|
112
|
+
*/
|
|
113
|
+
static roleMappingPrototypePatchAttributes(id: string, data?: RoleMapping): CancelablePromise<RoleMapping>;
|
|
114
|
+
/**
|
|
115
|
+
* Replace attributes for a model instance and persist it into the data source.
|
|
116
|
+
* @param id Model id
|
|
117
|
+
* @param data Model instance data
|
|
118
|
+
* @returns RoleMapping Request was successful
|
|
119
|
+
* @throws ApiError
|
|
120
|
+
*/
|
|
121
|
+
static roleMappingReplaceByIdPostRoleMappingsIdReplace(id: string, data?: RoleMapping): CancelablePromise<RoleMapping>;
|
|
122
|
+
/**
|
|
123
|
+
* Find first instance of the model matched by filter from the data source.
|
|
124
|
+
* @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.
|
|
125
|
+
* @returns RoleMapping Request was successful
|
|
126
|
+
* @throws ApiError
|
|
127
|
+
*/
|
|
128
|
+
static roleMappingFindOne(filter?: string): CancelablePromise<RoleMapping>;
|
|
129
|
+
/**
|
|
130
|
+
* Update instances of the model matched by {{where}} from the data source.
|
|
131
|
+
* @param where Criteria to match model instances
|
|
132
|
+
* @param data An object of model property name/value pairs
|
|
133
|
+
* @returns any Request was successful
|
|
134
|
+
* @throws ApiError
|
|
135
|
+
*/
|
|
136
|
+
static roleMappingUpdateAll(where?: string, data?: RoleMapping): CancelablePromise<{
|
|
137
|
+
/**
|
|
138
|
+
* The number of instances updated
|
|
139
|
+
*/
|
|
140
|
+
count?: number;
|
|
141
|
+
}>;
|
|
142
|
+
/**
|
|
143
|
+
* Count instances of the model matched by where from the data source.
|
|
144
|
+
* @param where Criteria to match model instances
|
|
145
|
+
* @returns any Request was successful
|
|
146
|
+
* @throws ApiError
|
|
147
|
+
*/
|
|
148
|
+
static roleMappingCount(where?: string): CancelablePromise<{
|
|
149
|
+
count?: number;
|
|
150
|
+
}>;
|
|
151
|
+
}
|