@integrahub/vergefy-client 0.23.0 → 0.24.0

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.
Files changed (98) hide show
  1. package/README.md +2 -2
  2. package/dist/apis/APIAASAssociationApi.d.ts +2 -0
  3. package/dist/apis/APIAASAssociationApi.js +4 -2
  4. package/dist/apis/APIAGRGoodsReceiptApi.d.ts +1 -10
  5. package/dist/apis/APIAGRGoodsReceiptApi.js +1 -11
  6. package/dist/apis/APIARSGReorderSuggestionApi.d.ts +61 -0
  7. package/dist/apis/APIARSGReorderSuggestionApi.js +158 -0
  8. package/dist/apis/APIASPLSupplierPriceListApi.d.ts +137 -0
  9. package/dist/apis/APIASPLSupplierPriceListApi.js +394 -0
  10. package/dist/apis/APIASPOSupplierPurchaseOrderApi.d.ts +255 -0
  11. package/dist/apis/APIASPOSupplierPurchaseOrderApi.js +711 -0
  12. package/dist/apis/APIASPRSupplierPurchaseOrderApprovalRuleApi.d.ts +131 -0
  13. package/dist/apis/APIASPRSupplierPurchaseOrderApprovalRuleApi.js +369 -0
  14. package/dist/apis/APPPHRAWHRApprovalWorkflowApi.d.ts +1 -0
  15. package/dist/apis/APPPHRAWHRApprovalWorkflowApi.js +3 -0
  16. package/dist/apis/APPPMTMailTrustApi.d.ts +1 -2
  17. package/dist/apis/APPPMTMailTrustApi.js +0 -3
  18. package/dist/apis/index.d.ts +4 -0
  19. package/dist/apis/index.js +4 -0
  20. package/dist/esm/apis/APIAASAssociationApi.js +4 -2
  21. package/dist/esm/apis/APIAGRGoodsReceiptApi.js +0 -10
  22. package/dist/esm/apis/APIARSGReorderSuggestionApi.js +154 -0
  23. package/dist/esm/apis/APIASPLSupplierPriceListApi.js +390 -0
  24. package/dist/esm/apis/APIASPOSupplierPurchaseOrderApi.js +707 -0
  25. package/dist/esm/apis/APIASPRSupplierPurchaseOrderApprovalRuleApi.js +365 -0
  26. package/dist/esm/apis/APPPHRAWHRApprovalWorkflowApi.js +3 -0
  27. package/dist/esm/apis/APPPMTMailTrustApi.js +0 -3
  28. package/dist/esm/apis/index.js +4 -0
  29. package/dist/esm/ext/telemetry.js +1 -1
  30. package/dist/esm/models/AssociationDTO.js +4 -2
  31. package/dist/esm/models/DataResponseDTOListReorderSuggestionDTO.js +42 -0
  32. package/dist/esm/models/DataResponseDTOListSupplierPurchaseOrderDTO.js +42 -0
  33. package/dist/esm/models/DataResponseDTOSupplierPriceDTO.js +42 -0
  34. package/dist/esm/models/DataResponseDTOSupplierPriceListDTO.js +42 -0
  35. package/dist/esm/models/DataResponseDTOSupplierPurchaseOrderApprovalRuleDTO.js +42 -0
  36. package/dist/esm/models/DataResponseDTOSupplierPurchaseOrderDTO.js +42 -0
  37. package/dist/esm/models/GoodsReceiptLineDTO.js +2 -0
  38. package/dist/esm/models/PageSupplierPriceListDTO.js +64 -0
  39. package/dist/esm/models/PageSupplierPurchaseOrderApprovalRuleDTO.js +64 -0
  40. package/dist/esm/models/PageSupplierPurchaseOrderDTO.js +64 -0
  41. package/dist/esm/models/ReorderSuggestionDTO.js +63 -0
  42. package/dist/esm/models/ReorderSuggestionDraftDTO.js +44 -0
  43. package/dist/esm/models/ReorderSuggestionSelectionDTO.js +43 -0
  44. package/dist/esm/models/SupplierPriceDTO.js +61 -0
  45. package/dist/esm/models/SupplierPriceListDTO.js +97 -0
  46. package/dist/esm/models/SupplierPriceListLineDTO.js +88 -0
  47. package/dist/esm/models/SupplierPurchaseOrderApprovalRuleDTO.js +86 -0
  48. package/dist/esm/models/SupplierPurchaseOrderDTO.js +142 -0
  49. package/dist/esm/models/SupplierPurchaseOrderLineDTO.js +98 -0
  50. package/dist/esm/models/SupplierPurchaseOrderRejectionDTO.js +43 -0
  51. package/dist/esm/models/index.js +19 -0
  52. package/dist/ext/telemetry.d.ts +1 -1
  53. package/dist/ext/telemetry.js +1 -1
  54. package/dist/models/AssociationDTO.d.ts +2 -0
  55. package/dist/models/AssociationDTO.js +4 -2
  56. package/dist/models/DataResponseDTOListReorderSuggestionDTO.d.ts +33 -0
  57. package/dist/models/DataResponseDTOListReorderSuggestionDTO.js +49 -0
  58. package/dist/models/DataResponseDTOListSupplierPurchaseOrderDTO.d.ts +33 -0
  59. package/dist/models/DataResponseDTOListSupplierPurchaseOrderDTO.js +49 -0
  60. package/dist/models/DataResponseDTOSupplierPriceDTO.d.ts +33 -0
  61. package/dist/models/DataResponseDTOSupplierPriceDTO.js +49 -0
  62. package/dist/models/DataResponseDTOSupplierPriceListDTO.d.ts +33 -0
  63. package/dist/models/DataResponseDTOSupplierPriceListDTO.js +49 -0
  64. package/dist/models/DataResponseDTOSupplierPurchaseOrderApprovalRuleDTO.d.ts +33 -0
  65. package/dist/models/DataResponseDTOSupplierPurchaseOrderApprovalRuleDTO.js +49 -0
  66. package/dist/models/DataResponseDTOSupplierPurchaseOrderDTO.d.ts +33 -0
  67. package/dist/models/DataResponseDTOSupplierPurchaseOrderDTO.js +49 -0
  68. package/dist/models/GoodsReceiptLineDTO.d.ts +7 -1
  69. package/dist/models/GoodsReceiptLineDTO.js +2 -0
  70. package/dist/models/PageSupplierPriceListDTO.d.ts +95 -0
  71. package/dist/models/PageSupplierPriceListDTO.js +71 -0
  72. package/dist/models/PageSupplierPurchaseOrderApprovalRuleDTO.d.ts +95 -0
  73. package/dist/models/PageSupplierPurchaseOrderApprovalRuleDTO.js +71 -0
  74. package/dist/models/PageSupplierPurchaseOrderDTO.d.ts +95 -0
  75. package/dist/models/PageSupplierPurchaseOrderDTO.js +71 -0
  76. package/dist/models/ReorderSuggestionDTO.d.ts +98 -0
  77. package/dist/models/ReorderSuggestionDTO.js +70 -0
  78. package/dist/models/ReorderSuggestionDraftDTO.d.ts +33 -0
  79. package/dist/models/ReorderSuggestionDraftDTO.js +51 -0
  80. package/dist/models/ReorderSuggestionSelectionDTO.d.ts +38 -0
  81. package/dist/models/ReorderSuggestionSelectionDTO.js +50 -0
  82. package/dist/models/SupplierPriceDTO.d.ts +92 -0
  83. package/dist/models/SupplierPriceDTO.js +68 -0
  84. package/dist/models/SupplierPriceListDTO.d.ts +153 -0
  85. package/dist/models/SupplierPriceListDTO.js +105 -0
  86. package/dist/models/SupplierPriceListLineDTO.d.ts +140 -0
  87. package/dist/models/SupplierPriceListLineDTO.js +96 -0
  88. package/dist/models/SupplierPurchaseOrderApprovalRuleDTO.d.ts +134 -0
  89. package/dist/models/SupplierPurchaseOrderApprovalRuleDTO.js +94 -0
  90. package/dist/models/SupplierPurchaseOrderDTO.d.ts +269 -0
  91. package/dist/models/SupplierPurchaseOrderDTO.js +150 -0
  92. package/dist/models/SupplierPurchaseOrderLineDTO.d.ts +170 -0
  93. package/dist/models/SupplierPurchaseOrderLineDTO.js +106 -0
  94. package/dist/models/SupplierPurchaseOrderRejectionDTO.d.ts +32 -0
  95. package/dist/models/SupplierPurchaseOrderRejectionDTO.js +50 -0
  96. package/dist/models/index.d.ts +19 -0
  97. package/dist/models/index.js +19 -0
  98. package/package.json +1 -1
