yellowgrid-api-ts 3.2.154 → 3.2.155

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.
@@ -65,6 +65,7 @@ docs/CrmNoteEntity.md
65
65
  docs/CrmNoteModel.md
66
66
  docs/CustomerInformationModel.md
67
67
  docs/CustomerItemRequestDTO.md
68
+ docs/CustomerListAccountDTO.md
68
69
  docs/CustomerOrderRequestDTO.md
69
70
  docs/CustomerPriceListEnum.md
70
71
  docs/CustomerSummaryReportDTO.md
package/README.md CHANGED
@@ -62,6 +62,7 @@ Class | Method | HTTP request | Description
62
62
  *AccountsApi* | [**getGetAccountDetailedSummary**](docs/AccountsApi.md#getgetaccountdetailedsummary) | **GET** /accounts/{id}/summary | Get Account Detailed Summary
63
63
  *AccountsApi* | [**getGetAccounts**](docs/AccountsApi.md#getgetaccounts) | **GET** /accounts | Get Accounts
64
64
  *AccountsApi* | [**getGetClientCredentials**](docs/AccountsApi.md#getgetclientcredentials) | **GET** /accounts/me/contacts/credentials | Get user\'s client credentials
65
+ *AccountsApi* | [**getGetCustomerAccountsList**](docs/AccountsApi.md#getgetcustomeraccountslist) | **GET** /admin/accounts/customers/list |
65
66
  *AccountsApi* | [**getGetCustomerKeys**](docs/AccountsApi.md#getgetcustomerkeys) | **GET** /accounts/me/tcx/keys | Get 3CX Keys
66
67
  *AccountsApi* | [**getGetFinanceSettings**](docs/AccountsApi.md#getgetfinancesettings) | **GET** /admin/accounts/{id}/finance |
67
68
  *AccountsApi* | [**getGetLastAccount**](docs/AccountsApi.md#getgetlastaccount) | **GET** /admin/accounts/last | Get Last Account
@@ -363,6 +364,7 @@ Class | Method | HTTP request | Description
363
364
  - [CrmNoteModel](docs/CrmNoteModel.md)
364
365
  - [CustomerInformationModel](docs/CustomerInformationModel.md)
365
366
  - [CustomerItemRequestDTO](docs/CustomerItemRequestDTO.md)
367
+ - [CustomerListAccountDTO](docs/CustomerListAccountDTO.md)
366
368
  - [CustomerOrderRequestDTO](docs/CustomerOrderRequestDTO.md)
367
369
  - [CustomerPriceListEnum](docs/CustomerPriceListEnum.md)
368
370
  - [CustomerSummaryReportDTO](docs/CustomerSummaryReportDTO.md)
package/api.ts CHANGED
@@ -1921,6 +1921,31 @@ export interface CustomerItemRequestDTO {
1921
1921
  */
1922
1922
  'readOnly'?: boolean;
1923
1923
  }
1924
+ /**
1925
+ * Customer List Account
1926
+ */
1927
+ export interface CustomerListAccountDTO {
1928
+ /**
1929
+ * ID
1930
+ */
1931
+ 'id'?: number;
1932
+ /**
1933
+ * Xero ID
1934
+ */
1935
+ 'xeroId'?: string;
1936
+ /**
1937
+ * Account Number
1938
+ */
1939
+ 'accountNumber'?: string;
1940
+ /**
1941
+ * Company Name
1942
+ */
1943
+ 'company'?: string;
1944
+ /**
1945
+ * Associated Email Domains
1946
+ */
1947
+ 'domains'?: Array<string>;
1948
+ }
1924
1949
  /**
1925
1950
  * Order Request
1926
1951
  */
@@ -8917,6 +8942,35 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
8917
8942
  options: localVarRequestOptions,
8918
8943
  };
8919
8944
  },
8945
+ /**
8946
+ * Get Customer Accounts List
8947
+ * @param {*} [options] Override http request option.
8948
+ * @throws {RequiredError}
8949
+ */
8950
+ getGetCustomerAccountsList: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
8951
+ const localVarPath = `/admin/accounts/customers/list`;
8952
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8953
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8954
+ let baseOptions;
8955
+ if (configuration) {
8956
+ baseOptions = configuration.baseOptions;
8957
+ }
8958
+
8959
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
8960
+ const localVarHeaderParameter = {} as any;
8961
+ const localVarQueryParameter = {} as any;
8962
+
8963
+ localVarHeaderParameter['Accept'] = 'application/json';
8964
+
8965
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
8966
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8967
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
8968
+
8969
+ return {
8970
+ url: toPathString(localVarUrlObj),
8971
+ options: localVarRequestOptions,
8972
+ };
8973
+ },
8920
8974
  /**
8921
8975
  * Get 3CX Keys
8922
8976
  * @summary Get 3CX Keys
@@ -10147,6 +10201,17 @@ export const AccountsApiFp = function(configuration?: Configuration) {
10147
10201
  const localVarOperationServerBasePath = operationServerMap['AccountsApi.getGetClientCredentials']?.[localVarOperationServerIndex]?.url;
10148
10202
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10149
10203
  },
10204
+ /**
10205
+ * Get Customer Accounts List
10206
+ * @param {*} [options] Override http request option.
10207
+ * @throws {RequiredError}
10208
+ */
10209
+ async getGetCustomerAccountsList(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<CustomerListAccountDTO>>> {
10210
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getGetCustomerAccountsList(options);
10211
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
10212
+ const localVarOperationServerBasePath = operationServerMap['AccountsApi.getGetCustomerAccountsList']?.[localVarOperationServerIndex]?.url;
10213
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10214
+ },
10150
10215
  /**
10151
10216
  * Get 3CX Keys
10152
10217
  * @summary Get 3CX Keys
@@ -10666,6 +10731,14 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP
10666
10731
  getGetClientCredentials(options?: RawAxiosRequestConfig): AxiosPromise<Array<ClientModel>> {
10667
10732
  return localVarFp.getGetClientCredentials(options).then((request) => request(axios, basePath));
10668
10733
  },
10734
+ /**
10735
+ * Get Customer Accounts List
10736
+ * @param {*} [options] Override http request option.
10737
+ * @throws {RequiredError}
10738
+ */
10739
+ getGetCustomerAccountsList(options?: RawAxiosRequestConfig): AxiosPromise<Array<CustomerListAccountDTO>> {
10740
+ return localVarFp.getGetCustomerAccountsList(options).then((request) => request(axios, basePath));
10741
+ },
10669
10742
  /**
10670
10743
  * Get 3CX Keys
10671
10744
  * @summary Get 3CX Keys
@@ -11101,6 +11174,15 @@ export class AccountsApi extends BaseAPI {
11101
11174
  return AccountsApiFp(this.configuration).getGetClientCredentials(options).then((request) => request(this.axios, this.basePath));
11102
11175
  }
11103
11176
 
11177
+ /**
11178
+ * Get Customer Accounts List
11179
+ * @param {*} [options] Override http request option.
11180
+ * @throws {RequiredError}
11181
+ */
11182
+ public getGetCustomerAccountsList(options?: RawAxiosRequestConfig) {
11183
+ return AccountsApiFp(this.configuration).getGetCustomerAccountsList(options).then((request) => request(this.axios, this.basePath));
11184
+ }
11185
+
11104
11186
  /**
11105
11187
  * Get 3CX Keys
11106
11188
  * @summary Get 3CX Keys
package/dist/api.d.ts CHANGED
@@ -1898,6 +1898,31 @@ export interface CustomerItemRequestDTO {
1898
1898
  */
1899
1899
  'readOnly'?: boolean;
1900
1900
  }
1901
+ /**
1902
+ * Customer List Account
1903
+ */
1904
+ export interface CustomerListAccountDTO {
1905
+ /**
1906
+ * ID
1907
+ */
1908
+ 'id'?: number;
1909
+ /**
1910
+ * Xero ID
1911
+ */
1912
+ 'xeroId'?: string;
1913
+ /**
1914
+ * Account Number
1915
+ */
1916
+ 'accountNumber'?: string;
1917
+ /**
1918
+ * Company Name
1919
+ */
1920
+ 'company'?: string;
1921
+ /**
1922
+ * Associated Email Domains
1923
+ */
1924
+ 'domains'?: Array<string>;
1925
+ }
1901
1926
  /**
1902
1927
  * Order Request
1903
1928
  */
@@ -8507,6 +8532,12 @@ export declare const AccountsApiAxiosParamCreator: (configuration?: Configuratio
8507
8532
  * @throws {RequiredError}
8508
8533
  */
8509
8534
  getGetClientCredentials: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
8535
+ /**
8536
+ * Get Customer Accounts List
8537
+ * @param {*} [options] Override http request option.
8538
+ * @throws {RequiredError}
8539
+ */
8540
+ getGetCustomerAccountsList: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
8510
8541
  /**
8511
8542
  * Get 3CX Keys
8512
8543
  * @summary Get 3CX Keys
@@ -8845,6 +8876,12 @@ export declare const AccountsApiFp: (configuration?: Configuration) => {
8845
8876
  * @throws {RequiredError}
8846
8877
  */
8847
8878
  getGetClientCredentials(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ClientModel>>>;
8879
+ /**
8880
+ * Get Customer Accounts List
8881
+ * @param {*} [options] Override http request option.
8882
+ * @throws {RequiredError}
8883
+ */
8884
+ getGetCustomerAccountsList(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<CustomerListAccountDTO>>>;
8848
8885
  /**
8849
8886
  * Get 3CX Keys
8850
8887
  * @summary Get 3CX Keys
@@ -9183,6 +9220,12 @@ export declare const AccountsApiFactory: (configuration?: Configuration, basePat
9183
9220
  * @throws {RequiredError}
9184
9221
  */
9185
9222
  getGetClientCredentials(options?: RawAxiosRequestConfig): AxiosPromise<Array<ClientModel>>;
9223
+ /**
9224
+ * Get Customer Accounts List
9225
+ * @param {*} [options] Override http request option.
9226
+ * @throws {RequiredError}
9227
+ */
9228
+ getGetCustomerAccountsList(options?: RawAxiosRequestConfig): AxiosPromise<Array<CustomerListAccountDTO>>;
9186
9229
  /**
9187
9230
  * Get 3CX Keys
9188
9231
  * @summary Get 3CX Keys
@@ -9521,6 +9564,12 @@ export declare class AccountsApi extends BaseAPI {
9521
9564
  * @throws {RequiredError}
9522
9565
  */
9523
9566
  getGetClientCredentials(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ClientModel[], any, {}>>;
9567
+ /**
9568
+ * Get Customer Accounts List
9569
+ * @param {*} [options] Override http request option.
9570
+ * @throws {RequiredError}
9571
+ */
9572
+ getGetCustomerAccountsList(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CustomerListAccountDTO[], any, {}>>;
9524
9573
  /**
9525
9574
  * Get 3CX Keys
9526
9575
  * @summary Get 3CX Keys
package/dist/api.js CHANGED
@@ -876,6 +876,39 @@ var AccountsApiAxiosParamCreator = function (configuration) {
876
876
  });
877
877
  });
878
878
  },
879
+ /**
880
+ * Get Customer Accounts List
881
+ * @param {*} [options] Override http request option.
882
+ * @throws {RequiredError}
883
+ */
884
+ getGetCustomerAccountsList: function () {
885
+ var args_1 = [];
886
+ for (var _i = 0; _i < arguments.length; _i++) {
887
+ args_1[_i] = arguments[_i];
888
+ }
889
+ return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
890
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
891
+ if (options === void 0) { options = {}; }
892
+ return __generator(this, function (_a) {
893
+ localVarPath = "/admin/accounts/customers/list";
894
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
895
+ if (configuration) {
896
+ baseOptions = configuration.baseOptions;
897
+ }
898
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
899
+ localVarHeaderParameter = {};
900
+ localVarQueryParameter = {};
901
+ localVarHeaderParameter['Accept'] = 'application/json';
902
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
903
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
904
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
905
+ return [2 /*return*/, {
906
+ url: (0, common_1.toPathString)(localVarUrlObj),
907
+ options: localVarRequestOptions,
908
+ }];
909
+ });
910
+ });
911
+ },
879
912
  /**
880
913
  * Get 3CX Keys
881
914
  * @summary Get 3CX Keys
@@ -2334,6 +2367,27 @@ var AccountsApiFp = function (configuration) {
2334
2367
  });
2335
2368
  });
2336
2369
  },
2370
+ /**
2371
+ * Get Customer Accounts List
2372
+ * @param {*} [options] Override http request option.
2373
+ * @throws {RequiredError}
2374
+ */
2375
+ getGetCustomerAccountsList: function (options) {
2376
+ return __awaiter(this, void 0, void 0, function () {
2377
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
2378
+ var _a, _b, _c;
2379
+ return __generator(this, function (_d) {
2380
+ switch (_d.label) {
2381
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetCustomerAccountsList(options)];
2382
+ case 1:
2383
+ localVarAxiosArgs = _d.sent();
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.getGetCustomerAccountsList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
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
+ }
2388
+ });
2389
+ });
2390
+ },
2337
2391
  /**
2338
2392
  * Get 3CX Keys
2339
2393
  * @summary Get 3CX Keys
@@ -3163,6 +3217,14 @@ var AccountsApiFactory = function (configuration, basePath, axios) {
3163
3217
  getGetClientCredentials: function (options) {
3164
3218
  return localVarFp.getGetClientCredentials(options).then(function (request) { return request(axios, basePath); });
3165
3219
  },
3220
+ /**
3221
+ * Get Customer Accounts List
3222
+ * @param {*} [options] Override http request option.
3223
+ * @throws {RequiredError}
3224
+ */
3225
+ getGetCustomerAccountsList: function (options) {
3226
+ return localVarFp.getGetCustomerAccountsList(options).then(function (request) { return request(axios, basePath); });
3227
+ },
3166
3228
  /**
3167
3229
  * Get 3CX Keys
3168
3230
  * @summary Get 3CX Keys
@@ -3602,6 +3664,15 @@ var AccountsApi = /** @class */ (function (_super) {
3602
3664
  var _this = this;
3603
3665
  return (0, exports.AccountsApiFp)(this.configuration).getGetClientCredentials(options).then(function (request) { return request(_this.axios, _this.basePath); });
3604
3666
  };
3667
+ /**
3668
+ * Get Customer Accounts List
3669
+ * @param {*} [options] Override http request option.
3670
+ * @throws {RequiredError}
3671
+ */
3672
+ AccountsApi.prototype.getGetCustomerAccountsList = function (options) {
3673
+ var _this = this;
3674
+ return (0, exports.AccountsApiFp)(this.configuration).getGetCustomerAccountsList(options).then(function (request) { return request(_this.axios, _this.basePath); });
3675
+ };
3605
3676
  /**
3606
3677
  * Get 3CX Keys
3607
3678
  * @summary Get 3CX Keys
@@ -15,6 +15,7 @@ All URIs are relative to *https://bitbucket.org*
15
15
  |[**getGetAccountDetailedSummary**](#getgetaccountdetailedsummary) | **GET** /accounts/{id}/summary | Get Account Detailed Summary|
16
16
  |[**getGetAccounts**](#getgetaccounts) | **GET** /accounts | Get Accounts|
17
17
  |[**getGetClientCredentials**](#getgetclientcredentials) | **GET** /accounts/me/contacts/credentials | Get user\&#39;s client credentials|
18
+ |[**getGetCustomerAccountsList**](#getgetcustomeraccountslist) | **GET** /admin/accounts/customers/list | |
18
19
  |[**getGetCustomerKeys**](#getgetcustomerkeys) | **GET** /accounts/me/tcx/keys | Get 3CX Keys|
19
20
  |[**getGetFinanceSettings**](#getgetfinancesettings) | **GET** /admin/accounts/{id}/finance | |
20
21
  |[**getGetLastAccount**](#getgetlastaccount) | **GET** /admin/accounts/last | Get Last Account|
@@ -639,6 +640,53 @@ No authorization required
639
640
 
640
641
  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
641
642
 
643
+ # **getGetCustomerAccountsList**
644
+ > Array<CustomerListAccountDTO> getGetCustomerAccountsList()
645
+
646
+ Get Customer Accounts List
647
+
648
+ ### Example
649
+
650
+ ```typescript
651
+ import {
652
+ AccountsApi,
653
+ Configuration
654
+ } from 'yellowgrid-api-ts';
655
+
656
+ const configuration = new Configuration();
657
+ const apiInstance = new AccountsApi(configuration);
658
+
659
+ const { status, data } = await apiInstance.getGetCustomerAccountsList();
660
+ ```
661
+
662
+ ### Parameters
663
+ This endpoint does not have any parameters.
664
+
665
+
666
+ ### Return type
667
+
668
+ **Array<CustomerListAccountDTO>**
669
+
670
+ ### Authorization
671
+
672
+ No authorization required
673
+
674
+ ### HTTP request headers
675
+
676
+ - **Content-Type**: Not defined
677
+ - **Accept**: application/json
678
+
679
+
680
+ ### HTTP response details
681
+ | Status code | Description | Response headers |
682
+ |-------------|-------------|------------------|
683
+ |**200** | Account Addresses | - |
684
+ |**400** | Bad Request | - |
685
+ |**401** | Unauthorised | - |
686
+ |**403** | Access Denied | - |
687
+
688
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
689
+
642
690
  # **getGetCustomerKeys**
643
691
  > Array<TcxKeySummaryDTO> getGetCustomerKeys()
644
692
 
@@ -0,0 +1,29 @@
1
+ # CustomerListAccountDTO
2
+
3
+ Customer List Account
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **id** | **number** | ID | [optional] [default to undefined]
10
+ **xeroId** | **string** | Xero ID | [optional] [default to undefined]
11
+ **accountNumber** | **string** | Account Number | [optional] [default to undefined]
12
+ **company** | **string** | Company Name | [optional] [default to undefined]
13
+ **domains** | **Array&lt;string&gt;** | Associated Email Domains | [optional] [default to undefined]
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import { CustomerListAccountDTO } from 'yellowgrid-api-ts';
19
+
20
+ const instance: CustomerListAccountDTO = {
21
+ id,
22
+ xeroId,
23
+ accountNumber,
24
+ company,
25
+ domains,
26
+ };
27
+ ```
28
+
29
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yellowgrid-api-ts",
3
- "version": "3.2.154",
3
+ "version": "3.2.155",
4
4
  "description": "OpenAPI client for yellowgrid-api-ts",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {