@integrahub/vergefy-client 0.26.0 → 0.28.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (131) hide show
  1. package/README.md +2 -2
  2. package/dist/apis/AIIAMPPMPPPaymentApi.d.ts +33 -31
  3. package/dist/apis/AIIAMPPMPPPaymentApi.js +50 -46
  4. package/dist/apis/APIAIHDIntegrationHelpdeskApi.d.ts +86 -0
  5. package/dist/apis/APIAIHDIntegrationHelpdeskApi.js +232 -0
  6. package/dist/apis/APIAINIntegrationApi.d.ts +5 -0
  7. package/dist/apis/APIAINIntegrationApi.js +5 -0
  8. package/dist/apis/APIAPAPaymentApi.d.ts +29 -4
  9. package/dist/apis/APIAPAPaymentApi.js +76 -5
  10. package/dist/apis/APIARTReturnApi.d.ts +3 -2
  11. package/dist/apis/APIARTReturnApi.js +5 -2
  12. package/dist/apis/APIIntegrationConfigurationApi.d.ts +1 -0
  13. package/dist/apis/APIIntegrationConfigurationApi.js +1 -0
  14. package/dist/apis/AUTHUAUIdentityAuthenticationApi.d.ts +3 -3
  15. package/dist/apis/AUTHUAUIdentityAuthenticationApi.js +2 -5
  16. package/dist/apis/PLATFORMLTNPTenantPrincipalsApi.d.ts +25 -0
  17. package/dist/apis/PLATFORMLTNPTenantPrincipalsApi.js +73 -0
  18. package/dist/apis/index.d.ts +1 -0
  19. package/dist/apis/index.js +1 -0
  20. package/dist/esm/apis/AIIAMPPMPPPaymentApi.js +50 -46
  21. package/dist/esm/apis/APIAIHDIntegrationHelpdeskApi.js +228 -0
  22. package/dist/esm/apis/APIAINIntegrationApi.js +5 -0
  23. package/dist/esm/apis/APIAPAPaymentApi.js +76 -5
  24. package/dist/esm/apis/APIARTReturnApi.js +5 -2
  25. package/dist/esm/apis/APIIntegrationConfigurationApi.js +1 -0
  26. package/dist/esm/apis/AUTHUAUIdentityAuthenticationApi.js +2 -5
  27. package/dist/esm/apis/PLATFORMLTNPTenantPrincipalsApi.js +73 -0
  28. package/dist/esm/apis/index.js +1 -0
  29. package/dist/esm/ext/telemetry.js +1 -1
  30. package/dist/esm/models/AvailableProviderDTO.js +12 -0
  31. package/dist/esm/models/ChannelResult.js +1 -0
  32. package/dist/esm/models/ConnectorListingDTO.js +2 -0
  33. package/dist/esm/models/DataResponseDTOPagePrincipalAuditEventDTO.js +42 -0
  34. package/dist/esm/models/EdgeGatewayDTO.js +1 -0
  35. package/dist/esm/models/HelpdeskContactDTO.js +57 -0
  36. package/dist/esm/models/HelpdeskContextDTO.js +82 -0
  37. package/dist/esm/models/HelpdeskLookupKeyDTO.js +57 -0
  38. package/dist/esm/models/HelpdeskOrderDTO.js +76 -0
  39. package/dist/esm/models/HelpdeskOrderLineDTO.js +51 -0
  40. package/dist/esm/models/HelpdeskSidebarKeyDTO.js +67 -0
  41. package/dist/esm/models/HelpdeskSidebarKeyStateDTO.js +64 -0
  42. package/dist/esm/models/HostedCheckoutAddressDTO.js +49 -0
  43. package/dist/esm/models/HostedCheckoutBasketItemDTO.js +49 -0
  44. package/dist/esm/models/HostedCheckoutRequestDTO.js +71 -0
  45. package/dist/esm/models/HostedCheckoutResultDTO.js +45 -0
  46. package/dist/esm/models/ImportJobDTO.js +1 -0
  47. package/dist/esm/models/IntegrationConfigurationCreateDTO.js +2 -0
  48. package/dist/esm/models/IntegrationConfigurationDTO.js +2 -0
  49. package/dist/esm/models/IntegrationHealthSummaryDTO.js +2 -0
  50. package/dist/esm/models/InvoiceApiDTO.js +2 -1
  51. package/dist/esm/models/{MppPaymentSessionCreateApiDTO.js → MppChallengeOpenApiDTO.js} +18 -10
  52. package/dist/{models/MppPaymentSessionCreateApiDTO.js → esm/models/MppChallengePaymentApiDTO.js} +24 -17
  53. package/dist/esm/models/OrderReturnSummaryDTO.js +66 -0
  54. package/dist/esm/models/OrderShipmentSummaryDTO.js +68 -0
  55. package/dist/esm/models/PagePrincipalAuditEventDTO.js +64 -0
  56. package/dist/esm/models/PaymentConfigurationDTO.js +2 -1
  57. package/dist/esm/models/PrincipalDTO.js +2 -1
  58. package/dist/esm/models/ProviderHealthStatusDTO.js +1 -0
  59. package/dist/esm/models/ReturnRequestDTO.js +2 -0
  60. package/dist/esm/models/SocialConnectionRegisterDTO.js +1 -0
  61. package/dist/esm/models/SocialProviderCredentialReadinessDTO.js +1 -0
  62. package/dist/esm/models/index.js +17 -1
  63. package/dist/ext/telemetry.d.ts +1 -1
  64. package/dist/ext/telemetry.js +1 -1
  65. package/dist/models/AvailableProviderDTO.d.ts +17 -0
  66. package/dist/models/AvailableProviderDTO.js +13 -1
  67. package/dist/models/ChannelResult.d.ts +1 -0
  68. package/dist/models/ChannelResult.js +1 -0
  69. package/dist/models/ConnectorListingDTO.d.ts +2 -0
  70. package/dist/models/ConnectorListingDTO.js +2 -0
  71. package/dist/models/DataResponseDTOPagePrincipalAuditEventDTO.d.ts +33 -0
  72. package/dist/models/DataResponseDTOPagePrincipalAuditEventDTO.js +49 -0
  73. package/dist/models/EdgeGatewayDTO.d.ts +1 -0
  74. package/dist/models/EdgeGatewayDTO.js +1 -0
  75. package/dist/models/HelpdeskContactDTO.d.ts +74 -0
  76. package/dist/models/HelpdeskContactDTO.js +64 -0
  77. package/dist/models/HelpdeskContextDTO.d.ts +87 -0
  78. package/dist/models/HelpdeskContextDTO.js +90 -0
  79. package/dist/models/HelpdeskLookupKeyDTO.d.ts +49 -0
  80. package/dist/models/HelpdeskLookupKeyDTO.js +65 -0
  81. package/dist/models/HelpdeskOrderDTO.d.ts +125 -0
  82. package/dist/models/HelpdeskOrderDTO.js +83 -0
  83. package/dist/models/HelpdeskOrderLineDTO.d.ts +56 -0
  84. package/dist/models/HelpdeskOrderLineDTO.js +58 -0
  85. package/dist/models/HelpdeskSidebarKeyDTO.d.ts +68 -0
  86. package/dist/models/HelpdeskSidebarKeyDTO.js +74 -0
  87. package/dist/models/HelpdeskSidebarKeyStateDTO.d.ts +72 -0
  88. package/dist/models/HelpdeskSidebarKeyStateDTO.js +72 -0
  89. package/dist/models/HostedCheckoutAddressDTO.d.ts +56 -0
  90. package/dist/models/HostedCheckoutAddressDTO.js +56 -0
  91. package/dist/models/HostedCheckoutBasketItemDTO.d.ts +56 -0
  92. package/dist/models/HostedCheckoutBasketItemDTO.js +56 -0
  93. package/dist/models/HostedCheckoutRequestDTO.d.ts +118 -0
  94. package/dist/models/HostedCheckoutRequestDTO.js +78 -0
  95. package/dist/models/{MppPaymentSessionCreateApiDTO.d.ts → HostedCheckoutResultDTO.d.ts} +18 -12
  96. package/dist/models/HostedCheckoutResultDTO.js +52 -0
  97. package/dist/models/ImportJobDTO.d.ts +1 -0
  98. package/dist/models/ImportJobDTO.js +1 -0
  99. package/dist/models/IntegrationConfigurationCreateDTO.d.ts +2 -0
  100. package/dist/models/IntegrationConfigurationCreateDTO.js +2 -0
  101. package/dist/models/IntegrationConfigurationDTO.d.ts +2 -0
  102. package/dist/models/IntegrationConfigurationDTO.js +2 -0
  103. package/dist/models/IntegrationHealthSummaryDTO.d.ts +2 -0
  104. package/dist/models/IntegrationHealthSummaryDTO.js +2 -0
  105. package/dist/models/InvoiceApiDTO.d.ts +1 -0
  106. package/dist/models/InvoiceApiDTO.js +2 -1
  107. package/dist/models/MppChallengeOpenApiDTO.d.ts +50 -0
  108. package/dist/models/MppChallengeOpenApiDTO.js +60 -0
  109. package/dist/models/MppChallengePaymentApiDTO.d.ts +56 -0
  110. package/dist/models/MppChallengePaymentApiDTO.js +66 -0
  111. package/dist/models/OrderReturnSummaryDTO.d.ts +78 -0
  112. package/dist/models/OrderReturnSummaryDTO.js +74 -0
  113. package/dist/models/OrderShipmentSummaryDTO.d.ts +92 -0
  114. package/dist/models/OrderShipmentSummaryDTO.js +76 -0
  115. package/dist/models/PagePrincipalAuditEventDTO.d.ts +95 -0
  116. package/dist/models/PagePrincipalAuditEventDTO.js +71 -0
  117. package/dist/models/PaymentConfigurationDTO.d.ts +1 -0
  118. package/dist/models/PaymentConfigurationDTO.js +2 -1
  119. package/dist/models/PrincipalDTO.d.ts +1 -0
  120. package/dist/models/PrincipalDTO.js +2 -1
  121. package/dist/models/ProviderHealthStatusDTO.d.ts +1 -0
  122. package/dist/models/ProviderHealthStatusDTO.js +1 -0
  123. package/dist/models/ReturnRequestDTO.d.ts +6 -0
  124. package/dist/models/ReturnRequestDTO.js +2 -0
  125. package/dist/models/SocialConnectionRegisterDTO.d.ts +1 -0
  126. package/dist/models/SocialConnectionRegisterDTO.js +1 -0
  127. package/dist/models/SocialProviderCredentialReadinessDTO.d.ts +1 -0
  128. package/dist/models/SocialProviderCredentialReadinessDTO.js +1 -0
  129. package/dist/models/index.d.ts +17 -1
  130. package/dist/models/index.js +17 -1
  131. package/package.json +1 -1
