yellowgrid-api-ts 3.2.135-dev.0 → 3.2.137-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
@@ -429,6 +429,46 @@ exports.UpgradeRequestModelSchoolTypeEnum = {
429
429
  var AccountsApiAxiosParamCreator = function (configuration) {
430
430
  var _this = this;
431
431
  return {
432
+ /**
433
+ * Delete Account Contact
434
+ * @param {string} id Account Xero ID
435
+ * @param {number} contactId Contact ID
436
+ * @param {*} [options] Override http request option.
437
+ * @throws {RequiredError}
438
+ */
439
+ deleteAdminUpdateAccountContact: function (id_1, contactId_1) {
440
+ var args_1 = [];
441
+ for (var _i = 2; _i < arguments.length; _i++) {
442
+ args_1[_i - 2] = arguments[_i];
443
+ }
444
+ return __awaiter(_this, __spreadArray([id_1, contactId_1], args_1, true), void 0, function (id, contactId, options) {
445
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
446
+ if (options === void 0) { options = {}; }
447
+ return __generator(this, function (_a) {
448
+ // verify required parameter 'id' is not null or undefined
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)));
455
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
456
+ if (configuration) {
457
+ baseOptions = configuration.baseOptions;
458
+ }
459
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
460
+ localVarHeaderParameter = {};
461
+ localVarQueryParameter = {};
462
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
463
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
464
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
465
+ return [2 /*return*/, {
466
+ url: (0, common_1.toPathString)(localVarUrlObj),
467
+ options: localVarRequestOptions,
468
+ }];
469
+ });
470
+ });
471
+ },
432
472
  /**
433
473
  * Delete client credentials
434
474
  * @summary Delete client credentials
@@ -504,35 +544,32 @@ var AccountsApiAxiosParamCreator = function (configuration) {
504
544
  });
505
545
  },
506
546
  /**
507
- * Delete Account Contact
547
+ * Get Account Contacts
508
548
  * @param {string} id Account Xero ID
509
- * @param {number} contactId Contact ID
510
549
  * @param {*} [options] Override http request option.
511
550
  * @throws {RequiredError}
512
551
  */
513
- deleteUpdateContact: function (id_1, contactId_1) {
552
+ getAdminCreateAccountContact: function (id_1) {
514
553
  var args_1 = [];
515
- for (var _i = 2; _i < arguments.length; _i++) {
516
- args_1[_i - 2] = arguments[_i];
554
+ for (var _i = 1; _i < arguments.length; _i++) {
555
+ args_1[_i - 1] = arguments[_i];
517
556
  }
518
- return __awaiter(_this, __spreadArray([id_1, contactId_1], args_1, true), void 0, function (id, contactId, options) {
557
+ return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
519
558
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
520
559
  if (options === void 0) { options = {}; }
521
560
  return __generator(this, function (_a) {
522
561
  // 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)));
562
+ (0, common_1.assertParamExists)('getAdminCreateAccountContact', 'id', id);
563
+ localVarPath = "/admin/accounts/{id}/contacts/"
564
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
529
565
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
530
566
  if (configuration) {
531
567
  baseOptions = configuration.baseOptions;
532
568
  }
533
- localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
569
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
534
570
  localVarHeaderParameter = {};
535
571
  localVarQueryParameter = {};
572
+ localVarHeaderParameter['Accept'] = 'application/json';
536
573
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
537
574
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
538
575
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -1167,7 +1204,7 @@ var AccountsApiAxiosParamCreator = function (configuration) {
1167
1204
  * @param {*} [options] Override http request option.
1168
1205
  * @throws {RequiredError}
1169
1206
  */
1170
- postCreateContact: function (id_1, accountContactRequestModel_1) {
1207
+ postAdminCreateAccountContact: function (id_1, accountContactRequestModel_1) {
1171
1208
  var args_1 = [];
1172
1209
  for (var _i = 2; _i < arguments.length; _i++) {
1173
1210
  args_1[_i - 2] = arguments[_i];
@@ -1177,7 +1214,7 @@ var AccountsApiAxiosParamCreator = function (configuration) {
1177
1214
  if (options === void 0) { options = {}; }
1178
1215
  return __generator(this, function (_a) {
1179
1216
  // verify required parameter 'id' is not null or undefined
1180
- (0, common_1.assertParamExists)('postCreateContact', 'id', id);
1217
+ (0, common_1.assertParamExists)('postAdminCreateAccountContact', 'id', id);
1181
1218
  localVarPath = "/admin/accounts/{id}/contacts/"
1182
1219
  .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
1183
1220
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -1504,26 +1541,29 @@ var AccountsApiAxiosParamCreator = function (configuration) {
1504
1541
  });
1505
1542
  },
1506
1543
  /**
1507
- * Update Account Contacts
1508
- * @summary Update Account Contact
1509
- * @param {string} email Contact Email Address
1510
- * @param {AccountContactRequestModel} [accountContactRequestModel] Account request
1544
+ * Update Account Contact
1545
+ * @param {string} id Account Xero ID
1546
+ * @param {number} contactId Contact ID
1547
+ * @param {AccountContactRequestModel} [accountContactRequestModel] Update Account Contact Request
1511
1548
  * @param {*} [options] Override http request option.
1512
1549
  * @throws {RequiredError}
1513
1550
  */
1514
- putUpdateAccountContact: function (email_1, accountContactRequestModel_1) {
1551
+ putAdminUpdateAccountContact: function (id_1, contactId_1, accountContactRequestModel_1) {
1515
1552
  var args_1 = [];
1516
- for (var _i = 2; _i < arguments.length; _i++) {
1517
- args_1[_i - 2] = arguments[_i];
1553
+ for (var _i = 3; _i < arguments.length; _i++) {
1554
+ args_1[_i - 3] = arguments[_i];
1518
1555
  }
1519
- return __awaiter(_this, __spreadArray([email_1, accountContactRequestModel_1], args_1, true), void 0, function (email, accountContactRequestModel, options) {
1556
+ return __awaiter(_this, __spreadArray([id_1, contactId_1, accountContactRequestModel_1], args_1, true), void 0, function (id, contactId, accountContactRequestModel, options) {
1520
1557
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1521
1558
  if (options === void 0) { options = {}; }
1522
1559
  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)));
1560
+ // verify required parameter 'id' is not null or undefined
1561
+ (0, common_1.assertParamExists)('putAdminUpdateAccountContact', 'id', id);
1562
+ // verify required parameter 'contactId' is not null or undefined
1563
+ (0, common_1.assertParamExists)('putAdminUpdateAccountContact', 'contactId', contactId);
1564
+ localVarPath = "/admin/accounts/{id}/contacts/{contact_id}"
1565
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)))
1566
+ .replace("{".concat("contact_id", "}"), encodeURIComponent(String(contactId)));
1527
1567
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1528
1568
  if (configuration) {
1529
1569
  baseOptions = configuration.baseOptions;
@@ -1544,25 +1584,26 @@ var AccountsApiAxiosParamCreator = function (configuration) {
1544
1584
  });
1545
1585
  },
1546
1586
  /**
1547
- * Update Account Billing Address
1548
- * @param {string} id Xero ID
1549
- * @param {AddressDTO} [addressDTO] Updated Billing Address
1587
+ * Update Account Contacts
1588
+ * @summary Update Account Contact
1589
+ * @param {string} email Contact Email Address
1590
+ * @param {AccountContactRequestModel} [accountContactRequestModel] Account request
1550
1591
  * @param {*} [options] Override http request option.
1551
1592
  * @throws {RequiredError}
1552
1593
  */
1553
- putUpdateBillingAddress: function (id_1, addressDTO_1) {
1594
+ putUpdateAccountContact: function (email_1, accountContactRequestModel_1) {
1554
1595
  var args_1 = [];
1555
1596
  for (var _i = 2; _i < arguments.length; _i++) {
1556
1597
  args_1[_i - 2] = arguments[_i];
1557
1598
  }
1558
- return __awaiter(_this, __spreadArray([id_1, addressDTO_1], args_1, true), void 0, function (id, addressDTO, options) {
1599
+ return __awaiter(_this, __spreadArray([email_1, accountContactRequestModel_1], args_1, true), void 0, function (email, accountContactRequestModel, options) {
1559
1600
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1560
1601
  if (options === void 0) { options = {}; }
1561
1602
  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)));
1603
+ // verify required parameter 'email' is not null or undefined
1604
+ (0, common_1.assertParamExists)('putUpdateAccountContact', 'email', email);
1605
+ localVarPath = "/accounts/me/contacts/{email}"
1606
+ .replace("{".concat("email", "}"), encodeURIComponent(String(email)));
1566
1607
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1567
1608
  if (configuration) {
1568
1609
  baseOptions = configuration.baseOptions;
@@ -1574,7 +1615,7 @@ var AccountsApiAxiosParamCreator = function (configuration) {
1574
1615
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1575
1616
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1576
1617
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1577
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(addressDTO, localVarRequestOptions, configuration);
1618
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(accountContactRequestModel, localVarRequestOptions, configuration);
1578
1619
  return [2 /*return*/, {
1579
1620
  url: (0, common_1.toPathString)(localVarUrlObj),
1580
1621
  options: localVarRequestOptions,
@@ -1583,29 +1624,25 @@ var AccountsApiAxiosParamCreator = function (configuration) {
1583
1624
  });
1584
1625
  },
1585
1626
  /**
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
1627
+ * Update Account Billing Address
1628
+ * @param {string} id Xero ID
1629
+ * @param {AddressDTO} [addressDTO] Updated Billing Address
1590
1630
  * @param {*} [options] Override http request option.
1591
1631
  * @throws {RequiredError}
1592
1632
  */
1593
- putUpdateContact: function (id_1, contactId_1, accountContactRequestModel_1) {
1633
+ putUpdateBillingAddress: function (id_1, addressDTO_1) {
1594
1634
  var args_1 = [];
1595
- for (var _i = 3; _i < arguments.length; _i++) {
1596
- args_1[_i - 3] = arguments[_i];
1635
+ for (var _i = 2; _i < arguments.length; _i++) {
1636
+ args_1[_i - 2] = arguments[_i];
1597
1637
  }
1598
- return __awaiter(_this, __spreadArray([id_1, contactId_1, accountContactRequestModel_1], args_1, true), void 0, function (id, contactId, accountContactRequestModel, options) {
1638
+ return __awaiter(_this, __spreadArray([id_1, addressDTO_1], args_1, true), void 0, function (id, addressDTO, options) {
1599
1639
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1600
1640
  if (options === void 0) { options = {}; }
1601
1641
  return __generator(this, function (_a) {
1602
1642
  // 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)));
1643
+ (0, common_1.assertParamExists)('putUpdateBillingAddress', 'id', id);
1644
+ localVarPath = "/admin/accounts/{id}/billing/address"
1645
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
1609
1646
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1610
1647
  if (configuration) {
1611
1648
  baseOptions = configuration.baseOptions;
@@ -1617,7 +1654,7 @@ var AccountsApiAxiosParamCreator = function (configuration) {
1617
1654
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1618
1655
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1619
1656
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1620
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(accountContactRequestModel, localVarRequestOptions, configuration);
1657
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(addressDTO, localVarRequestOptions, configuration);
1621
1658
  return [2 /*return*/, {
1622
1659
  url: (0, common_1.toPathString)(localVarUrlObj),
1623
1660
  options: localVarRequestOptions,
@@ -1673,6 +1710,29 @@ exports.AccountsApiAxiosParamCreator = AccountsApiAxiosParamCreator;
1673
1710
  var AccountsApiFp = function (configuration) {
1674
1711
  var localVarAxiosParamCreator = (0, exports.AccountsApiAxiosParamCreator)(configuration);
1675
1712
  return {
1713
+ /**
1714
+ * Delete Account Contact
1715
+ * @param {string} id Account Xero ID
1716
+ * @param {number} contactId Contact ID
1717
+ * @param {*} [options] Override http request option.
1718
+ * @throws {RequiredError}
1719
+ */
1720
+ deleteAdminUpdateAccountContact: function (id, contactId, options) {
1721
+ return __awaiter(this, void 0, void 0, function () {
1722
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
1723
+ var _a, _b, _c;
1724
+ return __generator(this, function (_d) {
1725
+ switch (_d.label) {
1726
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteAdminUpdateAccountContact(id, contactId, options)];
1727
+ case 1:
1728
+ localVarAxiosArgs = _d.sent();
1729
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1730
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.deleteAdminUpdateAccountContact']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1731
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
1732
+ }
1733
+ });
1734
+ });
1735
+ },
1676
1736
  /**
1677
1737
  * Delete client credentials
1678
1738
  * @summary Delete client credentials
@@ -1720,23 +1780,22 @@ var AccountsApiFp = function (configuration) {
1720
1780
  });
1721
1781
  },
1722
1782
  /**
1723
- * Delete Account Contact
1783
+ * Get Account Contacts
1724
1784
  * @param {string} id Account Xero ID
1725
- * @param {number} contactId Contact ID
1726
1785
  * @param {*} [options] Override http request option.
1727
1786
  * @throws {RequiredError}
1728
1787
  */
1729
- deleteUpdateContact: function (id, contactId, options) {
1788
+ getAdminCreateAccountContact: function (id, options) {
1730
1789
  return __awaiter(this, void 0, void 0, function () {
1731
1790
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
1732
1791
  var _a, _b, _c;
1733
1792
  return __generator(this, function (_d) {
1734
1793
  switch (_d.label) {
1735
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteUpdateContact(id, contactId, options)];
1794
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getAdminCreateAccountContact(id, options)];
1736
1795
  case 1:
1737
1796
  localVarAxiosArgs = _d.sent();
1738
1797
  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;
1798
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.getAdminCreateAccountContact']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1740
1799
  return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
1741
1800
  }
1742
1801
  });
@@ -2116,17 +2175,17 @@ var AccountsApiFp = function (configuration) {
2116
2175
  * @param {*} [options] Override http request option.
2117
2176
  * @throws {RequiredError}
2118
2177
  */
2119
- postCreateContact: function (id, accountContactRequestModel, options) {
2178
+ postAdminCreateAccountContact: function (id, accountContactRequestModel, options) {
2120
2179
  return __awaiter(this, void 0, void 0, function () {
2121
2180
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
2122
2181
  var _a, _b, _c;
2123
2182
  return __generator(this, function (_d) {
2124
2183
  switch (_d.label) {
2125
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.postCreateContact(id, accountContactRequestModel, options)];
2184
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.postAdminCreateAccountContact(id, accountContactRequestModel, options)];
2126
2185
  case 1:
2127
2186
  localVarAxiosArgs = _d.sent();
2128
2187
  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;
2188
+ 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
2189
  return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
2131
2190
  }
2132
2191
  });
@@ -2318,71 +2377,71 @@ var AccountsApiFp = function (configuration) {
2318
2377
  });
2319
2378
  },
2320
2379
  /**
2321
- * Update Account Contacts
2322
- * @summary Update Account Contact
2323
- * @param {string} email Contact Email Address
2324
- * @param {AccountContactRequestModel} [accountContactRequestModel] Account request
2380
+ * Update Account Contact
2381
+ * @param {string} id Account Xero ID
2382
+ * @param {number} contactId Contact ID
2383
+ * @param {AccountContactRequestModel} [accountContactRequestModel] Update Account Contact Request
2325
2384
  * @param {*} [options] Override http request option.
2326
2385
  * @throws {RequiredError}
2327
2386
  */
2328
- putUpdateAccountContact: function (email, accountContactRequestModel, options) {
2387
+ putAdminUpdateAccountContact: function (id, contactId, accountContactRequestModel, options) {
2329
2388
  return __awaiter(this, void 0, void 0, function () {
2330
2389
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
2331
2390
  var _a, _b, _c;
2332
2391
  return __generator(this, function (_d) {
2333
2392
  switch (_d.label) {
2334
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.putUpdateAccountContact(email, accountContactRequestModel, options)];
2393
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.putAdminUpdateAccountContact(id, contactId, accountContactRequestModel, options)];
2335
2394
  case 1:
2336
2395
  localVarAxiosArgs = _d.sent();
2337
2396
  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;
2397
+ 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
2398
  return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
2340
2399
  }
2341
2400
  });
2342
2401
  });
2343
2402
  },
2344
2403
  /**
2345
- * Update Account Billing Address
2346
- * @param {string} id Xero ID
2347
- * @param {AddressDTO} [addressDTO] Updated Billing Address
2404
+ * Update Account Contacts
2405
+ * @summary Update Account Contact
2406
+ * @param {string} email Contact Email Address
2407
+ * @param {AccountContactRequestModel} [accountContactRequestModel] Account request
2348
2408
  * @param {*} [options] Override http request option.
2349
2409
  * @throws {RequiredError}
2350
2410
  */
2351
- putUpdateBillingAddress: function (id, addressDTO, options) {
2411
+ putUpdateAccountContact: function (email, accountContactRequestModel, options) {
2352
2412
  return __awaiter(this, void 0, void 0, function () {
2353
2413
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
2354
2414
  var _a, _b, _c;
2355
2415
  return __generator(this, function (_d) {
2356
2416
  switch (_d.label) {
2357
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.putUpdateBillingAddress(id, addressDTO, options)];
2417
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.putUpdateAccountContact(email, accountContactRequestModel, options)];
2358
2418
  case 1:
2359
2419
  localVarAxiosArgs = _d.sent();
2360
2420
  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;
2421
+ 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
2422
  return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
2363
2423
  }
2364
2424
  });
2365
2425
  });
2366
2426
  },
2367
2427
  /**
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
2428
+ * Update Account Billing Address
2429
+ * @param {string} id Xero ID
2430
+ * @param {AddressDTO} [addressDTO] Updated Billing Address
2372
2431
  * @param {*} [options] Override http request option.
2373
2432
  * @throws {RequiredError}
2374
2433
  */
2375
- putUpdateContact: function (id, contactId, accountContactRequestModel, options) {
2434
+ putUpdateBillingAddress: function (id, addressDTO, options) {
2376
2435
  return __awaiter(this, void 0, void 0, function () {
2377
2436
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
2378
2437
  var _a, _b, _c;
2379
2438
  return __generator(this, function (_d) {
2380
2439
  switch (_d.label) {
2381
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.putUpdateContact(id, contactId, accountContactRequestModel, options)];
2440
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.putUpdateBillingAddress(id, addressDTO, options)];
2382
2441
  case 1:
2383
2442
  localVarAxiosArgs = _d.sent();
2384
2443
  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;
2444
+ 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
2445
  return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
2387
2446
  }
2388
2447
  });
@@ -2420,6 +2479,16 @@ exports.AccountsApiFp = AccountsApiFp;
2420
2479
  var AccountsApiFactory = function (configuration, basePath, axios) {
2421
2480
  var localVarFp = (0, exports.AccountsApiFp)(configuration);
2422
2481
  return {
2482
+ /**
2483
+ * Delete Account Contact
2484
+ * @param {string} id Account Xero ID
2485
+ * @param {number} contactId Contact ID
2486
+ * @param {*} [options] Override http request option.
2487
+ * @throws {RequiredError}
2488
+ */
2489
+ deleteAdminUpdateAccountContact: function (id, contactId, options) {
2490
+ return localVarFp.deleteAdminUpdateAccountContact(id, contactId, options).then(function (request) { return request(axios, basePath); });
2491
+ },
2423
2492
  /**
2424
2493
  * Delete client credentials
2425
2494
  * @summary Delete client credentials
@@ -2441,14 +2510,13 @@ var AccountsApiFactory = function (configuration, basePath, axios) {
2441
2510
  return localVarFp.deleteUpdateAccountContact(email, options).then(function (request) { return request(axios, basePath); });
2442
2511
  },
2443
2512
  /**
2444
- * Delete Account Contact
2513
+ * Get Account Contacts
2445
2514
  * @param {string} id Account Xero ID
2446
- * @param {number} contactId Contact ID
2447
2515
  * @param {*} [options] Override http request option.
2448
2516
  * @throws {RequiredError}
2449
2517
  */
2450
- deleteUpdateContact: function (id, contactId, options) {
2451
- return localVarFp.deleteUpdateContact(id, contactId, options).then(function (request) { return request(axios, basePath); });
2518
+ getAdminCreateAccountContact: function (id, options) {
2519
+ return localVarFp.getAdminCreateAccountContact(id, options).then(function (request) { return request(axios, basePath); });
2452
2520
  },
2453
2521
  /**
2454
2522
  * Get Account
@@ -2616,8 +2684,8 @@ var AccountsApiFactory = function (configuration, basePath, axios) {
2616
2684
  * @param {*} [options] Override http request option.
2617
2685
  * @throws {RequiredError}
2618
2686
  */
2619
- postCreateContact: function (id, accountContactRequestModel, options) {
2620
- return localVarFp.postCreateContact(id, accountContactRequestModel, options).then(function (request) { return request(axios, basePath); });
2687
+ postAdminCreateAccountContact: function (id, accountContactRequestModel, options) {
2688
+ return localVarFp.postAdminCreateAccountContact(id, accountContactRequestModel, options).then(function (request) { return request(axios, basePath); });
2621
2689
  },
2622
2690
  /**
2623
2691
  * Add Account Contacts
@@ -2700,6 +2768,17 @@ var AccountsApiFactory = function (configuration, basePath, axios) {
2700
2768
  postSubmitResellerApplication: function (creditRequired, companyNumber, vatNumber, options) {
2701
2769
  return localVarFp.postSubmitResellerApplication(creditRequired, companyNumber, vatNumber, options).then(function (request) { return request(axios, basePath); });
2702
2770
  },
2771
+ /**
2772
+ * Update Account Contact
2773
+ * @param {string} id Account Xero ID
2774
+ * @param {number} contactId Contact ID
2775
+ * @param {AccountContactRequestModel} [accountContactRequestModel] Update Account Contact Request
2776
+ * @param {*} [options] Override http request option.
2777
+ * @throws {RequiredError}
2778
+ */
2779
+ putAdminUpdateAccountContact: function (id, contactId, accountContactRequestModel, options) {
2780
+ return localVarFp.putAdminUpdateAccountContact(id, contactId, accountContactRequestModel, options).then(function (request) { return request(axios, basePath); });
2781
+ },
2703
2782
  /**
2704
2783
  * Update Account Contacts
2705
2784
  * @summary Update Account Contact
@@ -2721,17 +2800,6 @@ var AccountsApiFactory = function (configuration, basePath, axios) {
2721
2800
  putUpdateBillingAddress: function (id, addressDTO, options) {
2722
2801
  return localVarFp.putUpdateBillingAddress(id, addressDTO, options).then(function (request) { return request(axios, basePath); });
2723
2802
  },
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
2803
  /**
2736
2804
  * Update Account Shipping Address
2737
2805
  * @param {string} id Xero ID
@@ -2753,6 +2821,17 @@ var AccountsApi = /** @class */ (function (_super) {
2753
2821
  function AccountsApi() {
2754
2822
  return _super !== null && _super.apply(this, arguments) || this;
2755
2823
  }
2824
+ /**
2825
+ * Delete Account Contact
2826
+ * @param {string} id Account Xero ID
2827
+ * @param {number} contactId Contact ID
2828
+ * @param {*} [options] Override http request option.
2829
+ * @throws {RequiredError}
2830
+ */
2831
+ AccountsApi.prototype.deleteAdminUpdateAccountContact = function (id, contactId, options) {
2832
+ var _this = this;
2833
+ return (0, exports.AccountsApiFp)(this.configuration).deleteAdminUpdateAccountContact(id, contactId, options).then(function (request) { return request(_this.axios, _this.basePath); });
2834
+ };
2756
2835
  /**
2757
2836
  * Delete client credentials
2758
2837
  * @summary Delete client credentials
@@ -2776,15 +2855,14 @@ var AccountsApi = /** @class */ (function (_super) {
2776
2855
  return (0, exports.AccountsApiFp)(this.configuration).deleteUpdateAccountContact(email, options).then(function (request) { return request(_this.axios, _this.basePath); });
2777
2856
  };
2778
2857
  /**
2779
- * Delete Account Contact
2858
+ * Get Account Contacts
2780
2859
  * @param {string} id Account Xero ID
2781
- * @param {number} contactId Contact ID
2782
2860
  * @param {*} [options] Override http request option.
2783
2861
  * @throws {RequiredError}
2784
2862
  */
2785
- AccountsApi.prototype.deleteUpdateContact = function (id, contactId, options) {
2863
+ AccountsApi.prototype.getAdminCreateAccountContact = function (id, options) {
2786
2864
  var _this = this;
2787
- return (0, exports.AccountsApiFp)(this.configuration).deleteUpdateContact(id, contactId, options).then(function (request) { return request(_this.axios, _this.basePath); });
2865
+ return (0, exports.AccountsApiFp)(this.configuration).getAdminCreateAccountContact(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
2788
2866
  };
2789
2867
  /**
2790
2868
  * Get Account
@@ -2968,9 +3046,9 @@ var AccountsApi = /** @class */ (function (_super) {
2968
3046
  * @param {*} [options] Override http request option.
2969
3047
  * @throws {RequiredError}
2970
3048
  */
2971
- AccountsApi.prototype.postCreateContact = function (id, accountContactRequestModel, options) {
3049
+ AccountsApi.prototype.postAdminCreateAccountContact = function (id, accountContactRequestModel, options) {
2972
3050
  var _this = this;
2973
- return (0, exports.AccountsApiFp)(this.configuration).postCreateContact(id, accountContactRequestModel, options).then(function (request) { return request(_this.axios, _this.basePath); });
3051
+ return (0, exports.AccountsApiFp)(this.configuration).postAdminCreateAccountContact(id, accountContactRequestModel, options).then(function (request) { return request(_this.axios, _this.basePath); });
2974
3052
  };
2975
3053
  /**
2976
3054
  * Add Account Contacts
@@ -3061,6 +3139,18 @@ var AccountsApi = /** @class */ (function (_super) {
3061
3139
  var _this = this;
3062
3140
  return (0, exports.AccountsApiFp)(this.configuration).postSubmitResellerApplication(creditRequired, companyNumber, vatNumber, options).then(function (request) { return request(_this.axios, _this.basePath); });
3063
3141
  };
3142
+ /**
3143
+ * Update Account Contact
3144
+ * @param {string} id Account Xero ID
3145
+ * @param {number} contactId Contact ID
3146
+ * @param {AccountContactRequestModel} [accountContactRequestModel] Update Account Contact Request
3147
+ * @param {*} [options] Override http request option.
3148
+ * @throws {RequiredError}
3149
+ */
3150
+ AccountsApi.prototype.putAdminUpdateAccountContact = function (id, contactId, accountContactRequestModel, options) {
3151
+ var _this = this;
3152
+ return (0, exports.AccountsApiFp)(this.configuration).putAdminUpdateAccountContact(id, contactId, accountContactRequestModel, options).then(function (request) { return request(_this.axios, _this.basePath); });
3153
+ };
3064
3154
  /**
3065
3155
  * Update Account Contacts
3066
3156
  * @summary Update Account Contact
@@ -3084,18 +3174,6 @@ var AccountsApi = /** @class */ (function (_super) {
3084
3174
  var _this = this;
3085
3175
  return (0, exports.AccountsApiFp)(this.configuration).putUpdateBillingAddress(id, addressDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
3086
3176
  };
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
3177
  /**
3100
3178
  * Update Account Shipping Address
3101
3179
  * @param {string} id Xero ID