@nextplus/js-sdk 0.0.9 → 0.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-TU3VOZVD.js → chunk-GMJM2AK6.js} +9 -1
- package/dist/{chunk-VAV5HKXV.js → chunk-O65NPNYE.js} +1000 -73
- package/dist/{index-DESgEWKO.d.ts → index-DP-keAMv.d.ts} +211 -9
- package/dist/{index-KyIl4y18.d.cts → index-Dwy0Oyyf.d.cts} +211 -9
- package/dist/index.cjs +999 -72
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/sdk/index.cjs +1003 -72
- package/dist/sdk/index.d.cts +1 -1
- package/dist/sdk/index.d.ts +1 -1
- package/dist/sdk/index.js +10 -2
- package/dist/sdk/sdk.gen.cjs +1003 -72
- package/dist/sdk/sdk.gen.d.cts +1 -1
- package/dist/sdk/sdk.gen.d.ts +1 -1
- package/dist/sdk/sdk.gen.js +9 -1
- package/dist/{sdk.gen-D4UJVxtf.d.cts → sdk.gen-BntcMIIs.d.cts} +1616 -57
- package/dist/{sdk.gen-aOku7-zB.d.ts → sdk.gen-k17BtAsz.d.ts} +1616 -57
- package/package.json +1 -1
- package/src/sdk/schemas.gen.ts +265 -42
- package/src/sdk/sdk.gen.ts +1430 -36
- package/src/sdk/transformers.gen.ts +325 -0
- package/src/sdk/types.gen.ts +1628 -49
package/dist/sdk/index.cjs
CHANGED
|
@@ -36,6 +36,8 @@ __export(sdk_exports, {
|
|
|
36
36
|
CertificateMappingService: () => CertificateMappingService,
|
|
37
37
|
CertificateService: () => CertificateService,
|
|
38
38
|
ChapterService: () => ChapterService,
|
|
39
|
+
ChatThreadService: () => ChatThreadService,
|
|
40
|
+
CommandPaletteHistoryService: () => CommandPaletteHistoryService,
|
|
39
41
|
CommentService: () => CommentService,
|
|
40
42
|
ConfigurationService: () => ConfigurationService,
|
|
41
43
|
ConnectionService: () => ConnectionService,
|
|
@@ -94,6 +96,7 @@ __export(sdk_exports, {
|
|
|
94
96
|
SettingService: () => SettingService,
|
|
95
97
|
ShiftService: () => ShiftService,
|
|
96
98
|
ShiftTypeService: () => ShiftTypeService,
|
|
99
|
+
SqlServerService: () => SqlServerService,
|
|
97
100
|
StationService: () => StationService,
|
|
98
101
|
StockService: () => StockService,
|
|
99
102
|
SyncClientsService: () => SyncClientsService,
|
|
@@ -122,6 +125,7 @@ __export(sdk_exports, {
|
|
|
122
125
|
WorkflowTypeService: () => WorkflowTypeService,
|
|
123
126
|
WorkorderService: () => WorkorderService,
|
|
124
127
|
WorkorderStatusService: () => WorkorderStatusService,
|
|
128
|
+
WorkorderStatusTransitionService: () => WorkorderStatusTransitionService,
|
|
125
129
|
WorkorderTemplateService: () => WorkorderTemplateService
|
|
126
130
|
});
|
|
127
131
|
module.exports = __toCommonJS(sdk_exports);
|
|
@@ -1165,6 +1169,9 @@ var resourceSchemaResponseTransformer = (data) => {
|
|
|
1165
1169
|
if (data.serverModified) {
|
|
1166
1170
|
data.serverModified = new Date(data.serverModified);
|
|
1167
1171
|
}
|
|
1172
|
+
if (data.deletedAt) {
|
|
1173
|
+
data.deletedAt = new Date(data.deletedAt);
|
|
1174
|
+
}
|
|
1168
1175
|
return data;
|
|
1169
1176
|
};
|
|
1170
1177
|
var partAssemblyPrototypeGetImageObjectResponseTransformer = async (data) => {
|
|
@@ -4127,6 +4134,36 @@ var workorderStatusFindOneResponseTransformer = async (data) => {
|
|
|
4127
4134
|
data = workorderStatusSchemaResponseTransformer(data);
|
|
4128
4135
|
return data;
|
|
4129
4136
|
};
|
|
4137
|
+
var workorderStatusTransitionSchemaResponseTransformer = (data) => {
|
|
4138
|
+
if (data.created) {
|
|
4139
|
+
data.created = new Date(data.created);
|
|
4140
|
+
}
|
|
4141
|
+
if (data.modified) {
|
|
4142
|
+
data.modified = new Date(data.modified);
|
|
4143
|
+
}
|
|
4144
|
+
if (data.serverModified) {
|
|
4145
|
+
data.serverModified = new Date(data.serverModified);
|
|
4146
|
+
}
|
|
4147
|
+
return data;
|
|
4148
|
+
};
|
|
4149
|
+
var workorderStatusTransitionFindResponseTransformer = async (data) => {
|
|
4150
|
+
data = data.map((item) => {
|
|
4151
|
+
return workorderStatusTransitionSchemaResponseTransformer(item);
|
|
4152
|
+
});
|
|
4153
|
+
return data;
|
|
4154
|
+
};
|
|
4155
|
+
var workorderStatusTransitionCreateResponseTransformer = async (data) => {
|
|
4156
|
+
data = workorderStatusTransitionSchemaResponseTransformer(data);
|
|
4157
|
+
return data;
|
|
4158
|
+
};
|
|
4159
|
+
var workorderStatusTransitionFindOneResponseTransformer = async (data) => {
|
|
4160
|
+
data = workorderStatusTransitionSchemaResponseTransformer(data);
|
|
4161
|
+
return data;
|
|
4162
|
+
};
|
|
4163
|
+
var workorderStatusTransitionPrototypePatchAttributesResponseTransformer = async (data) => {
|
|
4164
|
+
data = workorderStatusTransitionSchemaResponseTransformer(data);
|
|
4165
|
+
return data;
|
|
4166
|
+
};
|
|
4130
4167
|
var timeLogReportSchemaResponseTransformer = (data) => {
|
|
4131
4168
|
if (data.start) {
|
|
4132
4169
|
data.start = new Date(data.start);
|
|
@@ -5028,6 +5065,163 @@ var addonFindOneResponseTransformer = async (data) => {
|
|
|
5028
5065
|
data = addonSchemaResponseTransformer(data);
|
|
5029
5066
|
return data;
|
|
5030
5067
|
};
|
|
5068
|
+
var sqlServerPrototypeGetUserResponseTransformer = async (data) => {
|
|
5069
|
+
data = userModelSchemaResponseTransformer(data);
|
|
5070
|
+
return data;
|
|
5071
|
+
};
|
|
5072
|
+
var sqlServerSchemaResponseTransformer = (data) => {
|
|
5073
|
+
if (data.created) {
|
|
5074
|
+
data.created = new Date(data.created);
|
|
5075
|
+
}
|
|
5076
|
+
if (data.modified) {
|
|
5077
|
+
data.modified = new Date(data.modified);
|
|
5078
|
+
}
|
|
5079
|
+
if (data.serverModified) {
|
|
5080
|
+
data.serverModified = new Date(data.serverModified);
|
|
5081
|
+
}
|
|
5082
|
+
if (data.deletedAt) {
|
|
5083
|
+
data.deletedAt = new Date(data.deletedAt);
|
|
5084
|
+
}
|
|
5085
|
+
return data;
|
|
5086
|
+
};
|
|
5087
|
+
var sqlServerFindResponseTransformer = async (data) => {
|
|
5088
|
+
data = data.map((item) => {
|
|
5089
|
+
return sqlServerSchemaResponseTransformer(item);
|
|
5090
|
+
});
|
|
5091
|
+
return data;
|
|
5092
|
+
};
|
|
5093
|
+
var sqlServerPatchOrCreateResponseTransformer = async (data) => {
|
|
5094
|
+
data = sqlServerSchemaResponseTransformer(data);
|
|
5095
|
+
return data;
|
|
5096
|
+
};
|
|
5097
|
+
var sqlServerCreateResponseTransformer = async (data) => {
|
|
5098
|
+
data = sqlServerSchemaResponseTransformer(data);
|
|
5099
|
+
return data;
|
|
5100
|
+
};
|
|
5101
|
+
var sqlServerReplaceOrCreatePutSqlServersResponseTransformer = async (data) => {
|
|
5102
|
+
data = sqlServerSchemaResponseTransformer(data);
|
|
5103
|
+
return data;
|
|
5104
|
+
};
|
|
5105
|
+
var sqlServerReplaceOrCreatePostSqlServersReplaceOrCreateResponseTransformer = async (data) => {
|
|
5106
|
+
data = sqlServerSchemaResponseTransformer(data);
|
|
5107
|
+
return data;
|
|
5108
|
+
};
|
|
5109
|
+
var sqlServerUpsertWithWhereResponseTransformer = async (data) => {
|
|
5110
|
+
data = sqlServerSchemaResponseTransformer(data);
|
|
5111
|
+
return data;
|
|
5112
|
+
};
|
|
5113
|
+
var sqlServerFindByIdResponseTransformer = async (data) => {
|
|
5114
|
+
data = sqlServerSchemaResponseTransformer(data);
|
|
5115
|
+
return data;
|
|
5116
|
+
};
|
|
5117
|
+
var sqlServerPrototypePatchAttributesResponseTransformer = async (data) => {
|
|
5118
|
+
data = sqlServerSchemaResponseTransformer(data);
|
|
5119
|
+
return data;
|
|
5120
|
+
};
|
|
5121
|
+
var sqlServerReplaceByIdPutSqlServersIdResponseTransformer = async (data) => {
|
|
5122
|
+
data = sqlServerSchemaResponseTransformer(data);
|
|
5123
|
+
return data;
|
|
5124
|
+
};
|
|
5125
|
+
var sqlServerReplaceByIdPostSqlServersIdReplaceResponseTransformer = async (data) => {
|
|
5126
|
+
data = sqlServerSchemaResponseTransformer(data);
|
|
5127
|
+
return data;
|
|
5128
|
+
};
|
|
5129
|
+
var sqlServerFindOneResponseTransformer = async (data) => {
|
|
5130
|
+
data = sqlServerSchemaResponseTransformer(data);
|
|
5131
|
+
return data;
|
|
5132
|
+
};
|
|
5133
|
+
var chatThreadPrototypeGetUserResponseTransformer = async (data) => {
|
|
5134
|
+
data = userModelSchemaResponseTransformer(data);
|
|
5135
|
+
return data;
|
|
5136
|
+
};
|
|
5137
|
+
var chatThreadSchemaResponseTransformer = (data) => {
|
|
5138
|
+
if (data.created) {
|
|
5139
|
+
data.created = new Date(data.created);
|
|
5140
|
+
}
|
|
5141
|
+
if (data.modified) {
|
|
5142
|
+
data.modified = new Date(data.modified);
|
|
5143
|
+
}
|
|
5144
|
+
if (data.serverModified) {
|
|
5145
|
+
data.serverModified = new Date(data.serverModified);
|
|
5146
|
+
}
|
|
5147
|
+
return data;
|
|
5148
|
+
};
|
|
5149
|
+
var chatThreadFindResponseTransformer = async (data) => {
|
|
5150
|
+
data = data.map((item) => {
|
|
5151
|
+
return chatThreadSchemaResponseTransformer(item);
|
|
5152
|
+
});
|
|
5153
|
+
return data;
|
|
5154
|
+
};
|
|
5155
|
+
var chatThreadPatchOrCreateResponseTransformer = async (data) => {
|
|
5156
|
+
data = chatThreadSchemaResponseTransformer(data);
|
|
5157
|
+
return data;
|
|
5158
|
+
};
|
|
5159
|
+
var chatThreadCreateResponseTransformer = async (data) => {
|
|
5160
|
+
data = chatThreadSchemaResponseTransformer(data);
|
|
5161
|
+
return data;
|
|
5162
|
+
};
|
|
5163
|
+
var chatThreadReplaceOrCreatePutChatThreadsResponseTransformer = async (data) => {
|
|
5164
|
+
data = chatThreadSchemaResponseTransformer(data);
|
|
5165
|
+
return data;
|
|
5166
|
+
};
|
|
5167
|
+
var chatThreadReplaceOrCreatePostChatThreadsReplaceOrCreateResponseTransformer = async (data) => {
|
|
5168
|
+
data = chatThreadSchemaResponseTransformer(data);
|
|
5169
|
+
return data;
|
|
5170
|
+
};
|
|
5171
|
+
var chatThreadUpsertWithWhereResponseTransformer = async (data) => {
|
|
5172
|
+
data = chatThreadSchemaResponseTransformer(data);
|
|
5173
|
+
return data;
|
|
5174
|
+
};
|
|
5175
|
+
var chatThreadFindByIdResponseTransformer = async (data) => {
|
|
5176
|
+
data = chatThreadSchemaResponseTransformer(data);
|
|
5177
|
+
return data;
|
|
5178
|
+
};
|
|
5179
|
+
var chatThreadPrototypePatchAttributesResponseTransformer = async (data) => {
|
|
5180
|
+
data = chatThreadSchemaResponseTransformer(data);
|
|
5181
|
+
return data;
|
|
5182
|
+
};
|
|
5183
|
+
var chatThreadReplaceByIdPutChatThreadsIdResponseTransformer = async (data) => {
|
|
5184
|
+
data = chatThreadSchemaResponseTransformer(data);
|
|
5185
|
+
return data;
|
|
5186
|
+
};
|
|
5187
|
+
var chatThreadReplaceByIdPostChatThreadsIdReplaceResponseTransformer = async (data) => {
|
|
5188
|
+
data = chatThreadSchemaResponseTransformer(data);
|
|
5189
|
+
return data;
|
|
5190
|
+
};
|
|
5191
|
+
var chatThreadFindOneResponseTransformer = async (data) => {
|
|
5192
|
+
data = chatThreadSchemaResponseTransformer(data);
|
|
5193
|
+
return data;
|
|
5194
|
+
};
|
|
5195
|
+
var commandPaletteHistorySchemaResponseTransformer = (data) => {
|
|
5196
|
+
data.lastVisited = new Date(data.lastVisited);
|
|
5197
|
+
if (data.created) {
|
|
5198
|
+
data.created = new Date(data.created);
|
|
5199
|
+
}
|
|
5200
|
+
if (data.modified) {
|
|
5201
|
+
data.modified = new Date(data.modified);
|
|
5202
|
+
}
|
|
5203
|
+
if (data.serverModified) {
|
|
5204
|
+
data.serverModified = new Date(data.serverModified);
|
|
5205
|
+
}
|
|
5206
|
+
if (data.deletedAt) {
|
|
5207
|
+
data.deletedAt = new Date(data.deletedAt);
|
|
5208
|
+
}
|
|
5209
|
+
return data;
|
|
5210
|
+
};
|
|
5211
|
+
var commandPaletteHistoryFindResponseTransformer = async (data) => {
|
|
5212
|
+
data = data.map((item) => {
|
|
5213
|
+
return commandPaletteHistorySchemaResponseTransformer(item);
|
|
5214
|
+
});
|
|
5215
|
+
return data;
|
|
5216
|
+
};
|
|
5217
|
+
var commandPaletteHistoryCreateResponseTransformer = async (data) => {
|
|
5218
|
+
data = commandPaletteHistorySchemaResponseTransformer(data);
|
|
5219
|
+
return data;
|
|
5220
|
+
};
|
|
5221
|
+
var commandPaletteHistoryPrototypePatchAttributesResponseTransformer = async (data) => {
|
|
5222
|
+
data = commandPaletteHistorySchemaResponseTransformer(data);
|
|
5223
|
+
return data;
|
|
5224
|
+
};
|
|
5031
5225
|
|
|
5032
5226
|
// src/sdk/sdk.gen.ts
|
|
5033
5227
|
var ContainerService = class {
|
|
@@ -8983,6 +9177,19 @@ var ResourceService = class {
|
|
|
8983
9177
|
}
|
|
8984
9178
|
});
|
|
8985
9179
|
}
|
|
9180
|
+
/**
|
|
9181
|
+
* Delete file if not used on another session
|
|
9182
|
+
*/
|
|
9183
|
+
static deleteFileIfNotUsed(options) {
|
|
9184
|
+
return (options.client ?? client).post({
|
|
9185
|
+
url: "/Resources/deleteFileIfNotUsed",
|
|
9186
|
+
...options,
|
|
9187
|
+
headers: {
|
|
9188
|
+
"Content-Type": "application/json",
|
|
9189
|
+
...options.headers
|
|
9190
|
+
}
|
|
9191
|
+
});
|
|
9192
|
+
}
|
|
8986
9193
|
static processingFile(options) {
|
|
8987
9194
|
return (options?.client ?? client).get({
|
|
8988
9195
|
url: "/Resources/processingFile",
|
|
@@ -9011,6 +9218,24 @@ var ResourceService = class {
|
|
|
9011
9218
|
}
|
|
9012
9219
|
});
|
|
9013
9220
|
}
|
|
9221
|
+
/**
|
|
9222
|
+
* Get file as base64-encoded buffer in JSON response
|
|
9223
|
+
*/
|
|
9224
|
+
static getFileAsBuffer(options) {
|
|
9225
|
+
return (options.client ?? client).get({
|
|
9226
|
+
url: "/Resources/buffer/{id}",
|
|
9227
|
+
...options
|
|
9228
|
+
});
|
|
9229
|
+
}
|
|
9230
|
+
/**
|
|
9231
|
+
* Count with deleted instances of the model matched by where from the data source.
|
|
9232
|
+
*/
|
|
9233
|
+
static countWithDeleted(options) {
|
|
9234
|
+
return (options?.client ?? client).get({
|
|
9235
|
+
url: "/Resources/countWithDeleted",
|
|
9236
|
+
...options
|
|
9237
|
+
});
|
|
9238
|
+
}
|
|
9014
9239
|
};
|
|
9015
9240
|
var WorkflowService = class {
|
|
9016
9241
|
/**
|
|
@@ -10009,6 +10234,16 @@ var WorkflowService = class {
|
|
|
10009
10234
|
}
|
|
10010
10235
|
});
|
|
10011
10236
|
}
|
|
10237
|
+
static prototypeImportFromZip(options) {
|
|
10238
|
+
return (options.client ?? client).post({
|
|
10239
|
+
url: "/Workflows/{id}/importFromZip",
|
|
10240
|
+
...options,
|
|
10241
|
+
headers: {
|
|
10242
|
+
"Content-Type": "application/json",
|
|
10243
|
+
...options.headers
|
|
10244
|
+
}
|
|
10245
|
+
});
|
|
10246
|
+
}
|
|
10012
10247
|
/**
|
|
10013
10248
|
* Fork a workflow
|
|
10014
10249
|
*/
|
|
@@ -11647,6 +11882,19 @@ var ToolService = class {
|
|
|
11647
11882
|
...options
|
|
11648
11883
|
});
|
|
11649
11884
|
}
|
|
11885
|
+
/**
|
|
11886
|
+
* Import tools and serials from CSV-like data with validation
|
|
11887
|
+
*/
|
|
11888
|
+
static importTools(options) {
|
|
11889
|
+
return (options.client ?? client).post({
|
|
11890
|
+
url: "/Tools/import",
|
|
11891
|
+
...options,
|
|
11892
|
+
headers: {
|
|
11893
|
+
"Content-Type": "application/json",
|
|
11894
|
+
...options.headers
|
|
11895
|
+
}
|
|
11896
|
+
});
|
|
11897
|
+
}
|
|
11650
11898
|
static exportTranslations(options) {
|
|
11651
11899
|
return (options.client ?? client).get({
|
|
11652
11900
|
url: "/Tools/exportTranslations",
|
|
@@ -12033,6 +12281,15 @@ var WorkorderService = class {
|
|
|
12033
12281
|
...options
|
|
12034
12282
|
});
|
|
12035
12283
|
}
|
|
12284
|
+
/**
|
|
12285
|
+
* Get status change history for a workorder
|
|
12286
|
+
*/
|
|
12287
|
+
static getStatusHistory(options) {
|
|
12288
|
+
return (options.client ?? client).get({
|
|
12289
|
+
url: "/Workorders/getStatusHistory",
|
|
12290
|
+
...options
|
|
12291
|
+
});
|
|
12292
|
+
}
|
|
12036
12293
|
/**
|
|
12037
12294
|
* Work on a specific stock
|
|
12038
12295
|
*/
|
|
@@ -15245,6 +15502,16 @@ var FormDataService = class {
|
|
|
15245
15502
|
}
|
|
15246
15503
|
});
|
|
15247
15504
|
}
|
|
15505
|
+
static updateFormData(options) {
|
|
15506
|
+
return (options.client ?? client).patch({
|
|
15507
|
+
url: "/FormData/updateFormData/{formDataId}",
|
|
15508
|
+
...options,
|
|
15509
|
+
headers: {
|
|
15510
|
+
"Content-Type": "application/json",
|
|
15511
|
+
...options.headers
|
|
15512
|
+
}
|
|
15513
|
+
});
|
|
15514
|
+
}
|
|
15248
15515
|
};
|
|
15249
15516
|
var FolderService = class {
|
|
15250
15517
|
/**
|
|
@@ -17567,24 +17834,6 @@ var WorkorderStatusService = class {
|
|
|
17567
17834
|
}
|
|
17568
17835
|
});
|
|
17569
17836
|
}
|
|
17570
|
-
/**
|
|
17571
|
-
* get Current Status Fields
|
|
17572
|
-
*/
|
|
17573
|
-
static getFieldsByFieldIds(options) {
|
|
17574
|
-
return (options.client ?? client).get({
|
|
17575
|
-
url: "/WorkorderStatuses/getFieldsByFieldIds",
|
|
17576
|
-
...options
|
|
17577
|
-
});
|
|
17578
|
-
}
|
|
17579
|
-
/**
|
|
17580
|
-
* check user status change permission
|
|
17581
|
-
*/
|
|
17582
|
-
static checkPermission(options) {
|
|
17583
|
-
return (options.client ?? client).get({
|
|
17584
|
-
url: "/WorkorderStatuses/checkPermission",
|
|
17585
|
-
...options
|
|
17586
|
-
});
|
|
17587
|
-
}
|
|
17588
17837
|
/**
|
|
17589
17838
|
* Change workorder status
|
|
17590
17839
|
*/
|
|
@@ -17612,11 +17861,11 @@ var WorkorderStatusService = class {
|
|
|
17612
17861
|
});
|
|
17613
17862
|
}
|
|
17614
17863
|
/**
|
|
17615
|
-
*
|
|
17864
|
+
* delete Workorder Status
|
|
17616
17865
|
*/
|
|
17617
|
-
static
|
|
17866
|
+
static deleteWorkorderStatus(options) {
|
|
17618
17867
|
return (options.client ?? client).post({
|
|
17619
|
-
url: "/WorkorderStatuses/
|
|
17868
|
+
url: "/WorkorderStatuses/deleteWorkorderStatus",
|
|
17620
17869
|
...options,
|
|
17621
17870
|
headers: {
|
|
17622
17871
|
"Content-Type": "application/json",
|
|
@@ -17625,14 +17874,14 @@ var WorkorderStatusService = class {
|
|
|
17625
17874
|
});
|
|
17626
17875
|
}
|
|
17627
17876
|
};
|
|
17628
|
-
var
|
|
17877
|
+
var WorkorderStatusTransitionService = class {
|
|
17629
17878
|
/**
|
|
17630
17879
|
* Find all instances of the model matched by filter from the data source.
|
|
17631
17880
|
*/
|
|
17632
17881
|
static find(options) {
|
|
17633
17882
|
return (options?.client ?? client).get({
|
|
17634
|
-
responseTransformer:
|
|
17635
|
-
url: "/
|
|
17883
|
+
responseTransformer: workorderStatusTransitionFindResponseTransformer,
|
|
17884
|
+
url: "/WorkorderStatusTransitions",
|
|
17636
17885
|
...options
|
|
17637
17886
|
});
|
|
17638
17887
|
}
|
|
@@ -17641,8 +17890,8 @@ var TimeLogReportService = class {
|
|
|
17641
17890
|
*/
|
|
17642
17891
|
static create(options) {
|
|
17643
17892
|
return (options?.client ?? client).post({
|
|
17644
|
-
responseTransformer:
|
|
17645
|
-
url: "/
|
|
17893
|
+
responseTransformer: workorderStatusTransitionCreateResponseTransformer,
|
|
17894
|
+
url: "/WorkorderStatusTransitions",
|
|
17646
17895
|
...options,
|
|
17647
17896
|
headers: {
|
|
17648
17897
|
"Content-Type": "application/json",
|
|
@@ -17655,8 +17904,8 @@ var TimeLogReportService = class {
|
|
|
17655
17904
|
*/
|
|
17656
17905
|
static findOne(options) {
|
|
17657
17906
|
return (options?.client ?? client).get({
|
|
17658
|
-
responseTransformer:
|
|
17659
|
-
url: "/
|
|
17907
|
+
responseTransformer: workorderStatusTransitionFindOneResponseTransformer,
|
|
17908
|
+
url: "/WorkorderStatusTransitions/findOne",
|
|
17660
17909
|
...options
|
|
17661
17910
|
});
|
|
17662
17911
|
}
|
|
@@ -17665,25 +17914,17 @@ var TimeLogReportService = class {
|
|
|
17665
17914
|
*/
|
|
17666
17915
|
static deleteById(options) {
|
|
17667
17916
|
return (options.client ?? client).delete({
|
|
17668
|
-
url: "/
|
|
17669
|
-
...options
|
|
17670
|
-
});
|
|
17671
|
-
}
|
|
17672
|
-
/**
|
|
17673
|
-
* Count instances of the model matched by where from the data source.
|
|
17674
|
-
*/
|
|
17675
|
-
static count(options) {
|
|
17676
|
-
return (options?.client ?? client).get({
|
|
17677
|
-
url: "/TimeLogReports/count",
|
|
17917
|
+
url: "/WorkorderStatusTransitions/{id}",
|
|
17678
17918
|
...options
|
|
17679
17919
|
});
|
|
17680
17920
|
}
|
|
17681
17921
|
/**
|
|
17682
|
-
*
|
|
17922
|
+
* Patch attributes for a model instance and persist it into the data source.
|
|
17683
17923
|
*/
|
|
17684
|
-
static
|
|
17685
|
-
return (options.client ?? client).
|
|
17686
|
-
|
|
17924
|
+
static prototypePatchAttributes(options) {
|
|
17925
|
+
return (options.client ?? client).patch({
|
|
17926
|
+
responseTransformer: workorderStatusTransitionPrototypePatchAttributesResponseTransformer,
|
|
17927
|
+
url: "/WorkorderStatusTransitions/{id}",
|
|
17687
17928
|
...options,
|
|
17688
17929
|
headers: {
|
|
17689
17930
|
"Content-Type": "application/json",
|
|
@@ -17692,54 +17933,157 @@ var TimeLogReportService = class {
|
|
|
17692
17933
|
});
|
|
17693
17934
|
}
|
|
17694
17935
|
/**
|
|
17695
|
-
*
|
|
17936
|
+
* Count instances of the model matched by where from the data source.
|
|
17696
17937
|
*/
|
|
17697
|
-
static
|
|
17938
|
+
static count(options) {
|
|
17698
17939
|
return (options?.client ?? client).get({
|
|
17699
|
-
url: "/
|
|
17940
|
+
url: "/WorkorderStatusTransitions/count",
|
|
17700
17941
|
...options
|
|
17701
17942
|
});
|
|
17702
17943
|
}
|
|
17703
17944
|
/**
|
|
17704
|
-
*
|
|
17945
|
+
* get Fields by field ids
|
|
17705
17946
|
*/
|
|
17706
|
-
static
|
|
17707
|
-
return (options.client ?? client).
|
|
17708
|
-
url: "/
|
|
17709
|
-
...options
|
|
17710
|
-
headers: {
|
|
17711
|
-
"Content-Type": "application/json",
|
|
17712
|
-
...options.headers
|
|
17713
|
-
}
|
|
17947
|
+
static getFieldsByFieldIds(options) {
|
|
17948
|
+
return (options.client ?? client).get({
|
|
17949
|
+
url: "/WorkorderStatusTransitions/getFieldsByFieldIds",
|
|
17950
|
+
...options
|
|
17714
17951
|
});
|
|
17715
17952
|
}
|
|
17716
17953
|
/**
|
|
17717
|
-
*
|
|
17954
|
+
* get Transition by id
|
|
17718
17955
|
*/
|
|
17719
|
-
static
|
|
17720
|
-
return (options.client ?? client).
|
|
17721
|
-
url: "/
|
|
17722
|
-
...options
|
|
17723
|
-
headers: {
|
|
17724
|
-
"Content-Type": "application/json",
|
|
17725
|
-
...options.headers
|
|
17726
|
-
}
|
|
17956
|
+
static getTransitionWithFields(options) {
|
|
17957
|
+
return (options.client ?? client).get({
|
|
17958
|
+
url: "/WorkorderStatusTransitions/getTransitionWithFields",
|
|
17959
|
+
...options
|
|
17727
17960
|
});
|
|
17728
17961
|
}
|
|
17729
17962
|
/**
|
|
17730
|
-
*
|
|
17963
|
+
* get Transition by source and target status
|
|
17731
17964
|
*/
|
|
17732
|
-
static
|
|
17733
|
-
return (options
|
|
17734
|
-
url: "/
|
|
17965
|
+
static getTransitionBySourceAndTargetStatus(options) {
|
|
17966
|
+
return (options.client ?? client).get({
|
|
17967
|
+
url: "/WorkorderStatusTransitions/getTransitionBySourceAndTargetStatus",
|
|
17735
17968
|
...options
|
|
17736
17969
|
});
|
|
17737
17970
|
}
|
|
17738
|
-
|
|
17739
|
-
|
|
17740
|
-
|
|
17741
|
-
|
|
17742
|
-
|
|
17971
|
+
};
|
|
17972
|
+
var TimeLogReportService = class {
|
|
17973
|
+
/**
|
|
17974
|
+
* Find all instances of the model matched by filter from the data source.
|
|
17975
|
+
*/
|
|
17976
|
+
static find(options) {
|
|
17977
|
+
return (options?.client ?? client).get({
|
|
17978
|
+
responseTransformer: timeLogReportFindResponseTransformer,
|
|
17979
|
+
url: "/TimeLogReports",
|
|
17980
|
+
...options
|
|
17981
|
+
});
|
|
17982
|
+
}
|
|
17983
|
+
/**
|
|
17984
|
+
* Create a new instance of the model and persist it into the data source.
|
|
17985
|
+
*/
|
|
17986
|
+
static create(options) {
|
|
17987
|
+
return (options?.client ?? client).post({
|
|
17988
|
+
responseTransformer: timeLogReportCreateResponseTransformer,
|
|
17989
|
+
url: "/TimeLogReports",
|
|
17990
|
+
...options,
|
|
17991
|
+
headers: {
|
|
17992
|
+
"Content-Type": "application/json",
|
|
17993
|
+
...options?.headers
|
|
17994
|
+
}
|
|
17995
|
+
});
|
|
17996
|
+
}
|
|
17997
|
+
/**
|
|
17998
|
+
* Find first instance of the model matched by filter from the data source.
|
|
17999
|
+
*/
|
|
18000
|
+
static findOne(options) {
|
|
18001
|
+
return (options?.client ?? client).get({
|
|
18002
|
+
responseTransformer: timeLogReportFindOneResponseTransformer,
|
|
18003
|
+
url: "/TimeLogReports/findOne",
|
|
18004
|
+
...options
|
|
18005
|
+
});
|
|
18006
|
+
}
|
|
18007
|
+
/**
|
|
18008
|
+
* Delete a model instance by {{id}} from the data source.
|
|
18009
|
+
*/
|
|
18010
|
+
static deleteById(options) {
|
|
18011
|
+
return (options.client ?? client).delete({
|
|
18012
|
+
url: "/TimeLogReports/{id}",
|
|
18013
|
+
...options
|
|
18014
|
+
});
|
|
18015
|
+
}
|
|
18016
|
+
/**
|
|
18017
|
+
* Count instances of the model matched by where from the data source.
|
|
18018
|
+
*/
|
|
18019
|
+
static count(options) {
|
|
18020
|
+
return (options?.client ?? client).get({
|
|
18021
|
+
url: "/TimeLogReports/count",
|
|
18022
|
+
...options
|
|
18023
|
+
});
|
|
18024
|
+
}
|
|
18025
|
+
/**
|
|
18026
|
+
* add time log
|
|
18027
|
+
*/
|
|
18028
|
+
static addTimeRecord(options) {
|
|
18029
|
+
return (options.client ?? client).post({
|
|
18030
|
+
url: "/TimeLogReports/addTimeRecord",
|
|
18031
|
+
...options,
|
|
18032
|
+
headers: {
|
|
18033
|
+
"Content-Type": "application/json",
|
|
18034
|
+
...options.headers
|
|
18035
|
+
}
|
|
18036
|
+
});
|
|
18037
|
+
}
|
|
18038
|
+
/**
|
|
18039
|
+
* check if user have open timer
|
|
18040
|
+
*/
|
|
18041
|
+
static checkForUserOpenTimer(options) {
|
|
18042
|
+
return (options?.client ?? client).get({
|
|
18043
|
+
url: "/TimeLogReports/checkForUserOpenTimer",
|
|
18044
|
+
...options
|
|
18045
|
+
});
|
|
18046
|
+
}
|
|
18047
|
+
/**
|
|
18048
|
+
* add time log
|
|
18049
|
+
*/
|
|
18050
|
+
static updateTimeRecord(options) {
|
|
18051
|
+
return (options.client ?? client).post({
|
|
18052
|
+
url: "/TimeLogReports/updateTimeRecord",
|
|
18053
|
+
...options,
|
|
18054
|
+
headers: {
|
|
18055
|
+
"Content-Type": "application/json",
|
|
18056
|
+
...options.headers
|
|
18057
|
+
}
|
|
18058
|
+
});
|
|
18059
|
+
}
|
|
18060
|
+
/**
|
|
18061
|
+
* approve time log
|
|
18062
|
+
*/
|
|
18063
|
+
static approveTimeRecord(options) {
|
|
18064
|
+
return (options.client ?? client).post({
|
|
18065
|
+
url: "/TimeLogReports/approveTimeRecord",
|
|
18066
|
+
...options,
|
|
18067
|
+
headers: {
|
|
18068
|
+
"Content-Type": "application/json",
|
|
18069
|
+
...options.headers
|
|
18070
|
+
}
|
|
18071
|
+
});
|
|
18072
|
+
}
|
|
18073
|
+
/**
|
|
18074
|
+
* set Close TimeLogsDialog Time For User
|
|
18075
|
+
*/
|
|
18076
|
+
static setCloseTimeLogsDialogTimeForUser(options) {
|
|
18077
|
+
return (options?.client ?? client).post({
|
|
18078
|
+
url: "/TimeLogReports/setCloseTimeLogsDialogTimeForUser",
|
|
18079
|
+
...options
|
|
18080
|
+
});
|
|
18081
|
+
}
|
|
18082
|
+
static exportTimeLogReportData(options) {
|
|
18083
|
+
return (options?.client ?? client).get({
|
|
18084
|
+
url: "/TimeLogReports/exportTimeLogReportData",
|
|
18085
|
+
...options
|
|
18086
|
+
});
|
|
17743
18087
|
}
|
|
17744
18088
|
};
|
|
17745
18089
|
var PriorityService = class {
|
|
@@ -20719,6 +21063,589 @@ var IntegrationBuilderService = class {
|
|
|
20719
21063
|
});
|
|
20720
21064
|
}
|
|
20721
21065
|
};
|
|
21066
|
+
var SqlServerService = class {
|
|
21067
|
+
/**
|
|
21068
|
+
* Fetches belongsTo relation user.
|
|
21069
|
+
*/
|
|
21070
|
+
static prototypeGetUser(options) {
|
|
21071
|
+
return (options.client ?? client).get({
|
|
21072
|
+
responseTransformer: sqlServerPrototypeGetUserResponseTransformer,
|
|
21073
|
+
url: "/SqlServers/{id}/user",
|
|
21074
|
+
...options
|
|
21075
|
+
});
|
|
21076
|
+
}
|
|
21077
|
+
/**
|
|
21078
|
+
* Find all instances of the model matched by filter from the data source.
|
|
21079
|
+
*/
|
|
21080
|
+
static find(options) {
|
|
21081
|
+
return (options?.client ?? client).get({
|
|
21082
|
+
responseTransformer: sqlServerFindResponseTransformer,
|
|
21083
|
+
url: "/SqlServers",
|
|
21084
|
+
...options
|
|
21085
|
+
});
|
|
21086
|
+
}
|
|
21087
|
+
/**
|
|
21088
|
+
* Patch an existing model instance or insert a new one into the data source.
|
|
21089
|
+
*/
|
|
21090
|
+
static patchOrCreate(options) {
|
|
21091
|
+
return (options?.client ?? client).patch({
|
|
21092
|
+
responseTransformer: sqlServerPatchOrCreateResponseTransformer,
|
|
21093
|
+
url: "/SqlServers",
|
|
21094
|
+
...options,
|
|
21095
|
+
headers: {
|
|
21096
|
+
"Content-Type": "application/json",
|
|
21097
|
+
...options?.headers
|
|
21098
|
+
}
|
|
21099
|
+
});
|
|
21100
|
+
}
|
|
21101
|
+
/**
|
|
21102
|
+
* Create a new instance of the model and persist it into the data source.
|
|
21103
|
+
*/
|
|
21104
|
+
static create(options) {
|
|
21105
|
+
return (options?.client ?? client).post({
|
|
21106
|
+
responseTransformer: sqlServerCreateResponseTransformer,
|
|
21107
|
+
url: "/SqlServers",
|
|
21108
|
+
...options,
|
|
21109
|
+
headers: {
|
|
21110
|
+
"Content-Type": "application/json",
|
|
21111
|
+
...options?.headers
|
|
21112
|
+
}
|
|
21113
|
+
});
|
|
21114
|
+
}
|
|
21115
|
+
/**
|
|
21116
|
+
* Replace an existing model instance or insert a new one into the data source.
|
|
21117
|
+
*/
|
|
21118
|
+
static replaceOrCreatePutSqlServers(options) {
|
|
21119
|
+
return (options?.client ?? client).put({
|
|
21120
|
+
responseTransformer: sqlServerReplaceOrCreatePutSqlServersResponseTransformer,
|
|
21121
|
+
url: "/SqlServers",
|
|
21122
|
+
...options,
|
|
21123
|
+
headers: {
|
|
21124
|
+
"Content-Type": "application/json",
|
|
21125
|
+
...options?.headers
|
|
21126
|
+
}
|
|
21127
|
+
});
|
|
21128
|
+
}
|
|
21129
|
+
/**
|
|
21130
|
+
* Replace an existing model instance or insert a new one into the data source.
|
|
21131
|
+
*/
|
|
21132
|
+
static replaceOrCreatePostSqlServersReplaceOrCreate(options) {
|
|
21133
|
+
return (options?.client ?? client).post({
|
|
21134
|
+
responseTransformer: sqlServerReplaceOrCreatePostSqlServersReplaceOrCreateResponseTransformer,
|
|
21135
|
+
url: "/SqlServers/replaceOrCreate",
|
|
21136
|
+
...options,
|
|
21137
|
+
headers: {
|
|
21138
|
+
"Content-Type": "application/json",
|
|
21139
|
+
...options?.headers
|
|
21140
|
+
}
|
|
21141
|
+
});
|
|
21142
|
+
}
|
|
21143
|
+
/**
|
|
21144
|
+
* Update an existing model instance or insert a new one into the data source based on the where criteria.
|
|
21145
|
+
*/
|
|
21146
|
+
static upsertWithWhere(options) {
|
|
21147
|
+
return (options?.client ?? client).post({
|
|
21148
|
+
responseTransformer: sqlServerUpsertWithWhereResponseTransformer,
|
|
21149
|
+
url: "/SqlServers/upsertWithWhere",
|
|
21150
|
+
...options,
|
|
21151
|
+
headers: {
|
|
21152
|
+
"Content-Type": "application/json",
|
|
21153
|
+
...options?.headers
|
|
21154
|
+
}
|
|
21155
|
+
});
|
|
21156
|
+
}
|
|
21157
|
+
/**
|
|
21158
|
+
* Check whether a model instance exists in the data source.
|
|
21159
|
+
*/
|
|
21160
|
+
static existsGetSqlServersIdExists(options) {
|
|
21161
|
+
return (options.client ?? client).get({
|
|
21162
|
+
url: "/SqlServers/{id}/exists",
|
|
21163
|
+
...options
|
|
21164
|
+
});
|
|
21165
|
+
}
|
|
21166
|
+
/**
|
|
21167
|
+
* Delete a model instance by {{id}} from the data source.
|
|
21168
|
+
*/
|
|
21169
|
+
static deleteById(options) {
|
|
21170
|
+
return (options.client ?? client).delete({
|
|
21171
|
+
url: "/SqlServers/{id}",
|
|
21172
|
+
...options
|
|
21173
|
+
});
|
|
21174
|
+
}
|
|
21175
|
+
/**
|
|
21176
|
+
* Find a model instance by {{id}} from the data source.
|
|
21177
|
+
*/
|
|
21178
|
+
static findById(options) {
|
|
21179
|
+
return (options.client ?? client).get({
|
|
21180
|
+
responseTransformer: sqlServerFindByIdResponseTransformer,
|
|
21181
|
+
url: "/SqlServers/{id}",
|
|
21182
|
+
...options
|
|
21183
|
+
});
|
|
21184
|
+
}
|
|
21185
|
+
/**
|
|
21186
|
+
* Check whether a model instance exists in the data source.
|
|
21187
|
+
*/
|
|
21188
|
+
static existsHeadSqlServersId(options) {
|
|
21189
|
+
return (options.client ?? client).head({
|
|
21190
|
+
url: "/SqlServers/{id}",
|
|
21191
|
+
...options
|
|
21192
|
+
});
|
|
21193
|
+
}
|
|
21194
|
+
/**
|
|
21195
|
+
* Patch attributes for a model instance and persist it into the data source.
|
|
21196
|
+
*/
|
|
21197
|
+
static prototypePatchAttributes(options) {
|
|
21198
|
+
return (options.client ?? client).patch({
|
|
21199
|
+
responseTransformer: sqlServerPrototypePatchAttributesResponseTransformer,
|
|
21200
|
+
url: "/SqlServers/{id}",
|
|
21201
|
+
...options,
|
|
21202
|
+
headers: {
|
|
21203
|
+
"Content-Type": "application/json",
|
|
21204
|
+
...options.headers
|
|
21205
|
+
}
|
|
21206
|
+
});
|
|
21207
|
+
}
|
|
21208
|
+
/**
|
|
21209
|
+
* Replace attributes for a model instance and persist it into the data source.
|
|
21210
|
+
*/
|
|
21211
|
+
static replaceByIdPutSqlServersId(options) {
|
|
21212
|
+
return (options.client ?? client).put({
|
|
21213
|
+
responseTransformer: sqlServerReplaceByIdPutSqlServersIdResponseTransformer,
|
|
21214
|
+
url: "/SqlServers/{id}",
|
|
21215
|
+
...options,
|
|
21216
|
+
headers: {
|
|
21217
|
+
"Content-Type": "application/json",
|
|
21218
|
+
...options.headers
|
|
21219
|
+
}
|
|
21220
|
+
});
|
|
21221
|
+
}
|
|
21222
|
+
/**
|
|
21223
|
+
* Replace attributes for a model instance and persist it into the data source.
|
|
21224
|
+
*/
|
|
21225
|
+
static replaceByIdPostSqlServersIdReplace(options) {
|
|
21226
|
+
return (options.client ?? client).post({
|
|
21227
|
+
responseTransformer: sqlServerReplaceByIdPostSqlServersIdReplaceResponseTransformer,
|
|
21228
|
+
url: "/SqlServers/{id}/replace",
|
|
21229
|
+
...options,
|
|
21230
|
+
headers: {
|
|
21231
|
+
"Content-Type": "application/json",
|
|
21232
|
+
...options.headers
|
|
21233
|
+
}
|
|
21234
|
+
});
|
|
21235
|
+
}
|
|
21236
|
+
/**
|
|
21237
|
+
* Find first instance of the model matched by filter from the data source.
|
|
21238
|
+
*/
|
|
21239
|
+
static findOne(options) {
|
|
21240
|
+
return (options?.client ?? client).get({
|
|
21241
|
+
responseTransformer: sqlServerFindOneResponseTransformer,
|
|
21242
|
+
url: "/SqlServers/findOne",
|
|
21243
|
+
...options
|
|
21244
|
+
});
|
|
21245
|
+
}
|
|
21246
|
+
/**
|
|
21247
|
+
* Update instances of the model matched by {{where}} from the data source.
|
|
21248
|
+
*/
|
|
21249
|
+
static updateAll(options) {
|
|
21250
|
+
return (options?.client ?? client).post({
|
|
21251
|
+
url: "/SqlServers/update",
|
|
21252
|
+
...options,
|
|
21253
|
+
headers: {
|
|
21254
|
+
"Content-Type": "application/json",
|
|
21255
|
+
...options?.headers
|
|
21256
|
+
}
|
|
21257
|
+
});
|
|
21258
|
+
}
|
|
21259
|
+
/**
|
|
21260
|
+
* Count instances of the model matched by where from the data source.
|
|
21261
|
+
*/
|
|
21262
|
+
static count(options) {
|
|
21263
|
+
return (options?.client ?? client).get({
|
|
21264
|
+
url: "/SqlServers/count",
|
|
21265
|
+
...options
|
|
21266
|
+
});
|
|
21267
|
+
}
|
|
21268
|
+
/**
|
|
21269
|
+
* Add a parameter to SQL server
|
|
21270
|
+
*/
|
|
21271
|
+
static addParameter(options) {
|
|
21272
|
+
return (options.client ?? client).post({
|
|
21273
|
+
url: "/SqlServers/addParameter",
|
|
21274
|
+
...options,
|
|
21275
|
+
headers: {
|
|
21276
|
+
"Content-Type": "application/json",
|
|
21277
|
+
...options.headers
|
|
21278
|
+
}
|
|
21279
|
+
});
|
|
21280
|
+
}
|
|
21281
|
+
/**
|
|
21282
|
+
* Update a parameter in SQL server
|
|
21283
|
+
*/
|
|
21284
|
+
static updateParameter(options) {
|
|
21285
|
+
return (options.client ?? client).put({
|
|
21286
|
+
url: "/SqlServers/updateParameter",
|
|
21287
|
+
...options,
|
|
21288
|
+
headers: {
|
|
21289
|
+
"Content-Type": "application/json",
|
|
21290
|
+
...options.headers
|
|
21291
|
+
}
|
|
21292
|
+
});
|
|
21293
|
+
}
|
|
21294
|
+
/**
|
|
21295
|
+
* Delete a parameter from SQL server
|
|
21296
|
+
*/
|
|
21297
|
+
static deleteParameter(options) {
|
|
21298
|
+
return (options.client ?? client).delete({
|
|
21299
|
+
url: "/SqlServers/deleteParameter",
|
|
21300
|
+
...options,
|
|
21301
|
+
headers: {
|
|
21302
|
+
"Content-Type": "application/json",
|
|
21303
|
+
...options.headers
|
|
21304
|
+
}
|
|
21305
|
+
});
|
|
21306
|
+
}
|
|
21307
|
+
/**
|
|
21308
|
+
* Test connection to SQL server
|
|
21309
|
+
*/
|
|
21310
|
+
static testConnection(options) {
|
|
21311
|
+
return (options.client ?? client).post({
|
|
21312
|
+
url: "/SqlServers/testConnection",
|
|
21313
|
+
...options,
|
|
21314
|
+
headers: {
|
|
21315
|
+
"Content-Type": "application/json",
|
|
21316
|
+
...options.headers
|
|
21317
|
+
}
|
|
21318
|
+
});
|
|
21319
|
+
}
|
|
21320
|
+
/**
|
|
21321
|
+
* Test parameter query on SQL server
|
|
21322
|
+
*/
|
|
21323
|
+
static testQuery(options) {
|
|
21324
|
+
return (options.client ?? client).post({
|
|
21325
|
+
url: "/SqlServers/testQuery",
|
|
21326
|
+
...options,
|
|
21327
|
+
headers: {
|
|
21328
|
+
"Content-Type": "application/json",
|
|
21329
|
+
...options.headers
|
|
21330
|
+
}
|
|
21331
|
+
});
|
|
21332
|
+
}
|
|
21333
|
+
/**
|
|
21334
|
+
* Read parameter value from SQL server
|
|
21335
|
+
*/
|
|
21336
|
+
static read(options) {
|
|
21337
|
+
return (options.client ?? client).post({
|
|
21338
|
+
url: "/SqlServers/read",
|
|
21339
|
+
...options,
|
|
21340
|
+
headers: {
|
|
21341
|
+
"Content-Type": "application/json",
|
|
21342
|
+
...options.headers
|
|
21343
|
+
}
|
|
21344
|
+
});
|
|
21345
|
+
}
|
|
21346
|
+
/**
|
|
21347
|
+
* Count with deleted instances of the model matched by where from the data source.
|
|
21348
|
+
*/
|
|
21349
|
+
static countWithDeleted(options) {
|
|
21350
|
+
return (options?.client ?? client).get({
|
|
21351
|
+
url: "/SqlServers/countWithDeleted",
|
|
21352
|
+
...options
|
|
21353
|
+
});
|
|
21354
|
+
}
|
|
21355
|
+
};
|
|
21356
|
+
var ChatThreadService = class {
|
|
21357
|
+
/**
|
|
21358
|
+
* Fetches belongsTo relation user.
|
|
21359
|
+
*/
|
|
21360
|
+
static prototypeGetUser(options) {
|
|
21361
|
+
return (options.client ?? client).get({
|
|
21362
|
+
responseTransformer: chatThreadPrototypeGetUserResponseTransformer,
|
|
21363
|
+
url: "/ChatThreads/{id}/user",
|
|
21364
|
+
...options
|
|
21365
|
+
});
|
|
21366
|
+
}
|
|
21367
|
+
/**
|
|
21368
|
+
* Find all instances of the model matched by filter from the data source.
|
|
21369
|
+
*/
|
|
21370
|
+
static find(options) {
|
|
21371
|
+
return (options?.client ?? client).get({
|
|
21372
|
+
responseTransformer: chatThreadFindResponseTransformer,
|
|
21373
|
+
url: "/ChatThreads",
|
|
21374
|
+
...options
|
|
21375
|
+
});
|
|
21376
|
+
}
|
|
21377
|
+
/**
|
|
21378
|
+
* Patch an existing model instance or insert a new one into the data source.
|
|
21379
|
+
*/
|
|
21380
|
+
static patchOrCreate(options) {
|
|
21381
|
+
return (options?.client ?? client).patch({
|
|
21382
|
+
responseTransformer: chatThreadPatchOrCreateResponseTransformer,
|
|
21383
|
+
url: "/ChatThreads",
|
|
21384
|
+
...options,
|
|
21385
|
+
headers: {
|
|
21386
|
+
"Content-Type": "application/json",
|
|
21387
|
+
...options?.headers
|
|
21388
|
+
}
|
|
21389
|
+
});
|
|
21390
|
+
}
|
|
21391
|
+
/**
|
|
21392
|
+
* Create a new instance of the model and persist it into the data source.
|
|
21393
|
+
*/
|
|
21394
|
+
static create(options) {
|
|
21395
|
+
return (options?.client ?? client).post({
|
|
21396
|
+
responseTransformer: chatThreadCreateResponseTransformer,
|
|
21397
|
+
url: "/ChatThreads",
|
|
21398
|
+
...options,
|
|
21399
|
+
headers: {
|
|
21400
|
+
"Content-Type": "application/json",
|
|
21401
|
+
...options?.headers
|
|
21402
|
+
}
|
|
21403
|
+
});
|
|
21404
|
+
}
|
|
21405
|
+
/**
|
|
21406
|
+
* Replace an existing model instance or insert a new one into the data source.
|
|
21407
|
+
*/
|
|
21408
|
+
static replaceOrCreatePutChatThreads(options) {
|
|
21409
|
+
return (options?.client ?? client).put({
|
|
21410
|
+
responseTransformer: chatThreadReplaceOrCreatePutChatThreadsResponseTransformer,
|
|
21411
|
+
url: "/ChatThreads",
|
|
21412
|
+
...options,
|
|
21413
|
+
headers: {
|
|
21414
|
+
"Content-Type": "application/json",
|
|
21415
|
+
...options?.headers
|
|
21416
|
+
}
|
|
21417
|
+
});
|
|
21418
|
+
}
|
|
21419
|
+
/**
|
|
21420
|
+
* Replace an existing model instance or insert a new one into the data source.
|
|
21421
|
+
*/
|
|
21422
|
+
static replaceOrCreatePostChatThreadsReplaceOrCreate(options) {
|
|
21423
|
+
return (options?.client ?? client).post({
|
|
21424
|
+
responseTransformer: chatThreadReplaceOrCreatePostChatThreadsReplaceOrCreateResponseTransformer,
|
|
21425
|
+
url: "/ChatThreads/replaceOrCreate",
|
|
21426
|
+
...options,
|
|
21427
|
+
headers: {
|
|
21428
|
+
"Content-Type": "application/json",
|
|
21429
|
+
...options?.headers
|
|
21430
|
+
}
|
|
21431
|
+
});
|
|
21432
|
+
}
|
|
21433
|
+
/**
|
|
21434
|
+
* Update an existing model instance or insert a new one into the data source based on the where criteria.
|
|
21435
|
+
*/
|
|
21436
|
+
static upsertWithWhere(options) {
|
|
21437
|
+
return (options?.client ?? client).post({
|
|
21438
|
+
responseTransformer: chatThreadUpsertWithWhereResponseTransformer,
|
|
21439
|
+
url: "/ChatThreads/upsertWithWhere",
|
|
21440
|
+
...options,
|
|
21441
|
+
headers: {
|
|
21442
|
+
"Content-Type": "application/json",
|
|
21443
|
+
...options?.headers
|
|
21444
|
+
}
|
|
21445
|
+
});
|
|
21446
|
+
}
|
|
21447
|
+
/**
|
|
21448
|
+
* Check whether a model instance exists in the data source.
|
|
21449
|
+
*/
|
|
21450
|
+
static existsGetChatThreadsIdExists(options) {
|
|
21451
|
+
return (options.client ?? client).get({
|
|
21452
|
+
url: "/ChatThreads/{id}/exists",
|
|
21453
|
+
...options
|
|
21454
|
+
});
|
|
21455
|
+
}
|
|
21456
|
+
/**
|
|
21457
|
+
* Delete a model instance by {{id}} from the data source.
|
|
21458
|
+
*/
|
|
21459
|
+
static deleteById(options) {
|
|
21460
|
+
return (options.client ?? client).delete({
|
|
21461
|
+
url: "/ChatThreads/{id}",
|
|
21462
|
+
...options
|
|
21463
|
+
});
|
|
21464
|
+
}
|
|
21465
|
+
/**
|
|
21466
|
+
* Find a model instance by {{id}} from the data source.
|
|
21467
|
+
*/
|
|
21468
|
+
static findById(options) {
|
|
21469
|
+
return (options.client ?? client).get({
|
|
21470
|
+
responseTransformer: chatThreadFindByIdResponseTransformer,
|
|
21471
|
+
url: "/ChatThreads/{id}",
|
|
21472
|
+
...options
|
|
21473
|
+
});
|
|
21474
|
+
}
|
|
21475
|
+
/**
|
|
21476
|
+
* Check whether a model instance exists in the data source.
|
|
21477
|
+
*/
|
|
21478
|
+
static existsHeadChatThreadsId(options) {
|
|
21479
|
+
return (options.client ?? client).head({
|
|
21480
|
+
url: "/ChatThreads/{id}",
|
|
21481
|
+
...options
|
|
21482
|
+
});
|
|
21483
|
+
}
|
|
21484
|
+
/**
|
|
21485
|
+
* Patch attributes for a model instance and persist it into the data source.
|
|
21486
|
+
*/
|
|
21487
|
+
static prototypePatchAttributes(options) {
|
|
21488
|
+
return (options.client ?? client).patch({
|
|
21489
|
+
responseTransformer: chatThreadPrototypePatchAttributesResponseTransformer,
|
|
21490
|
+
url: "/ChatThreads/{id}",
|
|
21491
|
+
...options,
|
|
21492
|
+
headers: {
|
|
21493
|
+
"Content-Type": "application/json",
|
|
21494
|
+
...options.headers
|
|
21495
|
+
}
|
|
21496
|
+
});
|
|
21497
|
+
}
|
|
21498
|
+
/**
|
|
21499
|
+
* Replace attributes for a model instance and persist it into the data source.
|
|
21500
|
+
*/
|
|
21501
|
+
static replaceByIdPutChatThreadsId(options) {
|
|
21502
|
+
return (options.client ?? client).put({
|
|
21503
|
+
responseTransformer: chatThreadReplaceByIdPutChatThreadsIdResponseTransformer,
|
|
21504
|
+
url: "/ChatThreads/{id}",
|
|
21505
|
+
...options,
|
|
21506
|
+
headers: {
|
|
21507
|
+
"Content-Type": "application/json",
|
|
21508
|
+
...options.headers
|
|
21509
|
+
}
|
|
21510
|
+
});
|
|
21511
|
+
}
|
|
21512
|
+
/**
|
|
21513
|
+
* Replace attributes for a model instance and persist it into the data source.
|
|
21514
|
+
*/
|
|
21515
|
+
static replaceByIdPostChatThreadsIdReplace(options) {
|
|
21516
|
+
return (options.client ?? client).post({
|
|
21517
|
+
responseTransformer: chatThreadReplaceByIdPostChatThreadsIdReplaceResponseTransformer,
|
|
21518
|
+
url: "/ChatThreads/{id}/replace",
|
|
21519
|
+
...options,
|
|
21520
|
+
headers: {
|
|
21521
|
+
"Content-Type": "application/json",
|
|
21522
|
+
...options.headers
|
|
21523
|
+
}
|
|
21524
|
+
});
|
|
21525
|
+
}
|
|
21526
|
+
/**
|
|
21527
|
+
* Find first instance of the model matched by filter from the data source.
|
|
21528
|
+
*/
|
|
21529
|
+
static findOne(options) {
|
|
21530
|
+
return (options?.client ?? client).get({
|
|
21531
|
+
responseTransformer: chatThreadFindOneResponseTransformer,
|
|
21532
|
+
url: "/ChatThreads/findOne",
|
|
21533
|
+
...options
|
|
21534
|
+
});
|
|
21535
|
+
}
|
|
21536
|
+
/**
|
|
21537
|
+
* Update instances of the model matched by {{where}} from the data source.
|
|
21538
|
+
*/
|
|
21539
|
+
static updateAll(options) {
|
|
21540
|
+
return (options?.client ?? client).post({
|
|
21541
|
+
url: "/ChatThreads/update",
|
|
21542
|
+
...options,
|
|
21543
|
+
headers: {
|
|
21544
|
+
"Content-Type": "application/json",
|
|
21545
|
+
...options?.headers
|
|
21546
|
+
}
|
|
21547
|
+
});
|
|
21548
|
+
}
|
|
21549
|
+
/**
|
|
21550
|
+
* Count instances of the model matched by where from the data source.
|
|
21551
|
+
*/
|
|
21552
|
+
static count(options) {
|
|
21553
|
+
return (options?.client ?? client).get({
|
|
21554
|
+
url: "/ChatThreads/count",
|
|
21555
|
+
...options
|
|
21556
|
+
});
|
|
21557
|
+
}
|
|
21558
|
+
static getThreads(options) {
|
|
21559
|
+
return (options?.client ?? client).get({
|
|
21560
|
+
url: "/ChatThreads/getThreads",
|
|
21561
|
+
...options
|
|
21562
|
+
});
|
|
21563
|
+
}
|
|
21564
|
+
static createThread(options) {
|
|
21565
|
+
return (options.client ?? client).post({
|
|
21566
|
+
url: "/ChatThreads/createThread",
|
|
21567
|
+
...options,
|
|
21568
|
+
headers: {
|
|
21569
|
+
"Content-Type": "application/json",
|
|
21570
|
+
...options.headers
|
|
21571
|
+
}
|
|
21572
|
+
});
|
|
21573
|
+
}
|
|
21574
|
+
static updateThread(options) {
|
|
21575
|
+
return (options.client ?? client).post({
|
|
21576
|
+
url: "/ChatThreads/updateThread",
|
|
21577
|
+
...options,
|
|
21578
|
+
headers: {
|
|
21579
|
+
"Content-Type": "application/json",
|
|
21580
|
+
...options.headers
|
|
21581
|
+
}
|
|
21582
|
+
});
|
|
21583
|
+
}
|
|
21584
|
+
static loadThread(options) {
|
|
21585
|
+
return (options.client ?? client).get({
|
|
21586
|
+
url: "/ChatThreads/loadThread",
|
|
21587
|
+
...options
|
|
21588
|
+
});
|
|
21589
|
+
}
|
|
21590
|
+
};
|
|
21591
|
+
var CommandPaletteHistoryService = class {
|
|
21592
|
+
/**
|
|
21593
|
+
* Find all instances of the model matched by filter from the data source.
|
|
21594
|
+
*/
|
|
21595
|
+
static find(options) {
|
|
21596
|
+
return (options?.client ?? client).get({
|
|
21597
|
+
responseTransformer: commandPaletteHistoryFindResponseTransformer,
|
|
21598
|
+
url: "/CommandPaletteHistories",
|
|
21599
|
+
...options
|
|
21600
|
+
});
|
|
21601
|
+
}
|
|
21602
|
+
/**
|
|
21603
|
+
* Create a new instance of the model and persist it into the data source.
|
|
21604
|
+
*/
|
|
21605
|
+
static create(options) {
|
|
21606
|
+
return (options?.client ?? client).post({
|
|
21607
|
+
responseTransformer: commandPaletteHistoryCreateResponseTransformer,
|
|
21608
|
+
url: "/CommandPaletteHistories",
|
|
21609
|
+
...options,
|
|
21610
|
+
headers: {
|
|
21611
|
+
"Content-Type": "application/json",
|
|
21612
|
+
...options?.headers
|
|
21613
|
+
}
|
|
21614
|
+
});
|
|
21615
|
+
}
|
|
21616
|
+
/**
|
|
21617
|
+
* Delete a model instance by {{id}} from the data source.
|
|
21618
|
+
*/
|
|
21619
|
+
static deleteById(options) {
|
|
21620
|
+
return (options.client ?? client).delete({
|
|
21621
|
+
url: "/CommandPaletteHistories/{id}",
|
|
21622
|
+
...options
|
|
21623
|
+
});
|
|
21624
|
+
}
|
|
21625
|
+
/**
|
|
21626
|
+
* Patch attributes for a model instance and persist it into the data source.
|
|
21627
|
+
*/
|
|
21628
|
+
static prototypePatchAttributes(options) {
|
|
21629
|
+
return (options.client ?? client).patch({
|
|
21630
|
+
responseTransformer: commandPaletteHistoryPrototypePatchAttributesResponseTransformer,
|
|
21631
|
+
url: "/CommandPaletteHistories/{id}",
|
|
21632
|
+
...options,
|
|
21633
|
+
headers: {
|
|
21634
|
+
"Content-Type": "application/json",
|
|
21635
|
+
...options.headers
|
|
21636
|
+
}
|
|
21637
|
+
});
|
|
21638
|
+
}
|
|
21639
|
+
/**
|
|
21640
|
+
* Count instances of the model matched by where from the data source.
|
|
21641
|
+
*/
|
|
21642
|
+
static count(options) {
|
|
21643
|
+
return (options?.client ?? client).get({
|
|
21644
|
+
url: "/CommandPaletteHistories/count",
|
|
21645
|
+
...options
|
|
21646
|
+
});
|
|
21647
|
+
}
|
|
21648
|
+
};
|
|
20722
21649
|
// Annotate the CommonJS export names for ESM import in node:
|
|
20723
21650
|
0 && (module.exports = {
|
|
20724
21651
|
AclService,
|
|
@@ -20735,6 +21662,8 @@ var IntegrationBuilderService = class {
|
|
|
20735
21662
|
CertificateMappingService,
|
|
20736
21663
|
CertificateService,
|
|
20737
21664
|
ChapterService,
|
|
21665
|
+
ChatThreadService,
|
|
21666
|
+
CommandPaletteHistoryService,
|
|
20738
21667
|
CommentService,
|
|
20739
21668
|
ConfigurationService,
|
|
20740
21669
|
ConnectionService,
|
|
@@ -20793,6 +21722,7 @@ var IntegrationBuilderService = class {
|
|
|
20793
21722
|
SettingService,
|
|
20794
21723
|
ShiftService,
|
|
20795
21724
|
ShiftTypeService,
|
|
21725
|
+
SqlServerService,
|
|
20796
21726
|
StationService,
|
|
20797
21727
|
StockService,
|
|
20798
21728
|
SyncClientsService,
|
|
@@ -20821,5 +21751,6 @@ var IntegrationBuilderService = class {
|
|
|
20821
21751
|
WorkflowTypeService,
|
|
20822
21752
|
WorkorderService,
|
|
20823
21753
|
WorkorderStatusService,
|
|
21754
|
+
WorkorderStatusTransitionService,
|
|
20824
21755
|
WorkorderTemplateService
|
|
20825
21756
|
});
|