flexinet-api 0.0.319-prerelease0 → 0.0.321-prerelease0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/esm/api.js CHANGED
@@ -238,6 +238,15 @@ export const TargetMu = {
238
238
  Product: 'product',
239
239
  Liter: 'liter'
240
240
  };
241
+ /**
242
+ *
243
+ * @export
244
+ * @enum {string}
245
+ */
246
+ export const TransactionEventKind = {
247
+ Pending: 'pending',
248
+ Completed: 'completed'
249
+ };
241
250
  /**
242
251
  *
243
252
  * @export
@@ -273,7 +282,8 @@ export const UserSource = {
273
282
  * @enum {string}
274
283
  */
275
284
  export const WebhookKind = {
276
- Order: 'order'
285
+ Order: 'order',
286
+ Prod: 'prod'
277
287
  };
278
288
  /**
279
289
  * AuditApi - axios parameter creator
@@ -1431,13 +1441,16 @@ export class CustomDealsApi extends BaseAPI {
1431
1441
  export const DefaultApiAxiosParamCreator = function (configuration) {
1432
1442
  return {
1433
1443
  /**
1434
- * Generate a new API key, if one already exists it will be rotated, but the old one will still be valid for a short period of time. Important that API key is only returned once, so make sure to store it securely.
1435
- * @summary Generate API key for the current tenant
1444
+ * Import events to the system to be processed
1445
+ * @summary Add event
1446
+ * @param {Array<EventCreationRequest>} eventCreationRequest Entities
1436
1447
  * @param {*} [options] Override http request option.
1437
1448
  * @throws {RequiredError}
1438
1449
  */
1439
- generateApiKey: (options = {}) => __awaiter(this, void 0, void 0, function* () {
1440
- const localVarPath = `/admins/integrations/apikey`;
1450
+ importEvents: (eventCreationRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
1451
+ // verify required parameter 'eventCreationRequest' is not null or undefined
1452
+ assertParamExists('importEvents', 'eventCreationRequest', eventCreationRequest);
1453
+ const localVarPath = `/admins/events`;
1441
1454
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1442
1455
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1443
1456
  let baseOptions;
@@ -1450,14 +1463,25 @@ export const DefaultApiAxiosParamCreator = function (configuration) {
1450
1463
  // authentication jwt required
1451
1464
  // http bearer authentication required
1452
1465
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1466
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1453
1467
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1454
1468
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1455
1469
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1470
+ localVarRequestOptions.data = serializeDataIfNeeded(eventCreationRequest, localVarRequestOptions, configuration);
1456
1471
  return {
1457
1472
  url: toPathString(localVarUrlObj),
1458
1473
  options: localVarRequestOptions,
1459
1474
  };
1460
1475
  }),
1476
+ };
1477
+ };
1478
+ /**
1479
+ * DefaultApi - functional programming interface
1480
+ * @export
1481
+ */
1482
+ export const DefaultApiFp = function (configuration) {
1483
+ const localVarAxiosParamCreator = DefaultApiAxiosParamCreator(configuration);
1484
+ return {
1461
1485
  /**
1462
1486
  * Import events to the system to be processed
1463
1487
  * @summary Add event
@@ -1465,10 +1489,66 @@ export const DefaultApiAxiosParamCreator = function (configuration) {
1465
1489
  * @param {*} [options] Override http request option.
1466
1490
  * @throws {RequiredError}
1467
1491
  */
1468
- importEvent: (eventCreationRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
1469
- // verify required parameter 'eventCreationRequest' is not null or undefined
1470
- assertParamExists('importEvent', 'eventCreationRequest', eventCreationRequest);
1471
- const localVarPath = `/admins/events`;
1492
+ importEvents(eventCreationRequest, options) {
1493
+ return __awaiter(this, void 0, void 0, function* () {
1494
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.importEvents(eventCreationRequest, options);
1495
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1496
+ });
1497
+ },
1498
+ };
1499
+ };
1500
+ /**
1501
+ * DefaultApi - factory interface
1502
+ * @export
1503
+ */
1504
+ export const DefaultApiFactory = function (configuration, basePath, axios) {
1505
+ const localVarFp = DefaultApiFp(configuration);
1506
+ return {
1507
+ /**
1508
+ * Import events to the system to be processed
1509
+ * @summary Add event
1510
+ * @param {Array<EventCreationRequest>} eventCreationRequest Entities
1511
+ * @param {*} [options] Override http request option.
1512
+ * @throws {RequiredError}
1513
+ */
1514
+ importEvents(eventCreationRequest, options) {
1515
+ return localVarFp.importEvents(eventCreationRequest, options).then((request) => request(axios, basePath));
1516
+ },
1517
+ };
1518
+ };
1519
+ /**
1520
+ * DefaultApi - object-oriented interface
1521
+ * @export
1522
+ * @class DefaultApi
1523
+ * @extends {BaseAPI}
1524
+ */
1525
+ export class DefaultApi extends BaseAPI {
1526
+ /**
1527
+ * Import events to the system to be processed
1528
+ * @summary Add event
1529
+ * @param {Array<EventCreationRequest>} eventCreationRequest Entities
1530
+ * @param {*} [options] Override http request option.
1531
+ * @throws {RequiredError}
1532
+ * @memberof DefaultApi
1533
+ */
1534
+ importEvents(eventCreationRequest, options) {
1535
+ return DefaultApiFp(this.configuration).importEvents(eventCreationRequest, options).then((request) => request(this.axios, this.basePath));
1536
+ }
1537
+ }
1538
+ /**
1539
+ * IntegrationApi - axios parameter creator
1540
+ * @export
1541
+ */
1542
+ export const IntegrationApiAxiosParamCreator = function (configuration) {
1543
+ return {
1544
+ /**
1545
+ * Generate a new API key, if one already exists it will be rotated, but the old one will still be valid for a short period of time. Important that API key is only returned once, so make sure to store it securely.
1546
+ * @summary Generate API key for the current tenant
1547
+ * @param {*} [options] Override http request option.
1548
+ * @throws {RequiredError}
1549
+ */
1550
+ generateApiKey: (options = {}) => __awaiter(this, void 0, void 0, function* () {
1551
+ const localVarPath = `/admins/integrations/apikey`;
1472
1552
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1473
1553
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1474
1554
  let baseOptions;
@@ -1481,11 +1561,9 @@ export const DefaultApiAxiosParamCreator = function (configuration) {
1481
1561
  // authentication jwt required
1482
1562
  // http bearer authentication required
1483
1563
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1484
- localVarHeaderParameter['Content-Type'] = 'application/json';
1485
1564
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1486
1565
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1487
1566
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1488
- localVarRequestOptions.data = serializeDataIfNeeded(eventCreationRequest, localVarRequestOptions, configuration);
1489
1567
  return {
1490
1568
  url: toPathString(localVarUrlObj),
1491
1569
  options: localVarRequestOptions,
@@ -1582,11 +1660,11 @@ export const DefaultApiAxiosParamCreator = function (configuration) {
1582
1660
  };
1583
1661
  };
1584
1662
  /**
1585
- * DefaultApi - functional programming interface
1663
+ * IntegrationApi - functional programming interface
1586
1664
  * @export
1587
1665
  */
1588
- export const DefaultApiFp = function (configuration) {
1589
- const localVarAxiosParamCreator = DefaultApiAxiosParamCreator(configuration);
1666
+ export const IntegrationApiFp = function (configuration) {
1667
+ const localVarAxiosParamCreator = IntegrationApiAxiosParamCreator(configuration);
1590
1668
  return {
1591
1669
  /**
1592
1670
  * Generate a new API key, if one already exists it will be rotated, but the old one will still be valid for a short period of time. Important that API key is only returned once, so make sure to store it securely.
@@ -1600,19 +1678,6 @@ export const DefaultApiFp = function (configuration) {
1600
1678
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1601
1679
  });
1602
1680
  },
1603
- /**
1604
- * Import events to the system to be processed
1605
- * @summary Add event
1606
- * @param {Array<EventCreationRequest>} eventCreationRequest Entities
1607
- * @param {*} [options] Override http request option.
1608
- * @throws {RequiredError}
1609
- */
1610
- importEvent(eventCreationRequest, options) {
1611
- return __awaiter(this, void 0, void 0, function* () {
1612
- const localVarAxiosArgs = yield localVarAxiosParamCreator.importEvent(eventCreationRequest, options);
1613
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1614
- });
1615
- },
1616
1681
  /**
1617
1682
  * List all webhooks for current tenant
1618
1683
  * @summary List webhooks
@@ -1653,11 +1718,11 @@ export const DefaultApiFp = function (configuration) {
1653
1718
  };
1654
1719
  };
1655
1720
  /**
1656
- * DefaultApi - factory interface
1721
+ * IntegrationApi - factory interface
1657
1722
  * @export
1658
1723
  */
1659
- export const DefaultApiFactory = function (configuration, basePath, axios) {
1660
- const localVarFp = DefaultApiFp(configuration);
1724
+ export const IntegrationApiFactory = function (configuration, basePath, axios) {
1725
+ const localVarFp = IntegrationApiFp(configuration);
1661
1726
  return {
1662
1727
  /**
1663
1728
  * Generate a new API key, if one already exists it will be rotated, but the old one will still be valid for a short period of time. Important that API key is only returned once, so make sure to store it securely.
@@ -1668,16 +1733,6 @@ export const DefaultApiFactory = function (configuration, basePath, axios) {
1668
1733
  generateApiKey(options) {
1669
1734
  return localVarFp.generateApiKey(options).then((request) => request(axios, basePath));
1670
1735
  },
1671
- /**
1672
- * Import events to the system to be processed
1673
- * @summary Add event
1674
- * @param {Array<EventCreationRequest>} eventCreationRequest Entities
1675
- * @param {*} [options] Override http request option.
1676
- * @throws {RequiredError}
1677
- */
1678
- importEvent(eventCreationRequest, options) {
1679
- return localVarFp.importEvent(eventCreationRequest, options).then((request) => request(axios, basePath));
1680
- },
1681
1736
  /**
1682
1737
  * List all webhooks for current tenant
1683
1738
  * @summary List webhooks
@@ -1709,42 +1764,31 @@ export const DefaultApiFactory = function (configuration, basePath, axios) {
1709
1764
  };
1710
1765
  };
1711
1766
  /**
1712
- * DefaultApi - object-oriented interface
1767
+ * IntegrationApi - object-oriented interface
1713
1768
  * @export
1714
- * @class DefaultApi
1769
+ * @class IntegrationApi
1715
1770
  * @extends {BaseAPI}
1716
1771
  */
1717
- export class DefaultApi extends BaseAPI {
1772
+ export class IntegrationApi extends BaseAPI {
1718
1773
  /**
1719
1774
  * Generate a new API key, if one already exists it will be rotated, but the old one will still be valid for a short period of time. Important that API key is only returned once, so make sure to store it securely.
1720
1775
  * @summary Generate API key for the current tenant
1721
1776
  * @param {*} [options] Override http request option.
1722
1777
  * @throws {RequiredError}
1723
- * @memberof DefaultApi
1778
+ * @memberof IntegrationApi
1724
1779
  */
1725
1780
  generateApiKey(options) {
1726
- return DefaultApiFp(this.configuration).generateApiKey(options).then((request) => request(this.axios, this.basePath));
1727
- }
1728
- /**
1729
- * Import events to the system to be processed
1730
- * @summary Add event
1731
- * @param {Array<EventCreationRequest>} eventCreationRequest Entities
1732
- * @param {*} [options] Override http request option.
1733
- * @throws {RequiredError}
1734
- * @memberof DefaultApi
1735
- */
1736
- importEvent(eventCreationRequest, options) {
1737
- return DefaultApiFp(this.configuration).importEvent(eventCreationRequest, options).then((request) => request(this.axios, this.basePath));
1781
+ return IntegrationApiFp(this.configuration).generateApiKey(options).then((request) => request(this.axios, this.basePath));
1738
1782
  }
1739
1783
  /**
1740
1784
  * List all webhooks for current tenant
1741
1785
  * @summary List webhooks
1742
1786
  * @param {*} [options] Override http request option.
1743
1787
  * @throws {RequiredError}
1744
- * @memberof DefaultApi
1788
+ * @memberof IntegrationApi
1745
1789
  */
1746
1790
  listWebhooks(options) {
1747
- return DefaultApiFp(this.configuration).listWebhooks(options).then((request) => request(this.axios, this.basePath));
1791
+ return IntegrationApiFp(this.configuration).listWebhooks(options).then((request) => request(this.axios, this.basePath));
1748
1792
  }
1749
1793
  /**
1750
1794
  * Set up webhook url for a given integration
@@ -1752,20 +1796,20 @@ export class DefaultApi extends BaseAPI {
1752
1796
  * @param {Webhook} webhook webhook data
1753
1797
  * @param {*} [options] Override http request option.
1754
1798
  * @throws {RequiredError}
1755
- * @memberof DefaultApi
1799
+ * @memberof IntegrationApi
1756
1800
  */
1757
1801
  setWebhook(webhook, options) {
1758
- return DefaultApiFp(this.configuration).setWebhook(webhook, options).then((request) => request(this.axios, this.basePath));
1802
+ return IntegrationApiFp(this.configuration).setWebhook(webhook, options).then((request) => request(this.axios, this.basePath));
1759
1803
  }
1760
1804
  /**
1761
1805
  * Test API key security scheme
1762
1806
  * @summary Test API key security scheme
1763
1807
  * @param {*} [options] Override http request option.
1764
1808
  * @throws {RequiredError}
1765
- * @memberof DefaultApi
1809
+ * @memberof IntegrationApi
1766
1810
  */
1767
1811
  testApiKey(options) {
1768
- return DefaultApiFp(this.configuration).testApiKey(options).then((request) => request(this.axios, this.basePath));
1812
+ return IntegrationApiFp(this.configuration).testApiKey(options).then((request) => request(this.axios, this.basePath));
1769
1813
  }
1770
1814
  }
1771
1815
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flexinet-api",
3
- "version": "0.0.319-prerelease0",
3
+ "version": "0.0.321-prerelease0",
4
4
  "description": "OpenAPI client for flexinet-api",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {