yellowgrid-api-ts 3.2.135-dev.0 → 3.2.136-dev.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.
package/dist/api.js CHANGED
@@ -430,25 +430,28 @@ var AccountsApiAxiosParamCreator = function (configuration) {
430
430
  var _this = this;
431
431
  return {
432
432
  /**
433
- * Delete client credentials
434
- * @summary Delete client credentials
435
- * @param {string} id OAuth 2.0 Client ID
433
+ * Delete Account Contact
434
+ * @param {string} id Account Xero ID
435
+ * @param {number} contactId Contact ID
436
436
  * @param {*} [options] Override http request option.
437
437
  * @throws {RequiredError}
438
438
  */
439
- deleteDeleteClientCredentials: function (id_1) {
439
+ deleteAdminUpdateAccountContact: function (id_1, contactId_1) {
440
440
  var args_1 = [];
441
- for (var _i = 1; _i < arguments.length; _i++) {
442
- args_1[_i - 1] = arguments[_i];
441
+ for (var _i = 2; _i < arguments.length; _i++) {
442
+ args_1[_i - 2] = arguments[_i];
443
443
  }
444
- return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
444
+ return __awaiter(_this, __spreadArray([id_1, contactId_1], args_1, true), void 0, function (id, contactId, options) {
445
445
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
446
446
  if (options === void 0) { options = {}; }
447
447
  return __generator(this, function (_a) {
448
448
  // verify required parameter 'id' is not null or undefined
449
- (0, common_1.assertParamExists)('deleteDeleteClientCredentials', 'id', id);
450
- localVarPath = "/accounts/me/contacts/credentials/{id}"
451
- .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
449
+ (0, common_1.assertParamExists)('deleteAdminUpdateAccountContact', 'id', id);
450
+ // verify required parameter 'contactId' is not null or undefined
451
+ (0, common_1.assertParamExists)('deleteAdminUpdateAccountContact', 'contactId', contactId);
452
+ localVarPath = "/admin/accounts/{id}/contacts/{contact_id}"
453
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)))
454
+ .replace("{".concat("contact_id", "}"), encodeURIComponent(String(contactId)));
452
455
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
453
456
  if (configuration) {
454
457
  baseOptions = configuration.baseOptions;
@@ -467,25 +470,25 @@ var AccountsApiAxiosParamCreator = function (configuration) {
467
470
  });
468
471
  },
469
472
  /**
470
- * Delete Account Contacts
471
- * @summary Delete Account Contact
472
- * @param {string} email Contact Email Address
473
+ * Delete client credentials
474
+ * @summary Delete client credentials
475
+ * @param {string} id OAuth 2.0 Client ID
473
476
  * @param {*} [options] Override http request option.
474
477
  * @throws {RequiredError}
475
478
  */
476
- deleteUpdateAccountContact: function (email_1) {
479
+ deleteDeleteClientCredentials: function (id_1) {
477
480
  var args_1 = [];
478
481
  for (var _i = 1; _i < arguments.length; _i++) {
479
482
  args_1[_i - 1] = arguments[_i];
480
483
  }
481
- return __awaiter(_this, __spreadArray([email_1], args_1, true), void 0, function (email, options) {
484
+ return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
482
485
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
483
486
  if (options === void 0) { options = {}; }
484
487
  return __generator(this, function (_a) {
485
- // verify required parameter 'email' is not null or undefined
486
- (0, common_1.assertParamExists)('deleteUpdateAccountContact', 'email', email);
487
- localVarPath = "/accounts/me/contacts/{email}"
488
- .replace("{".concat("email", "}"), encodeURIComponent(String(email)));
488
+ // verify required parameter 'id' is not null or undefined
489
+ (0, common_1.assertParamExists)('deleteDeleteClientCredentials', 'id', id);
490
+ localVarPath = "/accounts/me/contacts/credentials/{id}"
491
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
489
492
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
490
493
  if (configuration) {
491
494
  baseOptions = configuration.baseOptions;
@@ -504,28 +507,25 @@ var AccountsApiAxiosParamCreator = function (configuration) {
504
507
  });
505
508
  },
506
509
  /**
507
- * Delete Account Contact
508
- * @param {string} id Account Xero ID
509
- * @param {number} contactId Contact ID
510
+ * Delete Account Contacts
511
+ * @summary Delete Account Contact
512
+ * @param {string} email Contact Email Address
510
513
  * @param {*} [options] Override http request option.
511
514
  * @throws {RequiredError}
512
515
  */
513
- deleteUpdateContact: function (id_1, contactId_1) {
516
+ deleteUpdateAccountContact: function (email_1) {
514
517
  var args_1 = [];
515
- for (var _i = 2; _i < arguments.length; _i++) {
516
- args_1[_i - 2] = arguments[_i];
518
+ for (var _i = 1; _i < arguments.length; _i++) {
519
+ args_1[_i - 1] = arguments[_i];
517
520
  }
518
- return __awaiter(_this, __spreadArray([id_1, contactId_1], args_1, true), void 0, function (id, contactId, options) {
521
+ return __awaiter(_this, __spreadArray([email_1], args_1, true), void 0, function (email, options) {
519
522
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
520
523
  if (options === void 0) { options = {}; }
521
524
  return __generator(this, function (_a) {
522
- // verify required parameter 'id' is not null or undefined
523
- (0, common_1.assertParamExists)('deleteUpdateContact', 'id', id);
524
- // verify required parameter 'contactId' is not null or undefined
525
- (0, common_1.assertParamExists)('deleteUpdateContact', 'contactId', contactId);
526
- localVarPath = "/admin/accounts/{id}/contacts/{contact_id}"
527
- .replace("{".concat("id", "}"), encodeURIComponent(String(id)))
528
- .replace("{".concat("contact_id", "}"), encodeURIComponent(String(contactId)));
525
+ // verify required parameter 'email' is not null or undefined
526
+ (0, common_1.assertParamExists)('deleteUpdateAccountContact', 'email', email);
527
+ localVarPath = "/accounts/me/contacts/{email}"
528
+ .replace("{".concat("email", "}"), encodeURIComponent(String(email)));
529
529
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
530
530
  if (configuration) {
531
531
  baseOptions = configuration.baseOptions;
@@ -1167,7 +1167,7 @@ var AccountsApiAxiosParamCreator = function (configuration) {
1167
1167
  * @param {*} [options] Override http request option.
1168
1168
  * @throws {RequiredError}
1169
1169
  */
1170
- postCreateContact: function (id_1, accountContactRequestModel_1) {
1170
+ postAdminCreateAccountContact: function (id_1, accountContactRequestModel_1) {
1171
1171
  var args_1 = [];
1172
1172
  for (var _i = 2; _i < arguments.length; _i++) {
1173
1173
  args_1[_i - 2] = arguments[_i];
@@ -1177,7 +1177,7 @@ var AccountsApiAxiosParamCreator = function (configuration) {
1177
1177
  if (options === void 0) { options = {}; }
1178
1178
  return __generator(this, function (_a) {
1179
1179
  // verify required parameter 'id' is not null or undefined
1180
- (0, common_1.assertParamExists)('postCreateContact', 'id', id);
1180
+ (0, common_1.assertParamExists)('postAdminCreateAccountContact', 'id', id);
1181
1181
  localVarPath = "/admin/accounts/{id}/contacts/"
1182
1182
  .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
1183
1183
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -1504,26 +1504,29 @@ var AccountsApiAxiosParamCreator = function (configuration) {
1504
1504
  });
1505
1505
  },
1506
1506
  /**
1507
- * Update Account Contacts
1508
- * @summary Update Account Contact
1509
- * @param {string} email Contact Email Address
1510
- * @param {AccountContactRequestModel} [accountContactRequestModel] Account request
1507
+ * Update Account Contact
1508
+ * @param {string} id Account Xero ID
1509
+ * @param {number} contactId Contact ID
1510
+ * @param {AccountContactRequestModel} [accountContactRequestModel] Update Account Contact Request
1511
1511
  * @param {*} [options] Override http request option.
1512
1512
  * @throws {RequiredError}
1513
1513
  */
1514
- putUpdateAccountContact: function (email_1, accountContactRequestModel_1) {
1514
+ putAdminUpdateAccountContact: function (id_1, contactId_1, accountContactRequestModel_1) {
1515
1515
  var args_1 = [];
1516
- for (var _i = 2; _i < arguments.length; _i++) {
1517
- args_1[_i - 2] = arguments[_i];
1516
+ for (var _i = 3; _i < arguments.length; _i++) {
1517
+ args_1[_i - 3] = arguments[_i];
1518
1518
  }
1519
- return __awaiter(_this, __spreadArray([email_1, accountContactRequestModel_1], args_1, true), void 0, function (email, accountContactRequestModel, options) {
1519
+ return __awaiter(_this, __spreadArray([id_1, contactId_1, accountContactRequestModel_1], args_1, true), void 0, function (id, contactId, accountContactRequestModel, options) {
1520
1520
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1521
1521
  if (options === void 0) { options = {}; }
1522
1522
  return __generator(this, function (_a) {
1523
- // verify required parameter 'email' is not null or undefined
1524
- (0, common_1.assertParamExists)('putUpdateAccountContact', 'email', email);
1525
- localVarPath = "/accounts/me/contacts/{email}"
1526
- .replace("{".concat("email", "}"), encodeURIComponent(String(email)));
1523
+ // verify required parameter 'id' is not null or undefined
1524
+ (0, common_1.assertParamExists)('putAdminUpdateAccountContact', 'id', id);
1525
+ // verify required parameter 'contactId' is not null or undefined
1526
+ (0, common_1.assertParamExists)('putAdminUpdateAccountContact', 'contactId', contactId);
1527
+ localVarPath = "/admin/accounts/{id}/contacts/{contact_id}"
1528
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)))
1529
+ .replace("{".concat("contact_id", "}"), encodeURIComponent(String(contactId)));
1527
1530
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1528
1531
  if (configuration) {
1529
1532
  baseOptions = configuration.baseOptions;
@@ -1544,25 +1547,26 @@ var AccountsApiAxiosParamCreator = function (configuration) {
1544
1547
  });
1545
1548
  },
1546
1549
  /**
1547
- * Update Account Billing Address
1548
- * @param {string} id Xero ID
1549
- * @param {AddressDTO} [addressDTO] Updated Billing Address
1550
+ * Update Account Contacts
1551
+ * @summary Update Account Contact
1552
+ * @param {string} email Contact Email Address
1553
+ * @param {AccountContactRequestModel} [accountContactRequestModel] Account request
1550
1554
  * @param {*} [options] Override http request option.
1551
1555
  * @throws {RequiredError}
1552
1556
  */
1553
- putUpdateBillingAddress: function (id_1, addressDTO_1) {
1557
+ putUpdateAccountContact: function (email_1, accountContactRequestModel_1) {
1554
1558
  var args_1 = [];
1555
1559
  for (var _i = 2; _i < arguments.length; _i++) {
1556
1560
  args_1[_i - 2] = arguments[_i];
1557
1561
  }
1558
- return __awaiter(_this, __spreadArray([id_1, addressDTO_1], args_1, true), void 0, function (id, addressDTO, options) {
1562
+ return __awaiter(_this, __spreadArray([email_1, accountContactRequestModel_1], args_1, true), void 0, function (email, accountContactRequestModel, options) {
1559
1563
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1560
1564
  if (options === void 0) { options = {}; }
1561
1565
  return __generator(this, function (_a) {
1562
- // verify required parameter 'id' is not null or undefined
1563
- (0, common_1.assertParamExists)('putUpdateBillingAddress', 'id', id);
1564
- localVarPath = "/admin/accounts/{id}/billing/address"
1565
- .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
1566
+ // verify required parameter 'email' is not null or undefined
1567
+ (0, common_1.assertParamExists)('putUpdateAccountContact', 'email', email);
1568
+ localVarPath = "/accounts/me/contacts/{email}"
1569
+ .replace("{".concat("email", "}"), encodeURIComponent(String(email)));
1566
1570
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1567
1571
  if (configuration) {
1568
1572
  baseOptions = configuration.baseOptions;
@@ -1574,7 +1578,7 @@ var AccountsApiAxiosParamCreator = function (configuration) {
1574
1578
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1575
1579
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1576
1580
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1577
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(addressDTO, localVarRequestOptions, configuration);
1581
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(accountContactRequestModel, localVarRequestOptions, configuration);
1578
1582
  return [2 /*return*/, {
1579
1583
  url: (0, common_1.toPathString)(localVarUrlObj),
1580
1584
  options: localVarRequestOptions,
@@ -1583,29 +1587,25 @@ var AccountsApiAxiosParamCreator = function (configuration) {
1583
1587
  });
1584
1588
  },
1585
1589
  /**
1586
- * Update Account Contact
1587
- * @param {string} id Account Xero ID
1588
- * @param {number} contactId Contact ID
1589
- * @param {AccountContactRequestModel} [accountContactRequestModel] Update Account Contact Request
1590
+ * Update Account Billing Address
1591
+ * @param {string} id Xero ID
1592
+ * @param {AddressDTO} [addressDTO] Updated Billing Address
1590
1593
  * @param {*} [options] Override http request option.
1591
1594
  * @throws {RequiredError}
1592
1595
  */
1593
- putUpdateContact: function (id_1, contactId_1, accountContactRequestModel_1) {
1596
+ putUpdateBillingAddress: function (id_1, addressDTO_1) {
1594
1597
  var args_1 = [];
1595
- for (var _i = 3; _i < arguments.length; _i++) {
1596
- args_1[_i - 3] = arguments[_i];
1598
+ for (var _i = 2; _i < arguments.length; _i++) {
1599
+ args_1[_i - 2] = arguments[_i];
1597
1600
  }
1598
- return __awaiter(_this, __spreadArray([id_1, contactId_1, accountContactRequestModel_1], args_1, true), void 0, function (id, contactId, accountContactRequestModel, options) {
1601
+ return __awaiter(_this, __spreadArray([id_1, addressDTO_1], args_1, true), void 0, function (id, addressDTO, options) {
1599
1602
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1600
1603
  if (options === void 0) { options = {}; }
1601
1604
  return __generator(this, function (_a) {
1602
1605
  // verify required parameter 'id' is not null or undefined
1603
- (0, common_1.assertParamExists)('putUpdateContact', 'id', id);
1604
- // verify required parameter 'contactId' is not null or undefined
1605
- (0, common_1.assertParamExists)('putUpdateContact', 'contactId', contactId);
1606
- localVarPath = "/admin/accounts/{id}/contacts/{contact_id}"
1607
- .replace("{".concat("id", "}"), encodeURIComponent(String(id)))
1608
- .replace("{".concat("contact_id", "}"), encodeURIComponent(String(contactId)));
1606
+ (0, common_1.assertParamExists)('putUpdateBillingAddress', 'id', id);
1607
+ localVarPath = "/admin/accounts/{id}/billing/address"
1608
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
1609
1609
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1610
1610
  if (configuration) {
1611
1611
  baseOptions = configuration.baseOptions;
@@ -1617,7 +1617,7 @@ var AccountsApiAxiosParamCreator = function (configuration) {
1617
1617
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1618
1618
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1619
1619
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1620
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(accountContactRequestModel, localVarRequestOptions, configuration);
1620
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(addressDTO, localVarRequestOptions, configuration);
1621
1621
  return [2 /*return*/, {
1622
1622
  url: (0, common_1.toPathString)(localVarUrlObj),
1623
1623
  options: localVarRequestOptions,
@@ -1674,69 +1674,69 @@ var AccountsApiFp = function (configuration) {
1674
1674
  var localVarAxiosParamCreator = (0, exports.AccountsApiAxiosParamCreator)(configuration);
1675
1675
  return {
1676
1676
  /**
1677
- * Delete client credentials
1678
- * @summary Delete client credentials
1679
- * @param {string} id OAuth 2.0 Client ID
1677
+ * Delete Account Contact
1678
+ * @param {string} id Account Xero ID
1679
+ * @param {number} contactId Contact ID
1680
1680
  * @param {*} [options] Override http request option.
1681
1681
  * @throws {RequiredError}
1682
1682
  */
1683
- deleteDeleteClientCredentials: function (id, options) {
1683
+ deleteAdminUpdateAccountContact: function (id, contactId, options) {
1684
1684
  return __awaiter(this, void 0, void 0, function () {
1685
1685
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
1686
1686
  var _a, _b, _c;
1687
1687
  return __generator(this, function (_d) {
1688
1688
  switch (_d.label) {
1689
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteDeleteClientCredentials(id, options)];
1689
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteAdminUpdateAccountContact(id, contactId, options)];
1690
1690
  case 1:
1691
1691
  localVarAxiosArgs = _d.sent();
1692
1692
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1693
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.deleteDeleteClientCredentials']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1693
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.deleteAdminUpdateAccountContact']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1694
1694
  return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
1695
1695
  }
1696
1696
  });
1697
1697
  });
1698
1698
  },
1699
1699
  /**
1700
- * Delete Account Contacts
1701
- * @summary Delete Account Contact
1702
- * @param {string} email Contact Email Address
1700
+ * Delete client credentials
1701
+ * @summary Delete client credentials
1702
+ * @param {string} id OAuth 2.0 Client ID
1703
1703
  * @param {*} [options] Override http request option.
1704
1704
  * @throws {RequiredError}
1705
1705
  */
1706
- deleteUpdateAccountContact: function (email, options) {
1706
+ deleteDeleteClientCredentials: function (id, options) {
1707
1707
  return __awaiter(this, void 0, void 0, function () {
1708
1708
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
1709
1709
  var _a, _b, _c;
1710
1710
  return __generator(this, function (_d) {
1711
1711
  switch (_d.label) {
1712
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteUpdateAccountContact(email, options)];
1712
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteDeleteClientCredentials(id, options)];
1713
1713
  case 1:
1714
1714
  localVarAxiosArgs = _d.sent();
1715
1715
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1716
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.deleteUpdateAccountContact']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1716
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.deleteDeleteClientCredentials']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1717
1717
  return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
1718
1718
  }
1719
1719
  });
1720
1720
  });
1721
1721
  },
1722
1722
  /**
1723
- * Delete Account Contact
1724
- * @param {string} id Account Xero ID
1725
- * @param {number} contactId Contact ID
1723
+ * Delete Account Contacts
1724
+ * @summary Delete Account Contact
1725
+ * @param {string} email Contact Email Address
1726
1726
  * @param {*} [options] Override http request option.
1727
1727
  * @throws {RequiredError}
1728
1728
  */
1729
- deleteUpdateContact: function (id, contactId, options) {
1729
+ deleteUpdateAccountContact: function (email, options) {
1730
1730
  return __awaiter(this, void 0, void 0, function () {
1731
1731
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
1732
1732
  var _a, _b, _c;
1733
1733
  return __generator(this, function (_d) {
1734
1734
  switch (_d.label) {
1735
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteUpdateContact(id, contactId, options)];
1735
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteUpdateAccountContact(email, options)];
1736
1736
  case 1:
1737
1737
  localVarAxiosArgs = _d.sent();
1738
1738
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1739
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.deleteUpdateContact']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1739
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.deleteUpdateAccountContact']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1740
1740
  return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
1741
1741
  }
1742
1742
  });
@@ -2116,17 +2116,17 @@ var AccountsApiFp = function (configuration) {
2116
2116
  * @param {*} [options] Override http request option.
2117
2117
  * @throws {RequiredError}
2118
2118
  */
2119
- postCreateContact: function (id, accountContactRequestModel, options) {
2119
+ postAdminCreateAccountContact: function (id, accountContactRequestModel, options) {
2120
2120
  return __awaiter(this, void 0, void 0, function () {
2121
2121
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
2122
2122
  var _a, _b, _c;
2123
2123
  return __generator(this, function (_d) {
2124
2124
  switch (_d.label) {
2125
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.postCreateContact(id, accountContactRequestModel, options)];
2125
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.postAdminCreateAccountContact(id, accountContactRequestModel, options)];
2126
2126
  case 1:
2127
2127
  localVarAxiosArgs = _d.sent();
2128
2128
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2129
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.postCreateContact']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2129
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.postAdminCreateAccountContact']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2130
2130
  return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
2131
2131
  }
2132
2132
  });
@@ -2318,71 +2318,71 @@ var AccountsApiFp = function (configuration) {
2318
2318
  });
2319
2319
  },
2320
2320
  /**
2321
- * Update Account Contacts
2322
- * @summary Update Account Contact
2323
- * @param {string} email Contact Email Address
2324
- * @param {AccountContactRequestModel} [accountContactRequestModel] Account request
2321
+ * Update Account Contact
2322
+ * @param {string} id Account Xero ID
2323
+ * @param {number} contactId Contact ID
2324
+ * @param {AccountContactRequestModel} [accountContactRequestModel] Update Account Contact Request
2325
2325
  * @param {*} [options] Override http request option.
2326
2326
  * @throws {RequiredError}
2327
2327
  */
2328
- putUpdateAccountContact: function (email, accountContactRequestModel, options) {
2328
+ putAdminUpdateAccountContact: function (id, contactId, accountContactRequestModel, options) {
2329
2329
  return __awaiter(this, void 0, void 0, function () {
2330
2330
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
2331
2331
  var _a, _b, _c;
2332
2332
  return __generator(this, function (_d) {
2333
2333
  switch (_d.label) {
2334
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.putUpdateAccountContact(email, accountContactRequestModel, options)];
2334
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.putAdminUpdateAccountContact(id, contactId, accountContactRequestModel, options)];
2335
2335
  case 1:
2336
2336
  localVarAxiosArgs = _d.sent();
2337
2337
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2338
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.putUpdateAccountContact']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2338
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.putAdminUpdateAccountContact']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2339
2339
  return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
2340
2340
  }
2341
2341
  });
2342
2342
  });
2343
2343
  },
2344
2344
  /**
2345
- * Update Account Billing Address
2346
- * @param {string} id Xero ID
2347
- * @param {AddressDTO} [addressDTO] Updated Billing Address
2345
+ * Update Account Contacts
2346
+ * @summary Update Account Contact
2347
+ * @param {string} email Contact Email Address
2348
+ * @param {AccountContactRequestModel} [accountContactRequestModel] Account request
2348
2349
  * @param {*} [options] Override http request option.
2349
2350
  * @throws {RequiredError}
2350
2351
  */
2351
- putUpdateBillingAddress: function (id, addressDTO, options) {
2352
+ putUpdateAccountContact: function (email, accountContactRequestModel, options) {
2352
2353
  return __awaiter(this, void 0, void 0, function () {
2353
2354
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
2354
2355
  var _a, _b, _c;
2355
2356
  return __generator(this, function (_d) {
2356
2357
  switch (_d.label) {
2357
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.putUpdateBillingAddress(id, addressDTO, options)];
2358
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.putUpdateAccountContact(email, accountContactRequestModel, options)];
2358
2359
  case 1:
2359
2360
  localVarAxiosArgs = _d.sent();
2360
2361
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2361
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.putUpdateBillingAddress']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2362
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.putUpdateAccountContact']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2362
2363
  return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
2363
2364
  }
2364
2365
  });
2365
2366
  });
2366
2367
  },
2367
2368
  /**
2368
- * Update Account Contact
2369
- * @param {string} id Account Xero ID
2370
- * @param {number} contactId Contact ID
2371
- * @param {AccountContactRequestModel} [accountContactRequestModel] Update Account Contact Request
2369
+ * Update Account Billing Address
2370
+ * @param {string} id Xero ID
2371
+ * @param {AddressDTO} [addressDTO] Updated Billing Address
2372
2372
  * @param {*} [options] Override http request option.
2373
2373
  * @throws {RequiredError}
2374
2374
  */
2375
- putUpdateContact: function (id, contactId, accountContactRequestModel, options) {
2375
+ putUpdateBillingAddress: function (id, addressDTO, options) {
2376
2376
  return __awaiter(this, void 0, void 0, function () {
2377
2377
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
2378
2378
  var _a, _b, _c;
2379
2379
  return __generator(this, function (_d) {
2380
2380
  switch (_d.label) {
2381
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.putUpdateContact(id, contactId, accountContactRequestModel, options)];
2381
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.putUpdateBillingAddress(id, addressDTO, options)];
2382
2382
  case 1:
2383
2383
  localVarAxiosArgs = _d.sent();
2384
2384
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2385
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.putUpdateContact']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2385
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.putUpdateBillingAddress']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2386
2386
  return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
2387
2387
  }
2388
2388
  });
@@ -2420,6 +2420,16 @@ exports.AccountsApiFp = AccountsApiFp;
2420
2420
  var AccountsApiFactory = function (configuration, basePath, axios) {
2421
2421
  var localVarFp = (0, exports.AccountsApiFp)(configuration);
2422
2422
  return {
2423
+ /**
2424
+ * Delete Account Contact
2425
+ * @param {string} id Account Xero ID
2426
+ * @param {number} contactId Contact ID
2427
+ * @param {*} [options] Override http request option.
2428
+ * @throws {RequiredError}
2429
+ */
2430
+ deleteAdminUpdateAccountContact: function (id, contactId, options) {
2431
+ return localVarFp.deleteAdminUpdateAccountContact(id, contactId, options).then(function (request) { return request(axios, basePath); });
2432
+ },
2423
2433
  /**
2424
2434
  * Delete client credentials
2425
2435
  * @summary Delete client credentials
@@ -2440,16 +2450,6 @@ var AccountsApiFactory = function (configuration, basePath, axios) {
2440
2450
  deleteUpdateAccountContact: function (email, options) {
2441
2451
  return localVarFp.deleteUpdateAccountContact(email, options).then(function (request) { return request(axios, basePath); });
2442
2452
  },
2443
- /**
2444
- * Delete Account Contact
2445
- * @param {string} id Account Xero ID
2446
- * @param {number} contactId Contact ID
2447
- * @param {*} [options] Override http request option.
2448
- * @throws {RequiredError}
2449
- */
2450
- deleteUpdateContact: function (id, contactId, options) {
2451
- return localVarFp.deleteUpdateContact(id, contactId, options).then(function (request) { return request(axios, basePath); });
2452
- },
2453
2453
  /**
2454
2454
  * Get Account
2455
2455
  * @summary Get Account
@@ -2616,8 +2616,8 @@ var AccountsApiFactory = function (configuration, basePath, axios) {
2616
2616
  * @param {*} [options] Override http request option.
2617
2617
  * @throws {RequiredError}
2618
2618
  */
2619
- postCreateContact: function (id, accountContactRequestModel, options) {
2620
- return localVarFp.postCreateContact(id, accountContactRequestModel, options).then(function (request) { return request(axios, basePath); });
2619
+ postAdminCreateAccountContact: function (id, accountContactRequestModel, options) {
2620
+ return localVarFp.postAdminCreateAccountContact(id, accountContactRequestModel, options).then(function (request) { return request(axios, basePath); });
2621
2621
  },
2622
2622
  /**
2623
2623
  * Add Account Contacts
@@ -2700,6 +2700,17 @@ var AccountsApiFactory = function (configuration, basePath, axios) {
2700
2700
  postSubmitResellerApplication: function (creditRequired, companyNumber, vatNumber, options) {
2701
2701
  return localVarFp.postSubmitResellerApplication(creditRequired, companyNumber, vatNumber, options).then(function (request) { return request(axios, basePath); });
2702
2702
  },
2703
+ /**
2704
+ * Update Account Contact
2705
+ * @param {string} id Account Xero ID
2706
+ * @param {number} contactId Contact ID
2707
+ * @param {AccountContactRequestModel} [accountContactRequestModel] Update Account Contact Request
2708
+ * @param {*} [options] Override http request option.
2709
+ * @throws {RequiredError}
2710
+ */
2711
+ putAdminUpdateAccountContact: function (id, contactId, accountContactRequestModel, options) {
2712
+ return localVarFp.putAdminUpdateAccountContact(id, contactId, accountContactRequestModel, options).then(function (request) { return request(axios, basePath); });
2713
+ },
2703
2714
  /**
2704
2715
  * Update Account Contacts
2705
2716
  * @summary Update Account Contact
@@ -2721,17 +2732,6 @@ var AccountsApiFactory = function (configuration, basePath, axios) {
2721
2732
  putUpdateBillingAddress: function (id, addressDTO, options) {
2722
2733
  return localVarFp.putUpdateBillingAddress(id, addressDTO, options).then(function (request) { return request(axios, basePath); });
2723
2734
  },
2724
- /**
2725
- * Update Account Contact
2726
- * @param {string} id Account Xero ID
2727
- * @param {number} contactId Contact ID
2728
- * @param {AccountContactRequestModel} [accountContactRequestModel] Update Account Contact Request
2729
- * @param {*} [options] Override http request option.
2730
- * @throws {RequiredError}
2731
- */
2732
- putUpdateContact: function (id, contactId, accountContactRequestModel, options) {
2733
- return localVarFp.putUpdateContact(id, contactId, accountContactRequestModel, options).then(function (request) { return request(axios, basePath); });
2734
- },
2735
2735
  /**
2736
2736
  * Update Account Shipping Address
2737
2737
  * @param {string} id Xero ID
@@ -2753,6 +2753,17 @@ var AccountsApi = /** @class */ (function (_super) {
2753
2753
  function AccountsApi() {
2754
2754
  return _super !== null && _super.apply(this, arguments) || this;
2755
2755
  }
2756
+ /**
2757
+ * Delete Account Contact
2758
+ * @param {string} id Account Xero ID
2759
+ * @param {number} contactId Contact ID
2760
+ * @param {*} [options] Override http request option.
2761
+ * @throws {RequiredError}
2762
+ */
2763
+ AccountsApi.prototype.deleteAdminUpdateAccountContact = function (id, contactId, options) {
2764
+ var _this = this;
2765
+ return (0, exports.AccountsApiFp)(this.configuration).deleteAdminUpdateAccountContact(id, contactId, options).then(function (request) { return request(_this.axios, _this.basePath); });
2766
+ };
2756
2767
  /**
2757
2768
  * Delete client credentials
2758
2769
  * @summary Delete client credentials
@@ -2775,17 +2786,6 @@ var AccountsApi = /** @class */ (function (_super) {
2775
2786
  var _this = this;
2776
2787
  return (0, exports.AccountsApiFp)(this.configuration).deleteUpdateAccountContact(email, options).then(function (request) { return request(_this.axios, _this.basePath); });
2777
2788
  };
2778
- /**
2779
- * Delete Account Contact
2780
- * @param {string} id Account Xero ID
2781
- * @param {number} contactId Contact ID
2782
- * @param {*} [options] Override http request option.
2783
- * @throws {RequiredError}
2784
- */
2785
- AccountsApi.prototype.deleteUpdateContact = function (id, contactId, options) {
2786
- var _this = this;
2787
- return (0, exports.AccountsApiFp)(this.configuration).deleteUpdateContact(id, contactId, options).then(function (request) { return request(_this.axios, _this.basePath); });
2788
- };
2789
2789
  /**
2790
2790
  * Get Account
2791
2791
  * @summary Get Account
@@ -2968,9 +2968,9 @@ var AccountsApi = /** @class */ (function (_super) {
2968
2968
  * @param {*} [options] Override http request option.
2969
2969
  * @throws {RequiredError}
2970
2970
  */
2971
- AccountsApi.prototype.postCreateContact = function (id, accountContactRequestModel, options) {
2971
+ AccountsApi.prototype.postAdminCreateAccountContact = function (id, accountContactRequestModel, options) {
2972
2972
  var _this = this;
2973
- return (0, exports.AccountsApiFp)(this.configuration).postCreateContact(id, accountContactRequestModel, options).then(function (request) { return request(_this.axios, _this.basePath); });
2973
+ return (0, exports.AccountsApiFp)(this.configuration).postAdminCreateAccountContact(id, accountContactRequestModel, options).then(function (request) { return request(_this.axios, _this.basePath); });
2974
2974
  };
2975
2975
  /**
2976
2976
  * Add Account Contacts
@@ -3061,6 +3061,18 @@ var AccountsApi = /** @class */ (function (_super) {
3061
3061
  var _this = this;
3062
3062
  return (0, exports.AccountsApiFp)(this.configuration).postSubmitResellerApplication(creditRequired, companyNumber, vatNumber, options).then(function (request) { return request(_this.axios, _this.basePath); });
3063
3063
  };
3064
+ /**
3065
+ * Update Account Contact
3066
+ * @param {string} id Account Xero ID
3067
+ * @param {number} contactId Contact ID
3068
+ * @param {AccountContactRequestModel} [accountContactRequestModel] Update Account Contact Request
3069
+ * @param {*} [options] Override http request option.
3070
+ * @throws {RequiredError}
3071
+ */
3072
+ AccountsApi.prototype.putAdminUpdateAccountContact = function (id, contactId, accountContactRequestModel, options) {
3073
+ var _this = this;
3074
+ return (0, exports.AccountsApiFp)(this.configuration).putAdminUpdateAccountContact(id, contactId, accountContactRequestModel, options).then(function (request) { return request(_this.axios, _this.basePath); });
3075
+ };
3064
3076
  /**
3065
3077
  * Update Account Contacts
3066
3078
  * @summary Update Account Contact
@@ -3084,18 +3096,6 @@ var AccountsApi = /** @class */ (function (_super) {
3084
3096
  var _this = this;
3085
3097
  return (0, exports.AccountsApiFp)(this.configuration).putUpdateBillingAddress(id, addressDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
3086
3098
  };
3087
- /**
3088
- * Update Account Contact
3089
- * @param {string} id Account Xero ID
3090
- * @param {number} contactId Contact ID
3091
- * @param {AccountContactRequestModel} [accountContactRequestModel] Update Account Contact Request
3092
- * @param {*} [options] Override http request option.
3093
- * @throws {RequiredError}
3094
- */
3095
- AccountsApi.prototype.putUpdateContact = function (id, contactId, accountContactRequestModel, options) {
3096
- var _this = this;
3097
- return (0, exports.AccountsApiFp)(this.configuration).putUpdateContact(id, contactId, accountContactRequestModel, options).then(function (request) { return request(_this.axios, _this.basePath); });
3098
- };
3099
3099
  /**
3100
3100
  * Update Account Shipping Address
3101
3101
  * @param {string} id Xero ID