@@ -0,0 +1,394 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Vergefy API
6
+ * <h1>AI Agent Management</h1><p>Create, configure, and orchestrate AI agents with multi-provider support.</p><h2>Modules</h2><ul><li><b>Agent (IAG):</b> Agent creation, configuration, lifecycle, insight and analytics (IAG001-057, IAG500-505, IAG700-701)</li><li><b>Template (IAT):</b> Agent template management — /ai/agents-templates</li><li><b>Template Advanced (IATEMP):</b> Versions, analytics, recommendations, diffs — /ai/agents-templates (IATEMP001-008)</li><li><b>Agent Upgrade (IAGENT):</b> Upgrade, rollback, version management — /ai/agents/{id}/upgrade|rollback (IAGENT001-005)</li><li><b>Hierarchy (IAH):</b> Supervisor-worker relationships, delegation — /ai/agents/hierarchies</li><li><b>Goal (IAGG):</b> Autonomous goals, success criteria — /ai/agents/goals</li><li><b>Pool (IAGP):</b> Agent pool management, allocation, coordination (queries IAGP001-023, commands IAGP101-109) — /ai/agents/pools</li><li><b>Execution (IAGE):</b> Execution tracking, history — /ai/agents/executions</li><li><b>Health (IAGH):</b> Health checks, recovery — /ai/agents/health</li><li><b>Communication (IAGC):</b> Channels (IAGC001-019) and inter-agent messages (IAGC020-052) — /ai/agents/channels, /ai/agents/messages</li><li><b>Handoff (IAGD):</b> Agent handoff and transfer — /ai/agents/handoffs</li><li><b>Orchestration (IAGO):</b> Orchestration sessions — /ai/agents/orchestration/sessions</li><li><b>Workflow (IAGW):</b> Workflow assignment and execution — /ai/agents-workflows</li><li><b>Capability (IACAP):</b> Capability definitions, permissions (queries IACAP001-011, commands IACAP101-105) — /ai/capabilities</li><li><b>Capability Mapping (IACF):</b> Capability to feature mapping — /ai/agents/capability-feature-mappings</li></ul><p><b>Providers:</b> OpenAI GPT-4, Anthropic Claude, Google Gemini</p>
7
+ *
8
+ * The version of the OpenAPI document: 2026-05-30
9
+ * Contact: support@integrahub.co
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
16
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
17
+ return new (P || (P = Promise))(function (resolve, reject) {
18
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
19
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
20
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
21
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
22
+ });
23
+ };
24
+ Object.defineProperty(exports, "__esModule", { value: true });
25
+ exports.APIASPLSupplierPriceListApi = void 0;
26
+ const runtime = require("../runtime");
27
+ const DataResponseDTOSupplierPriceDTO_1 = require("../models/DataResponseDTOSupplierPriceDTO");
28
+ const DataResponseDTOSupplierPriceListDTO_1 = require("../models/DataResponseDTOSupplierPriceListDTO");
29
+ const PageSupplierPriceListDTO_1 = require("../models/PageSupplierPriceListDTO");
30
+ const SupplierPriceListDTO_1 = require("../models/SupplierPriceListDTO");
31
+ /**
32
+ *
33
+ */
34
+ class APIASPLSupplierPriceListApi extends runtime.BaseAPI {
35
+ /**
36
+ * Creates request options for aSPL001 without sending the request
37
+ */
38
+ aSPL001RequestOpts(requestParameters) {
39
+ return __awaiter(this, void 0, void 0, function* () {
40
+ if (requestParameters['id'] == null) {
41
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling aSPL001().');
42
+ }
43
+ if (requestParameters['xAppAccountId'] == null) {
44
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling aSPL001().');
45
+ }
46
+ const queryParameters = {};
47
+ const headerParameters = {};
48
+ if (requestParameters['acceptLanguage'] != null) {
49
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
50
+ }
51
+ if (requestParameters['xAppAccountId'] != null) {
52
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
53
+ }
54
+ if (requestParameters['vergefyVersion'] != null) {
55
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
56
+ }
57
+ if (requestParameters['acceptTimezone'] != null) {
58
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
59
+ }
60
+ if (this.configuration && this.configuration.accessToken) {
61
+ const token = this.configuration.accessToken;
62
+ const tokenString = yield token("BearerAuth", []);
63
+ if (tokenString) {
64
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
65
+ }
66
+ }
67
+ let urlPath = `/api/supplier-price-lists/{id}`;
68
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
69
+ return {
70
+ path: urlPath,
71
+ method: 'GET',
72
+ headers: headerParameters,
73
+ query: queryParameters,
74
+ };
75
+ });
76
+ }
77
+ /**
78
+ * Retrieves a supplier price list with its lines by id
79
+ * ASPL001 - Get Supplier Price List
80
+ */
81
+ aSPL001Raw(requestParameters, initOverrides) {
82
+ return __awaiter(this, void 0, void 0, function* () {
83
+ const requestOptions = yield this.aSPL001RequestOpts(requestParameters);
84
+ const response = yield this.request(requestOptions, initOverrides);
85
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, DataResponseDTOSupplierPriceListDTO_1.DataResponseDTOSupplierPriceListDTOFromJSON)(jsonValue));
86
+ });
87
+ }
88
+ /**
89
+ * Retrieves a supplier price list with its lines by id
90
+ * ASPL001 - Get Supplier Price List
91
+ */
92
+ aSPL001(requestParameters, initOverrides) {
93
+ return __awaiter(this, void 0, void 0, function* () {
94
+ const response = yield this.aSPL001Raw(requestParameters, initOverrides);
95
+ return yield response.value();
96
+ });
97
+ }
98
+ /**
99
+ * Creates request options for aSPL002 without sending the request
100
+ */
101
+ aSPL002RequestOpts(requestParameters) {
102
+ return __awaiter(this, void 0, void 0, function* () {
103
+ if (requestParameters['xAppAccountId'] == null) {
104
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling aSPL002().');
105
+ }
106
+ const queryParameters = {};
107
+ if (requestParameters['search'] != null) {
108
+ queryParameters['search'] = requestParameters['search'];
109
+ }
110
+ if (requestParameters['supplierId'] != null) {
111
+ queryParameters['supplierId'] = requestParameters['supplierId'];
112
+ }
113
+ if (requestParameters['currencyCode'] != null) {
114
+ queryParameters['currencyCode'] = requestParameters['currencyCode'];
115
+ }
116
+ if (requestParameters['validOn'] != null) {
117
+ queryParameters['validOn'] = requestParameters['validOn'];
118
+ }
119
+ if (requestParameters['page'] != null) {
120
+ queryParameters['page'] = requestParameters['page'];
121
+ }
122
+ if (requestParameters['size'] != null) {
123
+ queryParameters['size'] = requestParameters['size'];
124
+ }
125
+ if (requestParameters['sort'] != null) {
126
+ queryParameters['sort'] = requestParameters['sort'];
127
+ }
128
+ const headerParameters = {};
129
+ if (requestParameters['acceptLanguage'] != null) {
130
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
131
+ }
132
+ if (requestParameters['xAppAccountId'] != null) {
133
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
134
+ }
135
+ if (requestParameters['vergefyVersion'] != null) {
136
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
137
+ }
138
+ if (requestParameters['acceptTimezone'] != null) {
139
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
140
+ }
141
+ if (this.configuration && this.configuration.accessToken) {
142
+ const token = this.configuration.accessToken;
143
+ const tokenString = yield token("BearerAuth", []);
144
+ if (tokenString) {
145
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
146
+ }
147
+ }
148
+ let urlPath = `/api/supplier-price-lists`;
149
+ return {
150
+ path: urlPath,
151
+ method: 'GET',
152
+ headers: headerParameters,
153
+ query: queryParameters,
154
+ };
155
+ });
156
+ }
157
+ /**
158
+ * Filtered, paginated search over supplier price lists (supplier, currency, the day they apply on, name)
159
+ * ASPL002 - Search Supplier Price Lists
160
+ */
161
+ aSPL002Raw(requestParameters, initOverrides) {
162
+ return __awaiter(this, void 0, void 0, function* () {
163
+ const requestOptions = yield this.aSPL002RequestOpts(requestParameters);
164
+ const response = yield this.request(requestOptions, initOverrides);
165
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, PageSupplierPriceListDTO_1.PageSupplierPriceListDTOFromJSON)(jsonValue));
166
+ });
167
+ }
168
+ /**
169
+ * Filtered, paginated search over supplier price lists (supplier, currency, the day they apply on, name)
170
+ * ASPL002 - Search Supplier Price Lists
171
+ */
172
+ aSPL002(requestParameters, initOverrides) {
173
+ return __awaiter(this, void 0, void 0, function* () {
174
+ const response = yield this.aSPL002Raw(requestParameters, initOverrides);
175
+ return yield response.value();
176
+ });
177
+ }
178
+ /**
179
+ * Creates request options for aSPL003 without sending the request
180
+ */
181
+ aSPL003RequestOpts(requestParameters) {
182
+ return __awaiter(this, void 0, void 0, function* () {
183
+ if (requestParameters['supplierId'] == null) {
184
+ throw new runtime.RequiredError('supplierId', 'Required parameter "supplierId" was null or undefined when calling aSPL003().');
185
+ }
186
+ if (requestParameters['articleId'] == null) {
187
+ throw new runtime.RequiredError('articleId', 'Required parameter "articleId" was null or undefined when calling aSPL003().');
188
+ }
189
+ if (requestParameters['currencyCode'] == null) {
190
+ throw new runtime.RequiredError('currencyCode', 'Required parameter "currencyCode" was null or undefined when calling aSPL003().');
191
+ }
192
+ if (requestParameters['xAppAccountId'] == null) {
193
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling aSPL003().');
194
+ }
195
+ const queryParameters = {};
196
+ if (requestParameters['supplierId'] != null) {
197
+ queryParameters['supplierId'] = requestParameters['supplierId'];
198
+ }
199
+ if (requestParameters['articleId'] != null) {
200
+ queryParameters['articleId'] = requestParameters['articleId'];
201
+ }
202
+ if (requestParameters['currencyCode'] != null) {
203
+ queryParameters['currencyCode'] = requestParameters['currencyCode'];
204
+ }
205
+ if (requestParameters['date'] != null) {
206
+ queryParameters['date'] = requestParameters['date'];
207
+ }
208
+ if (requestParameters['quantity'] != null) {
209
+ queryParameters['quantity'] = requestParameters['quantity'];
210
+ }
211
+ const headerParameters = {};
212
+ if (requestParameters['acceptLanguage'] != null) {
213
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
214
+ }
215
+ if (requestParameters['xAppAccountId'] != null) {
216
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
217
+ }
218
+ if (requestParameters['vergefyVersion'] != null) {
219
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
220
+ }
221
+ if (requestParameters['acceptTimezone'] != null) {
222
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
223
+ }
224
+ if (this.configuration && this.configuration.accessToken) {
225
+ const token = this.configuration.accessToken;
226
+ const tokenString = yield token("BearerAuth", []);
227
+ if (tokenString) {
228
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
229
+ }
230
+ }
231
+ let urlPath = `/api/supplier-price-lists/price`;
232
+ return {
233
+ path: urlPath,
234
+ method: 'GET',
235
+ headers: headerParameters,
236
+ query: queryParameters,
237
+ };
238
+ });
239
+ }
240
+ /**
241
+ * The unit cost and lead time a supplier\'s price lists give an article in a currency, on a date (today when omitted) and at a quantity (one when omitted). Of the lists valid on the date with a line for the article at or below the quantity, the one with the latest validFrom applies, and within it the highest quantity break. This is how a purchase-order line with no unit cost is priced
242
+ * ASPL003 - Get Supplier Price
243
+ */
244
+ aSPL003Raw(requestParameters, initOverrides) {
245
+ return __awaiter(this, void 0, void 0, function* () {
246
+ const requestOptions = yield this.aSPL003RequestOpts(requestParameters);
247
+ const response = yield this.request(requestOptions, initOverrides);
248
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, DataResponseDTOSupplierPriceDTO_1.DataResponseDTOSupplierPriceDTOFromJSON)(jsonValue));
249
+ });
250
+ }
251
+ /**
252
+ * The unit cost and lead time a supplier\'s price lists give an article in a currency, on a date (today when omitted) and at a quantity (one when omitted). Of the lists valid on the date with a line for the article at or below the quantity, the one with the latest validFrom applies, and within it the highest quantity break. This is how a purchase-order line with no unit cost is priced
253
+ * ASPL003 - Get Supplier Price
254
+ */
255
+ aSPL003(requestParameters, initOverrides) {
256
+ return __awaiter(this, void 0, void 0, function* () {
257
+ const response = yield this.aSPL003Raw(requestParameters, initOverrides);
258
+ return yield response.value();
259
+ });
260
+ }
261
+ /**
262
+ * Creates request options for aSPL100 without sending the request
263
+ */
264
+ aSPL100RequestOpts(requestParameters) {
265
+ return __awaiter(this, void 0, void 0, function* () {
266
+ if (requestParameters['xAppAccountId'] == null) {
267
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling aSPL100().');
268
+ }
269
+ if (requestParameters['supplierPriceListDTO'] == null) {
270
+ throw new runtime.RequiredError('supplierPriceListDTO', 'Required parameter "supplierPriceListDTO" was null or undefined when calling aSPL100().');
271
+ }
272
+ const queryParameters = {};
273
+ const headerParameters = {};
274
+ headerParameters['Content-Type'] = 'application/json';
275
+ if (requestParameters['acceptLanguage'] != null) {
276
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
277
+ }
278
+ if (requestParameters['xAppAccountId'] != null) {
279
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
280
+ }
281
+ if (requestParameters['vergefyVersion'] != null) {
282
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
283
+ }
284
+ if (requestParameters['acceptTimezone'] != null) {
285
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
286
+ }
287
+ if (this.configuration && this.configuration.accessToken) {
288
+ const token = this.configuration.accessToken;
289
+ const tokenString = yield token("BearerAuth", []);
290
+ if (tokenString) {
291
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
292
+ }
293
+ }
294
+ let urlPath = `/api/supplier-price-lists`;
295
+ return {
296
+ path: urlPath,
297
+ method: 'POST',
298
+ headers: headerParameters,
299
+ query: queryParameters,
300
+ body: (0, SupplierPriceListDTO_1.SupplierPriceListDTOToJSON)(requestParameters['supplierPriceListDTO']),
301
+ };
302
+ });
303
+ }
304
+ /**
305
+ * Creates a price list for one supplier and currency, valid from validFrom to validTo (open-ended when omitted), with one line per article and quantity break
306
+ * ASPL100 - Create Supplier Price List
307
+ */
308
+ aSPL100Raw(requestParameters, initOverrides) {
309
+ return __awaiter(this, void 0, void 0, function* () {
310
+ const requestOptions = yield this.aSPL100RequestOpts(requestParameters);
311
+ const response = yield this.request(requestOptions, initOverrides);
312
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, DataResponseDTOSupplierPriceListDTO_1.DataResponseDTOSupplierPriceListDTOFromJSON)(jsonValue));
313
+ });
314
+ }
315
+ /**
316
+ * Creates a price list for one supplier and currency, valid from validFrom to validTo (open-ended when omitted), with one line per article and quantity break
317
+ * ASPL100 - Create Supplier Price List
318
+ */
319
+ aSPL100(requestParameters, initOverrides) {
320
+ return __awaiter(this, void 0, void 0, function* () {
321
+ const response = yield this.aSPL100Raw(requestParameters, initOverrides);
322
+ return yield response.value();
323
+ });
324
+ }
325
+ /**
326
+ * Creates request options for aSPL101 without sending the request
327
+ */
328
+ aSPL101RequestOpts(requestParameters) {
329
+ return __awaiter(this, void 0, void 0, function* () {
330
+ if (requestParameters['id'] == null) {
331
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling aSPL101().');
332
+ }
333
+ if (requestParameters['xAppAccountId'] == null) {
334
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling aSPL101().');
335
+ }
336
+ if (requestParameters['supplierPriceListDTO'] == null) {
337
+ throw new runtime.RequiredError('supplierPriceListDTO', 'Required parameter "supplierPriceListDTO" was null or undefined when calling aSPL101().');
338
+ }
339
+ const queryParameters = {};
340
+ const headerParameters = {};
341
+ headerParameters['Content-Type'] = 'application/json';
342
+ if (requestParameters['acceptLanguage'] != null) {
343
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
344
+ }
345
+ if (requestParameters['xAppAccountId'] != null) {
346
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
347
+ }
348
+ if (requestParameters['vergefyVersion'] != null) {
349
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
350
+ }
351
+ if (requestParameters['acceptTimezone'] != null) {
352
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
353
+ }
354
+ if (this.configuration && this.configuration.accessToken) {
355
+ const token = this.configuration.accessToken;
356
+ const tokenString = yield token("BearerAuth", []);
357
+ if (tokenString) {
358
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
359
+ }
360
+ }
361
+ let urlPath = `/api/supplier-price-lists/{id}`;
362
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
363
+ return {
364
+ path: urlPath,
365
+ method: 'PUT',
366
+ headers: headerParameters,
367
+ query: queryParameters,
368
+ body: (0, SupplierPriceListDTO_1.SupplierPriceListDTOToJSON)(requestParameters['supplierPriceListDTO']),
369
+ };
370
+ });
371
+ }
372
+ /**
373
+ * Replaces a price list\'s details and lines
374
+ * ASPL101 - Update Supplier Price List
375
+ */
376
+ aSPL101Raw(requestParameters, initOverrides) {
377
+ return __awaiter(this, void 0, void 0, function* () {
378
+ const requestOptions = yield this.aSPL101RequestOpts(requestParameters);
379
+ const response = yield this.request(requestOptions, initOverrides);
380
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, DataResponseDTOSupplierPriceListDTO_1.DataResponseDTOSupplierPriceListDTOFromJSON)(jsonValue));
381
+ });
382
+ }
383
+ /**
384
+ * Replaces a price list\'s details and lines
385
+ * ASPL101 - Update Supplier Price List
386
+ */
387
+ aSPL101(requestParameters, initOverrides) {
388
+ return __awaiter(this, void 0, void 0, function* () {
389
+ const response = yield this.aSPL101Raw(requestParameters, initOverrides);
390
+ return yield response.value();
391
+ });
392
+ }
393
+ }
394
+ exports.APIASPLSupplierPriceListApi = APIASPLSupplierPriceListApi;
@@ -0,0 +1,255 @@
1
+ /**
2
+ * Vergefy API
3
+ * <h1>AI Agent Management</h1><p>Create, configure, and orchestrate AI agents with multi-provider support.</p><h2>Modules</h2><ul><li><b>Agent (IAG):</b> Agent creation, configuration, lifecycle, insight and analytics (IAG001-057, IAG500-505, IAG700-701)</li><li><b>Template (IAT):</b> Agent template management — /ai/agents-templates</li><li><b>Template Advanced (IATEMP):</b> Versions, analytics, recommendations, diffs — /ai/agents-templates (IATEMP001-008)</li><li><b>Agent Upgrade (IAGENT):</b> Upgrade, rollback, version management — /ai/agents/{id}/upgrade|rollback (IAGENT001-005)</li><li><b>Hierarchy (IAH):</b> Supervisor-worker relationships, delegation — /ai/agents/hierarchies</li><li><b>Goal (IAGG):</b> Autonomous goals, success criteria — /ai/agents/goals</li><li><b>Pool (IAGP):</b> Agent pool management, allocation, coordination (queries IAGP001-023, commands IAGP101-109) — /ai/agents/pools</li><li><b>Execution (IAGE):</b> Execution tracking, history — /ai/agents/executions</li><li><b>Health (IAGH):</b> Health checks, recovery — /ai/agents/health</li><li><b>Communication (IAGC):</b> Channels (IAGC001-019) and inter-agent messages (IAGC020-052) — /ai/agents/channels, /ai/agents/messages</li><li><b>Handoff (IAGD):</b> Agent handoff and transfer — /ai/agents/handoffs</li><li><b>Orchestration (IAGO):</b> Orchestration sessions — /ai/agents/orchestration/sessions</li><li><b>Workflow (IAGW):</b> Workflow assignment and execution — /ai/agents-workflows</li><li><b>Capability (IACAP):</b> Capability definitions, permissions (queries IACAP001-011, commands IACAP101-105) — /ai/capabilities</li><li><b>Capability Mapping (IACF):</b> Capability to feature mapping — /ai/agents/capability-feature-mappings</li></ul><p><b>Providers:</b> OpenAI GPT-4, Anthropic Claude, Google Gemini</p>
4
+ *
5
+ * The version of the OpenAPI document: 2026-05-30
6
+ * Contact: support@integrahub.co
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import * as runtime from '../runtime';
13
+ import { type DataResponseDTOGoodsReceiptDTO } from '../models/DataResponseDTOGoodsReceiptDTO';
14
+ import { type DataResponseDTOSupplierPurchaseOrderDTO } from '../models/DataResponseDTOSupplierPurchaseOrderDTO';
15
+ import { type PageSupplierPurchaseOrderDTO } from '../models/PageSupplierPurchaseOrderDTO';
16
+ import { type SupplierPurchaseOrderDTO } from '../models/SupplierPurchaseOrderDTO';
17
+ import { type SupplierPurchaseOrderRejectionDTO } from '../models/SupplierPurchaseOrderRejectionDTO';
18
+ export interface ASPO001Request {
19
+ id: string;
20
+ xAppAccountId: string;
21
+ acceptLanguage?: string;
22
+ vergefyVersion?: string;
23
+ acceptTimezone?: string;
24
+ }
25
+ export interface ASPO002Request {
26
+ xAppAccountId: string;
27
+ search?: string;
28
+ status?: ASPO002StatusEnum;
29
+ supplierId?: string;
30
+ warehouseId?: string;
31
+ page?: number;
32
+ size?: number;
33
+ sort?: Array<string>;
34
+ acceptLanguage?: string;
35
+ vergefyVersion?: string;
36
+ acceptTimezone?: string;
37
+ }
38
+ export interface ASPO100Request {
39
+ xAppAccountId: string;
40
+ supplierPurchaseOrderDTO: SupplierPurchaseOrderDTO;
41
+ acceptLanguage?: string;
42
+ vergefyVersion?: string;
43
+ acceptTimezone?: string;
44
+ }
45
+ export interface ASPO101Request {
46
+ id: string;
47
+ xAppAccountId: string;
48
+ supplierPurchaseOrderDTO: SupplierPurchaseOrderDTO;
49
+ acceptLanguage?: string;
50
+ vergefyVersion?: string;
51
+ acceptTimezone?: string;
52
+ }
53
+ export interface ASPO102Request {
54
+ id: string;
55
+ xAppAccountId: string;
56
+ acceptLanguage?: string;
57
+ vergefyVersion?: string;
58
+ acceptTimezone?: string;
59
+ }
60
+ export interface ASPO103Request {
61
+ id: string;
62
+ xAppAccountId: string;
63
+ acceptLanguage?: string;
64
+ vergefyVersion?: string;
65
+ acceptTimezone?: string;
66
+ }
67
+ export interface ASPO104Request {
68
+ id: string;
69
+ xAppAccountId: string;
70
+ acceptLanguage?: string;
71
+ vergefyVersion?: string;
72
+ acceptTimezone?: string;
73
+ }
74
+ export interface ASPO105Request {
75
+ id: string;
76
+ xAppAccountId: string;
77
+ warehouseId?: string;
78
+ acceptLanguage?: string;
79
+ vergefyVersion?: string;
80
+ acceptTimezone?: string;
81
+ }
82
+ export interface ASPO106Request {
83
+ id: string;
84
+ xAppAccountId: string;
85
+ acceptLanguage?: string;
86
+ vergefyVersion?: string;
87
+ acceptTimezone?: string;
88
+ }
89
+ export interface ASPO107Request {
90
+ id: string;
91
+ xAppAccountId: string;
92
+ supplierPurchaseOrderRejectionDTO: SupplierPurchaseOrderRejectionDTO;
93
+ acceptLanguage?: string;
94
+ vergefyVersion?: string;
95
+ acceptTimezone?: string;
96
+ }
97
+ /**
98
+ *
99
+ */
100
+ export declare class APIASPOSupplierPurchaseOrderApi extends runtime.BaseAPI {
101
+ /**
102
+ * Creates request options for aSPO001 without sending the request
103
+ */
104
+ aSPO001RequestOpts(requestParameters: ASPO001Request): Promise<runtime.RequestOpts>;
105
+ /**
106
+ * Retrieves a supplier purchase order with its lines by id
107
+ * ASPO001 - Get Supplier Purchase Order
108
+ */
109
+ aSPO001Raw(requestParameters: ASPO001Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataResponseDTOSupplierPurchaseOrderDTO>>;
110
+ /**
111
+ * Retrieves a supplier purchase order with its lines by id
112
+ * ASPO001 - Get Supplier Purchase Order
113
+ */
114
+ aSPO001(requestParameters: ASPO001Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataResponseDTOSupplierPurchaseOrderDTO>;
115
+ /**
116
+ * Creates request options for aSPO002 without sending the request
117
+ */
118
+ aSPO002RequestOpts(requestParameters: ASPO002Request): Promise<runtime.RequestOpts>;
119
+ /**
120
+ * Filtered, paginated search over supplier purchase orders (status, supplier, warehouse, order number)
121
+ * ASPO002 - Search Supplier Purchase Orders
122
+ */
123
+ aSPO002Raw(requestParameters: ASPO002Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PageSupplierPurchaseOrderDTO>>;
124
+ /**
125
+ * Filtered, paginated search over supplier purchase orders (status, supplier, warehouse, order number)
126
+ * ASPO002 - Search Supplier Purchase Orders
127
+ */
128
+ aSPO002(requestParameters: ASPO002Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PageSupplierPurchaseOrderDTO>;
129
+ /**
130
+ * Creates request options for aSPO100 without sending the request
131
+ */
132
+ aSPO100RequestOpts(requestParameters: ASPO100Request): Promise<runtime.RequestOpts>;
133
+ /**
134
+ * Creates a DRAFT order with its lines, numbered PO-{year}-{sequence}. Totals are computed by the server
135
+ * ASPO100 - Create Supplier Purchase Order
136
+ */
137
+ aSPO100Raw(requestParameters: ASPO100Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataResponseDTOSupplierPurchaseOrderDTO>>;
138
+ /**
139
+ * Creates a DRAFT order with its lines, numbered PO-{year}-{sequence}. Totals are computed by the server
140
+ * ASPO100 - Create Supplier Purchase Order
141
+ */
142
+ aSPO100(requestParameters: ASPO100Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataResponseDTOSupplierPurchaseOrderDTO>;
143
+ /**
144
+ * Creates request options for aSPO101 without sending the request
145
+ */
146
+ aSPO101RequestOpts(requestParameters: ASPO101Request): Promise<runtime.RequestOpts>;
147
+ /**
148
+ * Replaces a DRAFT order\'s details and lines. Refused once the order is submitted
149
+ * ASPO101 - Update Supplier Purchase Order
150
+ */
151
+ aSPO101Raw(requestParameters: ASPO101Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataResponseDTOSupplierPurchaseOrderDTO>>;
152
+ /**
153
+ * Replaces a DRAFT order\'s details and lines. Refused once the order is submitted
154
+ * ASPO101 - Update Supplier Purchase Order
155
+ */
156
+ aSPO101(requestParameters: ASPO101Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataResponseDTOSupplierPurchaseOrderDTO>;
157
+ /**
158
+ * Creates request options for aSPO102 without sending the request
159
+ */
160
+ aSPO102RequestOpts(requestParameters: ASPO102Request): Promise<runtime.RequestOpts>;
161
+ /**
162
+ * Submits a DRAFT order for approval: DRAFT -> SUBMITTED, and on to APPROVED in the same step when the approval rule for its supplier and currency (ASPR) covers its total. The order records who submitted it, and the rule that approved it
163
+ * ASPO102 - Submit Supplier Purchase Order
164
+ */
165
+ aSPO102Raw(requestParameters: ASPO102Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataResponseDTOSupplierPurchaseOrderDTO>>;
166
+ /**
167
+ * Submits a DRAFT order for approval: DRAFT -> SUBMITTED, and on to APPROVED in the same step when the approval rule for its supplier and currency (ASPR) covers its total. The order records who submitted it, and the rule that approved it
168
+ * ASPO102 - Submit Supplier Purchase Order
169
+ */
170
+ aSPO102(requestParameters: ASPO102Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataResponseDTOSupplierPurchaseOrderDTO>;
171
+ /**
172
+ * Creates request options for aSPO103 without sending the request
173
+ */
174
+ aSPO103RequestOpts(requestParameters: ASPO103Request): Promise<runtime.RequestOpts>;
175
+ /**
176
+ * Approves a SUBMITTED order and records the approver: SUBMITTED -> APPROVED. Needs the APPROVE permission, which a tenant user does not hold, and a person who neither created nor submitted the order
177
+ * ASPO103 - Approve Supplier Purchase Order
178
+ */
179
+ aSPO103Raw(requestParameters: ASPO103Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataResponseDTOSupplierPurchaseOrderDTO>>;
180
+ /**
181
+ * Approves a SUBMITTED order and records the approver: SUBMITTED -> APPROVED. Needs the APPROVE permission, which a tenant user does not hold, and a person who neither created nor submitted the order
182
+ * ASPO103 - Approve Supplier Purchase Order
183
+ */
184
+ aSPO103(requestParameters: ASPO103Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataResponseDTOSupplierPurchaseOrderDTO>;
185
+ /**
186
+ * Creates request options for aSPO104 without sending the request
187
+ */
188
+ aSPO104RequestOpts(requestParameters: ASPO104Request): Promise<runtime.RequestOpts>;
189
+ /**
190
+ * Cancels an order that is not yet receiving: DRAFT, SUBMITTED, APPROVED or SENT
191
+ * ASPO104 - Cancel Supplier Purchase Order
192
+ */
193
+ aSPO104Raw(requestParameters: ASPO104Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataResponseDTOSupplierPurchaseOrderDTO>>;
194
+ /**
195
+ * Cancels an order that is not yet receiving: DRAFT, SUBMITTED, APPROVED or SENT
196
+ * ASPO104 - Cancel Supplier Purchase Order
197
+ */
198
+ aSPO104(requestParameters: ASPO104Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataResponseDTOSupplierPurchaseOrderDTO>;
199
+ /**
200
+ * Creates request options for aSPO105 without sending the request
201
+ */
202
+ aSPO105RequestOpts(requestParameters: ASPO105Request): Promise<runtime.RequestOpts>;
203
+ /**
204
+ * Drafts a goods receipt with one line per open order line, for what is still to arrive, each naming its order line. The warehouse is the one given, or else the order\'s. Receive the draft with AGR002
205
+ * ASPO105 - Draft Goods Receipt From Supplier Purchase Order
206
+ */
207
+ aSPO105Raw(requestParameters: ASPO105Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataResponseDTOGoodsReceiptDTO>>;
208
+ /**
209
+ * Drafts a goods receipt with one line per open order line, for what is still to arrive, each naming its order line. The warehouse is the one given, or else the order\'s. Receive the draft with AGR002
210
+ * ASPO105 - Draft Goods Receipt From Supplier Purchase Order
211
+ */
212
+ aSPO105(requestParameters: ASPO105Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataResponseDTOGoodsReceiptDTO>;
213
+ /**
214
+ * Creates request options for aSPO106 without sending the request
215
+ */
216
+ aSPO106RequestOpts(requestParameters: ASPO106Request): Promise<runtime.RequestOpts>;
217
+ /**
218
+ * Sends an APPROVED order to its supplier: APPROVED -> SENT. The order\'s PDF is stored as a document associated with it, and e-mailed to the supplier\'s contact once the send is saved
219
+ * ASPO106 - Send Supplier Purchase Order
220
+ */
221
+ aSPO106Raw(requestParameters: ASPO106Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataResponseDTOSupplierPurchaseOrderDTO>>;
222
+ /**
223
+ * Sends an APPROVED order to its supplier: APPROVED -> SENT. The order\'s PDF is stored as a document associated with it, and e-mailed to the supplier\'s contact once the send is saved
224
+ * ASPO106 - Send Supplier Purchase Order
225
+ */
226
+ aSPO106(requestParameters: ASPO106Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataResponseDTOSupplierPurchaseOrderDTO>;
227
+ /**
228
+ * Creates request options for aSPO107 without sending the request
229
+ */
230
+ aSPO107RequestOpts(requestParameters: ASPO107Request): Promise<runtime.RequestOpts>;
231
+ /**
232
+ * Sends a SUBMITTED order back for changes with a reason: SUBMITTED -> DRAFT. The order records who rejected it, when and why, and keeps that when it is submitted again
233
+ * ASPO107 - Reject Supplier Purchase Order
234
+ */
235
+ aSPO107Raw(requestParameters: ASPO107Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataResponseDTOSupplierPurchaseOrderDTO>>;
236
+ /**
237
+ * Sends a SUBMITTED order back for changes with a reason: SUBMITTED -> DRAFT. The order records who rejected it, when and why, and keeps that when it is submitted again
238
+ * ASPO107 - Reject Supplier Purchase Order
239
+ */
240
+ aSPO107(requestParameters: ASPO107Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataResponseDTOSupplierPurchaseOrderDTO>;
241
+ }
242
+ /**
243
+ * @export
244
+ */
245
+ export declare const ASPO002StatusEnum: {
246
+ readonly Draft: "DRAFT";
247
+ readonly Submitted: "SUBMITTED";
248
+ readonly Approved: "APPROVED";
249
+ readonly Sent: "SENT";
250
+ readonly PartiallyReceived: "PARTIALLY_RECEIVED";
251
+ readonly Received: "RECEIVED";
252
+ readonly Closed: "CLOSED";
253
+ readonly Cancelled: "CANCELLED";
254
+ };
255
+ export type ASPO002StatusEnum = typeof ASPO002StatusEnum[keyof typeof ASPO002StatusEnum];