@@ -24,6 +24,8 @@ import * as runtime from '../runtime';
24
24
  import { DataResponseDTOPaymentConfigurationDTOFromJSON, } from '../models/DataResponseDTOPaymentConfigurationDTO';
25
25
  import { DataResponseDTOPaymentIntentDTOFromJSON, } from '../models/DataResponseDTOPaymentIntentDTO';
26
26
  import { DataResponseDTOPaymentMethodDTOFromJSON, } from '../models/DataResponseDTOPaymentMethodDTO';
27
+ import { HostedCheckoutRequestDTOToJSON, } from '../models/HostedCheckoutRequestDTO';
28
+ import { HostedCheckoutResultDTOFromJSON, } from '../models/HostedCheckoutResultDTO';
27
29
  import { PagePaymentConfigurationDTOFromJSON, } from '../models/PagePaymentConfigurationDTO';
28
30
  import { PagePaymentIntentDTOFromJSON, } from '../models/PagePaymentIntentDTO';
29
31
  import { PagePaymentMethodDTOFromJSON, } from '../models/PagePaymentMethodDTO';
@@ -140,7 +142,7 @@ export class APIAPAPaymentApi extends runtime.BaseAPI {
140
142
  });
141
143
  }
142
144
  /**
143
- * Captures a payment intent
145
+ * Captures a payment intent at its provider and records the provider\'s answer: paid, still settling, or declined. Read the intent (APA004) for its status.
144
146
  * APA002 - Capture Payment Intent
145
147
  */
