@prismatic-io/components-saps4hana 0.0.0-stage → 0.1.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.
@@ -0,0 +1,4576 @@
1
+ let _prismatic_io_spectral = require("@prismatic-io/spectral");
2
+ let _prismatic_io_spectral_http = require("@prismatic-io/spectral/http");
3
+ //#region src/util/mappers.ts
4
+ const mapS4HanaOptionsToModelElements = (option) => ({
5
+ label: option,
6
+ value: option
7
+ });
8
+ //#endregion
9
+ //#region src/connections.ts
10
+ const sapApiKeyConnection = (0, _prismatic_io_spectral.connection)({
11
+ key: "apiKey",
12
+ display: {
13
+ label: "API Key (Sandbox)",
14
+ description: "Connect to SAP S/4HANA Cloud APIs via SAP API Business Hub sandbox for testing and development. This connection provides read-only access to sample data."
15
+ },
16
+ inputs: {
17
+ apiKey: {
18
+ label: "SAP API Key",
19
+ placeholder: "API Key",
20
+ type: "string",
21
+ required: true,
22
+ shown: true,
23
+ comments: "API key from SAP API Business Hub. Log in at https://api.sap.com and access your API key from your account settings.",
24
+ example: "AbCdEf123456..."
25
+ },
26
+ baseUrl: {
27
+ label: "Base URL",
28
+ placeholder: "https://sandbox.api.sap.com/s4hanacloud",
29
+ type: "string",
30
+ required: true,
31
+ shown: true,
32
+ default: "https://sandbox.api.sap.com/s4hanacloud",
33
+ comments: "SAP API Business Hub sandbox URL. Use the default sandbox URL for testing. This connection is intended for sandbox environments only.",
34
+ example: "https://sandbox.api.sap.com/s4hanacloud"
35
+ }
36
+ }
37
+ });
38
+ const sapBasicAuthConnection = (0, _prismatic_io_spectral.connection)({
39
+ key: "sapBasicAuth",
40
+ display: {
41
+ label: "Basic Auth",
42
+ description: "Basic Authentication connection for direct access to SAP S/4HANA Cloud Public Edition. Requires a Communication User configured in SAP."
43
+ },
44
+ inputs: {
45
+ tenantUrl: {
46
+ label: "Tenant URL",
47
+ placeholder: "https://my123456-api.s4hana.cloud.sap",
48
+ type: "string",
49
+ required: true,
50
+ shown: true,
51
+ comments: "SAP S/4HANA Cloud API tenant URL (include -api in the hostname).",
52
+ example: "https://my123456-api.s4hana.cloud.sap"
53
+ },
54
+ username: {
55
+ label: "Communication User",
56
+ placeholder: "Username",
57
+ type: "string",
58
+ required: true,
59
+ shown: true,
60
+ comments: "Communication User name from the Communication Arrangement in SAP S/4HANA Cloud.",
61
+ example: "COMM_USER_001"
62
+ },
63
+ password: {
64
+ label: "Password",
65
+ placeholder: "Password",
66
+ type: "password",
67
+ required: true,
68
+ shown: true,
69
+ comments: "Communication User password."
70
+ }
71
+ }
72
+ });
73
+ const sapOAuthConnection = (0, _prismatic_io_spectral.oauth2Connection)({
74
+ key: "sapOAuth",
75
+ display: {
76
+ label: "OAuth 2.0 Authorization Code",
77
+ description: "Authenticate with an SAP S/4HANA Cloud Public Edition tenant using OAuth 2.0 Authorization Code flow. Provides full read/write access to business data."
78
+ },
79
+ oauth2Type: _prismatic_io_spectral.OAuth2Type.AuthorizationCode,
80
+ oauth2PkceMethod: _prismatic_io_spectral.OAuth2PkceMethod.S256,
81
+ inputs: (0, _prismatic_io_spectral.templateConnectionInputs)({
82
+ tenantId: {
83
+ label: "Tenant ID",
84
+ placeholder: "my123456",
85
+ example: "my123456",
86
+ type: "string",
87
+ required: true,
88
+ shown: true,
89
+ comments: "The SAP S/4HANA Cloud tenant identifier. This is the prefix in your SAP URL (e.g., 'my123456' from my123456.s4hana.cloud.sap). [Learn more](https://help.sap.com/docs/SAP_S4HANA_CLOUD/0f69f8fb28ac4bf48d2b57b9637e81fa/2e84a10c430645a88bdbfaaa23ac9ff7.html)"
90
+ },
91
+ clientId: {
92
+ label: "Client ID",
93
+ placeholder: "Enter Client ID",
94
+ example: "TEST",
95
+ type: "string",
96
+ required: true,
97
+ shown: true,
98
+ comments: "The OAuth Client ID from the Communication Arrangement. Navigate to Inbound Communication and click OAuth 2.0 Details to view the Client ID. [Learn more](https://help.sap.com/docs/SAP_S4HANA_CLOUD/0f69f8fb28ac4bf48d2b57b9637e81fa/2e84a10c430645a88bdbfaaa23ac9ff7.html)"
99
+ },
100
+ clientSecret: {
101
+ label: "Client Secret",
102
+ placeholder: "Enter Client Secret",
103
+ type: "password",
104
+ required: false,
105
+ shown: false,
106
+ default: "",
107
+ comments: "Leave empty for Public Client configurations."
108
+ },
109
+ scopes: {
110
+ label: "Scopes",
111
+ placeholder: "Enter scopes",
112
+ example: "API_PURCHASEORDER_PROCESS_SRV_0001",
113
+ type: "string",
114
+ required: false,
115
+ shown: true,
116
+ default: "",
117
+ comments: "Space-separated OAuth scopes. Leave empty to use default scopes, or specify API scopes from your Communication Arrangement."
118
+ }
119
+ }, {
120
+ authorizeUrl: {
121
+ label: "Authorize URL",
122
+ placeholder: "Enter Authorize URL",
123
+ example: "https://my410414.s4hana.cloud.sap/sap/bc/sec/oauth2/authorize",
124
+ type: "template",
125
+ required: true,
126
+ shown: false,
127
+ comments: "The OAuth 2.0 authorization endpoint for SAP S/4HANA.",
128
+ templateValue: "https://{{#tenantId}}.s4hana.cloud.sap/sap/bc/sec/oauth2/authorize"
129
+ },
130
+ tokenUrl: {
131
+ label: "Token URL",
132
+ placeholder: "Enter Token URL",
133
+ example: "https://my123456-api.s4hana.cloud.sap/sap/public/bc/sec/oauth2/token?client_id=TEST",
134
+ type: "template",
135
+ required: true,
136
+ shown: false,
137
+ comments: "The OAuth 2.0 token endpoint for SAP S/4HANA.",
138
+ templateValue: "https://{{#tenantId}}-api.s4hana.cloud.sap/sap/public/bc/sec/oauth2/token?client_id={{#clientId}}"
139
+ }
140
+ }, _prismatic_io_spectral.OAuth2Type.AuthorizationCode)
141
+ });
142
+ var connections_default = [
143
+ sapOAuthConnection,
144
+ sapBasicAuthConnection,
145
+ sapApiKeyConnection
146
+ ];
147
+ //#endregion
148
+ //#region src/util/connection.ts
149
+ const getBaseUrl = (connection) => {
150
+ switch (connection.key) {
151
+ case sapApiKeyConnection.key: return _prismatic_io_spectral.util.types.toString(connection.fields?.baseUrl);
152
+ case sapBasicAuthConnection.key: return _prismatic_io_spectral.util.types.toString(connection.fields?.tenantUrl);
153
+ case sapOAuthConnection.key: return `https://${_prismatic_io_spectral.util.types.toString(connection.fields?.tenantId)}-api.s4hana.cloud.sap`;
154
+ default: return _prismatic_io_spectral.util.types.toString(connection.fields?.baseUrl || connection.fields?.tenantUrl);
155
+ }
156
+ };
157
+ const getAuthHeaders = (connection) => {
158
+ switch (connection.key) {
159
+ case sapApiKeyConnection.key: return { APIKey: _prismatic_io_spectral.util.types.toString(connection.fields?.apiKey) };
160
+ case sapBasicAuthConnection.key: {
161
+ const username = _prismatic_io_spectral.util.types.toString(connection.fields?.username);
162
+ const password = _prismatic_io_spectral.util.types.toString(connection.fields?.password);
163
+ return { Authorization: `Basic ${Buffer.from(`${username}:${password}`).toString("base64")}` };
164
+ }
165
+ case sapOAuthConnection.key: {
166
+ const accessToken = _prismatic_io_spectral.util.types.toString(connection.token?.access_token);
167
+ if (!accessToken) throw new Error("OAuth access token not available. Please re-authenticate.");
168
+ return { Authorization: `Bearer ${accessToken}` };
169
+ }
170
+ default:
171
+ if (connection.fields?.apiKey) return { APIKey: _prismatic_io_spectral.util.types.toString(connection.fields.apiKey) };
172
+ if (connection.fields?.username && connection.fields?.password) {
173
+ const username = _prismatic_io_spectral.util.types.toString(connection.fields.username);
174
+ const password = _prismatic_io_spectral.util.types.toString(connection.fields.password);
175
+ return { Authorization: `Basic ${Buffer.from(`${username}:${password}`).toString("base64")}` };
176
+ }
177
+ if (connection.token?.access_token) return { Authorization: `Bearer ${_prismatic_io_spectral.util.types.toString(connection.token.access_token)}` };
178
+ throw new Error(`Unknown connection type: ${connection.key}`);
179
+ }
180
+ };
181
+ //#endregion
182
+ //#region src/util/clean.ts
183
+ const LOOK_BACK_DATE_PATTERN = /^(\d{4})-(\d{2})-(\d{2})$/;
184
+ const lookBackDateClean = (value) => {
185
+ if (value === void 0 || value === null || typeof value === "string" && value.trim() === "") return "";
186
+ const raw = typeof value === "string" ? value.trim() : String(value);
187
+ const match = typeof value === "string" ? raw.match(LOOK_BACK_DATE_PATTERN) : null;
188
+ if (!match) throw new Error(`Look-back Date must be a date in YYYY-MM-DD format. Received: ${raw}`);
189
+ const [, yearStr, monthStr, dayStr] = match;
190
+ const year = _prismatic_io_spectral.util.types.toNumber(yearStr);
191
+ const month = _prismatic_io_spectral.util.types.toNumber(monthStr);
192
+ const day = _prismatic_io_spectral.util.types.toNumber(dayStr);
193
+ const parsed = new Date(Date.UTC(year, month - 1, day));
194
+ if (parsed.getUTCFullYear() !== year || parsed.getUTCMonth() !== month - 1 || parsed.getUTCDate() !== day) throw new Error(`Look-back Date must be a date in YYYY-MM-DD format. Received: ${raw}`);
195
+ if (parsed.getTime() > Date.now()) throw new Error(`Look-back Date cannot be a future date. Received: ${raw}`);
196
+ return parsed.toISOString();
197
+ };
198
+ //#endregion
199
+ //#region src/util/polling.ts
200
+ const toSapDateTime = (isoString) => {
201
+ return `datetime'${new Date(isoString).toISOString().replace("Z", "").split(".")[0]}'`;
202
+ };
203
+ const fetchAllRecords = async (client, endpoint, filter) => {
204
+ const allRecords = [];
205
+ const pageSize = 500;
206
+ let skip = 0;
207
+ let hasMore = true;
208
+ while (hasMore) {
209
+ const url = `${endpoint}?$filter=${filter}&$top=${pageSize}&$skip=${skip}&$format=json`;
210
+ const { data } = await client.get(url, { headers: { Accept: "application/json" } });
211
+ const results = data?.d?.results ?? [];
212
+ allRecords.push(...results);
213
+ hasMore = results.length >= pageSize;
214
+ skip += pageSize;
215
+ }
216
+ return allRecords;
217
+ };
218
+ const resolvePollWindow = (state, lookBackDate, now) => {
219
+ if (state?.lastPolledAt) return {
220
+ since: state.lastPolledAt,
221
+ isBackfill: false
222
+ };
223
+ if (lookBackDate) return {
224
+ since: lookBackDate,
225
+ isBackfill: true
226
+ };
227
+ return {
228
+ since: now,
229
+ isBackfill: false
230
+ };
231
+ };
232
+ const resolvePollingRecordChanges = (data) => {
233
+ const changesObject = data ?? {
234
+ created: [],
235
+ updated: []
236
+ };
237
+ return [...(changesObject.created ?? []).map((record) => ({
238
+ changeType: "created",
239
+ record
240
+ })), ...(changesObject.updated ?? []).map((record) => ({
241
+ changeType: "updated",
242
+ record
243
+ }))];
244
+ };
245
+ //#endregion
246
+ //#region src/client.ts
247
+ const getSapClient = (sapConnection, headers = {}) => {
248
+ return (0, _prismatic_io_spectral_http.createClient)({
249
+ baseUrl: getBaseUrl(sapConnection),
250
+ headers: {
251
+ ...getAuthHeaders(sapConnection),
252
+ ...headers
253
+ }
254
+ });
255
+ };
256
+ //#endregion
257
+ //#region src/constants.ts
258
+ const ADD_ITEM_TO_PURCHASE_REQUISITION_DEFAULT_VALUE = {
259
+ PurchaseRequisition: "string",
260
+ PurchaseRequisitionItem: "strin",
261
+ PurchasingDocument: "string",
262
+ PurchasingDocumentItem: "strin",
263
+ PurReqnReleaseStatus: "st",
264
+ PurchaseRequisitionType: "stri",
265
+ PurchasingDocumentItemCategory: "s",
266
+ PurchaseRequisitionItemText: "string",
267
+ AccountAssignmentCategory: "s",
268
+ Material: "string",
269
+ MaterialGroup: "string",
270
+ RequestedQuantity: "0",
271
+ BaseUnit: "str",
272
+ PurchaseRequisitionPrice: "0",
273
+ PurReqnPriceQuantity: "0",
274
+ MaterialGoodsReceiptDuration: "0",
275
+ ReleaseCode: "s",
276
+ PurchaseRequisitionReleaseDate: "/Date(1492041600000)/",
277
+ PurchasingOrganization: "stri",
278
+ PurchasingGroup: "str",
279
+ Plant: "stri",
280
+ CompanyCode: "stri",
281
+ SupplyingPlant: "stri",
282
+ OrderedQuantity: "0",
283
+ DeliveryDate: "/Date(1492041600000)/",
284
+ ProcessingStatus: "s",
285
+ ExternalApprovalStatus: "s",
286
+ PurchasingInfoRecord: "string",
287
+ Supplier: "string",
288
+ IsDeleted: "s",
289
+ FixedSupplier: "string",
290
+ RequisitionerName: "string",
291
+ PurReqnItemCurrency: "strin",
292
+ MaterialPlannedDeliveryDurn: "0",
293
+ DelivDateCategory: "s",
294
+ MultipleAcctAssgmtDistribution: "s",
295
+ StorageLocation: "stri",
296
+ PurReqnSSPRequestor: "string",
297
+ PurReqnSSPAuthor: "string",
298
+ PurchaseContract: "string",
299
+ PurchaseContractItem: "strin",
300
+ ConsumptionPosting: "s",
301
+ PurReqnOrigin: "s",
302
+ PurReqnSSPCatalog: "string",
303
+ PurReqnSSPCatalogItem: "string",
304
+ PurReqnSSPCrossCatalogItem: 0,
305
+ IsPurReqnBlocked: "s",
306
+ ItemDeliveryAddressID: "string",
307
+ Language: "st",
308
+ IsClosed: true,
309
+ ReleaseIsNotCompleted: true,
310
+ ServicePerformer: "string",
311
+ ProductType: "st",
312
+ PurchaseRequisitionStatus: "string",
313
+ ReleaseStrategy: "st",
314
+ PerformancePeriodStartDate: "/Date(1492041600000)/",
315
+ PerformancePeriodEndDate: "/Date(1492041600000)/",
316
+ PurchaseOrderPriceType: "s",
317
+ SupplierMaterialNumber: "string",
318
+ Batch: "string",
319
+ MaterialRevisionLevel: "st",
320
+ MinRemainingShelfLife: "0",
321
+ ItemNetAmount: "0",
322
+ GoodsReceiptIsExpected: true,
323
+ InvoiceIsExpected: true,
324
+ GoodsReceiptIsNonValuated: true,
325
+ RequirementTracking: "string",
326
+ MRPController: "str",
327
+ TaxCode: "st",
328
+ PurchaseRequisitionIsFixed: true,
329
+ ExpectedOverallLimitAmount: "0",
330
+ OverallLimitAmount: "0",
331
+ PurContractForOverallLimit: "string",
332
+ PurReqnExternalReference: "string",
333
+ PurReqnItemExternalReference: "string",
334
+ PurReqnExternalSystemId: "string",
335
+ PurReqnExternalSystemType: "s",
336
+ PurReqnTypeExternalReference: "stri",
337
+ PurReqnProcessingType: "s",
338
+ PurReqnProcessingDateTime: "string",
339
+ ProcmtHubBackendBusSyst: "string",
340
+ SSPAuthorExternalBPIdnNumber: "string",
341
+ SSPReqrUserId: "string",
342
+ to_PurchaseReqn: {
343
+ PurchaseRequisition: "string",
344
+ PurchaseRequisitionType: "stri",
345
+ PurReqnDescription: "string",
346
+ SourceDetermination: true,
347
+ PurReqnDoOnlyValidation: true,
348
+ to_PurchaseReqnItem: { results: ["string"] }
349
+ },
350
+ to_PurchaseReqnAcctAssgmt: { results: [{
351
+ PurchaseRequisition: "string",
352
+ PurchaseRequisitionItem: "strin",
353
+ PurchaseReqnAcctAssgmtNumber: "st",
354
+ CostCenter: "string",
355
+ MasterFixedAsset: "string",
356
+ ProjectNetwork: "string",
357
+ Quantity: "0",
358
+ MultipleAcctAssgmtDistrPercent: "0",
359
+ PurReqnNetAmount: "0",
360
+ IsDeleted: "s",
361
+ CostElement: "string",
362
+ GLAccount: "string",
363
+ BusinessArea: "stri",
364
+ SDDocument: "string",
365
+ SalesOrder: "string",
366
+ SalesDocumentItem: "string",
367
+ SalesOrderItem: "string",
368
+ ScheduleLine: "stri",
369
+ SalesOrderScheduleLine: "stri",
370
+ FixedAsset: "stri",
371
+ ProcessOrder: "string",
372
+ OrderID: "string",
373
+ UnloadingPointName: "string",
374
+ ControllingArea: "stri",
375
+ CostObject: "string",
376
+ ProfitabilitySegment: "string",
377
+ ProfitCenter: "string",
378
+ ProjectNetworkInternalID: "string",
379
+ CommitmentItem: "string",
380
+ FundsCenter: "string",
381
+ Fund: "string",
382
+ FunctionalArea: "string",
383
+ CreationDate: "/Date(1492041600000)/",
384
+ GoodsRecipientName: "string",
385
+ RealEstateObject: "string",
386
+ NetworkActivityInternalID: "string",
387
+ PartnerAccountNumber: "string",
388
+ JointVentureRecoveryCode: "st",
389
+ SettlementReferenceDate: "/Date(1492041600000)/",
390
+ OrderInternalID: "string",
391
+ OrderIntBillOfOperationsItem: "string",
392
+ EarmarkedFundsDocument: "string",
393
+ CostCtrActivityType: "string",
394
+ BusinessProcess: "string",
395
+ GrantID: "string",
396
+ ValidityDate: "/Date(1492041600000)/",
397
+ ChartOfAccounts: "stri",
398
+ WBSElement: "string",
399
+ NetworkActivity: "stri",
400
+ PurchaseRequisitionType: "stri",
401
+ Plant: "stri",
402
+ PurchasingOrganization: "stri",
403
+ PurchasingGroup: "str"
404
+ }] },
405
+ to_PurchaseReqnDeliveryAddress: {
406
+ PurchaseRequisition: "string",
407
+ PurchaseRequisitionItem: "strin",
408
+ Plant: "stri",
409
+ CareOfName: "string",
410
+ AdditionalStreetSuffixName: "string",
411
+ CorrespondenceLanguage: "st",
412
+ PrfrdCommMediumType: "str",
413
+ POBox: "string",
414
+ POBoxIsWithoutNumber: true,
415
+ POBoxPostalCode: "string",
416
+ POBoxLobbyName: "string",
417
+ POBoxDeviatingCityName: "string",
418
+ POBoxDeviatingRegion: "str",
419
+ POBoxDeviatingCountry: "str",
420
+ DeliveryServiceTypeCode: "stri",
421
+ DeliveryServiceNumber: "string",
422
+ AddressTimeZone: "string",
423
+ CityName: "string",
424
+ District: "string",
425
+ CityCode: "string",
426
+ HomeCityName: "string",
427
+ PostalCode: "string",
428
+ CompanyPostalCode: "string",
429
+ StreetName: "string",
430
+ StreetPrefixName: "string",
431
+ AdditionalStreetPrefixName: "string",
432
+ StreetSuffixName: "string",
433
+ HouseNumber: "string",
434
+ HouseNumberSupplementText: "string",
435
+ Building: "string",
436
+ Floor: "string",
437
+ RoomNumber: "string",
438
+ Country: "str",
439
+ Region: "str",
440
+ County: "string",
441
+ FormOfAddress: "stri",
442
+ BusinessPartnerName1: "string",
443
+ BusinessPartnerName2: "string",
444
+ Nation: "s",
445
+ PhoneNumber: "string",
446
+ FaxNumber: "string",
447
+ SearchTerm1: "string",
448
+ StreetSearch: "string",
449
+ CitySearch: "string",
450
+ BusinessPartnerName3: "string",
451
+ BusinessPartnerName4: "string",
452
+ TaxJurisdiction: "string",
453
+ TransportZone: "string",
454
+ Person: "string"
455
+ },
456
+ to_PurchaseReqnItemText: { results: [{
457
+ PurchaseRequisition: "string",
458
+ PurchaseRequisitionItem: "strin",
459
+ DocumentText: "stri",
460
+ TechnicalObjectType: "string",
461
+ Language: "st",
462
+ NoteDescription: "string"
463
+ }] }
464
+ };
465
+ const CREATE_PURCHASE_REQUISITION_DEFAULT_VALUE = {
466
+ PurchaseRequisition: "string",
467
+ PurchaseRequisitionType: "string",
468
+ PurReqnDescription: "string",
469
+ SourceDetermination: true,
470
+ PurReqnDoOnlyValidation: true,
471
+ to_PurchaseReqnItem: { results: [{
472
+ PurchaseRequisition: "string",
473
+ PurchaseRequisitionItem: "strin",
474
+ PurchasingDocument: "string",
475
+ PurchasingDocumentItem: "strin",
476
+ PurReqnReleaseStatus: "st",
477
+ PurchaseRequisitionType: "stri",
478
+ PurchasingDocumentItemCategory: "s",
479
+ PurchaseRequisitionItemText: "string",
480
+ AccountAssignmentCategory: "s",
481
+ Material: "string",
482
+ MaterialGroup: "string",
483
+ RequestedQuantity: "0",
484
+ BaseUnit: "str",
485
+ PurchaseRequisitionPrice: "0",
486
+ PurReqnPriceQuantity: "0",
487
+ MaterialGoodsReceiptDuration: "0",
488
+ ReleaseCode: "s",
489
+ PurchaseRequisitionReleaseDate: "/Date(1492041600000)/",
490
+ PurchasingOrganization: "stri",
491
+ PurchasingGroup: "str",
492
+ Plant: "stri",
493
+ CompanyCode: "stri",
494
+ SupplyingPlant: "stri",
495
+ OrderedQuantity: "0",
496
+ DeliveryDate: "/Date(1492041600000)/",
497
+ ProcessingStatus: "s",
498
+ ExternalApprovalStatus: "s",
499
+ PurchasingInfoRecord: "string",
500
+ Supplier: "string",
501
+ IsDeleted: "s",
502
+ FixedSupplier: "string",
503
+ RequisitionerName: "string",
504
+ PurReqnItemCurrency: "strin",
505
+ MaterialPlannedDeliveryDurn: "0",
506
+ DelivDateCategory: "s",
507
+ MultipleAcctAssgmtDistribution: "s",
508
+ StorageLocation: "stri",
509
+ PurReqnSSPRequestor: "string",
510
+ PurReqnSSPAuthor: "string",
511
+ PurchaseContract: "string",
512
+ PurchaseContractItem: "strin",
513
+ ConsumptionPosting: "s",
514
+ PurReqnOrigin: "s",
515
+ PurReqnSSPCatalog: "string",
516
+ PurReqnSSPCatalogItem: "string",
517
+ PurReqnSSPCrossCatalogItem: 0,
518
+ IsPurReqnBlocked: "s",
519
+ ItemDeliveryAddressID: "string",
520
+ Language: "st",
521
+ IsClosed: true,
522
+ ReleaseIsNotCompleted: true,
523
+ ServicePerformer: "string",
524
+ ProductType: "st",
525
+ PurchaseRequisitionStatus: "string",
526
+ ReleaseStrategy: "st",
527
+ PerformancePeriodStartDate: "/Date(1492041600000)/",
528
+ PerformancePeriodEndDate: "/Date(1492041600000)/",
529
+ PurchaseOrderPriceType: "s",
530
+ SupplierMaterialNumber: "string",
531
+ Batch: "string",
532
+ MaterialRevisionLevel: "st",
533
+ MinRemainingShelfLife: "0",
534
+ ItemNetAmount: "0",
535
+ GoodsReceiptIsExpected: true,
536
+ InvoiceIsExpected: true,
537
+ GoodsReceiptIsNonValuated: true,
538
+ RequirementTracking: "string",
539
+ MRPController: "str",
540
+ TaxCode: "st",
541
+ PurchaseRequisitionIsFixed: true,
542
+ ExpectedOverallLimitAmount: "0",
543
+ OverallLimitAmount: "0",
544
+ PurContractForOverallLimit: "string",
545
+ PurReqnExternalReference: "string",
546
+ PurReqnItemExternalReference: "string",
547
+ PurReqnExternalSystemId: "string",
548
+ PurReqnExternalSystemType: "s",
549
+ PurReqnTypeExternalReference: "stri",
550
+ PurReqnProcessingType: "s",
551
+ PurReqnProcessingDateTime: "string",
552
+ ProcmtHubBackendBusSyst: "string",
553
+ SSPAuthorExternalBPIdnNumber: "string",
554
+ SSPReqrUserId: "string",
555
+ to_PurchaseReqn: "string",
556
+ to_PurchaseReqnAcctAssgmt: { results: [{
557
+ PurchaseRequisition: "string",
558
+ PurchaseRequisitionItem: "strin",
559
+ PurchaseReqnAcctAssgmtNumber: "st",
560
+ CostCenter: "string",
561
+ MasterFixedAsset: "string",
562
+ ProjectNetwork: "string",
563
+ Quantity: "0",
564
+ MultipleAcctAssgmtDistrPercent: "0",
565
+ PurReqnNetAmount: "0",
566
+ IsDeleted: "s",
567
+ CostElement: "string",
568
+ GLAccount: "string",
569
+ BusinessArea: "stri",
570
+ SDDocument: "string",
571
+ SalesOrder: "string",
572
+ SalesDocumentItem: "string",
573
+ SalesOrderItem: "string",
574
+ ScheduleLine: "stri",
575
+ SalesOrderScheduleLine: "stri",
576
+ FixedAsset: "stri",
577
+ ProcessOrder: "string",
578
+ OrderID: "string",
579
+ UnloadingPointName: "string",
580
+ ControllingArea: "stri",
581
+ CostObject: "string",
582
+ ProfitabilitySegment: "string",
583
+ ProfitCenter: "string",
584
+ ProjectNetworkInternalID: "string",
585
+ CommitmentItem: "string",
586
+ FundsCenter: "string",
587
+ Fund: "string",
588
+ FunctionalArea: "string",
589
+ CreationDate: "/Date(1492041600000)/",
590
+ GoodsRecipientName: "string",
591
+ RealEstateObject: "string",
592
+ NetworkActivityInternalID: "string",
593
+ PartnerAccountNumber: "string",
594
+ JointVentureRecoveryCode: "st",
595
+ SettlementReferenceDate: "/Date(1492041600000)/",
596
+ OrderInternalID: "string",
597
+ OrderIntBillOfOperationsItem: "string",
598
+ EarmarkedFundsDocument: "string",
599
+ CostCtrActivityType: "string",
600
+ BusinessProcess: "string",
601
+ GrantID: "string",
602
+ ValidityDate: "/Date(1492041600000)/",
603
+ ChartOfAccounts: "stri",
604
+ WBSElement: "string",
605
+ NetworkActivity: "stri",
606
+ PurchaseRequisitionType: "stri",
607
+ Plant: "stri",
608
+ PurchasingOrganization: "stri",
609
+ PurchasingGroup: "str"
610
+ }] },
611
+ to_PurchaseReqnDeliveryAddress: {
612
+ PurchaseRequisition: "string",
613
+ PurchaseRequisitionItem: "strin",
614
+ Plant: "stri",
615
+ CareOfName: "string",
616
+ AdditionalStreetSuffixName: "string",
617
+ CorrespondenceLanguage: "st",
618
+ PrfrdCommMediumType: "str",
619
+ POBox: "string",
620
+ POBoxIsWithoutNumber: true,
621
+ POBoxPostalCode: "string",
622
+ POBoxLobbyName: "string",
623
+ POBoxDeviatingCityName: "string",
624
+ POBoxDeviatingRegion: "str",
625
+ POBoxDeviatingCountry: "str",
626
+ DeliveryServiceTypeCode: "stri",
627
+ DeliveryServiceNumber: "string",
628
+ AddressTimeZone: "string",
629
+ CityName: "string",
630
+ District: "string",
631
+ CityCode: "string",
632
+ HomeCityName: "string",
633
+ PostalCode: "string",
634
+ CompanyPostalCode: "string",
635
+ StreetName: "string",
636
+ StreetPrefixName: "string",
637
+ AdditionalStreetPrefixName: "string",
638
+ StreetSuffixName: "string",
639
+ HouseNumber: "string",
640
+ HouseNumberSupplementText: "string",
641
+ Building: "string",
642
+ Floor: "string",
643
+ RoomNumber: "string",
644
+ Country: "str",
645
+ Region: "str",
646
+ County: "string",
647
+ FormOfAddress: "stri",
648
+ BusinessPartnerName1: "string",
649
+ BusinessPartnerName2: "string",
650
+ Nation: "s",
651
+ PhoneNumber: "string",
652
+ FaxNumber: "string",
653
+ SearchTerm1: "string",
654
+ StreetSearch: "string",
655
+ CitySearch: "string",
656
+ BusinessPartnerName3: "string",
657
+ BusinessPartnerName4: "string",
658
+ TaxJurisdiction: "string",
659
+ TransportZone: "string",
660
+ Person: "string"
661
+ },
662
+ to_PurchaseReqnItemText: { results: [{
663
+ PurchaseRequisition: "string",
664
+ PurchaseRequisitionItem: "strin",
665
+ DocumentText: "stri",
666
+ TechnicalObjectType: "string",
667
+ Language: "st",
668
+ NoteDescription: "string"
669
+ }] }
670
+ }] }
671
+ };
672
+ const UPDATE_PURCHASE_REQUISITION_DEFAULT_VALUE = { d: {
673
+ PurchaseRequisitionType: "string",
674
+ PurReqnDescription: "string",
675
+ SourceDetermination: true,
676
+ PurReqnDoOnlyValidation: true
677
+ } };
678
+ const GET_PURCHASE_REQUISITION_ITEM_DETAILS_ORDER_BY_MODEL = [
679
+ "PurchaseRequisition",
680
+ "PurchaseRequisition desc",
681
+ "PurchaseRequisitionItem",
682
+ "PurchaseRequisitionItem desc",
683
+ "PurchasingDocument",
684
+ "PurchasingDocument desc",
685
+ "PurchasingDocumentItem",
686
+ "PurchasingDocumentItem desc",
687
+ "PurReqnReleaseStatus",
688
+ "PurReqnReleaseStatus desc",
689
+ "PurchaseRequisitionType",
690
+ "PurchaseRequisitionType desc",
691
+ "PurchasingDocumentSubtype",
692
+ "PurchasingDocumentSubtype desc",
693
+ "PurchasingDocumentItemCategory",
694
+ "PurchasingDocumentItemCategory desc",
695
+ "PurchaseRequisitionItemText",
696
+ "PurchaseRequisitionItemText desc",
697
+ "AccountAssignmentCategory",
698
+ "AccountAssignmentCategory desc",
699
+ "Material",
700
+ "Material desc",
701
+ "MaterialGroup",
702
+ "MaterialGroup desc",
703
+ "PurchasingDocumentCategory",
704
+ "PurchasingDocumentCategory desc",
705
+ "RequestedQuantity",
706
+ "RequestedQuantity desc",
707
+ "BaseUnit",
708
+ "BaseUnit desc",
709
+ "PurchaseRequisitionPrice",
710
+ "PurchaseRequisitionPrice desc",
711
+ "PurReqnPriceQuantity",
712
+ "PurReqnPriceQuantity desc",
713
+ "MaterialGoodsReceiptDuration",
714
+ "MaterialGoodsReceiptDuration desc",
715
+ "ReleaseCode",
716
+ "ReleaseCode desc",
717
+ "PurchaseRequisitionReleaseDate",
718
+ "PurchaseRequisitionReleaseDate desc",
719
+ "PurchasingOrganization",
720
+ "PurchasingOrganization desc",
721
+ "PurchasingGroup",
722
+ "PurchasingGroup desc",
723
+ "Plant",
724
+ "Plant desc",
725
+ "CompanyCode",
726
+ "CompanyCode desc",
727
+ "SourceOfSupplyIsAssigned",
728
+ "SourceOfSupplyIsAssigned desc",
729
+ "SupplyingPlant",
730
+ "SupplyingPlant desc",
731
+ "OrderedQuantity",
732
+ "OrderedQuantity desc",
733
+ "DeliveryDate",
734
+ "DeliveryDate desc",
735
+ "CreationDate",
736
+ "CreationDate desc",
737
+ "ProcessingStatus",
738
+ "ProcessingStatus desc",
739
+ "ExternalApprovalStatus",
740
+ "ExternalApprovalStatus desc",
741
+ "PurchasingInfoRecord",
742
+ "PurchasingInfoRecord desc",
743
+ "Supplier",
744
+ "Supplier desc",
745
+ "IsDeleted",
746
+ "IsDeleted desc",
747
+ "FixedSupplier",
748
+ "FixedSupplier desc",
749
+ "RequisitionerName",
750
+ "RequisitionerName desc",
751
+ "CreatedByUser",
752
+ "CreatedByUser desc",
753
+ "PurReqCreationDate",
754
+ "PurReqCreationDate desc",
755
+ "DeliveryAddressID",
756
+ "DeliveryAddressID desc",
757
+ "ManualDeliveryAddressID",
758
+ "ManualDeliveryAddressID desc",
759
+ "PurReqnItemCurrency",
760
+ "PurReqnItemCurrency desc",
761
+ "MaterialPlannedDeliveryDurn",
762
+ "MaterialPlannedDeliveryDurn desc",
763
+ "DelivDateCategory",
764
+ "DelivDateCategory desc",
765
+ "MultipleAcctAssgmtDistribution",
766
+ "MultipleAcctAssgmtDistribution desc",
767
+ "StorageLocation",
768
+ "StorageLocation desc",
769
+ "PurReqnSSPRequestor",
770
+ "PurReqnSSPRequestor desc",
771
+ "PurReqnSSPAuthor",
772
+ "PurReqnSSPAuthor desc",
773
+ "PurchaseContract",
774
+ "PurchaseContract desc",
775
+ "PurReqnSourceOfSupplyType",
776
+ "PurReqnSourceOfSupplyType desc",
777
+ "PurchaseContractItem",
778
+ "PurchaseContractItem desc",
779
+ "ConsumptionPosting",
780
+ "ConsumptionPosting desc",
781
+ "PurReqnOrigin",
782
+ "PurReqnOrigin desc",
783
+ "PurReqnSSPCatalog",
784
+ "PurReqnSSPCatalog desc",
785
+ "PurReqnSSPCatalogItem",
786
+ "PurReqnSSPCatalogItem desc",
787
+ "PurReqnSSPCrossCatalogItem",
788
+ "PurReqnSSPCrossCatalogItem desc",
789
+ "IsPurReqnBlocked",
790
+ "IsPurReqnBlocked desc",
791
+ "ItemDeliveryAddressID",
792
+ "ItemDeliveryAddressID desc",
793
+ "Language",
794
+ "Language desc",
795
+ "IsClosed",
796
+ "IsClosed desc",
797
+ "ReleaseIsNotCompleted",
798
+ "ReleaseIsNotCompleted desc",
799
+ "ServicePerformer",
800
+ "ServicePerformer desc",
801
+ "ProductType",
802
+ "ProductType desc",
803
+ "PurchaseRequisitionStatus",
804
+ "PurchaseRequisitionStatus desc",
805
+ "ReleaseStrategy",
806
+ "ReleaseStrategy desc",
807
+ "PerformancePeriodStartDate",
808
+ "PerformancePeriodStartDate desc",
809
+ "PerformancePeriodEndDate",
810
+ "PerformancePeriodEndDate desc",
811
+ "PurchaseOrderPriceType",
812
+ "PurchaseOrderPriceType desc",
813
+ "SupplierMaterialNumber",
814
+ "SupplierMaterialNumber desc",
815
+ "Batch",
816
+ "Batch desc",
817
+ "MaterialRevisionLevel",
818
+ "MaterialRevisionLevel desc",
819
+ "MinRemainingShelfLife",
820
+ "MinRemainingShelfLife desc",
821
+ "ItemNetAmount",
822
+ "ItemNetAmount desc",
823
+ "GoodsReceiptIsExpected",
824
+ "GoodsReceiptIsExpected desc",
825
+ "InvoiceIsExpected",
826
+ "InvoiceIsExpected desc",
827
+ "GoodsReceiptIsNonValuated",
828
+ "GoodsReceiptIsNonValuated desc",
829
+ "RequirementTracking",
830
+ "RequirementTracking desc",
831
+ "MRPController",
832
+ "MRPController desc",
833
+ "TaxCode",
834
+ "TaxCode desc",
835
+ "PurchaseRequisitionIsFixed",
836
+ "PurchaseRequisitionIsFixed desc",
837
+ "AddressID",
838
+ "AddressID desc",
839
+ "LastChangeDateTime",
840
+ "LastChangeDateTime desc",
841
+ "Reservation",
842
+ "Reservation desc",
843
+ "ExpectedOverallLimitAmount",
844
+ "ExpectedOverallLimitAmount desc",
845
+ "OverallLimitAmount",
846
+ "OverallLimitAmount desc",
847
+ "PurContractForOverallLimit",
848
+ "PurContractForOverallLimit desc",
849
+ "PurReqnExternalReference",
850
+ "PurReqnExternalReference desc",
851
+ "PurReqnItemExternalReference",
852
+ "PurReqnItemExternalReference desc",
853
+ "PurReqnExternalSystemId",
854
+ "PurReqnExternalSystemId desc",
855
+ "PurReqnExternalSystemType",
856
+ "PurReqnExternalSystemType desc",
857
+ "PurReqnTypeExternalReference",
858
+ "PurReqnTypeExternalReference desc",
859
+ "PurReqnProcessingType",
860
+ "PurReqnProcessingType desc",
861
+ "PurReqnProcessingDateTime",
862
+ "PurReqnProcessingDateTime desc",
863
+ "ProcmtHubBackendBusSyst",
864
+ "ProcmtHubBackendBusSyst desc",
865
+ "SSPAuthorExternalBPIdnNumber",
866
+ "SSPAuthorExternalBPIdnNumber desc",
867
+ "SSPReqrUserId",
868
+ "SSPReqrUserId desc"
869
+ ].map(mapS4HanaOptionsToModelElements);
870
+ const GET_PURCHASE_REQUISITION_ITEM_DETAILS_SELECT_MODEL = [
871
+ "PurchaseRequisition",
872
+ "PurchaseRequisitionItem",
873
+ "PurchasingDocument",
874
+ "PurchasingDocumentItem",
875
+ "PurReqnReleaseStatus",
876
+ "PurchaseRequisitionType",
877
+ "PurchasingDocumentSubtype",
878
+ "PurchasingDocumentItemCategory",
879
+ "PurchaseRequisitionItemText",
880
+ "AccountAssignmentCategory",
881
+ "Material",
882
+ "MaterialGroup",
883
+ "PurchasingDocumentCategory",
884
+ "RequestedQuantity",
885
+ "BaseUnit",
886
+ "PurchaseRequisitionPrice",
887
+ "PurReqnPriceQuantity",
888
+ "MaterialGoodsReceiptDuration",
889
+ "ReleaseCode",
890
+ "PurchaseRequisitionReleaseDate",
891
+ "PurchasingOrganization",
892
+ "PurchasingGroup",
893
+ "Plant",
894
+ "CompanyCode",
895
+ "SourceOfSupplyIsAssigned",
896
+ "SupplyingPlant",
897
+ "OrderedQuantity",
898
+ "DeliveryDate",
899
+ "CreationDate",
900
+ "ProcessingStatus",
901
+ "ExternalApprovalStatus",
902
+ "PurchasingInfoRecord",
903
+ "Supplier",
904
+ "IsDeleted",
905
+ "FixedSupplier",
906
+ "RequisitionerName",
907
+ "CreatedByUser",
908
+ "PurReqCreationDate",
909
+ "DeliveryAddressID",
910
+ "ManualDeliveryAddressID",
911
+ "PurReqnItemCurrency",
912
+ "MaterialPlannedDeliveryDurn",
913
+ "DelivDateCategory",
914
+ "MultipleAcctAssgmtDistribution",
915
+ "StorageLocation",
916
+ "PurReqnSSPRequestor",
917
+ "PurReqnSSPAuthor",
918
+ "PurchaseContract",
919
+ "PurReqnSourceOfSupplyType",
920
+ "PurchaseContractItem",
921
+ "ConsumptionPosting",
922
+ "PurReqnOrigin",
923
+ "PurReqnSSPCatalog",
924
+ "PurReqnSSPCatalogItem",
925
+ "PurReqnSSPCrossCatalogItem",
926
+ "IsPurReqnBlocked",
927
+ "ItemDeliveryAddressID",
928
+ "Language",
929
+ "IsClosed",
930
+ "ReleaseIsNotCompleted",
931
+ "ServicePerformer",
932
+ "ProductType",
933
+ "PurchaseRequisitionStatus",
934
+ "ReleaseStrategy",
935
+ "PerformancePeriodStartDate",
936
+ "PerformancePeriodEndDate",
937
+ "PurchaseOrderPriceType",
938
+ "SupplierMaterialNumber",
939
+ "Batch",
940
+ "MaterialRevisionLevel",
941
+ "MinRemainingShelfLife",
942
+ "ItemNetAmount",
943
+ "GoodsReceiptIsExpected",
944
+ "InvoiceIsExpected",
945
+ "GoodsReceiptIsNonValuated",
946
+ "RequirementTracking",
947
+ "MRPController",
948
+ "TaxCode",
949
+ "PurchaseRequisitionIsFixed",
950
+ "AddressID",
951
+ "LastChangeDateTime",
952
+ "Reservation",
953
+ "ExpectedOverallLimitAmount",
954
+ "OverallLimitAmount",
955
+ "PurContractForOverallLimit",
956
+ "PurReqnExternalReference",
957
+ "PurReqnItemExternalReference",
958
+ "PurReqnExternalSystemId",
959
+ "PurReqnExternalSystemType",
960
+ "PurReqnTypeExternalReference",
961
+ "PurReqnProcessingType",
962
+ "PurReqnProcessingDateTime",
963
+ "ProcmtHubBackendBusSyst",
964
+ "SSPAuthorExternalBPIdnNumber",
965
+ "SSPReqrUserId",
966
+ "to_PurchaseReqn",
967
+ "to_PurchaseReqnAcctAssgmt",
968
+ "to_PurchaseReqnDeliveryAddress",
969
+ "to_PurchaseReqnItemText"
970
+ ].map(mapS4HanaOptionsToModelElements);
971
+ const GET_PURCHASE_REQUISITION_ITEM_DETAILS_EXPAND_MODEL = [
972
+ "to_PurchaseReqn",
973
+ "to_PurchaseReqnAcctAssgmt",
974
+ "to_PurchaseReqnDeliveryAddress",
975
+ "to_PurchaseReqnItemText"
976
+ ].map(mapS4HanaOptionsToModelElements);
977
+ const POLL_RESOURCE_CONFIG = {
978
+ changeRecords: {
979
+ label: "Change Records",
980
+ endpoint: "/sap/opu/odata/sap/API_CHANGE_RECORD/A_ChangeRecord",
981
+ filterField: "LastChangeDateTime",
982
+ createdAtField: "CreationDateTime",
983
+ updatedAtField: "LastChangeDateTime"
984
+ },
985
+ projects: {
986
+ label: "Projects",
987
+ endpoint: "/sap/opu/odata/CPD/SC_PROJ_ENGMT_CREATE_UPD_SRV/ProjectSet",
988
+ filterField: "ChangedOn",
989
+ createdAtField: "CreatedOn",
990
+ updatedAtField: "ChangedOn"
991
+ }
992
+ };
993
+ const pollResourceModel = Object.entries(POLL_RESOURCE_CONFIG).map(([value, { label }]) => ({
994
+ label,
995
+ value
996
+ }));
997
+ //#endregion
998
+ //#region src/inputs.ts
999
+ const connectionInput = (0, _prismatic_io_spectral.input)({
1000
+ label: "Connection",
1001
+ type: "connection",
1002
+ required: true
1003
+ });
1004
+ const requestBody = (0, _prismatic_io_spectral.input)({
1005
+ label: "Request Body",
1006
+ type: "string",
1007
+ comments: "Request Body",
1008
+ required: true,
1009
+ clean: _prismatic_io_spectral.util.types.toString
1010
+ });
1011
+ const requestBodyCode = (0, _prismatic_io_spectral.input)({
1012
+ label: "Body",
1013
+ type: "code",
1014
+ language: "json",
1015
+ required: false,
1016
+ comments: "Request Body",
1017
+ default: `{
1018
+ "BusEventSubscriberCode": "string",
1019
+ "SAPObjectType": "string",
1020
+ "SAPObjectTaskCode": "string",
1021
+ "BusEventSubscriptionStateCode": "string",
1022
+ "BusEventPriority": 0
1023
+ }`,
1024
+ clean: _prismatic_io_spectral.util.types.toString
1025
+ });
1026
+ const documentInfoRecordDocumentType = (0, _prismatic_io_spectral.input)({
1027
+ label: "Document Info Record Document Type",
1028
+ type: "string",
1029
+ comments: "Document Info Record Document Type",
1030
+ required: true,
1031
+ clean: _prismatic_io_spectral.util.types.toString
1032
+ });
1033
+ const documentInfoRecordDocumentNumber = (0, _prismatic_io_spectral.input)({
1034
+ label: "Document Info Record Document Number",
1035
+ type: "string",
1036
+ comments: "Document Info Record Document Number",
1037
+ required: true,
1038
+ clean: _prismatic_io_spectral.util.types.toString
1039
+ });
1040
+ const documentInfoRecordDocumentVersion = (0, _prismatic_io_spectral.input)({
1041
+ label: "Document Info Record Document Version",
1042
+ type: "string",
1043
+ comments: "Document Info Record Document Version",
1044
+ required: true,
1045
+ clean: _prismatic_io_spectral.util.types.toString
1046
+ });
1047
+ const documentInfoRecordDocumentPart = (0, _prismatic_io_spectral.input)({
1048
+ label: "Document Info Record Document Part",
1049
+ type: "string",
1050
+ comments: "Document Info Record Document Part",
1051
+ required: true,
1052
+ clean: _prismatic_io_spectral.util.types.toString
1053
+ });
1054
+ const filter = (0, _prismatic_io_spectral.input)({
1055
+ label: "Filter",
1056
+ type: "string",
1057
+ comments: "Filter items by property values",
1058
+ required: false,
1059
+ clean: _prismatic_io_spectral.util.types.toString
1060
+ });
1061
+ const inlinecount = (0, _prismatic_io_spectral.input)({
1062
+ label: "Inline Count",
1063
+ type: "string",
1064
+ required: false,
1065
+ model: [{
1066
+ label: "allpages",
1067
+ value: "allpages"
1068
+ }, {
1069
+ label: "none",
1070
+ value: "none"
1071
+ }],
1072
+ clean: _prismatic_io_spectral.util.types.toString
1073
+ });
1074
+ const orderBy = (0, _prismatic_io_spectral.input)({
1075
+ label: "Order By",
1076
+ type: "string",
1077
+ collection: "valuelist",
1078
+ comments: "Order items by property value",
1079
+ example: "Available values (use one): FileSize, FileSize desc, FileName, FileName desc, MimeType, MimeType desc, CreatedByUser, CreatedByUser desc, CreationDateTime, CreationDateTime desc, LastChangedByUser, LastChangedByUser desc, ChangedDateTime, ChangedDateTime desc",
1080
+ required: false,
1081
+ clean: (value) => value.map((item) => _prismatic_io_spectral.util.types.toString(item))
1082
+ });
1083
+ const select = (0, _prismatic_io_spectral.input)({
1084
+ label: "Select",
1085
+ type: "string",
1086
+ collection: "valuelist",
1087
+ comments: "Select property to be returned",
1088
+ example: "Available values (use one): DocumentInfoRecordDocType, DocumentInfoRecordDocNumber, DocumentInfoRecordDocVersion, DocumentInfoRecordDocPart, LogicalDocument, ArchiveDocumentID, LinkedSAPObjectKey, BusinessObjectTypeName, SemanticObject, WorkstationApplication, FileSize, FileName, DocumentURL, MimeType, Content, CreatedByUser, CreatedByUserFullName, CreationDateTime, BusinessObjectType, LastChangedByUser, LastChangedByUserFullName, ChangedDateTime, StorageCategory, ArchiveLinkRepository, SAPObjectType, SAPObjectNodeType, HarmonizedDocumentType, AttachmentDeletionIsAllowed, AttachmentRenameIsAllowed, Source, AttachmentContentHash",
1089
+ required: false,
1090
+ clean: (value) => value.map((item) => _prismatic_io_spectral.util.types.toString(item))
1091
+ });
1092
+ const logicalDocument = (0, _prismatic_io_spectral.input)({
1093
+ label: "Logical Document",
1094
+ type: "string",
1095
+ comments: "Logical Document",
1096
+ required: true,
1097
+ clean: _prismatic_io_spectral.util.types.toString
1098
+ });
1099
+ const archiveDocumentId = (0, _prismatic_io_spectral.input)({
1100
+ label: "Archive Document ID",
1101
+ type: "string",
1102
+ comments: "Archive Document ID",
1103
+ required: true,
1104
+ clean: _prismatic_io_spectral.util.types.toString
1105
+ });
1106
+ const linkedSapObjectKey = (0, _prismatic_io_spectral.input)({
1107
+ label: "Linked SAP Object Key",
1108
+ type: "string",
1109
+ comments: "Linked SAP Object Key",
1110
+ required: true,
1111
+ clean: _prismatic_io_spectral.util.types.toString
1112
+ });
1113
+ const businessObjectTypeName = (0, _prismatic_io_spectral.input)({
1114
+ label: "Business Object Type Name",
1115
+ type: "string",
1116
+ comments: "Business Object Type Name",
1117
+ required: true,
1118
+ clean: _prismatic_io_spectral.util.types.toString
1119
+ });
1120
+ const top = (0, _prismatic_io_spectral.input)({
1121
+ label: "Top",
1122
+ type: "string",
1123
+ comments: "Show only the first n items",
1124
+ required: false,
1125
+ clean: _prismatic_io_spectral.util.types.toString
1126
+ });
1127
+ const skip = (0, _prismatic_io_spectral.input)({
1128
+ label: "Skip",
1129
+ type: "string",
1130
+ comments: "Skip the first n items",
1131
+ required: false,
1132
+ clean: _prismatic_io_spectral.util.types.toString
1133
+ });
1134
+ const search = (0, _prismatic_io_spectral.input)({
1135
+ label: "Search",
1136
+ type: "string",
1137
+ comments: "Search items by search phrases",
1138
+ required: false,
1139
+ clean: _prismatic_io_spectral.util.types.toString
1140
+ });
1141
+ const busEventSubscriberCode = (0, _prismatic_io_spectral.input)({
1142
+ label: "Bus Event Subscriber Code",
1143
+ type: "string",
1144
+ comments: "Subscriber ID",
1145
+ required: true,
1146
+ clean: _prismatic_io_spectral.util.types.toString
1147
+ });
1148
+ const sapObjectType = (0, _prismatic_io_spectral.input)({
1149
+ label: "SAP Object Type",
1150
+ type: "string",
1151
+ comments: "SAP Object Type",
1152
+ required: true,
1153
+ clean: _prismatic_io_spectral.util.types.toString
1154
+ });
1155
+ const sapObjectTaskCode = (0, _prismatic_io_spectral.input)({
1156
+ label: "SAP Object Task Code",
1157
+ type: "string",
1158
+ comments: "SAP Object Task Code",
1159
+ required: true,
1160
+ clean: _prismatic_io_spectral.util.types.toString
1161
+ });
1162
+ const expand = (0, _prismatic_io_spectral.input)({
1163
+ label: "Expand",
1164
+ type: "string",
1165
+ collection: "valuelist",
1166
+ comments: "Expand related entities",
1167
+ example: "Available values (use one): ProjectRoleSet, WorkPackageSet",
1168
+ required: false,
1169
+ clean: (value) => value.map((item) => _prismatic_io_spectral.util.types.toString(item))
1170
+ });
1171
+ const projectId = (0, _prismatic_io_spectral.input)({
1172
+ label: "Project ID",
1173
+ type: "string",
1174
+ comments: "Project ID",
1175
+ required: true,
1176
+ dataSource: "selectProject",
1177
+ clean: _prismatic_io_spectral.util.types.toString
1178
+ });
1179
+ const changeRecordUuid = (0, _prismatic_io_spectral.input)({
1180
+ label: "Change Record UUID",
1181
+ type: "string",
1182
+ comments: "NodeID",
1183
+ required: true,
1184
+ dataSource: "selectChangeRecord",
1185
+ clean: _prismatic_io_spectral.util.types.toString
1186
+ });
1187
+ const attachOrderBy = (0, _prismatic_io_spectral.input)({
1188
+ label: "Order By",
1189
+ placeholder: "Order By",
1190
+ type: "string",
1191
+ required: false,
1192
+ comments: "Order items by property value",
1193
+ collection: "valuelist",
1194
+ model: [
1195
+ {
1196
+ label: "FileSize",
1197
+ value: "FileSize"
1198
+ },
1199
+ {
1200
+ label: "FileSize desc",
1201
+ value: "FileSize desc"
1202
+ },
1203
+ {
1204
+ label: "FileName",
1205
+ value: "FileName"
1206
+ },
1207
+ {
1208
+ label: "FileName desc",
1209
+ value: "FileName desc"
1210
+ },
1211
+ {
1212
+ label: "MimeType",
1213
+ value: "MimeType"
1214
+ },
1215
+ {
1216
+ label: "MimeType desc",
1217
+ value: "MimeType desc"
1218
+ },
1219
+ {
1220
+ label: "CreatedByUser",
1221
+ value: "CreatedByUser"
1222
+ },
1223
+ {
1224
+ label: "CreatedByUser desc",
1225
+ value: "CreatedByUser desc"
1226
+ },
1227
+ {
1228
+ label: "CreationDateTime",
1229
+ value: "CreationDateTime"
1230
+ },
1231
+ {
1232
+ label: "CreationDateTime desc",
1233
+ value: "CreationDateTime desc"
1234
+ },
1235
+ {
1236
+ label: "LastChangedByUser",
1237
+ value: "LastChangedByUser"
1238
+ },
1239
+ {
1240
+ label: "LastChangedByUser desc",
1241
+ value: "LastChangedByUser desc"
1242
+ },
1243
+ {
1244
+ label: "ChangedDateTime",
1245
+ value: "ChangedDateTime"
1246
+ },
1247
+ {
1248
+ label: "ChangedDateTime desc",
1249
+ value: "ChangedDateTime desc"
1250
+ }
1251
+ ],
1252
+ clean: _prismatic_io_spectral.util.types.toString
1253
+ });
1254
+ const attachSelect = (0, _prismatic_io_spectral.input)({
1255
+ label: "Select",
1256
+ placeholder: "Select",
1257
+ type: "string",
1258
+ required: false,
1259
+ comments: "Select property to be returned",
1260
+ collection: "valuelist",
1261
+ model: [
1262
+ {
1263
+ label: "DocumentInfoRecordDocType",
1264
+ value: "DocumentInfoRecordDocType"
1265
+ },
1266
+ {
1267
+ label: "DocumentInfoRecordDocNumber",
1268
+ value: "DocumentInfoRecordDocNumber"
1269
+ },
1270
+ {
1271
+ label: "DocumentInfoRecordDocVersion",
1272
+ value: "DocumentInfoRecordDocVersion"
1273
+ },
1274
+ {
1275
+ label: "DocumentInfoRecordDocPart",
1276
+ value: "DocumentInfoRecordDocPart"
1277
+ },
1278
+ {
1279
+ label: "LogicalDocument",
1280
+ value: "LogicalDocument"
1281
+ },
1282
+ {
1283
+ label: "ArchiveDocumentID",
1284
+ value: "ArchiveDocumentID"
1285
+ },
1286
+ {
1287
+ label: "LinkedSAPObjectKey",
1288
+ value: "LinkedSAPObjectKey"
1289
+ },
1290
+ {
1291
+ label: "BusinessObjectTypeName",
1292
+ value: "BusinessObjectTypeName"
1293
+ },
1294
+ {
1295
+ label: "SemanticObject",
1296
+ value: "SemanticObject"
1297
+ },
1298
+ {
1299
+ label: "WorkstationApplication",
1300
+ value: "WorkstationApplication"
1301
+ },
1302
+ {
1303
+ label: "FileSize",
1304
+ value: "FileSize"
1305
+ },
1306
+ {
1307
+ label: "FileName",
1308
+ value: "FileName"
1309
+ },
1310
+ {
1311
+ label: "DocumentURL",
1312
+ value: "DocumentURL"
1313
+ },
1314
+ {
1315
+ label: "MimeType",
1316
+ value: "MimeType"
1317
+ },
1318
+ {
1319
+ label: "Content",
1320
+ value: "Content"
1321
+ },
1322
+ {
1323
+ label: "CreatedByUser",
1324
+ value: "CreatedByUser"
1325
+ },
1326
+ {
1327
+ label: "CreatedByUserFullName",
1328
+ value: "CreatedByUserFullName"
1329
+ },
1330
+ {
1331
+ label: "CreationDateTime",
1332
+ value: "CreationDateTime"
1333
+ },
1334
+ {
1335
+ label: "BusinessObjectType",
1336
+ value: "BusinessObjectType"
1337
+ },
1338
+ {
1339
+ label: "LastChangedByUser",
1340
+ value: "LastChangedByUser"
1341
+ },
1342
+ {
1343
+ label: "LastChangedByUserFullName",
1344
+ value: "LastChangedByUserFullName"
1345
+ },
1346
+ {
1347
+ label: "ChangedDateTime",
1348
+ value: "ChangedDateTime"
1349
+ },
1350
+ {
1351
+ label: "StorageCategory",
1352
+ value: "StorageCategory"
1353
+ },
1354
+ {
1355
+ label: "ArchiveLinkRepository",
1356
+ value: "ArchiveLinkRepository"
1357
+ },
1358
+ {
1359
+ label: "SAPObjectType",
1360
+ value: "SAPObjectType"
1361
+ },
1362
+ {
1363
+ label: "SAPObjectNodeType",
1364
+ value: "SAPObjectNodeType"
1365
+ },
1366
+ {
1367
+ label: "HarmonizedDocumentType",
1368
+ value: "HarmonizedDocumentType"
1369
+ },
1370
+ {
1371
+ label: "AttachmentDeletionIsAllowed",
1372
+ value: "AttachmentDeletionIsAllowed"
1373
+ },
1374
+ {
1375
+ label: "AttachmentRenameIsAllowed",
1376
+ value: "AttachmentRenameIsAllowed"
1377
+ },
1378
+ {
1379
+ label: "Source",
1380
+ value: "Source"
1381
+ },
1382
+ {
1383
+ label: "AttachmentContentHash",
1384
+ value: "AttachmentContentHash"
1385
+ }
1386
+ ],
1387
+ clean: _prismatic_io_spectral.util.types.toString
1388
+ });
1389
+ const changerecordSelect = (0, _prismatic_io_spectral.input)({
1390
+ label: "Select",
1391
+ placeholder: "Select",
1392
+ type: "string",
1393
+ required: false,
1394
+ comments: "Select property to be returned",
1395
+ collection: "valuelist",
1396
+ model: [
1397
+ {
1398
+ label: "Update_mc",
1399
+ value: "Update_mc"
1400
+ },
1401
+ {
1402
+ label: "to_ChangeRecordFuncLocTskList_oc",
1403
+ value: "to_ChangeRecordFuncLocTskList_oc"
1404
+ },
1405
+ {
1406
+ label: "to_ChangeRecordRateRtgTskList_oc",
1407
+ value: "to_ChangeRecordRateRtgTskList_oc"
1408
+ },
1409
+ {
1410
+ label: "to_ChangeRecordRefCharc_oc",
1411
+ value: "to_ChangeRecordRefCharc_oc"
1412
+ },
1413
+ {
1414
+ label: "to_ChangeRecordRefClass_oc",
1415
+ value: "to_ChangeRecordRefClass_oc"
1416
+ },
1417
+ {
1418
+ label: "to_ChangeRecordRefEquipTskList_oc",
1419
+ value: "to_ChangeRecordRefEquipTskList_oc"
1420
+ },
1421
+ {
1422
+ label: "to_ChangeRecordRefInspPlan_oc",
1423
+ value: "to_ChangeRecordRefInspPlan_oc"
1424
+ },
1425
+ {
1426
+ label: "to_ChangeRecordRefLabelSet_oc",
1427
+ value: "to_ChangeRecordRefLabelSet_oc"
1428
+ },
1429
+ {
1430
+ label: "to_ChangeRecordRefMasterRecipe_oc",
1431
+ value: "to_ChangeRecordRefMasterRecipe_oc"
1432
+ },
1433
+ {
1434
+ label: "to_ChangeRecordRefOpSetTskList_oc",
1435
+ value: "to_ChangeRecordRefOpSetTskList_oc"
1436
+ },
1437
+ {
1438
+ label: "to_ChangeRecordRefProdnRouting_oc",
1439
+ value: "to_ChangeRecordRefProdnRouting_oc"
1440
+ },
1441
+ {
1442
+ label: "to_ChangeRecordRefRecipe_oc",
1443
+ value: "to_ChangeRecordRefRecipe_oc"
1444
+ },
1445
+ {
1446
+ label: "to_ChangeRecordRefSpecification_oc",
1447
+ value: "to_ChangeRecordRefSpecification_oc"
1448
+ },
1449
+ {
1450
+ label: "to_ChangeRecordRefStdBOM_oc",
1451
+ value: "to_ChangeRecordRefStdBOM_oc"
1452
+ },
1453
+ {
1454
+ label: "to_ChangeRecordRefTmplRouting_oc",
1455
+ value: "to_ChangeRecordRefTmplRouting_oc"
1456
+ },
1457
+ {
1458
+ label: "to_ChangeRecordRefVarBOM_oc",
1459
+ value: "to_ChangeRecordRefVarBOM_oc"
1460
+ },
1461
+ {
1462
+ label: "to_ChgRecdCollaboration_oc",
1463
+ value: "to_ChgRecdCollaboration_oc"
1464
+ },
1465
+ {
1466
+ label: "to_ChgRecdEquipBOM_oc",
1467
+ value: "to_ChgRecdEquipBOM_oc"
1468
+ },
1469
+ {
1470
+ label: "to_ChgRecdFuncLocBOM_oc",
1471
+ value: "to_ChgRecdFuncLocBOM_oc"
1472
+ },
1473
+ {
1474
+ label: "to_ChgRecdRefCutPlngPrflTskList_oc",
1475
+ value: "to_ChgRecdRefCutPlngPrflTskList_oc"
1476
+ },
1477
+ {
1478
+ label: "to_ChgRecdRefEngBOM_oc",
1479
+ value: "to_ChgRecdRefEngBOM_oc"
1480
+ },
1481
+ {
1482
+ label: "to_ChgRecdRefMaintTskList_oc",
1483
+ value: "to_ChgRecdRefMaintTskList_oc"
1484
+ },
1485
+ {
1486
+ label: "to_ChgRecdRefMfgBOM_oc",
1487
+ value: "to_ChgRecdRefMfgBOM_oc"
1488
+ },
1489
+ {
1490
+ label: "to_ChgRecdRefPlngScp_oc",
1491
+ value: "to_ChgRecdRefPlngScp_oc"
1492
+ },
1493
+ {
1494
+ label: "to_ChgRecdRefRateRtgTskList_oc",
1495
+ value: "to_ChgRecdRefRateRtgTskList_oc"
1496
+ },
1497
+ {
1498
+ label: "to_ChgRecdWBSElmntBOM_oc",
1499
+ value: "to_ChgRecdWBSElmntBOM_oc"
1500
+ },
1501
+ {
1502
+ label: "to_RefBit_oc",
1503
+ value: "to_RefBit_oc"
1504
+ },
1505
+ {
1506
+ label: "to_RefBOM_oc",
1507
+ value: "to_RefBOM_oc"
1508
+ },
1509
+ {
1510
+ label: "to_RefDoc_oc",
1511
+ value: "to_RefDoc_oc"
1512
+ },
1513
+ {
1514
+ label: "to_RefMat_oc",
1515
+ value: "to_RefMat_oc"
1516
+ },
1517
+ {
1518
+ label: "to_RefPSV_oc",
1519
+ value: "to_RefPSV_oc"
1520
+ },
1521
+ {
1522
+ label: "ChangeRecordUUID",
1523
+ value: "ChangeRecordUUID"
1524
+ },
1525
+ {
1526
+ label: "ChangeRecord",
1527
+ value: "ChangeRecord"
1528
+ },
1529
+ {
1530
+ label: "ChangeRecordType",
1531
+ value: "ChangeRecordType"
1532
+ },
1533
+ {
1534
+ label: "ChangeRecordStatus",
1535
+ value: "ChangeRecordStatus"
1536
+ },
1537
+ {
1538
+ label: "ChangeNumber",
1539
+ value: "ChangeNumber"
1540
+ },
1541
+ {
1542
+ label: "CreatedByUser",
1543
+ value: "CreatedByUser"
1544
+ },
1545
+ {
1546
+ label: "CreationDateTime",
1547
+ value: "CreationDateTime"
1548
+ },
1549
+ {
1550
+ label: "LastChangedByUser",
1551
+ value: "LastChangedByUser"
1552
+ },
1553
+ {
1554
+ label: "LastChangeDateTime",
1555
+ value: "LastChangeDateTime"
1556
+ },
1557
+ {
1558
+ label: "ChangeRecordLifecycleStatus",
1559
+ value: "ChangeRecordLifecycleStatus"
1560
+ },
1561
+ {
1562
+ label: "Partner",
1563
+ value: "Partner"
1564
+ },
1565
+ {
1566
+ label: "ChgRecordDescriptionText",
1567
+ value: "ChgRecordDescriptionText"
1568
+ },
1569
+ {
1570
+ label: "ChangeRecordDetailDescription",
1571
+ value: "ChangeRecordDetailDescription"
1572
+ },
1573
+ {
1574
+ label: "ChgRecdExpectedCompletionDate",
1575
+ value: "ChgRecdExpectedCompletionDate"
1576
+ },
1577
+ {
1578
+ label: "to_ChangeRecordFuncLocTskList",
1579
+ value: "to_ChangeRecordFuncLocTskList"
1580
+ },
1581
+ {
1582
+ label: "to_ChangeRecordRefCharc",
1583
+ value: "to_ChangeRecordRefCharc"
1584
+ },
1585
+ {
1586
+ label: "to_ChangeRecordRefClass",
1587
+ value: "to_ChangeRecordRefClass"
1588
+ },
1589
+ {
1590
+ label: "to_ChangeRecordRefEquipTskList",
1591
+ value: "to_ChangeRecordRefEquipTskList"
1592
+ },
1593
+ {
1594
+ label: "to_ChangeRecordRefMasterRecipe",
1595
+ value: "to_ChangeRecordRefMasterRecipe"
1596
+ },
1597
+ {
1598
+ label: "to_ChangeRecordRefProdnRouting",
1599
+ value: "to_ChangeRecordRefProdnRouting"
1600
+ },
1601
+ {
1602
+ label: "to_ChangeRecordRefStdBOM",
1603
+ value: "to_ChangeRecordRefStdBOM"
1604
+ },
1605
+ {
1606
+ label: "to_ChangeRecordRefVarBOM",
1607
+ value: "to_ChangeRecordRefVarBOM"
1608
+ },
1609
+ {
1610
+ label: "to_ChgRecdCollaboration",
1611
+ value: "to_ChgRecdCollaboration"
1612
+ },
1613
+ {
1614
+ label: "to_ChgRecdEquipBOM",
1615
+ value: "to_ChgRecdEquipBOM"
1616
+ },
1617
+ {
1618
+ label: "to_ChgRecdFuncLocBOM",
1619
+ value: "to_ChgRecdFuncLocBOM"
1620
+ },
1621
+ {
1622
+ label: "to_ChgRecdRefEngBOM",
1623
+ value: "to_ChgRecdRefEngBOM"
1624
+ },
1625
+ {
1626
+ label: "to_ChgRecdRefMaintTskList",
1627
+ value: "to_ChgRecdRefMaintTskList"
1628
+ },
1629
+ {
1630
+ label: "to_ChgRecdRefMfgBOM",
1631
+ value: "to_ChgRecdRefMfgBOM"
1632
+ },
1633
+ {
1634
+ label: "to_RefBit",
1635
+ value: "to_RefBit"
1636
+ },
1637
+ {
1638
+ label: "to_RefBOM",
1639
+ value: "to_RefBOM"
1640
+ },
1641
+ {
1642
+ label: "to_RefDoc",
1643
+ value: "to_RefDoc"
1644
+ },
1645
+ {
1646
+ label: "to_RefMat",
1647
+ value: "to_RefMat"
1648
+ },
1649
+ {
1650
+ label: "to_RefPSV",
1651
+ value: "to_RefPSV"
1652
+ }
1653
+ ]
1654
+ });
1655
+ const changerecordExpand = (0, _prismatic_io_spectral.input)({
1656
+ label: "Expand",
1657
+ placeholder: "Expand",
1658
+ type: "string",
1659
+ required: false,
1660
+ comments: "Expand property to be returned",
1661
+ collection: "valuelist",
1662
+ model: [
1663
+ {
1664
+ label: "to_ChangeRecordFuncLocTskList",
1665
+ value: "to_ChangeRecordFuncLocTskList"
1666
+ },
1667
+ {
1668
+ label: "to_ChangeRecordRefCharc",
1669
+ value: "to_ChangeRecordRefCharc"
1670
+ },
1671
+ {
1672
+ label: "to_ChangeRecordRefClass",
1673
+ value: "to_ChangeRecordRefClass"
1674
+ },
1675
+ {
1676
+ label: "to_ChangeRecordRefEquipTskList",
1677
+ value: "to_ChangeRecordRefEquipTskList"
1678
+ },
1679
+ {
1680
+ label: "to_ChangeRecordRefMasterRecipe",
1681
+ value: "to_ChangeRecordRefMasterRecipe"
1682
+ },
1683
+ {
1684
+ label: "to_ChangeRecordRefProdnRouting",
1685
+ value: "to_ChangeRecordRefProdnRouting"
1686
+ },
1687
+ {
1688
+ label: "to_ChangeRecordRefStdBOM",
1689
+ value: "to_ChangeRecordRefStdBOM"
1690
+ },
1691
+ {
1692
+ label: "to_ChangeRecordRefVarBOM",
1693
+ value: "to_ChangeRecordRefVarBOM"
1694
+ },
1695
+ {
1696
+ label: "to_ChgRecdCollaboration",
1697
+ value: "to_ChgRecdCollaboration"
1698
+ },
1699
+ {
1700
+ label: "to_ChgRecdEquipBOM",
1701
+ value: "to_ChgRecdEquipBOM"
1702
+ },
1703
+ {
1704
+ label: "to_ChgRecdFuncLocBOM",
1705
+ value: "to_ChgRecdFuncLocBOM"
1706
+ },
1707
+ {
1708
+ label: "to_ChgRecdRefEngBOM",
1709
+ value: "to_ChgRecdRefEngBOM"
1710
+ },
1711
+ {
1712
+ label: "to_ChgRecdRefMaintTskList",
1713
+ value: "to_ChgRecdRefMaintTskList"
1714
+ },
1715
+ {
1716
+ label: "to_ChgRecdRefMfgBOM",
1717
+ value: "to_ChgRecdRefMfgBOM"
1718
+ },
1719
+ {
1720
+ label: "to_RefBit",
1721
+ value: "to_RefBit"
1722
+ },
1723
+ {
1724
+ label: "to_RefBOM",
1725
+ value: "to_RefBOM"
1726
+ },
1727
+ {
1728
+ label: "to_RefDoc",
1729
+ value: "to_RefDoc"
1730
+ },
1731
+ {
1732
+ label: "to_RefMat",
1733
+ value: "to_RefMat"
1734
+ },
1735
+ {
1736
+ label: "to_RefPSV",
1737
+ value: "to_RefPSV"
1738
+ }
1739
+ ]
1740
+ });
1741
+ const projectSelect = (0, _prismatic_io_spectral.input)({
1742
+ label: "Select",
1743
+ placeholder: "Select",
1744
+ type: "string",
1745
+ required: false,
1746
+ comments: "Select property to be returned",
1747
+ collection: "valuelist",
1748
+ model: [
1749
+ {
1750
+ label: "ProjectID",
1751
+ value: "ProjectID"
1752
+ },
1753
+ {
1754
+ label: "ProjectName",
1755
+ value: "ProjectName"
1756
+ },
1757
+ {
1758
+ label: "ProjectStage",
1759
+ value: "ProjectStage"
1760
+ },
1761
+ {
1762
+ label: "OrgID",
1763
+ value: "OrgID"
1764
+ },
1765
+ {
1766
+ label: "ProjectCategory",
1767
+ value: "ProjectCategory"
1768
+ },
1769
+ {
1770
+ label: "Currency",
1771
+ value: "Currency"
1772
+ },
1773
+ {
1774
+ label: "StartDate",
1775
+ value: "StartDate"
1776
+ },
1777
+ {
1778
+ label: "EndDate",
1779
+ value: "EndDate"
1780
+ },
1781
+ {
1782
+ label: "ProjManagerExtId",
1783
+ value: "ProjManagerExtId"
1784
+ },
1785
+ {
1786
+ label: "ProjManagerCompCode",
1787
+ value: "ProjManagerCompCode"
1788
+ },
1789
+ {
1790
+ label: "Customer",
1791
+ value: "Customer"
1792
+ },
1793
+ {
1794
+ label: "CostCenter",
1795
+ value: "CostCenter"
1796
+ },
1797
+ {
1798
+ label: "ProfitCenter",
1799
+ value: "ProfitCenter"
1800
+ },
1801
+ {
1802
+ label: "ProjAccountantExtId",
1803
+ value: "ProjAccountantExtId"
1804
+ },
1805
+ {
1806
+ label: "ProjAccountantCompCode",
1807
+ value: "ProjAccountantCompCode"
1808
+ },
1809
+ {
1810
+ label: "ProjControllerExtId",
1811
+ value: "ProjControllerExtId"
1812
+ },
1813
+ {
1814
+ label: "ProjControllerCompCode",
1815
+ value: "ProjControllerCompCode"
1816
+ },
1817
+ {
1818
+ label: "ProjPartnerExtId",
1819
+ value: "ProjPartnerExtId"
1820
+ },
1821
+ {
1822
+ label: "ProjPartnerCompCode",
1823
+ value: "ProjPartnerCompCode"
1824
+ },
1825
+ {
1826
+ label: "ProjectDesc",
1827
+ value: "ProjectDesc"
1828
+ },
1829
+ {
1830
+ label: "Confidential",
1831
+ value: "Confidential"
1832
+ },
1833
+ {
1834
+ label: "UseProjectBilling",
1835
+ value: "UseProjectBilling"
1836
+ },
1837
+ {
1838
+ label: "RestrictTimePosting",
1839
+ value: "RestrictTimePosting"
1840
+ },
1841
+ {
1842
+ label: "CreatedOn",
1843
+ value: "CreatedOn"
1844
+ },
1845
+ {
1846
+ label: "ChangedOn",
1847
+ value: "ChangedOn"
1848
+ },
1849
+ {
1850
+ label: "ProjectRoleSet",
1851
+ value: "ProjectRoleSet"
1852
+ },
1853
+ {
1854
+ label: "WorkPackageSet",
1855
+ value: "WorkPackageSet"
1856
+ }
1857
+ ]
1858
+ });
1859
+ const projectExpand = (0, _prismatic_io_spectral.input)({
1860
+ label: "Expand",
1861
+ placeholder: "Expand",
1862
+ type: "string",
1863
+ required: false,
1864
+ comments: "Expand to include related entities",
1865
+ collection: "valuelist",
1866
+ model: [{
1867
+ label: "ProjectRoleSet",
1868
+ value: "ProjectRoleSet"
1869
+ }, {
1870
+ label: "WorkPackageSet",
1871
+ value: "WorkPackageSet"
1872
+ }]
1873
+ });
1874
+ const changeRecordOrderBy = (0, _prismatic_io_spectral.input)({
1875
+ label: "Order By",
1876
+ placeholder: "Order By",
1877
+ type: "string",
1878
+ required: false,
1879
+ comments: "Order items by property value",
1880
+ collection: "valuelist",
1881
+ model: [
1882
+ {
1883
+ label: "ChangeRecordUUID",
1884
+ value: "ChangeRecordUUID"
1885
+ },
1886
+ {
1887
+ label: "ChangeRecordUUID desc",
1888
+ value: "ChangeRecordUUID desc"
1889
+ },
1890
+ {
1891
+ label: "ChangeRecord",
1892
+ value: "ChangeRecord"
1893
+ },
1894
+ {
1895
+ label: "ChangeRecord desc",
1896
+ value: "ChangeRecord desc"
1897
+ },
1898
+ {
1899
+ label: "ChangeRecordType",
1900
+ value: "ChangeRecordType"
1901
+ },
1902
+ {
1903
+ label: "ChangeRecordType desc",
1904
+ value: "ChangeRecordType desc"
1905
+ },
1906
+ {
1907
+ label: "ChangeRecordStatus",
1908
+ value: "ChangeRecordStatus"
1909
+ },
1910
+ {
1911
+ label: "ChangeRecordStatus desc",
1912
+ value: "ChangeRecordStatus desc"
1913
+ },
1914
+ {
1915
+ label: "ChangeNumber",
1916
+ value: "ChangeNumber"
1917
+ },
1918
+ {
1919
+ label: "ChangeNumber desc",
1920
+ value: "ChangeNumber desc"
1921
+ },
1922
+ {
1923
+ label: "CreatedByUser",
1924
+ value: "CreatedByUser"
1925
+ },
1926
+ {
1927
+ label: "CreatedByUser desc",
1928
+ value: "CreatedByUser desc"
1929
+ },
1930
+ {
1931
+ label: "CreationDateTime",
1932
+ value: "CreationDateTime"
1933
+ },
1934
+ {
1935
+ label: "CreationDateTime desc",
1936
+ value: "CreationDateTime desc"
1937
+ },
1938
+ {
1939
+ label: "LastChangedByUser",
1940
+ value: "LastChangedByUser"
1941
+ },
1942
+ {
1943
+ label: "LastChangedByUser desc",
1944
+ value: "LastChangedByUser desc"
1945
+ },
1946
+ {
1947
+ label: "LastChangeDateTime",
1948
+ value: "LastChangeDateTime"
1949
+ },
1950
+ {
1951
+ label: "LastChangeDateTime desc",
1952
+ value: "LastChangeDateTime desc"
1953
+ },
1954
+ {
1955
+ label: "ChangeRecordLifecycleStatus",
1956
+ value: "ChangeRecordLifecycleStatus"
1957
+ },
1958
+ {
1959
+ label: "ChangeRecordLifecycleStatus desc",
1960
+ value: "ChangeRecordLifecycleStatus desc"
1961
+ },
1962
+ {
1963
+ label: "Partner",
1964
+ value: "Partner"
1965
+ },
1966
+ {
1967
+ label: "Partner desc",
1968
+ value: "Partner desc"
1969
+ },
1970
+ {
1971
+ label: "ChgRecordDescriptionText",
1972
+ value: "ChgRecordDescriptionText"
1973
+ },
1974
+ {
1975
+ label: "ChgRecordDescriptionText desc",
1976
+ value: "ChgRecordDescriptionText desc"
1977
+ },
1978
+ {
1979
+ label: "ChgRecdExpectedCompletionDate",
1980
+ value: "ChgRecdExpectedCompletionDate"
1981
+ },
1982
+ {
1983
+ label: "ChgRecdExpectedCompletionDate desc",
1984
+ value: "ChgRecdExpectedCompletionDate desc"
1985
+ }
1986
+ ],
1987
+ clean: _prismatic_io_spectral.util.types.toString
1988
+ });
1989
+ const changeRecordSelect = (0, _prismatic_io_spectral.input)({
1990
+ label: "Select",
1991
+ placeholder: "Select",
1992
+ type: "string",
1993
+ required: false,
1994
+ comments: "Select property to be returned",
1995
+ collection: "valuelist",
1996
+ model: [
1997
+ {
1998
+ label: "Update_mc",
1999
+ value: "Update_mc"
2000
+ },
2001
+ {
2002
+ label: "to_ChangeRecordFuncLocTskList_oc",
2003
+ value: "to_ChangeRecordFuncLocTskList_oc"
2004
+ },
2005
+ {
2006
+ label: "to_ChangeRecordRateRtgTskList_oc",
2007
+ value: "to_ChangeRecordRateRtgTskList_oc"
2008
+ },
2009
+ {
2010
+ label: "to_ChangeRecordRefCharc_oc",
2011
+ value: "to_ChangeRecordRefCharc_oc"
2012
+ },
2013
+ {
2014
+ label: "to_ChangeRecordRefClass_oc",
2015
+ value: "to_ChangeRecordRefClass_oc"
2016
+ },
2017
+ {
2018
+ label: "to_ChangeRecordRefEquipTskList_oc",
2019
+ value: "to_ChangeRecordRefEquipTskList_oc"
2020
+ },
2021
+ {
2022
+ label: "to_ChangeRecordRefInspPlan_oc",
2023
+ value: "to_ChangeRecordRefInspPlan_oc"
2024
+ },
2025
+ {
2026
+ label: "to_ChangeRecordRefLabelSet_oc",
2027
+ value: "to_ChangeRecordRefLabelSet_oc"
2028
+ },
2029
+ {
2030
+ label: "to_ChangeRecordRefMasterRecipe_oc",
2031
+ value: "to_ChangeRecordRefMasterRecipe_oc"
2032
+ },
2033
+ {
2034
+ label: "to_ChangeRecordRefOpSetTskList_oc",
2035
+ value: "to_ChangeRecordRefOpSetTskList_oc"
2036
+ },
2037
+ {
2038
+ label: "to_ChangeRecordRefProdnRouting_oc",
2039
+ value: "to_ChangeRecordRefProdnRouting_oc"
2040
+ },
2041
+ {
2042
+ label: "to_ChangeRecordRefRecipe_oc",
2043
+ value: "to_ChangeRecordRefRecipe_oc"
2044
+ },
2045
+ {
2046
+ label: "to_ChangeRecordRefSpecification_oc",
2047
+ value: "to_ChangeRecordRefSpecification_oc"
2048
+ },
2049
+ {
2050
+ label: "to_ChangeRecordRefStdBOM_oc",
2051
+ value: "to_ChangeRecordRefStdBOM_oc"
2052
+ },
2053
+ {
2054
+ label: "to_ChangeRecordRefTmplRouting_oc",
2055
+ value: "to_ChangeRecordRefTmplRouting_oc"
2056
+ },
2057
+ {
2058
+ label: "to_ChangeRecordRefVarBOM_oc",
2059
+ value: "to_ChangeRecordRefVarBOM_oc"
2060
+ },
2061
+ {
2062
+ label: "to_ChgRecdCollaboration_oc",
2063
+ value: "to_ChgRecdCollaboration_oc"
2064
+ },
2065
+ {
2066
+ label: "to_ChgRecdEquipBOM_oc",
2067
+ value: "to_ChgRecdEquipBOM_oc"
2068
+ },
2069
+ {
2070
+ label: "to_ChgRecdFuncLocBOM_oc",
2071
+ value: "to_ChgRecdFuncLocBOM_oc"
2072
+ },
2073
+ {
2074
+ label: "to_ChgRecdRefCutPlngPrflTskList_oc",
2075
+ value: "to_ChgRecdRefCutPlngPrflTskList_oc"
2076
+ },
2077
+ {
2078
+ label: "to_ChgRecdRefEngBOM_oc",
2079
+ value: "to_ChgRecdRefEngBOM_oc"
2080
+ },
2081
+ {
2082
+ label: "to_ChgRecdRefMaintTskList_oc",
2083
+ value: "to_ChgRecdRefMaintTskList_oc"
2084
+ },
2085
+ {
2086
+ label: "to_ChgRecdRefMfgBOM_oc",
2087
+ value: "to_ChgRecdRefMfgBOM_oc"
2088
+ },
2089
+ {
2090
+ label: "to_ChgRecdRefPlngScp_oc",
2091
+ value: "to_ChgRecdRefPlngScp_oc"
2092
+ },
2093
+ {
2094
+ label: "to_ChgRecdRefRateRtgTskList_oc",
2095
+ value: "to_ChgRecdRefRateRtgTskList_oc"
2096
+ },
2097
+ {
2098
+ label: "to_ChgRecdWBSElmntBOM_oc",
2099
+ value: "to_ChgRecdWBSElmntBOM_oc"
2100
+ },
2101
+ {
2102
+ label: "to_RefBit_oc",
2103
+ value: "to_RefBit_oc"
2104
+ },
2105
+ {
2106
+ label: "to_RefBOM_oc",
2107
+ value: "to_RefBOM_oc"
2108
+ },
2109
+ {
2110
+ label: "to_RefDoc_oc",
2111
+ value: "to_RefDoc_oc"
2112
+ },
2113
+ {
2114
+ label: "to_RefMat_oc",
2115
+ value: "to_RefMat_oc"
2116
+ },
2117
+ {
2118
+ label: "to_RefPSV_oc",
2119
+ value: "to_RefPSV_oc"
2120
+ },
2121
+ {
2122
+ label: "ChangeRecordUUID",
2123
+ value: "ChangeRecordUUID"
2124
+ },
2125
+ {
2126
+ label: "ChangeRecord",
2127
+ value: "ChangeRecord"
2128
+ },
2129
+ {
2130
+ label: "ChangeRecordType",
2131
+ value: "ChangeRecordType"
2132
+ },
2133
+ {
2134
+ label: "ChangeRecordStatus",
2135
+ value: "ChangeRecordStatus"
2136
+ },
2137
+ {
2138
+ label: "ChangeNumber",
2139
+ value: "ChangeNumber"
2140
+ },
2141
+ {
2142
+ label: "CreatedByUser",
2143
+ value: "CreatedByUser"
2144
+ },
2145
+ {
2146
+ label: "CreationDateTime",
2147
+ value: "CreationDateTime"
2148
+ },
2149
+ {
2150
+ label: "LastChangedByUser",
2151
+ value: "LastChangedByUser"
2152
+ },
2153
+ {
2154
+ label: "LastChangeDateTime",
2155
+ value: "LastChangeDateTime"
2156
+ },
2157
+ {
2158
+ label: "ChangeRecordLifecycleStatus",
2159
+ value: "ChangeRecordLifecycleStatus"
2160
+ },
2161
+ {
2162
+ label: "Partner",
2163
+ value: "Partner"
2164
+ },
2165
+ {
2166
+ label: "ChgRecordDescriptionText",
2167
+ value: "ChgRecordDescriptionText"
2168
+ },
2169
+ {
2170
+ label: "ChangeRecordDetailDescription",
2171
+ value: "ChangeRecordDetailDescription"
2172
+ },
2173
+ {
2174
+ label: "ChgRecdExpectedCompletionDate",
2175
+ value: "ChgRecdExpectedCompletionDate"
2176
+ },
2177
+ {
2178
+ label: "to_ChangeRecordFuncLocTskList",
2179
+ value: "to_ChangeRecordFuncLocTskList"
2180
+ },
2181
+ {
2182
+ label: "to_ChangeRecordRefCharc",
2183
+ value: "to_ChangeRecordRefCharc"
2184
+ },
2185
+ {
2186
+ label: "to_ChangeRecordRefClass",
2187
+ value: "to_ChangeRecordRefClass"
2188
+ },
2189
+ {
2190
+ label: "to_ChangeRecordRefEquipTskList",
2191
+ value: "to_ChangeRecordRefEquipTskList"
2192
+ },
2193
+ {
2194
+ label: "to_ChangeRecordRefMasterRecipe",
2195
+ value: "to_ChangeRecordRefMasterRecipe"
2196
+ },
2197
+ {
2198
+ label: "to_ChangeRecordRefProdnRouting",
2199
+ value: "to_ChangeRecordRefProdnRouting"
2200
+ },
2201
+ {
2202
+ label: "to_ChangeRecordRefStdBOM",
2203
+ value: "to_ChangeRecordRefStdBOM"
2204
+ },
2205
+ {
2206
+ label: "to_ChangeRecordRefVarBOM",
2207
+ value: "to_ChangeRecordRefVarBOM"
2208
+ },
2209
+ {
2210
+ label: "to_ChgRecdCollaboration",
2211
+ value: "to_ChgRecdCollaboration"
2212
+ },
2213
+ {
2214
+ label: "to_ChgRecdEquipBOM",
2215
+ value: "to_ChgRecdEquipBOM"
2216
+ },
2217
+ {
2218
+ label: "to_ChgRecdFuncLocBOM",
2219
+ value: "to_ChgRecdFuncLocBOM"
2220
+ },
2221
+ {
2222
+ label: "to_ChgRecdRefEngBOM",
2223
+ value: "to_ChgRecdRefEngBOM"
2224
+ },
2225
+ {
2226
+ label: "to_ChgRecdRefMaintTskList",
2227
+ value: "to_ChgRecdRefMaintTskList"
2228
+ },
2229
+ {
2230
+ label: "to_ChgRecdRefMfgBOM",
2231
+ value: "to_ChgRecdRefMfgBOM"
2232
+ },
2233
+ {
2234
+ label: "to_RefBit",
2235
+ value: "to_RefBit"
2236
+ },
2237
+ {
2238
+ label: "to_RefBOM",
2239
+ value: "to_RefBOM"
2240
+ },
2241
+ {
2242
+ label: "to_RefDoc",
2243
+ value: "to_RefDoc"
2244
+ },
2245
+ {
2246
+ label: "to_RefMat",
2247
+ value: "to_RefMat"
2248
+ },
2249
+ {
2250
+ label: "to_RefPSV",
2251
+ value: "to_RefPSV"
2252
+ }
2253
+ ],
2254
+ clean: _prismatic_io_spectral.util.types.toString
2255
+ });
2256
+ const changeRecordExpand = (0, _prismatic_io_spectral.input)({
2257
+ label: "Expand",
2258
+ placeholder: "Expand",
2259
+ type: "string",
2260
+ required: false,
2261
+ comments: "Expand property to be returned",
2262
+ collection: "valuelist",
2263
+ model: [
2264
+ {
2265
+ label: "to_ChangeRecordFuncLocTskList",
2266
+ value: "to_ChangeRecordFuncLocTskList"
2267
+ },
2268
+ {
2269
+ label: "to_ChangeRecordRefCharc",
2270
+ value: "to_ChangeRecordRefCharc"
2271
+ },
2272
+ {
2273
+ label: "to_ChangeRecordRefClass",
2274
+ value: "to_ChangeRecordRefClass"
2275
+ },
2276
+ {
2277
+ label: "to_ChangeRecordRefEquipTskList",
2278
+ value: "to_ChangeRecordRefEquipTskList"
2279
+ },
2280
+ {
2281
+ label: "to_ChangeRecordRefMasterRecipe",
2282
+ value: "to_ChangeRecordRefMasterRecipe"
2283
+ },
2284
+ {
2285
+ label: "to_ChangeRecordRefProdnRouting",
2286
+ value: "to_ChangeRecordRefProdnRouting"
2287
+ },
2288
+ {
2289
+ label: "to_ChangeRecordRefStdBOM",
2290
+ value: "to_ChangeRecordRefStdBOM"
2291
+ },
2292
+ {
2293
+ label: "to_ChangeRecordRefVarBOM",
2294
+ value: "to_ChangeRecordRefVarBOM"
2295
+ },
2296
+ {
2297
+ label: "to_ChgRecdCollaboration",
2298
+ value: "to_ChgRecdCollaboration"
2299
+ },
2300
+ {
2301
+ label: "to_ChgRecdEquipBOM",
2302
+ value: "to_ChgRecdEquipBOM"
2303
+ },
2304
+ {
2305
+ label: "to_ChgRecdFuncLocBOM",
2306
+ value: "to_ChgRecdFuncLocBOM"
2307
+ },
2308
+ {
2309
+ label: "to_ChgRecdRefEngBOM",
2310
+ value: "to_ChgRecdRefEngBOM"
2311
+ },
2312
+ {
2313
+ label: "to_ChgRecdRefMaintTskList",
2314
+ value: "to_ChgRecdRefMaintTskList"
2315
+ },
2316
+ {
2317
+ label: "to_ChgRecdRefMfgBOM",
2318
+ value: "to_ChgRecdRefMfgBOM"
2319
+ },
2320
+ {
2321
+ label: "to_RefBit",
2322
+ value: "to_RefBit"
2323
+ },
2324
+ {
2325
+ label: "to_RefBOM",
2326
+ value: "to_RefBOM"
2327
+ },
2328
+ {
2329
+ label: "to_RefDoc",
2330
+ value: "to_RefDoc"
2331
+ },
2332
+ {
2333
+ label: "to_RefMat",
2334
+ value: "to_RefMat"
2335
+ },
2336
+ {
2337
+ label: "to_RefPSV",
2338
+ value: "to_RefPSV"
2339
+ }
2340
+ ],
2341
+ clean: _prismatic_io_spectral.util.types.toString
2342
+ });
2343
+ const listPurchaseRequisitionsOrderBy = (0, _prismatic_io_spectral.input)({
2344
+ label: "Order By",
2345
+ placeholder: "Order By",
2346
+ type: "string",
2347
+ required: false,
2348
+ comments: "Order items by property value",
2349
+ collection: "valuelist",
2350
+ model: [
2351
+ {
2352
+ label: "PurchaseRequisition",
2353
+ value: "PurchaseRequisition"
2354
+ },
2355
+ {
2356
+ label: "PurchaseRequisition desc",
2357
+ value: "PurchaseRequisition desc"
2358
+ },
2359
+ {
2360
+ label: "PurchaseRequisitionType",
2361
+ value: "PurchaseRequisitionType"
2362
+ },
2363
+ {
2364
+ label: "PurchaseRequisitionType desc",
2365
+ value: "PurchaseRequisitionType desc"
2366
+ },
2367
+ {
2368
+ label: "PurReqnDescription",
2369
+ value: "PurReqnDescription"
2370
+ },
2371
+ {
2372
+ label: "PurReqnDescription desc",
2373
+ value: "PurReqnDescription desc"
2374
+ },
2375
+ {
2376
+ label: "SourceDetermination",
2377
+ value: "SourceDetermination"
2378
+ },
2379
+ {
2380
+ label: "SourceDetermination desc",
2381
+ value: "SourceDetermination desc"
2382
+ },
2383
+ {
2384
+ label: "PurReqnDoOnlyValidation",
2385
+ value: "PurReqnDoOnlyValidation"
2386
+ },
2387
+ {
2388
+ label: "PurReqnDoOnlyValidation desc",
2389
+ value: "PurReqnDoOnlyValidation desc"
2390
+ }
2391
+ ],
2392
+ clean: _prismatic_io_spectral.util.types.toString
2393
+ });
2394
+ const listPurchaseRequisitionSelect = (0, _prismatic_io_spectral.input)({
2395
+ label: "Select",
2396
+ placeholder: "Select",
2397
+ type: "string",
2398
+ required: false,
2399
+ comments: "Select property to be returned",
2400
+ collection: "valuelist",
2401
+ model: [
2402
+ {
2403
+ label: "PurchaseRequisition",
2404
+ value: "PurchaseRequisition"
2405
+ },
2406
+ {
2407
+ label: "PurchaseRequisitionType",
2408
+ value: "PurchaseRequisitionType"
2409
+ },
2410
+ {
2411
+ label: "PurReqnDescription",
2412
+ value: "PurReqnDescription"
2413
+ },
2414
+ {
2415
+ label: "SourceDetermination",
2416
+ value: "SourceDetermination"
2417
+ },
2418
+ {
2419
+ label: "PurReqnDoOnlyValidation",
2420
+ value: "PurReqnDoOnlyValidation"
2421
+ },
2422
+ {
2423
+ label: "to_PurchaseReqnItem",
2424
+ value: "to_PurchaseReqnItem"
2425
+ }
2426
+ ],
2427
+ clean: _prismatic_io_spectral.util.types.toString
2428
+ });
2429
+ const listPurchaseRequisitionExpand = (0, _prismatic_io_spectral.input)({
2430
+ label: "Expand",
2431
+ placeholder: "Expand",
2432
+ type: "string",
2433
+ required: false,
2434
+ comments: "Expand property to be returned",
2435
+ collection: "valuelist",
2436
+ model: [{
2437
+ label: "to_PurchaseReqnItem",
2438
+ value: "to_PurchaseReqnItem"
2439
+ }],
2440
+ clean: _prismatic_io_spectral.util.types.toString
2441
+ });
2442
+ const purchaseRequisitionNumberInput = (0, _prismatic_io_spectral.input)({
2443
+ label: "Purchase Requisition Number",
2444
+ placeholder: "123123123123",
2445
+ type: "string",
2446
+ required: true,
2447
+ comments: "Purchase Requisition Number",
2448
+ dataSource: "selectPurchaseRequisition",
2449
+ clean: _prismatic_io_spectral.util.types.toString
2450
+ });
2451
+ const getPurchaseRequisitionItemDetailsOrderBy = (0, _prismatic_io_spectral.input)({
2452
+ label: "Order By",
2453
+ placeholder: "Order By",
2454
+ type: "string",
2455
+ required: false,
2456
+ comments: "Order items by property value",
2457
+ collection: "valuelist",
2458
+ model: GET_PURCHASE_REQUISITION_ITEM_DETAILS_ORDER_BY_MODEL,
2459
+ clean: _prismatic_io_spectral.util.types.toString
2460
+ });
2461
+ const getPurchaseRequisitionItemDetailsSelect = (0, _prismatic_io_spectral.input)({
2462
+ label: "Select",
2463
+ placeholder: "Select",
2464
+ type: "string",
2465
+ required: false,
2466
+ comments: "Select property to be returned",
2467
+ collection: "valuelist",
2468
+ model: GET_PURCHASE_REQUISITION_ITEM_DETAILS_SELECT_MODEL,
2469
+ clean: _prismatic_io_spectral.util.types.toString
2470
+ });
2471
+ const getPurchaseRequisitionItemDetailsExpand = (0, _prismatic_io_spectral.input)({
2472
+ label: "Expand",
2473
+ placeholder: "Expand",
2474
+ type: "string",
2475
+ required: false,
2476
+ comments: "Expand property to be returned",
2477
+ collection: "valuelist",
2478
+ model: GET_PURCHASE_REQUISITION_ITEM_DETAILS_EXPAND_MODEL,
2479
+ clean: _prismatic_io_spectral.util.types.toString
2480
+ });
2481
+ const recordType = (0, _prismatic_io_spectral.input)({
2482
+ label: "Record Type",
2483
+ type: "string",
2484
+ comments: "Type of SAP S/4HANA Record, e.g: WorkItemSet",
2485
+ required: true,
2486
+ default: "WorkItemSet",
2487
+ clean: _prismatic_io_spectral.util.types.toString
2488
+ });
2489
+ const recordId = (0, _prismatic_io_spectral.input)({
2490
+ label: "Record ID",
2491
+ type: "string",
2492
+ comments: "ID number tied to the record",
2493
+ required: true,
2494
+ default: "12312313",
2495
+ clean: _prismatic_io_spectral.util.types.toString
2496
+ });
2497
+ const pollResourceType = (0, _prismatic_io_spectral.input)({
2498
+ label: "Resource Type",
2499
+ type: "string",
2500
+ required: true,
2501
+ comments: "The type of resource to poll for new and updated records.",
2502
+ model: pollResourceModel,
2503
+ clean: _prismatic_io_spectral.util.types.toString
2504
+ });
2505
+ const showNewRecords = (0, _prismatic_io_spectral.input)({
2506
+ label: "Show New Records",
2507
+ type: "boolean",
2508
+ required: true,
2509
+ default: "true",
2510
+ comments: "Include newly created records in trigger results.",
2511
+ clean: _prismatic_io_spectral.util.types.toBool
2512
+ });
2513
+ const showUpdatedRecords = (0, _prismatic_io_spectral.input)({
2514
+ label: "Show Updated Records",
2515
+ type: "boolean",
2516
+ required: true,
2517
+ default: "true",
2518
+ comments: "Include updated records in trigger results.",
2519
+ clean: _prismatic_io_spectral.util.types.toBool
2520
+ });
2521
+ const lookBackDate = (0, _prismatic_io_spectral.input)({
2522
+ label: "Look-back Date",
2523
+ placeholder: "Enter look-back date (YYYY-MM-DD)",
2524
+ type: "string",
2525
+ required: false,
2526
+ comments: "The date the initial sync starts from, in YYYY-MM-DD format. Cannot be a future date. Leave empty to start from the first recurrence with no backfill. When set, the initial sync seeds each record modified on or after this date once, ignoring the trigger's visibility filters.",
2527
+ example: "2026-01-01",
2528
+ clean: lookBackDateClean
2529
+ });
2530
+ //#endregion
2531
+ //#region src/actions/addAttachment.ts
2532
+ const addAttachment = (0, _prismatic_io_spectral.action)({
2533
+ display: {
2534
+ label: "Add Attachment",
2535
+ description: "Uploads an attachment to a business object using the file name, mime type of the attachment, business object type, and business object instance key."
2536
+ },
2537
+ perform: async (_context, { requestBody, connectionInput }) => {
2538
+ const client = getSapClient(connectionInput, {
2539
+ Accept: "application/json",
2540
+ "Content-Type": "*/*"
2541
+ });
2542
+ try {
2543
+ const { data } = await client.post("/sap/opu/odata/sap/API_CV_ATTACHMENT_SRV/AttachmentContentSet", requestBody);
2544
+ return { data };
2545
+ } catch (error) {
2546
+ const handled = (0, _prismatic_io_spectral_http.handleErrors)(error);
2547
+ const serialized = _prismatic_io_spectral.util.types.toJSON(handled);
2548
+ throw new Error(serialized);
2549
+ }
2550
+ },
2551
+ inputs: {
2552
+ requestBody,
2553
+ connectionInput
2554
+ }
2555
+ });
2556
+ //#endregion
2557
+ //#region src/actions/createChangeRecord.ts
2558
+ const createChangeRecord = (0, _prismatic_io_spectral.action)({
2559
+ display: {
2560
+ label: "Create Change Record",
2561
+ description: "Creates a change record."
2562
+ },
2563
+ perform: async (_context, { requestBodyCode, connectionInput }) => {
2564
+ const client = getSapClient(connectionInput, {
2565
+ Accept: "application/json",
2566
+ "Content-Type": "application/json"
2567
+ });
2568
+ try {
2569
+ const { data } = await client.patch("/sap/opu/odata/sap/API_CHANGE_RECORD/A_ChangeRecord", requestBodyCode);
2570
+ return { data };
2571
+ } catch (error) {
2572
+ const handled = (0, _prismatic_io_spectral_http.handleErrors)(error);
2573
+ const serialized = _prismatic_io_spectral.util.types.toJSON(handled);
2574
+ throw new Error(serialized);
2575
+ }
2576
+ },
2577
+ inputs: {
2578
+ requestBodyCode: {
2579
+ ...requestBodyCode,
2580
+ required: true,
2581
+ default: `{
2582
+ "ChangeRecordUUID": "01234567-89ab-cdef-0123-456789abcdef",
2583
+ "ChangeRecord": "string",
2584
+ "ChangeRecordType": "string",
2585
+ "ChangeRecordStatus": "string",
2586
+ "ChangeNumber": "string",
2587
+ "ChangeRecordLifecycleStatus": "string",
2588
+ "Partner": "string",
2589
+ "ChgRecordDescriptionText": "string",
2590
+ "ChangeRecordDetailDescription": "string",
2591
+ "ChgRecdExpectedCompletionDate": "/Date(1492041600000)/",
2592
+ "to_ChangeRecordFuncLocTskList": {
2593
+ "results": [
2594
+ {
2595
+ "ChangeRecordReferenceUUID": "01234567-89ab-cdef-0123-456789abcdef",
2596
+ "ChangeRecord": "string",
2597
+ "ChangeRecordUUID": "01234567-89ab-cdef-0123-456789abcdef",
2598
+ "ChangeRecordReferenceType": "string",
2599
+ "FuncLocTskListGroup": "string",
2600
+ "FuncLocTskList": "string",
2601
+ "ChangeRecordItemRelevance": "string",
2602
+ "ChangeRecordItemProcgStatus": "string"
2603
+ }
2604
+ ]
2605
+ },
2606
+ "to_ChangeRecordRefCharc": {
2607
+ "results": [
2608
+ {
2609
+ "ChangeRecordReferenceUUID": "01234567-89ab-cdef-0123-456789abcdef",
2610
+ "ChangeRecord": "string",
2611
+ "Characteristic": "string",
2612
+ "ChangeNumber": "string",
2613
+ "CharcDataType": "string",
2614
+ "CharcStatus": "string",
2615
+ "ValidityStartDate": "/Date(1492041600000)/",
2616
+ "CharcInternalID": "string",
2617
+ "CharcDecimals": 0,
2618
+ "CharcLength": 0,
2619
+ "CharcValueUnit": "string",
2620
+ "ChangeRecordUUID": "01234567-89ab-cdef-0123-456789abcdef",
2621
+ "ChangeRecordReferenceType": "string",
2622
+ "ChangeRecordReferenceSubtype": "string",
2623
+ "ChangeRecordReference": "string",
2624
+ "ParentChangeRecordRefUUID": "01234567-89ab-cdef-0123-456789abcdef",
2625
+ "IsMainReference": "string",
2626
+ "CreationDate": "/Date(1492041600000)/",
2627
+ "LastChangeDate": "/Date(1492041600000)/",
2628
+ "ChangeRecordItemRelevance": "string",
2629
+ "ChangeRecordVirtualRefInd": "string",
2630
+ "ChangeRecordRefObjectUUID": "01234567-89ab-cdef-0123-456789abcdef",
2631
+ "ChangeRecordItemProcgStatus": "string"
2632
+ }
2633
+ ]
2634
+ },
2635
+ "to_ChangeRecordRefClass": {
2636
+ "results": [
2637
+ {
2638
+ "ChangeRecordReferenceUUID": "01234567-89ab-cdef-0123-456789abcdef",
2639
+ "ChangeRecord": "string",
2640
+ "Class": "string",
2641
+ "ClassType": "string",
2642
+ "ChangeNumber": "string",
2643
+ "ClassName": "string",
2644
+ "ClassTypeName": "string",
2645
+ "ValidityStartDate": "/Date(1492041600000)/",
2646
+ "ClassStatus": "string",
2647
+ "ClassStatusName": "string",
2648
+ "ClassInternalID": "string",
2649
+ "ChangeRecordItemProcgStatus": "string",
2650
+ "ChangeRecordUUID": "01234567-89ab-cdef-0123-456789abcdef",
2651
+ "ChangeRecordReferenceType": "string",
2652
+ "ChangeRecordReferenceSubtype": "string",
2653
+ "ParentChangeRecordRefUUID": "01234567-89ab-cdef-0123-456789abcdef",
2654
+ "ChangeRecordItemRelevance": "string",
2655
+ "ChangeRecordReference": "string",
2656
+ "ChangeRecordStatus": "string",
2657
+ "CreationDate": "/Date(1492041600000)/",
2658
+ "LastChangeDate": "/Date(1492041600000)/",
2659
+ "ChangeRecordVirtualRefInd": "string"
2660
+ }
2661
+ ]
2662
+ },
2663
+ "to_ChangeRecordRefEquipTskList": {
2664
+ "results": [
2665
+ {
2666
+ "ChangeRecordReferenceUUID": "01234567-89ab-cdef-0123-456789abcdef",
2667
+ "ChangeRecord": "string",
2668
+ "ChangeRecordUUID": "01234567-89ab-cdef-0123-456789abcdef",
2669
+ "ChangeRecordReferenceType": "string",
2670
+ "EquipmentTskListGroup": "string",
2671
+ "EquipmentTskList": "string",
2672
+ "ChangeRecordItemRelevance": "string",
2673
+ "ChangeRecordItemProcgStatus": "string"
2674
+ }
2675
+ ]
2676
+ },
2677
+ "to_ChangeRecordRefMasterRecipe": {
2678
+ "results": [
2679
+ {
2680
+ "ChangeRecordReferenceUUID": "01234567-89ab-cdef-0123-456789abcdef",
2681
+ "ChangeRecord": "string",
2682
+ "ChangeRecordUUID": "01234567-89ab-cdef-0123-456789abcdef",
2683
+ "ChangeRecordReferenceType": "string",
2684
+ "MasterRecipeGroup": "string",
2685
+ "MasterRecipe": "string",
2686
+ "ChangeRecordItemProcgStatus": "string",
2687
+ "ChangeRecordItemRelevance": "string"
2688
+ }
2689
+ ]
2690
+ },
2691
+ "to_ChangeRecordRefProdnRouting": {
2692
+ "results": [
2693
+ {
2694
+ "ChangeRecordReferenceUUID": "01234567-89ab-cdef-0123-456789abcdef",
2695
+ "ChangeRecord": "string",
2696
+ "ChangeRecordUUID": "01234567-89ab-cdef-0123-456789abcdef",
2697
+ "ChangeRecordReferenceType": "string",
2698
+ "BillOfOperationsGroup": "string",
2699
+ "BillOfOperationsVariant": "string",
2700
+ "ChangeRecordItemRelevance": "string",
2701
+ "ChangeRecordItemProcgStatus": "string"
2702
+ }
2703
+ ]
2704
+ },
2705
+ "to_ChangeRecordRefStdBOM": {
2706
+ "results": [
2707
+ {
2708
+ "ChangeRecordReferenceUUID": "01234567-89ab-cdef-0123-456789abcdef",
2709
+ "StandardObject": "string",
2710
+ "Plant": "string",
2711
+ "BillOfMaterialVariantUsage": "string",
2712
+ "BillOfMaterialVariant": "string",
2713
+ "ChangeRecord": "string",
2714
+ "ChangeRecordUUID": "01234567-89ab-cdef-0123-456789abcdef",
2715
+ "ChangeNumber": "string",
2716
+ "ChangeRecordItemRelevance": "string",
2717
+ "ChangeRecordItemProcgStatus": "string"
2718
+ }
2719
+ ]
2720
+ },
2721
+ "to_ChangeRecordRefVarBOM": {
2722
+ "results": [
2723
+ {
2724
+ "ChangeRecordReferenceUUID": "01234567-89ab-cdef-0123-456789abcdef",
2725
+ "ChangeRecord": "string",
2726
+ "ChangeRecordUUID": "01234567-89ab-cdef-0123-456789abcdef",
2727
+ "ChangeRecordReferenceType": "string",
2728
+ "ChangeRecordReferenceSubtype": "string",
2729
+ "ChangeRecordReference": "string",
2730
+ "ParentChangeRecordRefUUID": "01234567-89ab-cdef-0123-456789abcdef",
2731
+ "IsMainReference": "string",
2732
+ "BillOfMaterialCategory": "string",
2733
+ "ChangeNumber": "string",
2734
+ "ChangeRecordVirtualRefInd": "string",
2735
+ "BillOfMaterial": "string",
2736
+ "Material": "string",
2737
+ "Plant": "string",
2738
+ "BillOfMaterialVariantUsage": "string",
2739
+ "BillOfMaterialVariant": "string",
2740
+ "ChangeRecordItemRelevance": "string",
2741
+ "ChangeRecordItemProcgStatus": "string"
2742
+ }
2743
+ ]
2744
+ },
2745
+ "to_ChgRecdCollaboration": {
2746
+ "results": [
2747
+ {
2748
+ "ChgRecdPLMEPDCollabnUUID": "01234567-89ab-cdef-0123-456789abcdef",
2749
+ "ChangeRecordUUID": "01234567-89ab-cdef-0123-456789abcdef",
2750
+ "ChgRecdPLMEPDCollabnType": "string",
2751
+ "CreatedByUser": "string",
2752
+ "CreationDateTime": "/Date(1492098664000)/",
2753
+ "ChgRecdPLMEPDCollabnSourceID": "string",
2754
+ "ChgRecdPLMEPDCollabnID": "string"
2755
+ }
2756
+ ]
2757
+ },
2758
+ "to_ChgRecdEquipBOM": {
2759
+ "results": [
2760
+ {
2761
+ "ChangeRecordReferenceUUID": "01234567-89ab-cdef-0123-456789abcdef",
2762
+ "ChangeRecord": "string",
2763
+ "Equipment": "string",
2764
+ "Plant": "string",
2765
+ "BillOfMaterialVariantUsage": "string",
2766
+ "BillOfMaterialVariant": "string",
2767
+ "ChangeRecordUUID": "01234567-89ab-cdef-0123-456789abcdef",
2768
+ "ChangeRecordReferenceType": "string",
2769
+ "ChangeRecordReferenceSubtype": "string",
2770
+ "ChangeRecordReference": "string",
2771
+ "ParentChangeRecordRefUUID": "01234567-89ab-cdef-0123-456789abcdef",
2772
+ "IsMainReference": "string",
2773
+ "BillOfMaterialCategory": "string",
2774
+ "ChangeNumber": "string",
2775
+ "ChangeRecordItemRelevance": "string",
2776
+ "ChangeRecordVirtualRefInd": "string",
2777
+ "BillOfMaterial": "string",
2778
+ "ChangeRecordRefObjectUUID": "01234567-89ab-cdef-0123-456789abcdef",
2779
+ "ChangeRecordItemProcgStatus": "string"
2780
+ }
2781
+ ]
2782
+ },
2783
+ "to_ChgRecdFuncLocBOM": {
2784
+ "results": [
2785
+ {
2786
+ "ChangeRecordReferenceUUID": "01234567-89ab-cdef-0123-456789abcdef",
2787
+ "ChangeRecord": "string",
2788
+ "FunctionalLocation": "string",
2789
+ "Plant": "string",
2790
+ "BillOfMaterialVariantUsage": "string",
2791
+ "BillOfMaterialVariant": "string",
2792
+ "ChangeRecordUUID": "01234567-89ab-cdef-0123-456789abcdef",
2793
+ "ChangeRecordReferenceType": "string",
2794
+ "ChangeRecordReferenceSubtype": "string",
2795
+ "ChangeRecordReference": "string",
2796
+ "ParentChangeRecordRefUUID": "01234567-89ab-cdef-0123-456789abcdef",
2797
+ "IsMainReference": "string",
2798
+ "BillOfMaterialCategory": "string",
2799
+ "ChangeNumber": "string",
2800
+ "ChangeRecordItemRelevance": "string",
2801
+ "ChangeRecordVirtualRefInd": "string",
2802
+ "BillOfMaterial": "string",
2803
+ "ChangeRecordRefObjectUUID": "01234567-89ab-cdef-0123-456789abcdef",
2804
+ "ChangeRecordItemProcgStatus": "string"
2805
+ }
2806
+ ]
2807
+ },
2808
+ "to_ChgRecdRefEngBOM": {
2809
+ "results": [
2810
+ {
2811
+ "ChangeRecordReferenceUUID": "01234567-89ab-cdef-0123-456789abcdef",
2812
+ "Material": "string",
2813
+ "Plant": "string",
2814
+ "BillOfMaterialVariantUsage": "string",
2815
+ "BillOfMaterialVariant": "string",
2816
+ "BillOfMaterial": "string",
2817
+ "BillOfMaterialCategory": "string",
2818
+ "BillOfMaterialVersion": "string",
2819
+ "ChangeRecord": "string",
2820
+ "ChangeRecordUUID": "01234567-89ab-cdef-0123-456789abcdef",
2821
+ "ChangeRecordReferenceType": "string",
2822
+ "ChangeRecordReferenceSubtype": "string",
2823
+ "ChangeRecordRefObjectUUID": "01234567-89ab-cdef-0123-456789abcdef",
2824
+ "ParentChangeRecordRefUUID": "01234567-89ab-cdef-0123-456789abcdef",
2825
+ "IsMainReference": "string",
2826
+ "ChangeRecordVirtualRefInd": "string",
2827
+ "ChangeRecordItemRelevance": "string",
2828
+ "ChangeRecordItemProcgStatus": "string"
2829
+ }
2830
+ ]
2831
+ },
2832
+ "to_ChgRecdRefMaintTskList": {
2833
+ "results": [
2834
+ {
2835
+ "ChangeRecordReferenceUUID": "01234567-89ab-cdef-0123-456789abcdef",
2836
+ "ChangeRecord": "string",
2837
+ "ChangeRecordUUID": "01234567-89ab-cdef-0123-456789abcdef",
2838
+ "RefMaintTskListGroup": "string",
2839
+ "RefMaintTskList": "string",
2840
+ "ChangeRecordItemRelevance": "string",
2841
+ "ChangeRecordItemProcgStatus": "string"
2842
+ }
2843
+ ]
2844
+ },
2845
+ "to_ChgRecdRefMfgBOM": {
2846
+ "results": [
2847
+ {
2848
+ "ChangeRecordReferenceUUID": "01234567-89ab-cdef-0123-456789abcdef",
2849
+ "Material": "string",
2850
+ "Plant": "string",
2851
+ "BillOfMaterialVariantUsage": "string",
2852
+ "BillOfMaterialVariant": "string",
2853
+ "BillOfMaterial": "string",
2854
+ "BillOfMaterialCategory": "string",
2855
+ "BillOfMaterialVersion": "string",
2856
+ "ChangeRecord": "string",
2857
+ "ChangeRecordUUID": "01234567-89ab-cdef-0123-456789abcdef",
2858
+ "ChangeRecordReferenceType": "string",
2859
+ "ChangeRecordReferenceSubtype": "string",
2860
+ "ChangeRecordRefObjectUUID": "01234567-89ab-cdef-0123-456789abcdef",
2861
+ "ParentChangeRecordRefUUID": "01234567-89ab-cdef-0123-456789abcdef",
2862
+ "IsMainReference": "string",
2863
+ "ChangeRecordVirtualRefInd": "string",
2864
+ "ChangeRecordItemRelevance": "string",
2865
+ "ChangeRecordItemProcgStatus": "string"
2866
+ }
2867
+ ]
2868
+ },
2869
+ "to_RefBit": {
2870
+ "results": [
2871
+ {
2872
+ "ChangeRecordReferenceUUID": "01234567-89ab-cdef-0123-456789abcdef",
2873
+ "ChangeRecord": "string",
2874
+ "ChangeRecordUUID": "01234567-89ab-cdef-0123-456789abcdef",
2875
+ "ChangeRecordReferenceType": "string",
2876
+ "BillOfMaterialItemNumber": "string",
2877
+ "BillOfMaterialComponent": "string",
2878
+ "Material": "string",
2879
+ "Plant": "string",
2880
+ "BillOfMaterialVariantUsage": "string",
2881
+ "BillOfMaterialVariant": "string",
2882
+ "ChangeRecordItemRelevance": "string"
2883
+ }
2884
+ ]
2885
+ },
2886
+ "to_RefBOM": {
2887
+ "results": [
2888
+ {
2889
+ "ChangeRecordReferenceUUID": "01234567-89ab-cdef-0123-456789abcdef",
2890
+ "ChangeRecord": "string",
2891
+ "ChangeRecordUUID": "01234567-89ab-cdef-0123-456789abcdef",
2892
+ "ChangeRecordReferenceType": "string",
2893
+ "Material": "string",
2894
+ "Plant": "string",
2895
+ "BillOfMaterialVariantUsage": "string",
2896
+ "BillOfMaterialVariant": "string",
2897
+ "ChangeRecordItemRelevance": "string",
2898
+ "ChangeRecordItemProcgStatus": "string"
2899
+ }
2900
+ ]
2901
+ },
2902
+ "to_RefDoc": {
2903
+ "results": [
2904
+ {
2905
+ "ChangeRecordReferenceUUID": "01234567-89ab-cdef-0123-456789abcdef",
2906
+ "ChangeRecord": "string",
2907
+ "ChangeRecordUUID": "01234567-89ab-cdef-0123-456789abcdef",
2908
+ "ChangeRecordReferenceType": "string",
2909
+ "DocumentInfoRecord": "string",
2910
+ "DocumentType": "string",
2911
+ "DocumentPart": "string",
2912
+ "DocumentVersion": "string",
2913
+ "ChangeRecordItemRelevance": "string",
2914
+ "ExternalDocumentStatus": "string"
2915
+ }
2916
+ ]
2917
+ },
2918
+ "to_RefMat": {
2919
+ "results": [
2920
+ {
2921
+ "ChangeRecordReferenceUUID": "01234567-89ab-cdef-0123-456789abcdef",
2922
+ "ChangeRecord": "string",
2923
+ "ChangeRecordUUID": "01234567-89ab-cdef-0123-456789abcdef",
2924
+ "ChangeRecordReferenceType": "string",
2925
+ "Material": "string",
2926
+ "MaterialType": "string",
2927
+ "BaseUnit": "string",
2928
+ "MaterialStatus": "string",
2929
+ "ChangeRecordItemRelevance": "string",
2930
+ "ChangeRecordItemProcgStatus": "string"
2931
+ }
2932
+ ]
2933
+ },
2934
+ "to_RefPSV": {
2935
+ "results": [
2936
+ {
2937
+ "ChangeRecordReferenceUUID": "01234567-89ab-cdef-0123-456789abcdef",
2938
+ "ChangeRecordUUID": "01234567-89ab-cdef-0123-456789abcdef",
2939
+ "ChangeRecord": "string",
2940
+ "ChangeRecordReferenceType": "string",
2941
+ "Material": "string",
2942
+ "Class": "string",
2943
+ "ProductStructureNodeName": "string",
2944
+ "ProdStrucNodeDescription": "string",
2945
+ "ProductStructureVariantName": "string",
2946
+ "ProdStrucVariantDescription": "string",
2947
+ "ProdStrucVariantChangeNumber": "string",
2948
+ "ChangeRecordItemRelevance": "string",
2949
+ "ChangeRecordRefObjectUUID": "01234567-89ab-cdef-0123-456789abcdef"
2950
+ }
2951
+ ]
2952
+ }
2953
+ }`
2954
+ },
2955
+ connectionInput,
2956
+ projectId
2957
+ }
2958
+ });
2959
+ //#endregion
2960
+ //#region src/actions/createProject.ts
2961
+ const createProject = (0, _prismatic_io_spectral.action)({
2962
+ display: {
2963
+ label: "Create Project",
2964
+ description: "Creates a customer or internal project based on the level of information you provide."
2965
+ },
2966
+ perform: async (_context, { requestBodyCode, connectionInput }) => {
2967
+ const client = getSapClient(connectionInput, {
2968
+ Accept: "application/json",
2969
+ "Content-Type": "application/json"
2970
+ });
2971
+ try {
2972
+ const { data } = await client.post("/sap/opu/odata/CPD/SC_PROJ_ENGMT_CREATE_UPD_SRV/ProjectSet", requestBodyCode);
2973
+ return { data };
2974
+ } catch (error) {
2975
+ const handled = (0, _prismatic_io_spectral_http.handleErrors)(error);
2976
+ const serialized = _prismatic_io_spectral.util.types.toJSON(handled);
2977
+ throw new Error(serialized);
2978
+ }
2979
+ },
2980
+ inputs: {
2981
+ requestBodyCode: {
2982
+ ...requestBodyCode,
2983
+ required: true,
2984
+ default: `{
2985
+ "ProjectID": "string",
2986
+ "ProjectName": "string",
2987
+ "ProjectStage": "string",
2988
+ "OrgID": "string",
2989
+ "ProjectCategory": "string",
2990
+ "Currency": "string",
2991
+ "StartDate": "/Date(1492098664000)/",
2992
+ "EndDate": "/Date(1492098664000)/",
2993
+ "ProjManagerExtId": "string",
2994
+ "ProjManagerCompCode": "string",
2995
+ "Customer": "string",
2996
+ "CostCenter": "string",
2997
+ "ProfitCenter": "string",
2998
+ "ProjAccountantExtId": "string",
2999
+ "ProjAccountantCompCode": "string",
3000
+ "ProjControllerExtId": "string",
3001
+ "ProjControllerCompCode": "string",
3002
+ "ProjPartnerExtId": "string",
3003
+ "ProjPartnerCompCode": "string",
3004
+ "ProjectDesc": "string",
3005
+ "Confidential": "string",
3006
+ "UseProjectBilling": "string",
3007
+ "RestrictTimePosting": "string",
3008
+ "ProjectRoleSet": {
3009
+ "results": [
3010
+ {
3011
+ "ProjectID": "string",
3012
+ "ProjectRoleID": "string",
3013
+ "BusinessPartnerID": "string"
3014
+ }
3015
+ ]
3016
+ },
3017
+ "WorkPackageSet": {
3018
+ "results": [
3019
+ {
3020
+ "ProjectID": "string",
3021
+ "WorkPackageID": "string",
3022
+ "WorkPackageName": "string",
3023
+ "Description": "string",
3024
+ "WPStartDate": "/Date(1492098664000)/",
3025
+ "WPEndDate": "/Date(1492098664000)/",
3026
+ "WorkPackageType": "string",
3027
+ "UnitQuantity": "0",
3028
+ "UnitId": "string",
3029
+ "to_ResourceDemand": {
3030
+ "results": [
3031
+ {
3032
+ "WorkPackage": "string",
3033
+ "ResourceDemand": "string",
3034
+ "Version": "string",
3035
+ "EngagementProject": "string",
3036
+ "WorkItem": "string",
3037
+ "BillingControlCategory": "string",
3038
+ "DeliveryOrganization": "string",
3039
+ "EngagementProjectResourceType": "string",
3040
+ "EngagementProjectResource": "string",
3041
+ "WorkforcePersonUserID": "string",
3042
+ "Country2DigitISOCode": "string",
3043
+ "KeyDate": "/Date(1492041600000)/",
3044
+ "PersonWorkAgreement": "string",
3045
+ "ResourceDemandStatus": "string",
3046
+ "UnitOfMeasure": "string",
3047
+ "Quantity": "0",
3048
+ "to_ResourceDemandDistribution": {
3049
+ "results": [
3050
+ {
3051
+ "WorkPackage": "string",
3052
+ "ResourceDemand": "string",
3053
+ "Version": "string",
3054
+ "CalendarMonth": "string",
3055
+ "CalendarYear": "string",
3056
+ "UnitOfMeasure": "string",
3057
+ "Quantity": "0",
3058
+ "to_ResourceDemand": null
3059
+ }
3060
+ ]
3061
+ },
3062
+ "to_ResourceDemandSkills": "",
3063
+ "to_ResourceSupply": {
3064
+ "results": [
3065
+ {
3066
+ "WorkPackage": "string",
3067
+ "ResourceDemand": "string",
3068
+ "ResourceSupply": "string",
3069
+ "Version": "string",
3070
+ "EngagementProject": "string",
3071
+ "DeliveryOrganization": "string",
3072
+ "WorkforcePersonUserID": "string",
3073
+ "Country2DigitISOCode": "string",
3074
+ "KeyDate": "/Date(1492041600000)/",
3075
+ "PersonWorkAgreement": "string",
3076
+ "UnitOfMeasure": "string",
3077
+ "Quantity": "0",
3078
+ "to_ResourceDemand": null,
3079
+ "to_ResourceSupplyDistribution": {
3080
+ "results": [
3081
+ {
3082
+ "WorkPackage": "string",
3083
+ "ResourceDemand": "string",
3084
+ "ResourceSupply": "string",
3085
+ "Version": "string",
3086
+ "CalendarMonth": "string",
3087
+ "CalendarYear": "string",
3088
+ "UnitOfMeasure": "string",
3089
+ "Quantity": "0",
3090
+ "to_ResourceSupply": ""
3091
+ }
3092
+ ]
3093
+ }
3094
+ }
3095
+ ]
3096
+ }
3097
+ }
3098
+ ]
3099
+ },
3100
+ "to_Project": null,
3101
+ "WorkItemSet": {
3102
+ "results": [
3103
+ {
3104
+ "ProjectID": "string",
3105
+ "WorkPackageID": "string",
3106
+ "WorkPackageName": "string",
3107
+ "Workitem": "string",
3108
+ "Workitemname": "string"
3109
+ }
3110
+ ]
3111
+ },
3112
+ "DemandSet": {
3113
+ "results": [
3114
+ {
3115
+ "BillingControlCategory": "string",
3116
+ "ProjectID": "string",
3117
+ "Skills": "string",
3118
+ "WorkPackageID": "string",
3119
+ "ExpenseCost": "0",
3120
+ "WorkPackageName": "string",
3121
+ "ExpenseRevenue": "0",
3122
+ "ResType": "string",
3123
+ "ResourceId": "string",
3124
+ "Workitem": "string",
3125
+ "Effort": "0",
3126
+ "DelvryServOrg": "string"
3127
+ }
3128
+ ]
3129
+ },
3130
+ "WorkPackageFunctionSet": {
3131
+ "results": [
3132
+ {
3133
+ "ProjectID": "string",
3134
+ "WorkPackageID": "string",
3135
+ "WorkPackageName": "string",
3136
+ "WorkPackageFunctionId": "string",
3137
+ "WorkPackageFunctionIsBlocked": "string"
3138
+ }
3139
+ ]
3140
+ }
3141
+ }
3142
+ ]
3143
+ }
3144
+ }`
3145
+ },
3146
+ connectionInput
3147
+ }
3148
+ });
3149
+ //#endregion
3150
+ //#region src/actions/createSubscription.ts
3151
+ const createSubscription = (0, _prismatic_io_spectral.action)({
3152
+ display: {
3153
+ label: "Create Subscription",
3154
+ description: "Creates business event subscriptions."
3155
+ },
3156
+ perform: async (_context, { requestBodyCode, connectionInput }) => {
3157
+ const client = getSapClient(connectionInput, {
3158
+ Accept: "application/json",
3159
+ "Content-Type": "application/json"
3160
+ });
3161
+ try {
3162
+ const { data } = await client.post("/sap/opu/odata/sap/CA_BEH_SUBSCRIPTION_SRV/SubscriptionMaintain", requestBodyCode);
3163
+ return { data };
3164
+ } catch (error) {
3165
+ const handled = (0, _prismatic_io_spectral_http.handleErrors)(error);
3166
+ const serialized = _prismatic_io_spectral.util.types.toJSON(handled);
3167
+ throw new Error(serialized);
3168
+ }
3169
+ },
3170
+ inputs: {
3171
+ requestBodyCode,
3172
+ connectionInput
3173
+ }
3174
+ });
3175
+ //#endregion
3176
+ //#region src/actions/deleteAttachment.ts
3177
+ const deleteAttachment = (0, _prismatic_io_spectral.action)({
3178
+ display: {
3179
+ label: "Delete Attachment",
3180
+ description: "Deletes the attachment associated with the business object using the document type, document number, document version, document part, logical document ID, archive document ID, business object type, and business object instance key."
3181
+ },
3182
+ perform: async (_context, { connectionInput, documentInfoRecordDocumentType, documentInfoRecordDocumentNumber, documentInfoRecordDocumentVersion, documentInfoRecordDocumentPart, logicalDocument, archiveDocumentId, linkedSapObjectKey, businessObjectTypeName }) => {
3183
+ const client = getSapClient(connectionInput, { Accept: "*/*" });
3184
+ try {
3185
+ const { data } = await client.delete(`/sap/opu/odata/sap/API_CV_ATTACHMENT_SRV/AttachmentContentSet(DocumentInfoRecordDocType='${documentInfoRecordDocumentType}',DocumentInfoRecordDocNumber='${documentInfoRecordDocumentNumber}',DocumentInfoRecordDocVersion='${documentInfoRecordDocumentVersion}',DocumentInfoRecordDocPart='${documentInfoRecordDocumentPart}',LogicalDocument='${logicalDocument}',ArchiveDocumentID='${archiveDocumentId}',LinkedSAPObjectKey='${linkedSapObjectKey}',BusinessObjectTypeName='${businessObjectTypeName}')`);
3186
+ return { data };
3187
+ } catch (error) {
3188
+ const handled = (0, _prismatic_io_spectral_http.handleErrors)(error);
3189
+ const serialized = _prismatic_io_spectral.util.types.toJSON(handled);
3190
+ throw new Error(serialized);
3191
+ }
3192
+ },
3193
+ inputs: {
3194
+ connectionInput,
3195
+ documentInfoRecordDocumentType,
3196
+ documentInfoRecordDocumentNumber,
3197
+ documentInfoRecordDocumentVersion,
3198
+ documentInfoRecordDocumentPart,
3199
+ logicalDocument,
3200
+ archiveDocumentId,
3201
+ linkedSapObjectKey,
3202
+ businessObjectTypeName
3203
+ }
3204
+ });
3205
+ //#endregion
3206
+ //#region src/actions/getAttachment.ts
3207
+ const getAttachment = (0, _prismatic_io_spectral.action)({
3208
+ display: {
3209
+ label: "Get Attachment",
3210
+ description: "Reads the attachments associated with a document info record."
3211
+ },
3212
+ perform: async (_context, { connectionInput, documentInfoRecordDocumentType, documentInfoRecordDocumentNumber, documentInfoRecordDocumentVersion, documentInfoRecordDocumentPart, filter, inlinecount, attachOrderBy, attachSelect }) => {
3213
+ const client = getSapClient(connectionInput, {
3214
+ Accept: "application/json",
3215
+ "Content-Type": "*/*"
3216
+ });
3217
+ const orderByValue = attachOrderBy?.value;
3218
+ const selectValue = attachSelect?.value;
3219
+ try {
3220
+ const { data } = await client.get(`/sap/opu/odata/sap/API_CV_ATTACHMENT_SRV/A_DocumentInfoRecordAttch(DocumentInfoRecordDocType='${documentInfoRecordDocumentType}',DocumentInfoRecordDocNumber='${documentInfoRecordDocumentNumber}',DocumentInfoRecordDocVersion='${documentInfoRecordDocumentVersion}',DocumentInfoRecordDocPart='${documentInfoRecordDocumentPart}')/DocumentInfoRecordToAttachmentNavigation?${filter.length ? `$filter=${filter}&` : ""}${inlinecount.length ? `$inlinecount=${inlinecount}&` : ""}${orderByValue ? `$orderby=${orderByValue}&` : ""}${selectValue ? `$select=${selectValue}&` : ""}`);
3221
+ return { data };
3222
+ } catch (error) {
3223
+ const handled = (0, _prismatic_io_spectral_http.handleErrors)(error);
3224
+ const serialized = _prismatic_io_spectral.util.types.toJSON(handled);
3225
+ throw new Error(serialized);
3226
+ }
3227
+ },
3228
+ inputs: {
3229
+ connectionInput,
3230
+ documentInfoRecordDocumentType,
3231
+ documentInfoRecordDocumentNumber,
3232
+ documentInfoRecordDocumentVersion,
3233
+ documentInfoRecordDocumentPart,
3234
+ filter,
3235
+ inlinecount,
3236
+ attachOrderBy,
3237
+ attachSelect
3238
+ }
3239
+ });
3240
+ //#endregion
3241
+ //#region src/actions/getChangerecord.ts
3242
+ const getChangerecord = (0, _prismatic_io_spectral.action)({
3243
+ display: {
3244
+ label: "Get Change Records",
3245
+ description: "Reads data of a specific change record based on its universally unique identifier (UUID)."
3246
+ },
3247
+ perform: async (_context, { connectionInput, changeRecordUuid, changerecordSelect, changerecordExpand }) => {
3248
+ const client = getSapClient(connectionInput, { Accept: "application/json" });
3249
+ try {
3250
+ const { data } = await client.get(`/sap/opu/odata/sap/API_CHANGE_RECORD/A_ChangeRecord(guid'${changeRecordUuid}')?${changerecordSelect.length ? `$select=${changerecordSelect.join(",")}&` : ""}${changerecordExpand.length ? `$expand=${changerecordExpand.join(",")}&` : ""}`);
3251
+ return { data };
3252
+ } catch (error) {
3253
+ const handled = (0, _prismatic_io_spectral_http.handleErrors)(error);
3254
+ const serialized = _prismatic_io_spectral.util.types.toJSON(handled);
3255
+ throw new Error(serialized);
3256
+ }
3257
+ },
3258
+ inputs: {
3259
+ connectionInput,
3260
+ changeRecordUuid,
3261
+ changerecordSelect,
3262
+ changerecordExpand
3263
+ }
3264
+ });
3265
+ //#endregion
3266
+ //#region src/actions/getProject.ts
3267
+ const getProject = (0, _prismatic_io_spectral.action)({
3268
+ display: {
3269
+ label: "Get Project",
3270
+ description: "Returns details about a customer or internal project."
3271
+ },
3272
+ perform: async (_context, { connectionInput, projectId, projectSelect, projectExpand }) => {
3273
+ const client = getSapClient(connectionInput, { Accept: "application/json" });
3274
+ try {
3275
+ const { data } = await client.get(`/sap/opu/odata/CPD/SC_PROJ_ENGMT_CREATE_UPD_SRV/ProjectSet('${projectId}')?${projectSelect.length ? `$select=${projectSelect.join(",")}&` : ""}${projectExpand.length ? `$expand=${projectExpand.join(",")}&` : ""}`);
3276
+ return { data };
3277
+ } catch (error) {
3278
+ const handled = (0, _prismatic_io_spectral_http.handleErrors)(error);
3279
+ const serialized = _prismatic_io_spectral.util.types.toJSON(handled);
3280
+ throw new Error(serialized);
3281
+ }
3282
+ },
3283
+ inputs: {
3284
+ connectionInput,
3285
+ projectId,
3286
+ projectSelect,
3287
+ projectExpand
3288
+ }
3289
+ });
3290
+ //#endregion
3291
+ //#region src/actions/listChangeRecords.ts
3292
+ const listChangeRecords = (0, _prismatic_io_spectral.action)({
3293
+ display: {
3294
+ label: "List Change Records",
3295
+ description: "Retrieves the list of change records in the system."
3296
+ },
3297
+ perform: async (_context, { connectionInput, top, skip, filter, inlinecount, changeRecordOrderBy, changeRecordSelect, changeRecordExpand }) => {
3298
+ const client = getSapClient(connectionInput, { Accept: "application/json" });
3299
+ const orderByArr = changeRecordOrderBy;
3300
+ const selectArr = changeRecordSelect;
3301
+ const expandArr = changeRecordExpand;
3302
+ try {
3303
+ const { data } = await client.get(`/sap/opu/odata/sap/API_CHANGE_RECORD/A_ChangeRecord?${top.length ? `$top=${top}&` : ""}${skip.length ? `$skip=${skip}&` : ""}${filter.length ? `$filter=${filter}&` : ""}${inlinecount.length ? `$inlinecount=${inlinecount}&` : ""}${orderByArr.length ? `$orderby=${orderByArr.join(",")}&` : ""}${selectArr.length ? `$select=${selectArr.join(",")}&` : ""}${expandArr.length ? `$expand=${expandArr.join(",")}&` : ""}`);
3304
+ return { data };
3305
+ } catch (error) {
3306
+ const handled = (0, _prismatic_io_spectral_http.handleErrors)(error);
3307
+ const serialized = _prismatic_io_spectral.util.types.toJSON(handled);
3308
+ throw new Error(serialized);
3309
+ }
3310
+ },
3311
+ inputs: {
3312
+ connectionInput,
3313
+ top,
3314
+ skip,
3315
+ filter,
3316
+ inlinecount,
3317
+ changeRecordOrderBy,
3318
+ changeRecordSelect,
3319
+ changeRecordExpand
3320
+ }
3321
+ });
3322
+ //#endregion
3323
+ //#region src/actions/listFiles.ts
3324
+ const listFilesSelect = (0, _prismatic_io_spectral.input)({
3325
+ label: "Select",
3326
+ type: "string",
3327
+ comments: "Select property to be returned",
3328
+ required: false,
3329
+ model: [
3330
+ {
3331
+ label: "PackageName",
3332
+ value: "PackageName"
3333
+ },
3334
+ {
3335
+ label: "FileName",
3336
+ value: "FileName"
3337
+ },
3338
+ {
3339
+ label: "ObjectName",
3340
+ value: "ObjectName"
3341
+ },
3342
+ {
3343
+ label: "Scenario",
3344
+ value: "Scenario"
3345
+ },
3346
+ {
3347
+ label: "FileSize",
3348
+ value: "FileSize"
3349
+ }
3350
+ ],
3351
+ clean: _prismatic_io_spectral.util.types.toString
3352
+ });
3353
+ const listFiles = (0, _prismatic_io_spectral.action)({
3354
+ display: {
3355
+ label: "List Files",
3356
+ description: "Retrieves list of prepared files, based on specific filter conditions."
3357
+ },
3358
+ perform: async (_context, { connectionInput, filter, inlinecount, select }) => {
3359
+ const selectArray = select ? select.split(",") : [];
3360
+ const client = getSapClient(connectionInput, { Accept: "application/json" });
3361
+ try {
3362
+ const { data } = await client.get(`/sap/opu/odata/sap/API_CDR_FILE_DOWNLOAD_SRV/ListFiles?${filter.length ? `$filter=${filter}&` : ""}${inlinecount.length ? `$inlinecount=${inlinecount}&` : ""}${selectArray.length ? `$select=${selectArray.join(",")}&` : ""}`);
3363
+ return { data };
3364
+ } catch (error) {
3365
+ const handled = (0, _prismatic_io_spectral_http.handleErrors)(error);
3366
+ const serialized = _prismatic_io_spectral.util.types.toJSON(handled);
3367
+ throw new Error(serialized);
3368
+ }
3369
+ },
3370
+ inputs: {
3371
+ connectionInput,
3372
+ filter: {
3373
+ ...filter,
3374
+ required: true
3375
+ },
3376
+ inlinecount,
3377
+ select: listFilesSelect
3378
+ }
3379
+ });
3380
+ //#endregion
3381
+ //#region src/actions/listProjects.ts
3382
+ const orderByOptions$3 = [
3383
+ "ProjectID",
3384
+ "ProjectID desc",
3385
+ "ProjectName",
3386
+ "ProjectName desc",
3387
+ "ProjectStage",
3388
+ "ProjectStage desc",
3389
+ "OrgID",
3390
+ "OrgID desc",
3391
+ "ProjectCategory",
3392
+ "ProjectCategory desc",
3393
+ "Currency",
3394
+ "Currency desc",
3395
+ "StartDate",
3396
+ "StartDate desc",
3397
+ "EndDate",
3398
+ "EndDate desc",
3399
+ "ProjManagerExtId",
3400
+ "ProjManagerExtId desc",
3401
+ "ProjManagerCompCode",
3402
+ "ProjManagerCompCode desc",
3403
+ "Customer",
3404
+ "Customer desc",
3405
+ "CostCenter",
3406
+ "CostCenter desc",
3407
+ "ProfitCenter",
3408
+ "ProfitCenter desc",
3409
+ "ProjAccountantExtId",
3410
+ "ProjAccountantExtId desc",
3411
+ "ProjAccountantCompCode",
3412
+ "ProjAccountantCompCode desc",
3413
+ "ProjControllerExtId",
3414
+ "ProjControllerExtId desc",
3415
+ "ProjControllerCompCode",
3416
+ "ProjControllerCompCode desc",
3417
+ "ProjPartnerExtId",
3418
+ "ProjPartnerExtId desc",
3419
+ "ProjPartnerCompCode",
3420
+ "ProjPartnerCompCode desc",
3421
+ "Confidential",
3422
+ "Confidential desc",
3423
+ "CreatedOn",
3424
+ "CreatedOn desc",
3425
+ "ChangedOn",
3426
+ "ChangedOn desc"
3427
+ ].map((option) => ({
3428
+ label: option,
3429
+ value: option
3430
+ }));
3431
+ const selectOptions$3 = [
3432
+ "ProjectID",
3433
+ "ProjectName",
3434
+ "ProjectStage",
3435
+ "OrgID",
3436
+ "ProjectCategory",
3437
+ "Currency",
3438
+ "StartDate",
3439
+ "EndDate",
3440
+ "ProjManagerExtId",
3441
+ "ProjManagerCompCode",
3442
+ "Customer",
3443
+ "CostCenter",
3444
+ "ProfitCenter",
3445
+ "ProjAccountantExtId",
3446
+ "ProjAccountantCompCode",
3447
+ "ProjControllerExtId",
3448
+ "ProjControllerCompCode",
3449
+ "ProjPartnerExtId",
3450
+ "ProjPartnerCompCode",
3451
+ "ProjectDesc",
3452
+ "Confidential",
3453
+ "UseProjectBilling",
3454
+ "RestrictTimePosting",
3455
+ "CreatedOn",
3456
+ "ChangedOn",
3457
+ "ProjectRoleSet",
3458
+ "WorkPackageSet"
3459
+ ].map((option) => ({
3460
+ label: option,
3461
+ value: option
3462
+ }));
3463
+ const expandOptions$1 = ["ProjectRoleSet", "WorkPackageSet"].map((option) => ({
3464
+ label: option,
3465
+ value: option
3466
+ }));
3467
+ const listProjectsOrderBy = (0, _prismatic_io_spectral.input)({
3468
+ label: "Order By",
3469
+ placeholder: "Order By",
3470
+ type: "string",
3471
+ required: false,
3472
+ comments: "Order by property",
3473
+ collection: "valuelist",
3474
+ model: orderByOptions$3,
3475
+ clean: _prismatic_io_spectral.util.types.toString
3476
+ });
3477
+ const listProjectsSelect = (0, _prismatic_io_spectral.input)({
3478
+ label: "Select",
3479
+ placeholder: "Select",
3480
+ type: "string",
3481
+ required: false,
3482
+ comments: "Select property to be returned",
3483
+ collection: "valuelist",
3484
+ model: selectOptions$3,
3485
+ clean: _prismatic_io_spectral.util.types.toString
3486
+ });
3487
+ const listProjectsExpand = (0, _prismatic_io_spectral.input)({
3488
+ label: "Expand",
3489
+ placeholder: "Expand",
3490
+ type: "string",
3491
+ required: false,
3492
+ comments: "Expand property to be returned",
3493
+ collection: "valuelist",
3494
+ model: expandOptions$1,
3495
+ clean: _prismatic_io_spectral.util.types.toString
3496
+ });
3497
+ const listProjects = (0, _prismatic_io_spectral.action)({
3498
+ display: {
3499
+ label: "List Projects",
3500
+ description: "Returns details about all customer and internal projects in the system."
3501
+ },
3502
+ perform: async (_context, { connectionInput, filter, inlinecount, orderBy, select, expand }) => {
3503
+ const client = getSapClient(connectionInput, { Accept: "application/json" });
3504
+ try {
3505
+ const { data } = await client.get(`/sap/opu/odata/CPD/SC_PROJ_ENGMT_CREATE_UPD_SRV/ProjectSet?${filter.length ? `$filter=${filter}&` : ""}${inlinecount.length ? `$inlinecount=${inlinecount}&` : ""}${orderBy.length ? `$orderby=${orderBy}&` : ""}${select.length ? `$select=${select}&` : ""}${expand.length ? `$expand=${expand}&` : ""}`);
3506
+ return { data };
3507
+ } catch (error) {
3508
+ const handled = (0, _prismatic_io_spectral_http.handleErrors)(error);
3509
+ const serialized = _prismatic_io_spectral.util.types.toJSON(handled);
3510
+ throw new Error(serialized);
3511
+ }
3512
+ },
3513
+ inputs: {
3514
+ connectionInput,
3515
+ filter,
3516
+ inlinecount,
3517
+ orderBy: listProjectsOrderBy,
3518
+ select: listProjectsSelect,
3519
+ expand: listProjectsExpand
3520
+ }
3521
+ });
3522
+ //#endregion
3523
+ //#region src/actions/listSubscriptions.ts
3524
+ const orderByOptions$2 = [
3525
+ "BusEventSubscriberCode",
3526
+ "BusEventSubscriberCode desc",
3527
+ "SAPObjectType",
3528
+ "SAPObjectType desc",
3529
+ "SAPObjectTaskCode",
3530
+ "SAPObjectTaskCode desc",
3531
+ "BusEventSubscriptionStateCode",
3532
+ "BusEventSubscriptionStateCode desc",
3533
+ "BusEventPriority",
3534
+ "BusEventPriority desc"
3535
+ ].map((option) => ({
3536
+ label: option,
3537
+ value: option
3538
+ }));
3539
+ const selectOptions$2 = [
3540
+ "BusEventSubscriberCode",
3541
+ "SAPObjectType",
3542
+ "SAPObjectTaskCode",
3543
+ "BusEventSubscriptionStateCode",
3544
+ "BusEventPriority"
3545
+ ].map((option) => ({
3546
+ label: option,
3547
+ value: option
3548
+ }));
3549
+ const listSubscriptionsOrderBy = (0, _prismatic_io_spectral.input)({
3550
+ label: "Order By",
3551
+ placeholder: "Order By",
3552
+ type: "string",
3553
+ required: false,
3554
+ comments: "Order by property",
3555
+ collection: "valuelist",
3556
+ model: orderByOptions$2,
3557
+ clean: _prismatic_io_spectral.util.types.toString
3558
+ });
3559
+ const listSubscriptionsSelect = (0, _prismatic_io_spectral.input)({
3560
+ label: "Select",
3561
+ placeholder: "Select",
3562
+ type: "string",
3563
+ required: false,
3564
+ comments: "Select property to be returned",
3565
+ collection: "valuelist",
3566
+ model: selectOptions$2,
3567
+ clean: _prismatic_io_spectral.util.types.toString
3568
+ });
3569
+ const listSubscriptions = (0, _prismatic_io_spectral.action)({
3570
+ display: {
3571
+ label: "List Subscriptions",
3572
+ description: "Reads subscription information for business events."
3573
+ },
3574
+ perform: async (_context, { connectionInput, top, skip, search, filter, inlinecount, orderBy, select }) => {
3575
+ const client = getSapClient(connectionInput, { Accept: "application/json" });
3576
+ try {
3577
+ const { data } = await client.get(`/sap/opu/odata/sap/CA_BEH_SUBSCRIPTION_SRV/SubscriptionMaintain?${top.length ? `$top=${top}&` : ""}${skip.length ? `$skip=${skip}&` : ""}${search.length ? `search=${search}&` : ""}${filter.length ? `$filter=${filter}&` : ""}${inlinecount.length ? `$inlinecount=${inlinecount}&` : ""}${orderBy.length ? `$orderby=${orderBy}&` : ""}${select.length ? `$select=${select}&` : ""}`);
3578
+ return { data };
3579
+ } catch (error) {
3580
+ const handled = (0, _prismatic_io_spectral_http.handleErrors)(error);
3581
+ const serialized = _prismatic_io_spectral.util.types.toJSON(handled);
3582
+ throw new Error(serialized);
3583
+ }
3584
+ },
3585
+ inputs: {
3586
+ connectionInput,
3587
+ top,
3588
+ skip,
3589
+ search,
3590
+ filter,
3591
+ inlinecount,
3592
+ orderBy: listSubscriptionsOrderBy,
3593
+ select: listSubscriptionsSelect
3594
+ }
3595
+ });
3596
+ //#endregion
3597
+ //#region src/actions/listTimesheetEntryCollection.ts
3598
+ const orderByOptions$1 = ["TimeSheetDataFields", "TimeSheetDataFields desc"].map((option) => ({
3599
+ label: option,
3600
+ value: option
3601
+ }));
3602
+ const selectOptions$1 = [
3603
+ "TimeSheetDataFields",
3604
+ "PersonWorkAgreementExternalID",
3605
+ "CompanyCode",
3606
+ "TimeSheetRecord",
3607
+ "PersonWorkAgreement",
3608
+ "TimeSheetDate",
3609
+ "TimeSheetIsReleasedOnSave",
3610
+ "TimeSheetPredecessorRecord",
3611
+ "TimeSheetStatus",
3612
+ "TimeSheetIsExecutedInTestRun",
3613
+ "TimeSheetOperation"
3614
+ ].map((option) => ({
3615
+ label: option,
3616
+ value: option
3617
+ }));
3618
+ const listTimesheetEntryCollectionOrderBy = (0, _prismatic_io_spectral.input)({
3619
+ label: "Order By",
3620
+ placeholder: "Order By",
3621
+ type: "string",
3622
+ required: false,
3623
+ comments: "Order by property",
3624
+ collection: "valuelist",
3625
+ model: orderByOptions$1,
3626
+ clean: _prismatic_io_spectral.util.types.toString
3627
+ });
3628
+ const listTimesheetEntryCollectionSelect = (0, _prismatic_io_spectral.input)({
3629
+ label: "Select",
3630
+ placeholder: "Select",
3631
+ type: "string",
3632
+ required: false,
3633
+ comments: "Select property to be returned",
3634
+ collection: "valuelist",
3635
+ model: selectOptions$1,
3636
+ clean: _prismatic_io_spectral.util.types.toString
3637
+ });
3638
+ const listTimesheetEntryCollection = (0, _prismatic_io_spectral.action)({
3639
+ display: {
3640
+ label: "List Timesheet Entry Collection",
3641
+ description: "Reads data for all workforce’s timesheet entries. It retrieves information about the time recording made by each workforce’s on a particular task and on a particular day."
3642
+ },
3643
+ perform: async (_context, { connectionInput, top, skip, filter, inlinecount, orderBy, select }) => {
3644
+ const client = getSapClient(connectionInput, { Accept: "application/json" });
3645
+ try {
3646
+ const { data } = await client.get(`/sap/opu/odata/sap/API_MANAGE_WORKFORCE_TIMESHEET/TimeSheetEntryCollection?${top.length ? `$top=${top}&` : ""}${skip.length ? `$skip=${skip}&` : ""}${filter.length ? `$filter=${filter}&` : ""}${inlinecount.length ? `$inlinecount=${inlinecount}&` : ""}${orderBy.length ? `$orderby=${orderBy}&` : ""}${select.length ? `$select=${select}&` : ""}`);
3647
+ return { data };
3648
+ } catch (error) {
3649
+ const handled = (0, _prismatic_io_spectral_http.handleErrors)(error);
3650
+ const serialized = _prismatic_io_spectral.util.types.toJSON(handled);
3651
+ throw new Error(serialized);
3652
+ }
3653
+ },
3654
+ inputs: {
3655
+ connectionInput,
3656
+ top,
3657
+ skip,
3658
+ filter,
3659
+ inlinecount,
3660
+ orderBy: listTimesheetEntryCollectionOrderBy,
3661
+ select: listTimesheetEntryCollectionSelect
3662
+ }
3663
+ });
3664
+ //#endregion
3665
+ //#region src/actions/rawRequest.ts
3666
+ const { debugRequest: _, ...rawRequestInputs } = _prismatic_io_spectral_http.inputs;
3667
+ const rawRequest = (0, _prismatic_io_spectral.action)({
3668
+ display: {
3669
+ label: "Raw Request",
3670
+ description: "Send raw HTTP request to SAP S/4HANA"
3671
+ },
3672
+ inputs: {
3673
+ connection: connectionInput,
3674
+ ...rawRequestInputs,
3675
+ url: {
3676
+ ...rawRequestInputs.url,
3677
+ comments: "Input the path only. The base URL from your connection is automatically prepended. For example: /sap/opu/odata4/sap/api_purchaseorder_2/srvd_a2x/sap/purchaseorder/0001/PurchaseOrder",
3678
+ example: "/sap/opu/odata4/sap/api_purchaseorder_2/srvd_a2x/sap/purchaseorder/0001/PurchaseOrder"
3679
+ }
3680
+ },
3681
+ perform: async (context, { connection, ...rawRequestInputs }) => {
3682
+ try {
3683
+ const { data, headers } = await (0, _prismatic_io_spectral_http.sendRawRequest)(getBaseUrl(connection), {
3684
+ ...rawRequestInputs,
3685
+ debugRequest: context.debug.enabled
3686
+ }, getAuthHeaders(connection));
3687
+ return { data: {
3688
+ data,
3689
+ headers
3690
+ } };
3691
+ } catch (error) {
3692
+ const handled = (0, _prismatic_io_spectral_http.handleErrors)(error);
3693
+ const serialized = _prismatic_io_spectral.util.types.toJSON(handled);
3694
+ throw new Error(serialized);
3695
+ }
3696
+ }
3697
+ });
3698
+ //#endregion
3699
+ //#region src/actions/rawRequestOdata.ts
3700
+ const orderByOptions = [
3701
+ "FileSize",
3702
+ "FileSize desc",
3703
+ "FileName",
3704
+ "FileName desc",
3705
+ "MimeType",
3706
+ "MimeType desc",
3707
+ "CreatedByUser",
3708
+ "CreatedByUser desc",
3709
+ "CreationDateTime",
3710
+ "CreationDateTime desc",
3711
+ "LastChangedByUser",
3712
+ "LastChangedByUser desc",
3713
+ "ChangedDateTime",
3714
+ "ChangedDateTime desc"
3715
+ ].map((option) => ({
3716
+ label: option,
3717
+ value: option
3718
+ }));
3719
+ const selectOptions = [
3720
+ "DocumentInfoRecordDocType",
3721
+ "DocumentInfoRecordDocNumber",
3722
+ "DocumentInfoRecordDocVersion",
3723
+ "DocumentInfoRecordDocPart",
3724
+ "LogicalDocument",
3725
+ "ArchiveDocumentID",
3726
+ "LinkedSAPObjectKey",
3727
+ "BusinessObjectTypeName",
3728
+ "SemanticObject",
3729
+ "WorkstationApplication",
3730
+ "FileSize",
3731
+ "FileName",
3732
+ "DocumentURL",
3733
+ "MimeType",
3734
+ "Content",
3735
+ "CreatedByUser",
3736
+ "CreatedByUserFullName",
3737
+ "CreationDateTime",
3738
+ "BusinessObjectType",
3739
+ "LastChangedByUser",
3740
+ "LastChangedByUserFullName",
3741
+ "ChangedDateTime",
3742
+ "StorageCategory",
3743
+ "ArchiveLinkRepository",
3744
+ "SAPObjectType",
3745
+ "SAPObjectNodeType",
3746
+ "HarmonizedDocumentType",
3747
+ "AttachmentDeletionIsAllowed",
3748
+ "AttachmentRenameIsAllowed",
3749
+ "Source",
3750
+ "AttachmentContentHash"
3751
+ ].map((option) => ({
3752
+ label: option,
3753
+ value: option
3754
+ }));
3755
+ const expandOptions = ["ProjectRoleSet", "WorkPackageSet"].map((option) => ({
3756
+ label: option,
3757
+ value: option
3758
+ }));
3759
+ const rawRequestOdataOrderBy = (0, _prismatic_io_spectral.input)({
3760
+ label: "Order By",
3761
+ placeholder: "Order By",
3762
+ type: "string",
3763
+ required: false,
3764
+ comments: "Order by property",
3765
+ collection: "valuelist",
3766
+ model: orderByOptions,
3767
+ clean: _prismatic_io_spectral.util.types.toString
3768
+ });
3769
+ const rawRequestOdataSelect = (0, _prismatic_io_spectral.input)({
3770
+ label: "Select",
3771
+ placeholder: "Select",
3772
+ type: "string",
3773
+ required: false,
3774
+ comments: "Select property to be returned",
3775
+ collection: "valuelist",
3776
+ model: selectOptions,
3777
+ clean: _prismatic_io_spectral.util.types.toString
3778
+ });
3779
+ const rawRequestOdataExpand = (0, _prismatic_io_spectral.input)({
3780
+ label: "Expand",
3781
+ placeholder: "Expand",
3782
+ type: "string",
3783
+ required: false,
3784
+ comments: "Expand property to be returned",
3785
+ collection: "valuelist",
3786
+ model: expandOptions,
3787
+ clean: _prismatic_io_spectral.util.types.toString
3788
+ });
3789
+ const rawRequestOdata = (0, _prismatic_io_spectral.action)({
3790
+ display: {
3791
+ label: "Raw Request - OData",
3792
+ description: "Send an OData GET request to SAP S/4HANA with query parameters"
3793
+ },
3794
+ inputs: {
3795
+ connection: connectionInput,
3796
+ url: {
3797
+ label: "URL Path",
3798
+ type: "string",
3799
+ required: true,
3800
+ comments: "Input the path only. The base URL from your connection is automatically prepended. Example: /sap/opu/odata/sap/API_PURCHASEREQ_PROCESS_SRV/A_PurchaseRequisitionHeader",
3801
+ example: "/sap/opu/odata/sap/API_PURCHASEREQ_PROCESS_SRV/A_PurchaseRequisitionHeader",
3802
+ clean: _prismatic_io_spectral.util.types.toString
3803
+ },
3804
+ top,
3805
+ skip,
3806
+ search,
3807
+ filter,
3808
+ inlinecount,
3809
+ orderBy: rawRequestOdataOrderBy,
3810
+ select: rawRequestOdataSelect,
3811
+ expand: rawRequestOdataExpand
3812
+ },
3813
+ perform: async (_context, { connection, url, top, skip, search, filter, inlinecount, orderBy, select, expand }) => {
3814
+ const queryParams = [];
3815
+ if (top) queryParams.push(`$top=${top}`);
3816
+ if (skip) queryParams.push(`$skip=${skip}`);
3817
+ if (search) queryParams.push(`$search=${search}`);
3818
+ if (filter) queryParams.push(`$filter=${filter}`);
3819
+ if (inlinecount) queryParams.push(`$inlinecount=${inlinecount}`);
3820
+ if (orderBy) queryParams.push(`$orderby=${orderBy}`);
3821
+ if (select) queryParams.push(`$select=${select}`);
3822
+ if (expand) queryParams.push(`$expand=${expand}`);
3823
+ const finalUrl = `${url}${queryParams.length > 0 ? `?${queryParams.join("&")}` : ""}`;
3824
+ const client = getSapClient(connection, { Accept: "application/json" });
3825
+ try {
3826
+ const { data } = await client.get(finalUrl);
3827
+ return { data };
3828
+ } catch (error) {
3829
+ const handled = (0, _prismatic_io_spectral_http.handleErrors)(error);
3830
+ const serialized = _prismatic_io_spectral.util.types.toJSON(handled);
3831
+ throw new Error(serialized);
3832
+ }
3833
+ }
3834
+ });
3835
+ //#endregion
3836
+ //#region src/actions/updateChangeRecord.ts
3837
+ const updateChangeRecord = (0, _prismatic_io_spectral.action)({
3838
+ display: {
3839
+ label: "Update Change Record",
3840
+ description: "Updates header attributes of the change record specified in the request."
3841
+ },
3842
+ perform: async (_context, { requestBodyCode, connectionInput, changeRecordUuid }) => {
3843
+ const client = getSapClient(connectionInput, {
3844
+ Accept: "*/*",
3845
+ "Content-Type": "application/json"
3846
+ });
3847
+ try {
3848
+ const { data } = await client.patch(`/sap/opu/odata/sap/API_CHANGE_RECORD/A_ChangeRecord(guid'${changeRecordUuid}}')`, requestBodyCode);
3849
+ return { data };
3850
+ } catch (error) {
3851
+ const handled = (0, _prismatic_io_spectral_http.handleErrors)(error);
3852
+ const serialized = _prismatic_io_spectral.util.types.toJSON(handled);
3853
+ throw new Error(serialized);
3854
+ }
3855
+ },
3856
+ inputs: {
3857
+ requestBodyCode: {
3858
+ ...requestBodyCode,
3859
+ required: true,
3860
+ default: `{
3861
+ "d": {
3862
+ "ChangeRecord": "string",
3863
+ "ChangeRecordType": "string",
3864
+ "ChangeRecordStatus": "string",
3865
+ "ChangeNumber": "string",
3866
+ "ChangeRecordLifecycleStatus": "string",
3867
+ "Partner": "string",
3868
+ "ChgRecordDescriptionText": "string",
3869
+ "ChangeRecordDetailDescription": "string",
3870
+ "ChgRecdExpectedCompletionDate": "/Date(1492041600000)/"
3871
+ }
3872
+ }`
3873
+ },
3874
+ connectionInput,
3875
+ changeRecordUuid
3876
+ }
3877
+ });
3878
+ //#endregion
3879
+ //#region src/actions/updateProject.ts
3880
+ const updateProject = (0, _prismatic_io_spectral.action)({
3881
+ display: {
3882
+ label: "Update Project",
3883
+ description: "Updates the basic information for a customer or internal project."
3884
+ },
3885
+ perform: async (_context, { requestBodyCode, connectionInput, projectId }) => {
3886
+ const client = getSapClient(connectionInput, {
3887
+ Accept: "*/*",
3888
+ "Content-Type": "application/json"
3889
+ });
3890
+ try {
3891
+ const { data } = await client.patch(`/sap/opu/odata/CPD/SC_PROJ_ENGMT_CREATE_UPD_SRV/ProjectSet('${projectId}')`, requestBodyCode);
3892
+ return { data };
3893
+ } catch (error) {
3894
+ const handled = (0, _prismatic_io_spectral_http.handleErrors)(error);
3895
+ const serialized = _prismatic_io_spectral.util.types.toJSON(handled);
3896
+ throw new Error(serialized);
3897
+ }
3898
+ },
3899
+ inputs: {
3900
+ requestBodyCode: {
3901
+ ...requestBodyCode,
3902
+ required: true,
3903
+ default: `{
3904
+ "d": {
3905
+ "ProjectName": "string",
3906
+ "ProjectStage": "string",
3907
+ "Currency": "string",
3908
+ "StartDate": "/Date(1492098664000)/",
3909
+ "EndDate": "/Date(1492098664000)/",
3910
+ "ProjManagerExtId": "string",
3911
+ "ProjManagerCompCode": "string",
3912
+ "ProfitCenter": "string",
3913
+ "ProjAccountantExtId": "string",
3914
+ "ProjAccountantCompCode": "string",
3915
+ "ProjControllerExtId": "string",
3916
+ "ProjControllerCompCode": "string",
3917
+ "ProjPartnerExtId": "string",
3918
+ "ProjPartnerCompCode": "string",
3919
+ "ProjectDesc": "string",
3920
+ "Confidential": "string",
3921
+ "UseProjectBilling": "string",
3922
+ "RestrictTimePosting": "string"
3923
+ }
3924
+ }`
3925
+ },
3926
+ connectionInput,
3927
+ projectId
3928
+ }
3929
+ });
3930
+ //#endregion
3931
+ //#region src/actions/index.ts
3932
+ var actions_default = {
3933
+ addAttachment,
3934
+ getAttachment,
3935
+ deleteAttachment,
3936
+ listSubscriptions,
3937
+ createSubscription,
3938
+ updateSubscription: (0, _prismatic_io_spectral.action)({
3939
+ display: {
3940
+ label: "Update Subscription",
3941
+ description: "Updates business events subscription status using the business event subscriber code, SAP object type, SAP object task code, and business event subscription state code."
3942
+ },
3943
+ perform: async (_context, { busEventSubscriberCode, sapObjectType, sapObjectTaskCode, requestBodyCode, connectionInput }) => {
3944
+ const client = getSapClient(connectionInput, {
3945
+ Accept: "*/*",
3946
+ "Content-Type": "application/json"
3947
+ });
3948
+ try {
3949
+ const { data } = await client.patch(`/sap/opu/odata/sap/CA_BEH_SUBSCRIPTION_SRV/SubscriptionMaintain(BusEventSubscriberCode='${busEventSubscriberCode}',SAPObjectType='${sapObjectType}',SAPObjectTaskCode='${sapObjectTaskCode}')`, requestBodyCode);
3950
+ return { data };
3951
+ } catch (error) {
3952
+ const handled = (0, _prismatic_io_spectral_http.handleErrors)(error);
3953
+ const serialized = _prismatic_io_spectral.util.types.toJSON(handled);
3954
+ throw new Error(serialized);
3955
+ }
3956
+ },
3957
+ inputs: {
3958
+ busEventSubscriberCode,
3959
+ sapObjectType,
3960
+ sapObjectTaskCode,
3961
+ requestBodyCode: {
3962
+ ...requestBodyCode,
3963
+ required: true,
3964
+ default: `{
3965
+ "d": {
3966
+ "BusEventSubscriptionStateCode": "s",
3967
+ "BusEventPriority": 0
3968
+ }
3969
+ }`
3970
+ },
3971
+ connectionInput
3972
+ }
3973
+ }),
3974
+ listProjects,
3975
+ getProject,
3976
+ createProject,
3977
+ updateProject,
3978
+ listTimesheetEntryCollection,
3979
+ updateTimesheetEntryCollection: (0, _prismatic_io_spectral.action)({
3980
+ display: {
3981
+ label: "Update Timesheet Entry Collection",
3982
+ description: "Creates, updates, or deletes workforce timesheet entry based on the data provided in payload."
3983
+ },
3984
+ perform: async (_context, { requestBodyCode, connectionInput }) => {
3985
+ const client = getSapClient(connectionInput, {
3986
+ Accept: "application/json",
3987
+ "Content-Type": "application/json"
3988
+ });
3989
+ try {
3990
+ const { data } = await client.post("/sap/opu/odata/sap/API_MANAGE_WORKFORCE_TIMESHEET/TimeSheetEntryCollection", requestBodyCode);
3991
+ return { data };
3992
+ } catch (error) {
3993
+ const handled = (0, _prismatic_io_spectral_http.handleErrors)(error);
3994
+ const serialized = _prismatic_io_spectral.util.types.toJSON(handled);
3995
+ throw new Error(serialized);
3996
+ }
3997
+ },
3998
+ inputs: {
3999
+ requestBodyCode: {
4000
+ ...requestBodyCode,
4001
+ required: true,
4002
+ default: `{
4003
+ "TimeSheetDataFields": {
4004
+ "ControllingArea": "string",
4005
+ "SenderCostCenter": "string",
4006
+ "ReceiverCostCenter": "string",
4007
+ "InternalOrder": "string",
4008
+ "ActivityType": "string",
4009
+ "WBSElement": "string",
4010
+ "WorkItem": "string",
4011
+ "BillingControlCategory": "string",
4012
+ "PurchaseOrder": "string",
4013
+ "PurchaseOrderItem": "string",
4014
+ "TimeSheetTaskType": "string",
4015
+ "TimeSheetTaskLevel": "string",
4016
+ "TimeSheetTaskComponent": "string",
4017
+ "TimeSheetNote": "string",
4018
+ "RecordedHours": "0",
4019
+ "RecordedQuantity": "0",
4020
+ "HoursUnitOfMeasure": "string",
4021
+ "RejectionReason": "string",
4022
+ "TimeSheetWrkLocCode": "string",
4023
+ "TimeSheetOvertimeCategory": "string",
4024
+ "SenderPubSecFund": "string",
4025
+ "SendingPubSecFunctionalArea": "string",
4026
+ "SenderPubSecGrant": "string",
4027
+ "SenderPubSecBudgetPeriod": "string",
4028
+ "ReceiverPubSecFund": "string",
4029
+ "ReceiverPubSecFuncnlArea": "string",
4030
+ "ReceiverPubSecGrant": "string",
4031
+ "ReceiverPubSecBudgetPeriod": "string"
4032
+ },
4033
+ "PersonWorkAgreementExternalID": "string",
4034
+ "CompanyCode": "string",
4035
+ "TimeSheetRecord": "string",
4036
+ "PersonWorkAgreement": "string",
4037
+ "TimeSheetDate": "/Date(1492098664000)/",
4038
+ "TimeSheetIsReleasedOnSave": true,
4039
+ "TimeSheetPredecessorRecord": "string",
4040
+ "TimeSheetStatus": "string",
4041
+ "TimeSheetIsExecutedInTestRun": true,
4042
+ "TimeSheetOperation": "string"
4043
+ }`
4044
+ },
4045
+ connectionInput
4046
+ }
4047
+ }),
4048
+ listFiles,
4049
+ listChangeRecords,
4050
+ getChangerecord,
4051
+ createChangeRecord,
4052
+ updateChangeRecord,
4053
+ rawRequest,
4054
+ rawRequestOdata,
4055
+ getPurchaseRequisition: (0, _prismatic_io_spectral.action)({
4056
+ display: {
4057
+ label: "Get Purchase Requisition",
4058
+ description: "Gets the header details of a purchase requisition using the purchase requisition number provided."
4059
+ },
4060
+ perform: async (_, { expand, select, connectionInput, purchaseRequisitionNumber }) => {
4061
+ const headers = { Accept: "application/json" };
4062
+ const params = {
4063
+ $expand: expand || void 0,
4064
+ $select: select || void 0
4065
+ };
4066
+ const client = getSapClient(connectionInput, headers);
4067
+ try {
4068
+ const url = `/sap/opu/odata/sap/API_PURCHASEREQ_PROCESS_SRV/A_PurchaseRequisitionHeader('${purchaseRequisitionNumber}')`;
4069
+ const { data } = await client.get(url, { params });
4070
+ return { data };
4071
+ } catch (error) {
4072
+ const handled = (0, _prismatic_io_spectral_http.handleErrors)(error);
4073
+ const serialized = _prismatic_io_spectral.util.types.toJSON(handled);
4074
+ throw new Error(serialized);
4075
+ }
4076
+ },
4077
+ inputs: {
4078
+ connectionInput,
4079
+ select: listPurchaseRequisitionSelect,
4080
+ expand: listPurchaseRequisitionExpand,
4081
+ purchaseRequisitionNumber: purchaseRequisitionNumberInput
4082
+ }
4083
+ }),
4084
+ listPurchaseRequisitions: (0, _prismatic_io_spectral.action)({
4085
+ display: {
4086
+ label: "List Purchase Requisitions",
4087
+ description: "Gets the header details of all the purchase requisitions in the system."
4088
+ },
4089
+ perform: async (_, { top, expand, skip, filter, inlinecount, orderBy, select, connectionInput }) => {
4090
+ const headers = { Accept: "application/json" };
4091
+ const params = {
4092
+ $top: top || void 0,
4093
+ $skip: skip || void 0,
4094
+ $filter: filter || void 0,
4095
+ $inlinecount: inlinecount || void 0,
4096
+ $orderby: orderBy || void 0,
4097
+ $select: select || void 0,
4098
+ $expand: expand || void 0
4099
+ };
4100
+ const client = getSapClient(connectionInput, headers);
4101
+ try {
4102
+ const { data } = await client.get("/sap/opu/odata/sap/API_PURCHASEREQ_PROCESS_SRV/A_PurchaseRequisitionHeader", { params });
4103
+ return { data };
4104
+ } catch (error) {
4105
+ const handled = (0, _prismatic_io_spectral_http.handleErrors)(error);
4106
+ const serialized = _prismatic_io_spectral.util.types.toJSON(handled);
4107
+ throw new Error(serialized);
4108
+ }
4109
+ },
4110
+ inputs: {
4111
+ connectionInput,
4112
+ top,
4113
+ skip,
4114
+ filter,
4115
+ inlinecount,
4116
+ orderBy: listPurchaseRequisitionsOrderBy,
4117
+ select: listPurchaseRequisitionSelect,
4118
+ expand: listPurchaseRequisitionExpand
4119
+ }
4120
+ }),
4121
+ createPurchaseRequisition: (0, _prismatic_io_spectral.action)({
4122
+ display: {
4123
+ label: "Create Purchase Requisition",
4124
+ description: "Creates a purchase requisition with one or more items."
4125
+ },
4126
+ perform: async (_, { connectionInput, requestBodyCode }) => {
4127
+ const client = getSapClient(connectionInput, {
4128
+ Accept: "application/json",
4129
+ "Content-Type": "application/json"
4130
+ });
4131
+ try {
4132
+ const { data } = await client.post("/sap/opu/data/odata/sap/API_PURCHASEREQ_PROCESS_SRV/A_PurchaseRequisitionHeader", requestBodyCode);
4133
+ return { data };
4134
+ } catch (error) {
4135
+ const handled = (0, _prismatic_io_spectral_http.handleErrors)(error);
4136
+ const serialized = _prismatic_io_spectral.util.types.toJSON(handled);
4137
+ throw new Error(serialized);
4138
+ }
4139
+ },
4140
+ inputs: {
4141
+ connectionInput,
4142
+ requestBodyCode: {
4143
+ ...requestBodyCode,
4144
+ required: true,
4145
+ default: JSON.stringify(CREATE_PURCHASE_REQUISITION_DEFAULT_VALUE)
4146
+ }
4147
+ }
4148
+ }),
4149
+ updatePurchaseRequisition: (0, _prismatic_io_spectral.action)({
4150
+ display: {
4151
+ label: "Update Purchase Requisition",
4152
+ description: "Updates the header details of a purchase requisition."
4153
+ },
4154
+ perform: async (_context, { requestBodyCode, connectionInput, purchaseRequisitionNumberInput }) => {
4155
+ const client = getSapClient(connectionInput, {
4156
+ Accept: "*/*",
4157
+ "Content-Type": "application/json"
4158
+ });
4159
+ try {
4160
+ const { data } = await client.patch(`/sap/opu/odata/sap/API_PURCHASEREQ_PROCESS_SRV/A_PurchaseRequisitionHeader('${purchaseRequisitionNumberInput}')`, requestBodyCode);
4161
+ return { data };
4162
+ } catch (error) {
4163
+ const handled = (0, _prismatic_io_spectral_http.handleErrors)(error);
4164
+ const serialized = _prismatic_io_spectral.util.types.toJSON(handled);
4165
+ throw new Error(serialized);
4166
+ }
4167
+ },
4168
+ inputs: {
4169
+ requestBodyCode: {
4170
+ ...requestBodyCode,
4171
+ required: true,
4172
+ default: JSON.stringify(UPDATE_PURCHASE_REQUISITION_DEFAULT_VALUE)
4173
+ },
4174
+ connectionInput,
4175
+ purchaseRequisitionNumberInput
4176
+ }
4177
+ }),
4178
+ getPurchaseRequisitionItemDetails: (0, _prismatic_io_spectral.action)({
4179
+ display: {
4180
+ label: "Get Purchase Requisition Item Details",
4181
+ description: "Gets the item details of all the items in a purchase requisition"
4182
+ },
4183
+ perform: async (_, { connectionInput, purchaseRequisitionNumber, top, skip, filter, inlinecount, orderBy, select, expand }) => {
4184
+ const headers = { Accept: "application/json" };
4185
+ const params = {
4186
+ $top: top || void 0,
4187
+ $skip: skip || void 0,
4188
+ $filter: filter || void 0,
4189
+ $inlinecount: inlinecount || void 0,
4190
+ $orderby: orderBy || void 0,
4191
+ $select: select || void 0,
4192
+ $expand: expand || void 0
4193
+ };
4194
+ const client = getSapClient(connectionInput, headers);
4195
+ try {
4196
+ const { data } = await client.get(`/sap/opu/odata/sap/API_PURCHASEREQ_PROCESS_SRV/A_PurchaseRequisitionHeader('${purchaseRequisitionNumber}')/to_PurchaseReqnItem`, { params });
4197
+ return { data };
4198
+ } catch (error) {
4199
+ const handled = (0, _prismatic_io_spectral_http.handleErrors)(error);
4200
+ const serialized = _prismatic_io_spectral.util.types.toJSON(handled);
4201
+ throw new Error(serialized);
4202
+ }
4203
+ },
4204
+ inputs: {
4205
+ connectionInput,
4206
+ top,
4207
+ skip,
4208
+ filter,
4209
+ inlinecount,
4210
+ orderBy: getPurchaseRequisitionItemDetailsOrderBy,
4211
+ select: getPurchaseRequisitionItemDetailsSelect,
4212
+ expand: getPurchaseRequisitionItemDetailsExpand,
4213
+ purchaseRequisitionNumber: purchaseRequisitionNumberInput
4214
+ }
4215
+ }),
4216
+ addItemToPurchaseRequisition: (0, _prismatic_io_spectral.action)({
4217
+ display: {
4218
+ label: "Add Item To Purchase Requisition",
4219
+ description: "Adds an item to a purchase requisition using the purchase requisition number provided."
4220
+ },
4221
+ perform: async (_, { connectionInput, purchaseRequisitionNumberInput, requestBodyCode }) => {
4222
+ const client = getSapClient(connectionInput, {
4223
+ Accept: "application/json",
4224
+ "Content-Type": "application/json"
4225
+ });
4226
+ try {
4227
+ const { data } = await client.post(`/sap/opu/data/odata/sap/API_PURCHASEREQ_PROCESS_SRV/A_PurchaseRequisitionHeader('${purchaseRequisitionNumberInput}')/to_PurchaseReqnItem`, requestBodyCode);
4228
+ return { data };
4229
+ } catch (error) {
4230
+ const handled = (0, _prismatic_io_spectral_http.handleErrors)(error);
4231
+ const serialized = _prismatic_io_spectral.util.types.toJSON(handled);
4232
+ throw new Error(serialized);
4233
+ }
4234
+ },
4235
+ inputs: {
4236
+ connectionInput,
4237
+ purchaseRequisitionNumberInput,
4238
+ requestBodyCode: {
4239
+ ...requestBodyCode,
4240
+ required: true,
4241
+ default: JSON.stringify(ADD_ITEM_TO_PURCHASE_REQUISITION_DEFAULT_VALUE)
4242
+ }
4243
+ }
4244
+ }),
4245
+ listRecords: (0, _prismatic_io_spectral.action)({
4246
+ display: {
4247
+ label: "List Records",
4248
+ description: "Retrieve a list of records from SAP S/4HANA OData V2. For OData V4 APIs, use Raw Request."
4249
+ },
4250
+ perform: async (_, { top, expand, skip, filter, inlinecount, orderBy, select, connectionInput, recordType }) => {
4251
+ const headers = { Accept: "application/json" };
4252
+ const params = {
4253
+ $top: top || void 0,
4254
+ $skip: skip || void 0,
4255
+ $filter: filter || void 0,
4256
+ $inlinecount: inlinecount || void 0,
4257
+ $orderby: orderBy || void 0,
4258
+ $select: select || void 0,
4259
+ $expand: expand || void 0
4260
+ };
4261
+ const client = getSapClient(connectionInput, headers);
4262
+ try {
4263
+ const { data } = await client.get(`/sap/opu/odata/sap/${recordType}`, { params });
4264
+ return { data };
4265
+ } catch (error) {
4266
+ const handled = (0, _prismatic_io_spectral_http.handleErrors)(error);
4267
+ const serialized = _prismatic_io_spectral.util.types.toJSON(handled);
4268
+ throw new Error(serialized);
4269
+ }
4270
+ },
4271
+ inputs: {
4272
+ connectionInput,
4273
+ top,
4274
+ skip,
4275
+ filter,
4276
+ inlinecount,
4277
+ orderBy,
4278
+ select,
4279
+ expand,
4280
+ recordType
4281
+ }
4282
+ }),
4283
+ getRecord: (0, _prismatic_io_spectral.action)({
4284
+ display: {
4285
+ label: "Get Record",
4286
+ description: "Retrieve a single record from SAP S/4HANA OData V2. For OData V4 APIs, use Raw Request."
4287
+ },
4288
+ perform: async (_, { expand, select, connectionInput, recordId, recordType, orderBy, top, skip, filter, inlinecount }) => {
4289
+ const headers = { Accept: "application/json" };
4290
+ const params = {
4291
+ $expand: expand || void 0,
4292
+ $select: select || void 0,
4293
+ $orderby: orderBy || void 0,
4294
+ $top: top || void 0,
4295
+ $skip: skip || void 0,
4296
+ $filter: filter || void 0,
4297
+ $inlinecount: inlinecount || void 0
4298
+ };
4299
+ const client = getSapClient(connectionInput, headers);
4300
+ try {
4301
+ const url = `/sap/opu/odata/sap/${recordType}('${recordId}')`;
4302
+ const { data } = await client.get(url, { params });
4303
+ return { data };
4304
+ } catch (error) {
4305
+ const handled = (0, _prismatic_io_spectral_http.handleErrors)(error);
4306
+ const serialized = _prismatic_io_spectral.util.types.toJSON(handled);
4307
+ throw new Error(serialized);
4308
+ }
4309
+ },
4310
+ inputs: {
4311
+ connectionInput,
4312
+ recordType,
4313
+ recordId,
4314
+ top,
4315
+ skip,
4316
+ filter,
4317
+ inlinecount,
4318
+ orderBy: (0, _prismatic_io_spectral.input)({
4319
+ label: "Order By",
4320
+ type: "string",
4321
+ comments: "Order items by property value",
4322
+ required: false,
4323
+ clean: _prismatic_io_spectral.util.types.toString
4324
+ }),
4325
+ select: (0, _prismatic_io_spectral.input)({
4326
+ label: "Select",
4327
+ type: "string",
4328
+ comments: "Select property to be returned",
4329
+ required: false,
4330
+ clean: _prismatic_io_spectral.util.types.toString
4331
+ }),
4332
+ expand: (0, _prismatic_io_spectral.input)({
4333
+ label: "Expand",
4334
+ type: "string",
4335
+ comments: "Expand related entities",
4336
+ required: false,
4337
+ clean: _prismatic_io_spectral.util.types.toString
4338
+ })
4339
+ }
4340
+ }),
4341
+ createRecord: (0, _prismatic_io_spectral.action)({
4342
+ display: {
4343
+ label: "Create Record",
4344
+ description: "Creates a new record in SAP S/4HANA OData V2. For OData V4 APIs, use Raw Request."
4345
+ },
4346
+ perform: async (_, { connectionInput, requestBodyCode, recordType }) => {
4347
+ const client = getSapClient(connectionInput, {
4348
+ Accept: "application/json",
4349
+ "Content-Type": "application/json"
4350
+ });
4351
+ try {
4352
+ const { data } = await client.post(`/sap/opu/data/odata/sap/${recordType}`, requestBodyCode);
4353
+ return { data };
4354
+ } catch (error) {
4355
+ const handled = (0, _prismatic_io_spectral_http.handleErrors)(error);
4356
+ const serialized = _prismatic_io_spectral.util.types.toJSON(handled);
4357
+ throw new Error(serialized);
4358
+ }
4359
+ },
4360
+ inputs: {
4361
+ connectionInput,
4362
+ recordType,
4363
+ requestBodyCode: {
4364
+ ...requestBodyCode,
4365
+ required: true
4366
+ }
4367
+ }
4368
+ }),
4369
+ updateRecord: (0, _prismatic_io_spectral.action)({
4370
+ display: {
4371
+ label: "Update Record",
4372
+ description: "Updates an existing record in SAP S/4HANA."
4373
+ },
4374
+ perform: async (_context, { requestBodyCode, connectionInput, recordType, recordId }) => {
4375
+ const client = getSapClient(connectionInput, {
4376
+ Accept: "*/*",
4377
+ "Content-Type": "application/json"
4378
+ });
4379
+ try {
4380
+ const { data } = await client.patch(`/sap/opu/odata/sap/${recordType}('${recordId}')`, requestBodyCode);
4381
+ return { data };
4382
+ } catch (error) {
4383
+ const handled = (0, _prismatic_io_spectral_http.handleErrors)(error);
4384
+ const serialized = _prismatic_io_spectral.util.types.toJSON(handled);
4385
+ throw new Error(serialized);
4386
+ }
4387
+ },
4388
+ inputs: {
4389
+ requestBodyCode: {
4390
+ ...requestBodyCode,
4391
+ required: true,
4392
+ example: JSON.stringify(UPDATE_PURCHASE_REQUISITION_DEFAULT_VALUE)
4393
+ },
4394
+ connectionInput,
4395
+ recordType,
4396
+ recordId
4397
+ }
4398
+ }),
4399
+ deleteRecord: (0, _prismatic_io_spectral.action)({
4400
+ display: {
4401
+ label: "Delete Record",
4402
+ description: "Deletes an existing record in SAP S/4HANA OData V2. For OData V4 APIs, use Raw Request."
4403
+ },
4404
+ perform: async (_context, { connectionInput, recordType, recordId }) => {
4405
+ const client = getSapClient(connectionInput, { Accept: "*/*" });
4406
+ try {
4407
+ const { data } = await client.delete(`/sap/opu/odata/sap/${recordType}('${recordId}')`);
4408
+ return { data };
4409
+ } catch (error) {
4410
+ const handled = (0, _prismatic_io_spectral_http.handleErrors)(error);
4411
+ const serialized = _prismatic_io_spectral.util.types.toJSON(handled);
4412
+ throw new Error(serialized);
4413
+ }
4414
+ },
4415
+ inputs: {
4416
+ connectionInput,
4417
+ recordType,
4418
+ recordId
4419
+ }
4420
+ })
4421
+ };
4422
+ //#endregion
4423
+ //#region src/dataSources/index.ts
4424
+ var dataSources_default = {
4425
+ selectChangeRecord: (0, _prismatic_io_spectral.dataSource)({
4426
+ display: {
4427
+ label: "Select Change Record",
4428
+ description: "A picklist of change records in the SAP S/4HANA system."
4429
+ },
4430
+ inputs: { connection: connectionInput },
4431
+ perform: async (_context, { connection }) => {
4432
+ const client = getSapClient(connection, { Accept: "application/json" });
4433
+ try {
4434
+ const { data } = await client.get("/sap/opu/odata/sap/API_CHANGE_RECORD/A_ChangeRecord?$select=ChangeRecordUUID,ChangeRecord,ChgRecordDescriptionText");
4435
+ return { result: (data?.d?.results ?? data?.value ?? []).map((record) => ({
4436
+ label: record.ChgRecordDescriptionText ? `${record.ChangeRecord} - ${record.ChgRecordDescriptionText}` : record.ChangeRecord ?? record.ChangeRecordUUID,
4437
+ key: record.ChangeRecordUUID?.toString() ?? ""
4438
+ })).filter((item) => item.key).sort((a, b) => (a.label ?? "").localeCompare(b.label ?? "")) };
4439
+ } catch (error) {
4440
+ const handled = (0, _prismatic_io_spectral_http.handleErrors)(error);
4441
+ const serialized = _prismatic_io_spectral.util.types.toJSON(handled);
4442
+ throw new Error(serialized);
4443
+ }
4444
+ },
4445
+ dataSourceType: "picklist",
4446
+ examplePayload: { result: [{
4447
+ label: "CR-001 - Initial Change Record",
4448
+ key: "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
4449
+ }] }
4450
+ }),
4451
+ selectProject: (0, _prismatic_io_spectral.dataSource)({
4452
+ display: {
4453
+ label: "Select Project",
4454
+ description: "A picklist of projects in the SAP S/4HANA system."
4455
+ },
4456
+ inputs: { connection: connectionInput },
4457
+ perform: async (_context, { connection }) => {
4458
+ const client = getSapClient(connection, { Accept: "application/json" });
4459
+ try {
4460
+ const { data } = await client.get("/sap/opu/odata/CPD/SC_PROJ_ENGMT_CREATE_UPD_SRV/ProjectSet?$select=ProjectID,ProjectName");
4461
+ return { result: (data?.d?.results ?? data?.value ?? []).map((project) => ({
4462
+ label: project.ProjectName ? `${project.ProjectID} - ${project.ProjectName}` : project.ProjectID,
4463
+ key: project.ProjectID?.toString() ?? ""
4464
+ })).filter((item) => item.key).sort((a, b) => (a.label ?? "").localeCompare(b.label ?? "")) };
4465
+ } catch (error) {
4466
+ const handled = (0, _prismatic_io_spectral_http.handleErrors)(error);
4467
+ const serialized = _prismatic_io_spectral.util.types.toJSON(handled);
4468
+ throw new Error(serialized);
4469
+ }
4470
+ },
4471
+ dataSourceType: "picklist",
4472
+ examplePayload: { result: [{
4473
+ label: "PRJ-001 - Customer Implementation",
4474
+ key: "PRJ-001"
4475
+ }] }
4476
+ }),
4477
+ selectPurchaseRequisition: (0, _prismatic_io_spectral.dataSource)({
4478
+ display: {
4479
+ label: "Select Purchase Requisition",
4480
+ description: "A picklist of purchase requisitions in the SAP S/4HANA system."
4481
+ },
4482
+ inputs: { connection: connectionInput },
4483
+ perform: async (_context, { connection }) => {
4484
+ const client = getSapClient(connection, { Accept: "application/json" });
4485
+ try {
4486
+ const { data } = await client.get("/sap/opu/odata/sap/API_PURCHASEREQ_PROCESS_SRV/A_PurchaseRequisitionHeader?$select=PurchaseRequisition,PurReqnDescription");
4487
+ return { result: (data?.d?.results ?? data?.value ?? []).map((req) => ({
4488
+ label: req.PurReqnDescription ? `${req.PurchaseRequisition} - ${req.PurReqnDescription}` : req.PurchaseRequisition,
4489
+ key: req.PurchaseRequisition?.toString() ?? ""
4490
+ })).filter((item) => item.key).sort((a, b) => (a.label ?? "").localeCompare(b.label ?? "")) };
4491
+ } catch (error) {
4492
+ const handled = (0, _prismatic_io_spectral_http.handleErrors)(error);
4493
+ const serialized = _prismatic_io_spectral.util.types.toJSON(handled);
4494
+ throw new Error(serialized);
4495
+ }
4496
+ },
4497
+ dataSourceType: "picklist",
4498
+ examplePayload: { result: [{
4499
+ label: "0010000001 - Office Supplies",
4500
+ key: "0010000001"
4501
+ }] }
4502
+ })
4503
+ };
4504
+ //#endregion
4505
+ //#region src/triggers/index.ts
4506
+ var triggers_default = { pollChangesTrigger: (0, _prismatic_io_spectral.pollingTrigger)({
4507
+ display: {
4508
+ label: "New and Updated Records",
4509
+ description: "Retrieves existing and ongoing records for a specified SAP S/4HANA resource type. Load history once, check for changes on a schedule, or both."
4510
+ },
4511
+ inputs: {
4512
+ connection: connectionInput,
4513
+ resourceType: pollResourceType,
4514
+ showNewRecords,
4515
+ showUpdatedRecords,
4516
+ lookBackDate
4517
+ },
4518
+ triggerResolverSupport: "valid",
4519
+ batchConfig: { batchSize: 50 },
4520
+ triggerResolver: { resolveItems: (_context, { payload }) => resolvePollingRecordChanges(payload.body.data) },
4521
+ perform: async (context, payload, { connection, resourceType, showNewRecords, showUpdatedRecords, lookBackDate }) => {
4522
+ const now = (/* @__PURE__ */ new Date()).toISOString();
4523
+ const { since: lastPolledAt, isBackfill } = resolvePollWindow(context.polling.getState(), lookBackDate, now);
4524
+ const config = POLL_RESOURCE_CONFIG[resourceType];
4525
+ if (!config) throw new Error(`Unsupported resource type: ${resourceType}`);
4526
+ const client = getSapClient(connection);
4527
+ const sapDateTime = toSapDateTime(lastPolledAt);
4528
+ const filter = `${config.filterField} ge ${sapDateTime}`;
4529
+ const records = await fetchAllRecords(client, config.endpoint, filter);
4530
+ const lastPolledDate = new Date(lastPolledAt);
4531
+ const created = [];
4532
+ const updated = [];
4533
+ for (const record of records) {
4534
+ const createdAt = record[config.createdAtField];
4535
+ if (createdAt && new Date(createdAt) > lastPolledDate) created.push(record);
4536
+ else updated.push(record);
4537
+ }
4538
+ const filteredCreated = isBackfill || showNewRecords ? created : [];
4539
+ const filteredUpdated = isBackfill || showUpdatedRecords ? updated : [];
4540
+ const totalChanges = filteredCreated.length + filteredUpdated.length;
4541
+ context.polling.setState({ lastPolledAt: now });
4542
+ if (context.debug.enabled) context.logger.debug(`Polled ${resourceType}: ${records.length} total, ${filteredCreated.length} new, ${filteredUpdated.length} updated`);
4543
+ return {
4544
+ payload: {
4545
+ ...payload,
4546
+ body: { data: {
4547
+ created: filteredCreated,
4548
+ updated: filteredUpdated
4549
+ } }
4550
+ },
4551
+ polledNoChanges: totalChanges === 0
4552
+ };
4553
+ }
4554
+ }) };
4555
+ //#endregion
4556
+ //#region src/index.ts
4557
+ var src_default = (0, _prismatic_io_spectral.component)({
4558
+ key: "sapS4Hana",
4559
+ public: true,
4560
+ documentationUrl: "https://prismatic.io/docs/components/sapS4Hana/",
4561
+ display: {
4562
+ category: "Application Connectors",
4563
+ label: "SAP S/4HANA Cloud",
4564
+ description: "Manage business partners, sales orders, materials, and other enterprise resources in SAP S/4HANA Public Cloud.",
4565
+ iconPath: "icon.png"
4566
+ },
4567
+ actions: actions_default,
4568
+ triggers: triggers_default,
4569
+ connections: connections_default,
4570
+ dataSources: dataSources_default
4571
+ });
4572
+ //#endregion
4573
+ //#region npm-dist/.entry.ts
4574
+ var _entry_default = (0, _prismatic_io_spectral.callableComponent)(src_default);
4575
+ //#endregion
4576
+ module.exports = _entry_default;