146
148
  aPA002Raw(requestParameters, initOverrides) {
@@ -151,7 +153,7 @@ export class APIAPAPaymentApi extends runtime.BaseAPI {
151
153
  });
152
154
  }
153
155
  /**
154
- * Captures a payment intent
156
+ * Captures a payment intent at its provider and records the provider\'s answer: paid, still settling, or declined. Read the intent (APA004) for its status.
155
157
  * APA002 - Capture Payment Intent
156
158
  */
157
159
  aPA002(requestParameters, initOverrides) {
@@ -202,7 +204,7 @@ export class APIAPAPaymentApi extends runtime.BaseAPI {
202
204
  });
203
205
  }
204
206
  /**
205
- * Cancels a payment intent
207
+ * Cancels a payment intent at its provider and records the provider\'s answer. A paid intent stays paid. Read the intent (APA004) for its status.
206
208
  * APA003 - Cancel Payment Intent
207
209
  */
208
210
  aPA003Raw(requestParameters, initOverrides) {
@@ -213,7 +215,7 @@ export class APIAPAPaymentApi extends runtime.BaseAPI {
213
215
  });
214
216
  }
215
217
  /**
216
- * Cancels a payment intent
218
+ * Cancels a payment intent at its provider and records the provider\'s answer. A paid intent stays paid. Read the intent (APA004) for its status.
217
219
  * APA003 - Cancel Payment Intent
218
220
  */
219
221
  aPA003(requestParameters, initOverrides) {
@@ -1079,6 +1081,74 @@ export class APIAPAPaymentApi extends runtime.BaseAPI {
1079
1081
  return yield response.value();
1080
1082
  });
1081
1083
  }
1084
+ /**
1085
+ * Creates request options for aPA016 without sending the request
1086
+ */
1087
+ aPA016RequestOpts(requestParameters) {
1088
+ return __awaiter(this, void 0, void 0, function* () {
1089
+ if (requestParameters['paymentIntentId'] == null) {
1090
+ throw new runtime.RequiredError('paymentIntentId', 'Required parameter "paymentIntentId" was null or undefined when calling aPA016().');
1091
+ }
1092
+ if (requestParameters['xAppAccountId'] == null) {
1093
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling aPA016().');
1094
+ }
1095
+ if (requestParameters['hostedCheckoutRequestDTO'] == null) {
1096
+ throw new runtime.RequiredError('hostedCheckoutRequestDTO', 'Required parameter "hostedCheckoutRequestDTO" was null or undefined when calling aPA016().');
1097
+ }
1098
+ const queryParameters = {};
1099
+ const headerParameters = {};
1100
+ headerParameters['Content-Type'] = 'application/json';
1101
+ if (requestParameters['acceptLanguage'] != null) {
1102
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
1103
+ }
1104
+ if (requestParameters['xAppAccountId'] != null) {
1105
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
1106
+ }
1107
+ if (requestParameters['vergefyVersion'] != null) {
1108
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
1109
+ }
1110
+ if (requestParameters['acceptTimezone'] != null) {
1111
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
1112
+ }
1113
+ if (this.configuration && this.configuration.accessToken) {
1114
+ const token = this.configuration.accessToken;
1115
+ const tokenString = yield token("BearerAuth", []);
1116
+ if (tokenString) {
1117
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1118
+ }
1119
+ }
1120
+ let urlPath = `/api/payments/intents/{paymentIntentId}/hosted-checkout`;
1121
+ urlPath = urlPath.replace('{paymentIntentId}', encodeURIComponent(String(requestParameters['paymentIntentId'])));
1122
+ return {
1123
+ path: urlPath,
1124
+ method: 'POST',
1125
+ headers: headerParameters,
1126
+ query: queryParameters,
1127
+ body: HostedCheckoutRequestDTOToJSON(requestParameters['hostedCheckoutRequestDTO']),
1128
+ };
1129
+ });
1130
+ }
1131
+ /**
1132
+ * Creates an Iyzico hosted checkout form for a payment intent and returns its payment page URL
1133
+ * APA016 - Create Hosted Checkout
1134
+ */
1135
+ aPA016Raw(requestParameters, initOverrides) {
1136
+ return __awaiter(this, void 0, void 0, function* () {
1137
+ const requestOptions = yield this.aPA016RequestOpts(requestParameters);
1138
+ const response = yield this.request(requestOptions, initOverrides);
1139
+ return new runtime.JSONApiResponse(response, (jsonValue) => HostedCheckoutResultDTOFromJSON(jsonValue));
1140
+ });
1141
+ }
1142
+ /**
1143
+ * Creates an Iyzico hosted checkout form for a payment intent and returns its payment page URL
1144
+ * APA016 - Create Hosted Checkout
1145
+ */
1146
+ aPA016(requestParameters, initOverrides) {
1147
+ return __awaiter(this, void 0, void 0, function* () {
1148
+ const response = yield this.aPA016Raw(requestParameters, initOverrides);
1149
+ return yield response.value();
1150
+ });
1151
+ }
1082
1152
  }
1083
1153
  /**
1084
1154
  * @export
@@ -1116,5 +1186,6 @@ export const APA010EntityStatusesEnum = {
1116
1186
  */
1117
1187
  export const APA015ProviderTypeEnum = {
1118
1188
  Custom: 'CUSTOM',
1119
- Stripe: 'STRIPE'
1189
+ Stripe: 'STRIPE',
1190
+ Iyzico: 'IYZICO'
1120
1191
  };
@@ -43,6 +43,9 @@ export class APIARTReturnApi extends runtime.BaseAPI {
43
43
  const queryParameters = {};
44
44
  const headerParameters = {};
45
45
  headerParameters['Content-Type'] = 'application/json';
46
+ if (requestParameters['idempotencyKey'] != null) {
47
+ headerParameters['Idempotency-Key'] = String(requestParameters['idempotencyKey']);
48
+ }
46
49
  if (requestParameters['acceptLanguage'] != null) {
47
50
  headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
48
51
  }
@@ -73,7 +76,7 @@ export class APIARTReturnApi extends runtime.BaseAPI {
73
76
  });
74
77
  }
75
78
  /**
76
- * Submit a new RMA (Return Merchandise Authorization) request for a purchase order
79
+ * Submit a new RMA (Return Merchandise Authorization) request for a purchase order. Send the optional Idempotency-Key header to make the call safe to retry: the first call creates the return (201); a retry with the same key and the same body returns that original return (200) instead of creating a second one; the same key with a different body is refused (422). Keys are scoped to the tenant. The optional sourceReference records where the return was opened from, e.g. zendesk:<subdomain>:<ticketId>.
77
80
  * ART001 - Create return request
78
81
  */
79
82
  aRT001Raw(requestParameters, initOverrides) {
@@ -84,7 +87,7 @@ export class APIARTReturnApi extends runtime.BaseAPI {
84
87
  });
85
88
  }
86
89
  /**
87
- * Submit a new RMA (Return Merchandise Authorization) request for a purchase order
90
+ * Submit a new RMA (Return Merchandise Authorization) request for a purchase order. Send the optional Idempotency-Key header to make the call safe to retry: the first call creates the return (201); a retry with the same key and the same body returns that original return (200) instead of creating a second one; the same key with a different body is refused (422). Keys are scoped to the tenant. The optional sourceReference records where the return was opened from, e.g. zendesk:<subdomain>:<ticketId>.
88
91
  * ART001 - Create return request
89
92
  */
90
93
  aRT001(requestParameters, initOverrides) {
@@ -171,5 +171,6 @@ export const AIN150CategoryEnum = {
171
171
  Storage: 'STORAGE',
172
172
  Identity: 'IDENTITY',
173
173
  DeviceConnectivity: 'DEVICE_CONNECTIVITY',
174
+ Helpdesk: 'HELPDESK',
174
175
  Custom: 'CUSTOM'
175
176
  };
@@ -427,9 +427,6 @@ export class AUTHUAUIdentityAuthenticationApi extends runtime.BaseAPI {
427
427
  */
428
428
  uAU007RequestOpts(requestParameters) {
429
429
  return __awaiter(this, void 0, void 0, function* () {
430
- if (requestParameters['token'] == null) {
431
- throw new runtime.RequiredError('token', 'Required parameter "token" was null or undefined when calling uAU007().');
432
- }
433
430
  if (requestParameters['xAppAccountId'] == null) {
434
431
  throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling uAU007().');
435
432
  }
@@ -467,7 +464,7 @@ export class AUTHUAUIdentityAuthenticationApi extends runtime.BaseAPI {
467
464
  });
468
465
  }
469
466
  /**
470
- * Signs out from all devices
467
+ * Signs out from all devices by revoking the session of the access token sent as `Authorization: Bearer <token>`. The `token` query parameter is deprecated and is read only when no bearer token is sent.
471
468
  * UAU007 - Global Sign Out
472
469
  */
473
470
  uAU007Raw(requestParameters, initOverrides) {
@@ -478,7 +475,7 @@ export class AUTHUAUIdentityAuthenticationApi extends runtime.BaseAPI {
478
475
  });
479
476
  }
480
477
  /**
481
- * Signs out from all devices
478
+ * Signs out from all devices by revoking the session of the access token sent as `Authorization: Bearer <token>`. The `token` query parameter is deprecated and is read only when no bearer token is sent.
482
479
  * UAU007 - Global Sign Out
483
480
  */
484
481
  uAU007(requestParameters, initOverrides) {
@@ -30,6 +30,7 @@ import { DataResponseDTOListMcpClientFamilyDTOFromJSON, } from '../models/DataRe
30
30
  import { DataResponseDTOListPrincipalAuditEntityTypeDTOFromJSON, } from '../models/DataResponseDTOListPrincipalAuditEntityTypeDTO';
31
31
  import { DataResponseDTOListPrincipalAuditEventDTOFromJSON, } from '../models/DataResponseDTOListPrincipalAuditEventDTO';
32
32
  import { DataResponseDTOListPrincipalGrantOptionDTOFromJSON, } from '../models/DataResponseDTOListPrincipalGrantOptionDTO';
33
+ import { DataResponseDTOPagePrincipalAuditEventDTOFromJSON, } from '../models/DataResponseDTOPagePrincipalAuditEventDTO';
33
34
  import { DataResponseDTOPrincipalApprovalRequestDTOFromJSON, } from '../models/DataResponseDTOPrincipalApprovalRequestDTO';
34
35
  import { DataResponseDTOPrincipalDTOFromJSON, } from '../models/DataResponseDTOPrincipalDTO';
35
36
  import { DataResponseDTOPrincipalPolicyDTOFromJSON, } from '../models/DataResponseDTOPrincipalPolicyDTO';
@@ -319,6 +320,78 @@ export class PLATFORMLTNPTenantPrincipalsApi extends runtime.BaseAPI {
319
320
  return yield response.value();
320
321
  });
321
322
  }
323
+ /**
324
+ * Creates request options for lTNP005 without sending the request
325
+ */
326
+ lTNP005RequestOpts(requestParameters) {
327
+ return __awaiter(this, void 0, void 0, function* () {
328
+ if (requestParameters['id'] == null) {
329
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling lTNP005().');
330
+ }
331
+ if (requestParameters['xAppAccountId'] == null) {
332
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling lTNP005().');
333
+ }
334
+ const queryParameters = {};
335
+ if (requestParameters['page'] != null) {
336
+ queryParameters['page'] = requestParameters['page'];
337
+ }
338
+ if (requestParameters['size'] != null) {
339
+ queryParameters['size'] = requestParameters['size'];
340
+ }
341
+ if (requestParameters['sort'] != null) {
342
+ queryParameters['sort'] = requestParameters['sort'];
343
+ }
344
+ const headerParameters = {};
345
+ if (requestParameters['acceptLanguage'] != null) {
346
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
347
+ }
348
+ if (requestParameters['xAppAccountId'] != null) {
349
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
350
+ }
351
+ if (requestParameters['vergefyVersion'] != null) {
352
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
353
+ }
354
+ if (requestParameters['acceptTimezone'] != null) {
355
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
356
+ }
357
+ if (this.configuration && this.configuration.accessToken) {
358
+ const token = this.configuration.accessToken;
359
+ const tokenString = yield token("BearerAuth", []);
360
+ if (tokenString) {
361
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
362
+ }
363
+ }
364
+ let urlPath = `/platform/principals/{id}/audit-events`;
365
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
366
+ return {
367
+ path: urlPath,
368
+ method: 'GET',
369
+ headers: headerParameters,
370
+ query: queryParameters,
371
+ };
372
+ });
373
+ }
374
+ /**
375
+ * One agent\'s writes, newest first: what it wrote, where, and for whom. Limited to the modules the caller may read; an admin sees every module. Another person\'s agent reads as not found unless the caller is an admin.
376
+ * LTNP005 - Search Agent Audit Events
377
+ */
378
+ lTNP005Raw(requestParameters, initOverrides) {
379
+ return __awaiter(this, void 0, void 0, function* () {
380
+ const requestOptions = yield this.lTNP005RequestOpts(requestParameters);
381
+ const response = yield this.request(requestOptions, initOverrides);
382
+ return new runtime.JSONApiResponse(response, (jsonValue) => DataResponseDTOPagePrincipalAuditEventDTOFromJSON(jsonValue));
383
+ });
384
+ }
385
+ /**
386
+ * One agent\'s writes, newest first: what it wrote, where, and for whom. Limited to the modules the caller may read; an admin sees every module. Another person\'s agent reads as not found unless the caller is an admin.
387
+ * LTNP005 - Search Agent Audit Events
388
+ */
389
+ lTNP005(requestParameters, initOverrides) {
390
+ return __awaiter(this, void 0, void 0, function* () {
391
+ const response = yield this.lTNP005Raw(requestParameters, initOverrides);
392
+ return yield response.value();
393
+ });
394
+ }
322
395
  /**
323
396
  * Creates request options for lTNP010 without sending the request
324
397
  */
@@ -90,6 +90,7 @@ export * from './APIAFTFilterApi';
90
90
  export * from './APIAGMGamificationApi';
91
91
  export * from './APIAGRGoodsReceiptApi';
92
92
  export * from './APIAIADIntegrationAdvertisingApi';
93
+ export * from './APIAIHDIntegrationHelpdeskApi';
93
94
  export * from './APIAIMIntegrationMarketDataApi';
94
95
  export * from './APIAINIntegrationApi';
95
96
  export * from './APIAINIntegrationAmazonApi';
@@ -8,7 +8,7 @@
8
8
  * Mirrors the canonical Java `ext/Telemetry`.
9
9
  */
10
10
  /** Kept in sync with `vergefySdkVersion` (the published artifact version). */
11
- export const VERSION = '0.26.0';
11
+ export const VERSION = '0.28.0';
12
12
  const NAME = 'vergefy-typescript-client';
13
13
  /** The `User-Agent` value, e.g. `vergefy-typescript-client/0.1.0`. */
14
14
  export function userAgent() {
@@ -33,8 +33,17 @@ export const AvailableProviderDTOCategoryEnum = {
33
33
  Storage: 'STORAGE',
34
34
  Identity: 'IDENTITY',
35
35
  DeviceConnectivity: 'DEVICE_CONNECTIVITY',
36
+ Helpdesk: 'HELPDESK',
36
37
  Custom: 'CUSTOM'
37
38
  };
39
+ /**
40
+ * @export
41
+ */
42
+ export const AvailableProviderDTOListingStatusEnum = {
43
+ Live: 'LIVE',
44
+ InDevelopment: 'IN_DEVELOPMENT',
45
+ Planned: 'PLANNED'
46
+ };
38
47
  /**
39
48
  * @export
40
49
  */
@@ -93,6 +102,7 @@ export const AvailableProviderDTOProviderTypeEnum = {
93
102
  Aws: 'AWS',
94
103
  BambuCloud: 'BAMBU_CLOUD',
95
104
  EdgeAgent: 'EDGE_AGENT',
105
+ Zendesk: 'ZENDESK',
96
106
  Custom: 'CUSTOM'
97
107
  };
98
108
  /**
@@ -113,6 +123,7 @@ export function AvailableProviderDTOFromJSONTyped(json, ignoreDiscriminator) {
113
123
  'category': json['category'] == null ? undefined : json['category'],
114
124
  'displayName': json['displayName'] == null ? undefined : json['displayName'],
115
125
  'isActive': json['isActive'] == null ? undefined : json['isActive'],
126
+ 'listingStatus': json['listingStatus'] == null ? undefined : json['listingStatus'],
116
127
  'optionalCredentialFields': json['optionalCredentialFields'] == null ? undefined : json['optionalCredentialFields'],
117
128
  'providerType': json['providerType'] == null ? undefined : json['providerType'],
118
129
  'requiredCredentialFields': json['requiredCredentialFields'] == null ? undefined : json['requiredCredentialFields'],
@@ -131,6 +142,7 @@ export function AvailableProviderDTOToJSONTyped(value, ignoreDiscriminator = fal
131
142
  'category': value['category'],
132
143
  'displayName': value['displayName'],
133
144
  'isActive': value['isActive'],
145
+ 'listingStatus': value['listingStatus'],
134
146
  'optionalCredentialFields': value['optionalCredentialFields'],
135
147
  'providerType': value['providerType'],
136
148
  'requiredCredentialFields': value['requiredCredentialFields'],
@@ -70,6 +70,7 @@ export const ChannelResultProviderTypeEnum = {
70
70
  Aws: 'AWS',
71
71
  BambuCloud: 'BAMBU_CLOUD',
72
72
  EdgeAgent: 'EDGE_AGENT',
73
+ Zendesk: 'ZENDESK',
73
74
  Custom: 'CUSTOM'
74
75
  };
75
76
  /**
@@ -33,6 +33,7 @@ export const ConnectorListingDTOCategoryEnum = {
33
33
  Storage: 'STORAGE',
34
34
  Identity: 'IDENTITY',
35
35
  DeviceConnectivity: 'DEVICE_CONNECTIVITY',
36
+ Helpdesk: 'HELPDESK',
36
37
  Custom: 'CUSTOM'
37
38
  };
38
39
  /**
@@ -93,6 +94,7 @@ export const ConnectorListingDTOProviderTypeEnum = {
93
94
  Aws: 'AWS',
94
95
  BambuCloud: 'BAMBU_CLOUD',
95
96
  EdgeAgent: 'EDGE_AGENT',
97
+ Zendesk: 'ZENDESK',
96
98
  Custom: 'CUSTOM'
97
99
  };
98
100
  /**
@@ -0,0 +1,42 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Vergefy API
5
+ * <h1>AI Agent Management</h1><p>Create, configure, and orchestrate AI agents with multi-provider support.</p><h2>Modules</h2><ul><li><b>Agent (IAG):</b> Agent creation, configuration, lifecycle, insight and analytics (IAG001-057, IAG500-505, IAG700-701)</li><li><b>Template (IAT):</b> Agent template management — /ai/agents-templates</li><li><b>Template Advanced (IATEMP):</b> Versions, analytics, recommendations, diffs — /ai/agents-templates (IATEMP001-008)</li><li><b>Agent Upgrade (IAGENT):</b> Upgrade, rollback, version management — /ai/agents/{id}/upgrade|rollback (IAGENT001-005)</li><li><b>Hierarchy (IAH):</b> Supervisor-worker relationships, delegation — /ai/agents/hierarchies</li><li><b>Goal (IAGG):</b> Autonomous goals, success criteria — /ai/agents/goals</li><li><b>Pool (IAGP):</b> Agent pool management, allocation, coordination (queries IAGP001-023, commands IAGP101-109) — /ai/agents/pools</li><li><b>Execution (IAGE):</b> Execution tracking, history — /ai/agents/executions</li><li><b>Health (IAGH):</b> Health checks, recovery — /ai/agents/health</li><li><b>Communication (IAGC):</b> Channels (IAGC001-019) and inter-agent messages (IAGC020-052) — /ai/agents/channels, /ai/agents/messages</li><li><b>Handoff (IAGD):</b> Agent handoff and transfer — /ai/agents/handoffs</li><li><b>Orchestration (IAGO):</b> Orchestration sessions — /ai/agents/orchestration/sessions</li><li><b>Workflow (IAGW):</b> Workflow assignment and execution — /ai/agents-workflows</li><li><b>Capability (IACAP):</b> Capability definitions, permissions (queries IACAP001-011, commands IACAP101-105) — /ai/capabilities</li><li><b>Capability Mapping (IACF):</b> Capability to feature mapping — /ai/agents/capability-feature-mappings</li></ul><p><b>Providers:</b> OpenAI GPT-4, Anthropic Claude, Google Gemini</p>
6
+ *
7
+ * The version of the OpenAPI document: 2026-05-30
8
+ * Contact: support@integrahub.co
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { PagePrincipalAuditEventDTOFromJSON, PagePrincipalAuditEventDTOToJSON, } from './PagePrincipalAuditEventDTO';
15
+ /**
16
+ * Check if a given object implements the DataResponseDTOPagePrincipalAuditEventDTO interface.
17
+ */
18
+ export function instanceOfDataResponseDTOPagePrincipalAuditEventDTO(value) {
19
+ return true;
20
+ }
21
+ export function DataResponseDTOPagePrincipalAuditEventDTOFromJSON(json) {
22
+ return DataResponseDTOPagePrincipalAuditEventDTOFromJSONTyped(json, false);
23
+ }
24
+ export function DataResponseDTOPagePrincipalAuditEventDTOFromJSONTyped(json, ignoreDiscriminator) {
25
+ if (json == null) {
26
+ return json;
27
+ }
28
+ return {
29
+ 'data': json['data'] == null ? undefined : PagePrincipalAuditEventDTOFromJSON(json['data']),
30
+ };
31
+ }
32
+ export function DataResponseDTOPagePrincipalAuditEventDTOToJSON(json) {
33
+ return DataResponseDTOPagePrincipalAuditEventDTOToJSONTyped(json, false);
34
+ }
35
+ export function DataResponseDTOPagePrincipalAuditEventDTOToJSONTyped(value, ignoreDiscriminator = false) {
36
+ if (value == null) {
37
+ return value;
38
+ }
39
+ return {
40
+ 'data': PagePrincipalAuditEventDTOToJSON(value['data']),
41
+ };
42
+ }
@@ -80,6 +80,7 @@ export const EdgeGatewayDTOProviderTypeEnum = {
80
80
  Aws: 'AWS',
81
81
  BambuCloud: 'BAMBU_CLOUD',
82
82
  EdgeAgent: 'EDGE_AGENT',
83
+ Zendesk: 'ZENDESK',
83
84
  Custom: 'CUSTOM'
84
85
  };
85
86
  /**
@@ -0,0 +1,57 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Vergefy API
5
+ * <h1>AI Agent Management</h1><p>Create, configure, and orchestrate AI agents with multi-provider support.</p><h2>Modules</h2><ul><li><b>Agent (IAG):</b> Agent creation, configuration, lifecycle, insight and analytics (IAG001-057, IAG500-505, IAG700-701)</li><li><b>Template (IAT):</b> Agent template management — /ai/agents-templates</li><li><b>Template Advanced (IATEMP):</b> Versions, analytics, recommendations, diffs — /ai/agents-templates (IATEMP001-008)</li><li><b>Agent Upgrade (IAGENT):</b> Upgrade, rollback, version management — /ai/agents/{id}/upgrade|rollback (IAGENT001-005)</li><li><b>Hierarchy (IAH):</b> Supervisor-worker relationships, delegation — /ai/agents/hierarchies</li><li><b>Goal (IAGG):</b> Autonomous goals, success criteria — /ai/agents/goals</li><li><b>Pool (IAGP):</b> Agent pool management, allocation, coordination (queries IAGP001-023, commands IAGP101-109) — /ai/agents/pools</li><li><b>Execution (IAGE):</b> Execution tracking, history — /ai/agents/executions</li><li><b>Health (IAGH):</b> Health checks, recovery — /ai/agents/health</li><li><b>Communication (IAGC):</b> Channels (IAGC001-019) and inter-agent messages (IAGC020-052) — /ai/agents/channels, /ai/agents/messages</li><li><b>Handoff (IAGD):</b> Agent handoff and transfer — /ai/agents/handoffs</li><li><b>Orchestration (IAGO):</b> Orchestration sessions — /ai/agents/orchestration/sessions</li><li><b>Workflow (IAGW):</b> Workflow assignment and execution — /ai/agents-workflows</li><li><b>Capability (IACAP):</b> Capability definitions, permissions (queries IACAP001-011, commands IACAP101-105) — /ai/capabilities</li><li><b>Capability Mapping (IACF):</b> Capability to feature mapping — /ai/agents/capability-feature-mappings</li></ul><p><b>Providers:</b> OpenAI GPT-4, Anthropic Claude, Google Gemini</p>
6
+ *
7
+ * The version of the OpenAPI document: 2026-05-30
8
+ * Contact: support@integrahub.co
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the HelpdeskContactDTO interface.
16
+ */
17
+ export function instanceOfHelpdeskContactDTO(value) {
18
+ if (!('id' in value) || value['id'] === undefined)
19
+ return false;
20
+ return true;
21
+ }
22
+ export function HelpdeskContactDTOFromJSON(json) {
23
+ return HelpdeskContactDTOFromJSONTyped(json, false);
24
+ }
25
+ export function HelpdeskContactDTOFromJSONTyped(json, ignoreDiscriminator) {
26
+ if (json == null) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'city': json['city'] == null ? undefined : json['city'],
31
+ 'customerSince': json['customerSince'] == null ? undefined : (new Date(json['customerSince'])),
32
+ 'email': json['email'] == null ? undefined : json['email'],
33
+ 'id': json['id'],
34
+ 'lastOrderAt': json['lastOrderAt'] == null ? undefined : (new Date(json['lastOrderAt'])),
35
+ 'name': json['name'] == null ? undefined : json['name'],
36
+ 'orderCount': json['orderCount'] == null ? undefined : json['orderCount'],
37
+ 'phone': json['phone'] == null ? undefined : json['phone'],
38
+ };
39
+ }
40
+ export function HelpdeskContactDTOToJSON(json) {
41
+ return HelpdeskContactDTOToJSONTyped(json, false);
42
+ }
43
+ export function HelpdeskContactDTOToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'city': value['city'],
49
+ 'customerSince': value['customerSince'] == null ? value['customerSince'] : value['customerSince'].toISOString(),
50
+ 'email': value['email'],
51
+ 'id': value['id'],
52
+ 'lastOrderAt': value['lastOrderAt'] == null ? value['lastOrderAt'] : value['lastOrderAt'].toISOString(),
53
+ 'name': value['name'],
54
+ 'orderCount': value['orderCount'],
55
+ 'phone': value['phone'],
56
+ };
57
+ }
@@ -0,0 +1,82 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Vergefy API
5
+ * <h1>AI Agent Management</h1><p>Create, configure, and orchestrate AI agents with multi-provider support.</p><h2>Modules</h2><ul><li><b>Agent (IAG):</b> Agent creation, configuration, lifecycle, insight and analytics (IAG001-057, IAG500-505, IAG700-701)</li><li><b>Template (IAT):</b> Agent template management — /ai/agents-templates</li><li><b>Template Advanced (IATEMP):</b> Versions, analytics, recommendations, diffs — /ai/agents-templates (IATEMP001-008)</li><li><b>Agent Upgrade (IAGENT):</b> Upgrade, rollback, version management — /ai/agents/{id}/upgrade|rollback (IAGENT001-005)</li><li><b>Hierarchy (IAH):</b> Supervisor-worker relationships, delegation — /ai/agents/hierarchies</li><li><b>Goal (IAGG):</b> Autonomous goals, success criteria — /ai/agents/goals</li><li><b>Pool (IAGP):</b> Agent pool management, allocation, coordination (queries IAGP001-023, commands IAGP101-109) — /ai/agents/pools</li><li><b>Execution (IAGE):</b> Execution tracking, history — /ai/agents/executions</li><li><b>Health (IAGH):</b> Health checks, recovery — /ai/agents/health</li><li><b>Communication (IAGC):</b> Channels (IAGC001-019) and inter-agent messages (IAGC020-052) — /ai/agents/channels, /ai/agents/messages</li><li><b>Handoff (IAGD):</b> Agent handoff and transfer — /ai/agents/handoffs</li><li><b>Orchestration (IAGO):</b> Orchestration sessions — /ai/agents/orchestration/sessions</li><li><b>Workflow (IAGW):</b> Workflow assignment and execution — /ai/agents-workflows</li><li><b>Capability (IACAP):</b> Capability definitions, permissions (queries IACAP001-011, commands IACAP101-105) — /ai/capabilities</li><li><b>Capability Mapping (IACF):</b> Capability to feature mapping — /ai/agents/capability-feature-mappings</li></ul><p><b>Providers:</b> OpenAI GPT-4, Anthropic Claude, Google Gemini</p>
6
+ *
7
+ * The version of the OpenAPI document: 2026-05-30
8
+ * Contact: support@integrahub.co
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { HelpdeskOrderDTOFromJSON, HelpdeskOrderDTOToJSON, } from './HelpdeskOrderDTO';
15
+ import { HelpdeskContactDTOFromJSON, HelpdeskContactDTOToJSON, } from './HelpdeskContactDTO';
16
+ import { HelpdeskLookupKeyDTOFromJSON, HelpdeskLookupKeyDTOToJSON, } from './HelpdeskLookupKeyDTO';
17
+ /**
18
+ * @export
19
+ */
20
+ export const HelpdeskContextDTOMatchedByEnum = {
21
+ ContactId: 'CONTACT_ID',
22
+ Email: 'EMAIL',
23
+ OrderNumber: 'ORDER_NUMBER',
24
+ MarketplaceOrderId: 'MARKETPLACE_ORDER_ID',
25
+ MarketplaceOrderNumber: 'MARKETPLACE_ORDER_NUMBER'
26
+ };
27
+ /**
28
+ * @export
29
+ */
30
+ export const HelpdeskContextDTOOmittedSectionsEnum = {
31
+ Contacts: 'CONTACTS',
32
+ Orders: 'ORDERS',
33
+ Shipments: 'SHIPMENTS',
34
+ Returns: 'RETURNS',
35
+ Stock: 'STOCK'
36
+ };
37
+ /**
38
+ * Check if a given object implements the HelpdeskContextDTO interface.
39
+ */
40
+ export function instanceOfHelpdeskContextDTO(value) {
41
+ if (!('contacts' in value) || value['contacts'] === undefined)
42
+ return false;
43
+ if (!('keysTried' in value) || value['keysTried'] === undefined)
44
+ return false;
45
+ if (!('omittedSections' in value) || value['omittedSections'] === undefined)
46
+ return false;
47
+ if (!('orders' in value) || value['orders'] === undefined)
48
+ return false;
49
+ return true;
50
+ }
51
+ export function HelpdeskContextDTOFromJSON(json) {
52
+ return HelpdeskContextDTOFromJSONTyped(json, false);
53
+ }
54
+ export function HelpdeskContextDTOFromJSONTyped(json, ignoreDiscriminator) {
55
+ if (json == null) {
56
+ return json;
57
+ }
58
+ return {
59
+ 'contacts': (json['contacts'].map(HelpdeskContactDTOFromJSON)),
60
+ 'keysTried': (json['keysTried'].map(HelpdeskLookupKeyDTOFromJSON)),
61
+ 'matchedBy': json['matchedBy'] == null ? undefined : json['matchedBy'],
62
+ 'omittedSections': json['omittedSections'],
63
+ 'orders': (json['orders'].map(HelpdeskOrderDTOFromJSON)),
64
+ 'totalOrders': json['totalOrders'] == null ? undefined : json['totalOrders'],
65
+ };
66
+ }
67
+ export function HelpdeskContextDTOToJSON(json) {
68
+ return HelpdeskContextDTOToJSONTyped(json, false);
69
+ }
70
+ export function HelpdeskContextDTOToJSONTyped(value, ignoreDiscriminator = false) {
71
+ if (value == null) {
72
+ return value;
73
+ }
74
+ return {
75
+ 'contacts': (value['contacts'].map(HelpdeskContactDTOToJSON)),
76
+ 'keysTried': (value['keysTried'].map(HelpdeskLookupKeyDTOToJSON)),
77
+ 'matchedBy': value['matchedBy'],
78
+ 'omittedSections': value['omittedSections'],
79
+ 'orders': (value['orders'].map(HelpdeskOrderDTOToJSON)),
80
+ 'totalOrders': value['totalOrders'],
81
+ };
82
+ }
@@ -0,0 +1,57 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Vergefy API
5
+ * <h1>AI Agent Management</h1><p>Create, configure, and orchestrate AI agents with multi-provider support.</p><h2>Modules</h2><ul><li><b>Agent (IAG):</b> Agent creation, configuration, lifecycle, insight and analytics (IAG001-057, IAG500-505, IAG700-701)</li><li><b>Template (IAT):</b> Agent template management — /ai/agents-templates</li><li><b>Template Advanced (IATEMP):</b> Versions, analytics, recommendations, diffs — /ai/agents-templates (IATEMP001-008)</li><li><b>Agent Upgrade (IAGENT):</b> Upgrade, rollback, version management — /ai/agents/{id}/upgrade|rollback (IAGENT001-005)</li><li><b>Hierarchy (IAH):</b> Supervisor-worker relationships, delegation — /ai/agents/hierarchies</li><li><b>Goal (IAGG):</b> Autonomous goals, success criteria — /ai/agents/goals</li><li><b>Pool (IAGP):</b> Agent pool management, allocation, coordination (queries IAGP001-023, commands IAGP101-109) — /ai/agents/pools</li><li><b>Execution (IAGE):</b> Execution tracking, history — /ai/agents/executions</li><li><b>Health (IAGH):</b> Health checks, recovery — /ai/agents/health</li><li><b>Communication (IAGC):</b> Channels (IAGC001-019) and inter-agent messages (IAGC020-052) — /ai/agents/channels, /ai/agents/messages</li><li><b>Handoff (IAGD):</b> Agent handoff and transfer — /ai/agents/handoffs</li><li><b>Orchestration (IAGO):</b> Orchestration sessions — /ai/agents/orchestration/sessions</li><li><b>Workflow (IAGW):</b> Workflow assignment and execution — /ai/agents-workflows</li><li><b>Capability (IACAP):</b> Capability definitions, permissions (queries IACAP001-011, commands IACAP101-105) — /ai/capabilities</li><li><b>Capability Mapping (IACF):</b> Capability to feature mapping — /ai/agents/capability-feature-mappings</li></ul><p><b>Providers:</b> OpenAI GPT-4, Anthropic Claude, Google Gemini</p>
6
+ *
7
+ * The version of the OpenAPI document: 2026-05-30
8
+ * Contact: support@integrahub.co
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * @export
16
+ */
17
+ export const HelpdeskLookupKeyDTOTypeEnum = {
18
+ ContactId: 'CONTACT_ID',
19
+ Email: 'EMAIL',
20
+ OrderNumber: 'ORDER_NUMBER',
21
+ MarketplaceOrderId: 'MARKETPLACE_ORDER_ID',
22
+ MarketplaceOrderNumber: 'MARKETPLACE_ORDER_NUMBER'
23
+ };
24
+ /**
25
+ * Check if a given object implements the HelpdeskLookupKeyDTO interface.
26
+ */
27
+ export function instanceOfHelpdeskLookupKeyDTO(value) {
28
+ if (!('type' in value) || value['type'] === undefined)
29
+ return false;
30
+ if (!('value' in value) || value['value'] === undefined)
31
+ return false;
32
+ return true;
33
+ }
34
+ export function HelpdeskLookupKeyDTOFromJSON(json) {
35
+ return HelpdeskLookupKeyDTOFromJSONTyped(json, false);
36
+ }
37
+ export function HelpdeskLookupKeyDTOFromJSONTyped(json, ignoreDiscriminator) {
38
+ if (json == null) {
39
+ return json;
40
+ }
41
+ return {
42
+ 'type': json['type'],
43
+ 'value': json['value'],
44
+ };
45
+ }
46
+ export function HelpdeskLookupKeyDTOToJSON(json) {
47
+ return HelpdeskLookupKeyDTOToJSONTyped(json, false);
48
+ }
49
+ export function HelpdeskLookupKeyDTOToJSONTyped(value, ignoreDiscriminator = false) {
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'type': value['type'],
55
+ 'value': value['value'],
56
+ };
57
+ }