yellowgrid-api-ts 3.2.208-dev.0 → 3.2.209-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/.openapi-generator/FILES +1 -0
- package/README.md +2 -0
- package/api.ts +109 -1
- package/dist/api.d.ts +75 -0
- package/dist/api.js +73 -1
- package/dist/models/HostingPriceListEnum.d.ts +5 -0
- package/dist/models/HostingPriceListEnum.js +5 -0
- package/docs/AccountsApi.md +48 -0
- package/docs/CustomerCoordinatesDTO.md +31 -0
- package/docs/TableDTO.md +2 -0
- package/models/HostingPriceListEnum.ts +5 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
package/README.md
CHANGED
|
@@ -64,6 +64,7 @@ Class | Method | HTTP request | Description
|
|
|
64
64
|
*AccountsApi* | [**getGetClientCredentials**](docs/AccountsApi.md#getgetclientcredentials) | **GET** /accounts/me/contacts/credentials | Get user\'s client credentials
|
|
65
65
|
*AccountsApi* | [**getGetCustomerAccountsList**](docs/AccountsApi.md#getgetcustomeraccountslist) | **GET** /admin/accounts/customers/list |
|
|
66
66
|
*AccountsApi* | [**getGetCustomerKeys**](docs/AccountsApi.md#getgetcustomerkeys) | **GET** /accounts/me/tcx/keys | Get 3CX Keys
|
|
67
|
+
*AccountsApi* | [**getGetCustomerMap**](docs/AccountsApi.md#getgetcustomermap) | **GET** /admin/accounts/customer/map |
|
|
67
68
|
*AccountsApi* | [**getGetFinanceSettings**](docs/AccountsApi.md#getgetfinancesettings) | **GET** /admin/accounts/{id}/finance |
|
|
68
69
|
*AccountsApi* | [**getGetLastAccount**](docs/AccountsApi.md#getgetlastaccount) | **GET** /admin/accounts/last | Get Last Account
|
|
69
70
|
*AccountsApi* | [**getGetNewPriceList**](docs/AccountsApi.md#getgetnewpricelist) | **GET** /admin/accounts/priceList/new | Download New Price List
|
|
@@ -382,6 +383,7 @@ Class | Method | HTTP request | Description
|
|
|
382
383
|
- [CrmDateActivitiesDTO](docs/CrmDateActivitiesDTO.md)
|
|
383
384
|
- [CrmNoteEntity](docs/CrmNoteEntity.md)
|
|
384
385
|
- [CrmNoteModel](docs/CrmNoteModel.md)
|
|
386
|
+
- [CustomerCoordinatesDTO](docs/CustomerCoordinatesDTO.md)
|
|
385
387
|
- [CustomerInformationModel](docs/CustomerInformationModel.md)
|
|
386
388
|
- [CustomerItemRequestDTO](docs/CustomerItemRequestDTO.md)
|
|
387
389
|
- [CustomerListAccountDTO](docs/CustomerListAccountDTO.md)
|
package/api.ts
CHANGED
|
@@ -2772,6 +2772,49 @@ export interface CrmNoteModel {
|
|
|
2772
2772
|
*/
|
|
2773
2773
|
'callId'?: number;
|
|
2774
2774
|
}
|
|
2775
|
+
/**
|
|
2776
|
+
* Customer Coordinates
|
|
2777
|
+
* @export
|
|
2778
|
+
* @interface CustomerCoordinatesDTO
|
|
2779
|
+
*/
|
|
2780
|
+
export interface CustomerCoordinatesDTO {
|
|
2781
|
+
/**
|
|
2782
|
+
* ID
|
|
2783
|
+
* @type {string}
|
|
2784
|
+
* @memberof CustomerCoordinatesDTO
|
|
2785
|
+
*/
|
|
2786
|
+
'id'?: string;
|
|
2787
|
+
/**
|
|
2788
|
+
* Company
|
|
2789
|
+
* @type {string}
|
|
2790
|
+
* @memberof CustomerCoordinatesDTO
|
|
2791
|
+
*/
|
|
2792
|
+
'company'?: string;
|
|
2793
|
+
/**
|
|
2794
|
+
* 3CX Reseller ID
|
|
2795
|
+
* @type {string}
|
|
2796
|
+
* @memberof CustomerCoordinatesDTO
|
|
2797
|
+
*/
|
|
2798
|
+
'resellerId'?: string | null;
|
|
2799
|
+
/**
|
|
2800
|
+
* Post Code
|
|
2801
|
+
* @type {string}
|
|
2802
|
+
* @memberof CustomerCoordinatesDTO
|
|
2803
|
+
*/
|
|
2804
|
+
'postCode'?: string;
|
|
2805
|
+
/**
|
|
2806
|
+
* Latitude
|
|
2807
|
+
* @type {string}
|
|
2808
|
+
* @memberof CustomerCoordinatesDTO
|
|
2809
|
+
*/
|
|
2810
|
+
'latitude'?: string;
|
|
2811
|
+
/**
|
|
2812
|
+
* Longitude
|
|
2813
|
+
* @type {string}
|
|
2814
|
+
* @memberof CustomerCoordinatesDTO
|
|
2815
|
+
*/
|
|
2816
|
+
'longitude'?: string;
|
|
2817
|
+
}
|
|
2775
2818
|
/**
|
|
2776
2819
|
* SIP Trunk Customer
|
|
2777
2820
|
* @export
|
|
@@ -6997,7 +7040,8 @@ export const PatchUpdateTcxHostingPriceListRequestPriceListEnum = {
|
|
|
6997
7040
|
_3: '3',
|
|
6998
7041
|
_4: '4',
|
|
6999
7042
|
_5: '5',
|
|
7000
|
-
_6: '6'
|
|
7043
|
+
_6: '6',
|
|
7044
|
+
_7: '7'
|
|
7001
7045
|
} as const;
|
|
7002
7046
|
|
|
7003
7047
|
export type PatchUpdateTcxHostingPriceListRequestPriceListEnum = typeof PatchUpdateTcxHostingPriceListRequestPriceListEnum[keyof typeof PatchUpdateTcxHostingPriceListRequestPriceListEnum];
|
|
@@ -11268,6 +11312,12 @@ export interface SupportTicketModel {
|
|
|
11268
11312
|
* @interface TableDTO
|
|
11269
11313
|
*/
|
|
11270
11314
|
export interface TableDTO {
|
|
11315
|
+
/**
|
|
11316
|
+
* Title
|
|
11317
|
+
* @type {string}
|
|
11318
|
+
* @memberof TableDTO
|
|
11319
|
+
*/
|
|
11320
|
+
'title'?: string;
|
|
11271
11321
|
/**
|
|
11272
11322
|
*
|
|
11273
11323
|
* @type {TableRowDTO}
|
|
@@ -14159,6 +14209,35 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
14159
14209
|
|
|
14160
14210
|
|
|
14161
14211
|
|
|
14212
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14213
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14214
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
14215
|
+
|
|
14216
|
+
return {
|
|
14217
|
+
url: toPathString(localVarUrlObj),
|
|
14218
|
+
options: localVarRequestOptions,
|
|
14219
|
+
};
|
|
14220
|
+
},
|
|
14221
|
+
/**
|
|
14222
|
+
* Get Customer Map
|
|
14223
|
+
* @param {*} [options] Override http request option.
|
|
14224
|
+
* @throws {RequiredError}
|
|
14225
|
+
*/
|
|
14226
|
+
getGetCustomerMap: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
14227
|
+
const localVarPath = `/admin/accounts/customer/map`;
|
|
14228
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14229
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
14230
|
+
let baseOptions;
|
|
14231
|
+
if (configuration) {
|
|
14232
|
+
baseOptions = configuration.baseOptions;
|
|
14233
|
+
}
|
|
14234
|
+
|
|
14235
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
14236
|
+
const localVarHeaderParameter = {} as any;
|
|
14237
|
+
const localVarQueryParameter = {} as any;
|
|
14238
|
+
|
|
14239
|
+
|
|
14240
|
+
|
|
14162
14241
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14163
14242
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14164
14243
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -15579,6 +15658,17 @@ export const AccountsApiFp = function(configuration?: Configuration) {
|
|
|
15579
15658
|
const localVarOperationServerBasePath = operationServerMap['AccountsApi.getGetCustomerKeys']?.[localVarOperationServerIndex]?.url;
|
|
15580
15659
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15581
15660
|
},
|
|
15661
|
+
/**
|
|
15662
|
+
* Get Customer Map
|
|
15663
|
+
* @param {*} [options] Override http request option.
|
|
15664
|
+
* @throws {RequiredError}
|
|
15665
|
+
*/
|
|
15666
|
+
async getGetCustomerMap(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<CustomerCoordinatesDTO>>> {
|
|
15667
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getGetCustomerMap(options);
|
|
15668
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
15669
|
+
const localVarOperationServerBasePath = operationServerMap['AccountsApi.getGetCustomerMap']?.[localVarOperationServerIndex]?.url;
|
|
15670
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15671
|
+
},
|
|
15582
15672
|
/**
|
|
15583
15673
|
* Get Account Finance
|
|
15584
15674
|
* @param {string} id Account Xero ID
|
|
@@ -16156,6 +16246,14 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP
|
|
|
16156
16246
|
getGetCustomerKeys(options?: RawAxiosRequestConfig): AxiosPromise<Array<TcxKeySummaryDTO>> {
|
|
16157
16247
|
return localVarFp.getGetCustomerKeys(options).then((request) => request(axios, basePath));
|
|
16158
16248
|
},
|
|
16249
|
+
/**
|
|
16250
|
+
* Get Customer Map
|
|
16251
|
+
* @param {*} [options] Override http request option.
|
|
16252
|
+
* @throws {RequiredError}
|
|
16253
|
+
*/
|
|
16254
|
+
getGetCustomerMap(options?: RawAxiosRequestConfig): AxiosPromise<Array<CustomerCoordinatesDTO>> {
|
|
16255
|
+
return localVarFp.getGetCustomerMap(options).then((request) => request(axios, basePath));
|
|
16256
|
+
},
|
|
16159
16257
|
/**
|
|
16160
16258
|
* Get Account Finance
|
|
16161
16259
|
* @param {string} id Account Xero ID
|
|
@@ -16657,6 +16755,16 @@ export class AccountsApi extends BaseAPI {
|
|
|
16657
16755
|
return AccountsApiFp(this.configuration).getGetCustomerKeys(options).then((request) => request(this.axios, this.basePath));
|
|
16658
16756
|
}
|
|
16659
16757
|
|
|
16758
|
+
/**
|
|
16759
|
+
* Get Customer Map
|
|
16760
|
+
* @param {*} [options] Override http request option.
|
|
16761
|
+
* @throws {RequiredError}
|
|
16762
|
+
* @memberof AccountsApi
|
|
16763
|
+
*/
|
|
16764
|
+
public getGetCustomerMap(options?: RawAxiosRequestConfig) {
|
|
16765
|
+
return AccountsApiFp(this.configuration).getGetCustomerMap(options).then((request) => request(this.axios, this.basePath));
|
|
16766
|
+
}
|
|
16767
|
+
|
|
16660
16768
|
/**
|
|
16661
16769
|
* Get Account Finance
|
|
16662
16770
|
* @param {string} id Account Xero ID
|
package/dist/api.d.ts
CHANGED
|
@@ -2746,6 +2746,49 @@ export interface CrmNoteModel {
|
|
|
2746
2746
|
*/
|
|
2747
2747
|
'callId'?: number;
|
|
2748
2748
|
}
|
|
2749
|
+
/**
|
|
2750
|
+
* Customer Coordinates
|
|
2751
|
+
* @export
|
|
2752
|
+
* @interface CustomerCoordinatesDTO
|
|
2753
|
+
*/
|
|
2754
|
+
export interface CustomerCoordinatesDTO {
|
|
2755
|
+
/**
|
|
2756
|
+
* ID
|
|
2757
|
+
* @type {string}
|
|
2758
|
+
* @memberof CustomerCoordinatesDTO
|
|
2759
|
+
*/
|
|
2760
|
+
'id'?: string;
|
|
2761
|
+
/**
|
|
2762
|
+
* Company
|
|
2763
|
+
* @type {string}
|
|
2764
|
+
* @memberof CustomerCoordinatesDTO
|
|
2765
|
+
*/
|
|
2766
|
+
'company'?: string;
|
|
2767
|
+
/**
|
|
2768
|
+
* 3CX Reseller ID
|
|
2769
|
+
* @type {string}
|
|
2770
|
+
* @memberof CustomerCoordinatesDTO
|
|
2771
|
+
*/
|
|
2772
|
+
'resellerId'?: string | null;
|
|
2773
|
+
/**
|
|
2774
|
+
* Post Code
|
|
2775
|
+
* @type {string}
|
|
2776
|
+
* @memberof CustomerCoordinatesDTO
|
|
2777
|
+
*/
|
|
2778
|
+
'postCode'?: string;
|
|
2779
|
+
/**
|
|
2780
|
+
* Latitude
|
|
2781
|
+
* @type {string}
|
|
2782
|
+
* @memberof CustomerCoordinatesDTO
|
|
2783
|
+
*/
|
|
2784
|
+
'latitude'?: string;
|
|
2785
|
+
/**
|
|
2786
|
+
* Longitude
|
|
2787
|
+
* @type {string}
|
|
2788
|
+
* @memberof CustomerCoordinatesDTO
|
|
2789
|
+
*/
|
|
2790
|
+
'longitude'?: string;
|
|
2791
|
+
}
|
|
2749
2792
|
/**
|
|
2750
2793
|
* SIP Trunk Customer
|
|
2751
2794
|
* @export
|
|
@@ -6937,6 +6980,7 @@ export declare const PatchUpdateTcxHostingPriceListRequestPriceListEnum: {
|
|
|
6937
6980
|
readonly _4: "4";
|
|
6938
6981
|
readonly _5: "5";
|
|
6939
6982
|
readonly _6: "6";
|
|
6983
|
+
readonly _7: "7";
|
|
6940
6984
|
};
|
|
6941
6985
|
export type PatchUpdateTcxHostingPriceListRequestPriceListEnum = typeof PatchUpdateTcxHostingPriceListRequestPriceListEnum[keyof typeof PatchUpdateTcxHostingPriceListRequestPriceListEnum];
|
|
6942
6986
|
/**
|
|
@@ -11148,6 +11192,12 @@ export interface SupportTicketModel {
|
|
|
11148
11192
|
* @interface TableDTO
|
|
11149
11193
|
*/
|
|
11150
11194
|
export interface TableDTO {
|
|
11195
|
+
/**
|
|
11196
|
+
* Title
|
|
11197
|
+
* @type {string}
|
|
11198
|
+
* @memberof TableDTO
|
|
11199
|
+
*/
|
|
11200
|
+
'title'?: string;
|
|
11151
11201
|
/**
|
|
11152
11202
|
*
|
|
11153
11203
|
* @type {TableRowDTO}
|
|
@@ -13688,6 +13738,12 @@ export declare const AccountsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
13688
13738
|
* @throws {RequiredError}
|
|
13689
13739
|
*/
|
|
13690
13740
|
getGetCustomerKeys: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
13741
|
+
/**
|
|
13742
|
+
* Get Customer Map
|
|
13743
|
+
* @param {*} [options] Override http request option.
|
|
13744
|
+
* @throws {RequiredError}
|
|
13745
|
+
*/
|
|
13746
|
+
getGetCustomerMap: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
13691
13747
|
/**
|
|
13692
13748
|
* Get Account Finance
|
|
13693
13749
|
* @param {string} id Account Xero ID
|
|
@@ -14065,6 +14121,12 @@ export declare const AccountsApiFp: (configuration?: Configuration) => {
|
|
|
14065
14121
|
* @throws {RequiredError}
|
|
14066
14122
|
*/
|
|
14067
14123
|
getGetCustomerKeys(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<TcxKeySummaryDTO>>>;
|
|
14124
|
+
/**
|
|
14125
|
+
* Get Customer Map
|
|
14126
|
+
* @param {*} [options] Override http request option.
|
|
14127
|
+
* @throws {RequiredError}
|
|
14128
|
+
*/
|
|
14129
|
+
getGetCustomerMap(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<CustomerCoordinatesDTO>>>;
|
|
14068
14130
|
/**
|
|
14069
14131
|
* Get Account Finance
|
|
14070
14132
|
* @param {string} id Account Xero ID
|
|
@@ -14442,6 +14504,12 @@ export declare const AccountsApiFactory: (configuration?: Configuration, basePat
|
|
|
14442
14504
|
* @throws {RequiredError}
|
|
14443
14505
|
*/
|
|
14444
14506
|
getGetCustomerKeys(options?: RawAxiosRequestConfig): AxiosPromise<Array<TcxKeySummaryDTO>>;
|
|
14507
|
+
/**
|
|
14508
|
+
* Get Customer Map
|
|
14509
|
+
* @param {*} [options] Override http request option.
|
|
14510
|
+
* @throws {RequiredError}
|
|
14511
|
+
*/
|
|
14512
|
+
getGetCustomerMap(options?: RawAxiosRequestConfig): AxiosPromise<Array<CustomerCoordinatesDTO>>;
|
|
14445
14513
|
/**
|
|
14446
14514
|
* Get Account Finance
|
|
14447
14515
|
* @param {string} id Account Xero ID
|
|
@@ -14834,6 +14902,13 @@ export declare class AccountsApi extends BaseAPI {
|
|
|
14834
14902
|
* @memberof AccountsApi
|
|
14835
14903
|
*/
|
|
14836
14904
|
getGetCustomerKeys(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TcxKeySummaryDTO[], any, {}>>;
|
|
14905
|
+
/**
|
|
14906
|
+
* Get Customer Map
|
|
14907
|
+
* @param {*} [options] Override http request option.
|
|
14908
|
+
* @throws {RequiredError}
|
|
14909
|
+
* @memberof AccountsApi
|
|
14910
|
+
*/
|
|
14911
|
+
getGetCustomerMap(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CustomerCoordinatesDTO[], any, {}>>;
|
|
14837
14912
|
/**
|
|
14838
14913
|
* Get Account Finance
|
|
14839
14914
|
* @param {string} id Account Xero ID
|
package/dist/api.js
CHANGED
|
@@ -347,7 +347,8 @@ exports.PatchUpdateTcxHostingPriceListRequestPriceListEnum = {
|
|
|
347
347
|
_3: '3',
|
|
348
348
|
_4: '4',
|
|
349
349
|
_5: '5',
|
|
350
|
-
_6: '6'
|
|
350
|
+
_6: '6',
|
|
351
|
+
_7: '7'
|
|
351
352
|
};
|
|
352
353
|
exports.ProspectDTOStatusEnum = {
|
|
353
354
|
NoCallBackSet: 'No Call Back Set',
|
|
@@ -1040,6 +1041,38 @@ var AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
1040
1041
|
});
|
|
1041
1042
|
});
|
|
1042
1043
|
},
|
|
1044
|
+
/**
|
|
1045
|
+
* Get Customer Map
|
|
1046
|
+
* @param {*} [options] Override http request option.
|
|
1047
|
+
* @throws {RequiredError}
|
|
1048
|
+
*/
|
|
1049
|
+
getGetCustomerMap: function () {
|
|
1050
|
+
var args_1 = [];
|
|
1051
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
1052
|
+
args_1[_i] = arguments[_i];
|
|
1053
|
+
}
|
|
1054
|
+
return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
|
|
1055
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1056
|
+
if (options === void 0) { options = {}; }
|
|
1057
|
+
return __generator(this, function (_a) {
|
|
1058
|
+
localVarPath = "/admin/accounts/customer/map";
|
|
1059
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1060
|
+
if (configuration) {
|
|
1061
|
+
baseOptions = configuration.baseOptions;
|
|
1062
|
+
}
|
|
1063
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
1064
|
+
localVarHeaderParameter = {};
|
|
1065
|
+
localVarQueryParameter = {};
|
|
1066
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1067
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1068
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1069
|
+
return [2 /*return*/, {
|
|
1070
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1071
|
+
options: localVarRequestOptions,
|
|
1072
|
+
}];
|
|
1073
|
+
});
|
|
1074
|
+
});
|
|
1075
|
+
},
|
|
1043
1076
|
/**
|
|
1044
1077
|
* Get Account Finance
|
|
1045
1078
|
* @param {string} id Account Xero ID
|
|
@@ -2655,6 +2688,27 @@ var AccountsApiFp = function (configuration) {
|
|
|
2655
2688
|
});
|
|
2656
2689
|
});
|
|
2657
2690
|
},
|
|
2691
|
+
/**
|
|
2692
|
+
* Get Customer Map
|
|
2693
|
+
* @param {*} [options] Override http request option.
|
|
2694
|
+
* @throws {RequiredError}
|
|
2695
|
+
*/
|
|
2696
|
+
getGetCustomerMap: function (options) {
|
|
2697
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2698
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
2699
|
+
var _a, _b, _c;
|
|
2700
|
+
return __generator(this, function (_d) {
|
|
2701
|
+
switch (_d.label) {
|
|
2702
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetCustomerMap(options)];
|
|
2703
|
+
case 1:
|
|
2704
|
+
localVarAxiosArgs = _d.sent();
|
|
2705
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2706
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.getGetCustomerMap']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2707
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
2708
|
+
}
|
|
2709
|
+
});
|
|
2710
|
+
});
|
|
2711
|
+
},
|
|
2658
2712
|
/**
|
|
2659
2713
|
* Get Account Finance
|
|
2660
2714
|
* @param {string} id Account Xero ID
|
|
@@ -3572,6 +3626,14 @@ var AccountsApiFactory = function (configuration, basePath, axios) {
|
|
|
3572
3626
|
getGetCustomerKeys: function (options) {
|
|
3573
3627
|
return localVarFp.getGetCustomerKeys(options).then(function (request) { return request(axios, basePath); });
|
|
3574
3628
|
},
|
|
3629
|
+
/**
|
|
3630
|
+
* Get Customer Map
|
|
3631
|
+
* @param {*} [options] Override http request option.
|
|
3632
|
+
* @throws {RequiredError}
|
|
3633
|
+
*/
|
|
3634
|
+
getGetCustomerMap: function (options) {
|
|
3635
|
+
return localVarFp.getGetCustomerMap(options).then(function (request) { return request(axios, basePath); });
|
|
3636
|
+
},
|
|
3575
3637
|
/**
|
|
3576
3638
|
* Get Account Finance
|
|
3577
3639
|
* @param {string} id Account Xero ID
|
|
@@ -4077,6 +4139,16 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
4077
4139
|
var _this = this;
|
|
4078
4140
|
return (0, exports.AccountsApiFp)(this.configuration).getGetCustomerKeys(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
4079
4141
|
};
|
|
4142
|
+
/**
|
|
4143
|
+
* Get Customer Map
|
|
4144
|
+
* @param {*} [options] Override http request option.
|
|
4145
|
+
* @throws {RequiredError}
|
|
4146
|
+
* @memberof AccountsApi
|
|
4147
|
+
*/
|
|
4148
|
+
AccountsApi.prototype.getGetCustomerMap = function (options) {
|
|
4149
|
+
var _this = this;
|
|
4150
|
+
return (0, exports.AccountsApiFp)(this.configuration).getGetCustomerMap(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
4151
|
+
};
|
|
4080
4152
|
/**
|
|
4081
4153
|
* Get Account Finance
|
|
4082
4154
|
* @param {string} id Account Xero ID
|
|
@@ -29,5 +29,10 @@ export declare const HostingPriceListEnum: {
|
|
|
29
29
|
readonly value: 6;
|
|
30
30
|
readonly publicValue: "Hosting Only (Wholesale)";
|
|
31
31
|
};
|
|
32
|
+
readonly HOSTING_ITSP: {
|
|
33
|
+
readonly name: "HOSTING_ITSP";
|
|
34
|
+
readonly value: 7;
|
|
35
|
+
readonly publicValue: "Hosting Only (ITSP)";
|
|
36
|
+
};
|
|
32
37
|
};
|
|
33
38
|
export type HostingPriceListEnum = typeof HostingPriceListEnum;
|
package/docs/AccountsApi.md
CHANGED
|
@@ -17,6 +17,7 @@ All URIs are relative to *https://api.local.yellowgrid.co.uk*
|
|
|
17
17
|
|[**getGetClientCredentials**](#getgetclientcredentials) | **GET** /accounts/me/contacts/credentials | Get user\'s client credentials|
|
|
18
18
|
|[**getGetCustomerAccountsList**](#getgetcustomeraccountslist) | **GET** /admin/accounts/customers/list | |
|
|
19
19
|
|[**getGetCustomerKeys**](#getgetcustomerkeys) | **GET** /accounts/me/tcx/keys | Get 3CX Keys|
|
|
20
|
+
|[**getGetCustomerMap**](#getgetcustomermap) | **GET** /admin/accounts/customer/map | |
|
|
20
21
|
|[**getGetFinanceSettings**](#getgetfinancesettings) | **GET** /admin/accounts/{id}/finance | |
|
|
21
22
|
|[**getGetLastAccount**](#getgetlastaccount) | **GET** /admin/accounts/last | Get Last Account|
|
|
22
23
|
|[**getGetNewPriceList**](#getgetnewpricelist) | **GET** /admin/accounts/priceList/new | Download New Price List|
|
|
@@ -738,6 +739,53 @@ No authorization required
|
|
|
738
739
|
|
|
739
740
|
[[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)
|
|
740
741
|
|
|
742
|
+
# **getGetCustomerMap**
|
|
743
|
+
> Array<CustomerCoordinatesDTO> getGetCustomerMap()
|
|
744
|
+
|
|
745
|
+
Get Customer Map
|
|
746
|
+
|
|
747
|
+
### Example
|
|
748
|
+
|
|
749
|
+
```typescript
|
|
750
|
+
import {
|
|
751
|
+
AccountsApi,
|
|
752
|
+
Configuration
|
|
753
|
+
} from 'yellowgrid-api-ts';
|
|
754
|
+
|
|
755
|
+
const configuration = new Configuration();
|
|
756
|
+
const apiInstance = new AccountsApi(configuration);
|
|
757
|
+
|
|
758
|
+
const { status, data } = await apiInstance.getGetCustomerMap();
|
|
759
|
+
```
|
|
760
|
+
|
|
761
|
+
### Parameters
|
|
762
|
+
This endpoint does not have any parameters.
|
|
763
|
+
|
|
764
|
+
|
|
765
|
+
### Return type
|
|
766
|
+
|
|
767
|
+
**Array<CustomerCoordinatesDTO>**
|
|
768
|
+
|
|
769
|
+
### Authorization
|
|
770
|
+
|
|
771
|
+
No authorization required
|
|
772
|
+
|
|
773
|
+
### HTTP request headers
|
|
774
|
+
|
|
775
|
+
- **Content-Type**: Not defined
|
|
776
|
+
- **Accept**: application/json
|
|
777
|
+
|
|
778
|
+
|
|
779
|
+
### HTTP response details
|
|
780
|
+
| Status code | Description | Response headers |
|
|
781
|
+
|-------------|-------------|------------------|
|
|
782
|
+
|**200** | Customer Coordinates | - |
|
|
783
|
+
|**400** | Bad Request | - |
|
|
784
|
+
|**401** | Unauthorised | - |
|
|
785
|
+
|**403** | Access Denied | - |
|
|
786
|
+
|
|
787
|
+
[[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)
|
|
788
|
+
|
|
741
789
|
# **getGetFinanceSettings**
|
|
742
790
|
> AccountFinanceDTO getGetFinanceSettings()
|
|
743
791
|
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# CustomerCoordinatesDTO
|
|
2
|
+
|
|
3
|
+
Customer Coordinates
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**id** | **string** | ID | [optional] [default to undefined]
|
|
10
|
+
**company** | **string** | Company | [optional] [default to undefined]
|
|
11
|
+
**resellerId** | **string** | 3CX Reseller ID | [optional] [default to undefined]
|
|
12
|
+
**postCode** | **string** | Post Code | [optional] [default to undefined]
|
|
13
|
+
**latitude** | **string** | Latitude | [optional] [default to undefined]
|
|
14
|
+
**longitude** | **string** | Longitude | [optional] [default to undefined]
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import { CustomerCoordinatesDTO } from 'yellowgrid-api-ts';
|
|
20
|
+
|
|
21
|
+
const instance: CustomerCoordinatesDTO = {
|
|
22
|
+
id,
|
|
23
|
+
company,
|
|
24
|
+
resellerId,
|
|
25
|
+
postCode,
|
|
26
|
+
latitude,
|
|
27
|
+
longitude,
|
|
28
|
+
};
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
[[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/docs/TableDTO.md
CHANGED
|
@@ -6,6 +6,7 @@ Table
|
|
|
6
6
|
|
|
7
7
|
Name | Type | Description | Notes
|
|
8
8
|
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**title** | **string** | Title | [optional] [default to undefined]
|
|
9
10
|
**headers** | [**TableRowDTO**](TableRowDTO.md) | | [optional] [default to undefined]
|
|
10
11
|
**rows** | [**Array<TableRowDTO>**](TableRowDTO.md) | Rows | [optional] [default to undefined]
|
|
11
12
|
|
|
@@ -15,6 +16,7 @@ Name | Type | Description | Notes
|
|
|
15
16
|
import { TableDTO } from 'yellowgrid-api-ts';
|
|
16
17
|
|
|
17
18
|
const instance: TableDTO = {
|
|
19
|
+
title,
|
|
18
20
|
headers,
|
|
19
21
|
rows,
|
|
20
22
|
};
|
|
@@ -28,6 +28,11 @@ export const HostingPriceListEnum = {
|
|
|
28
28
|
"name": "HOSTING_WHOLESALE",
|
|
29
29
|
"value": 6,
|
|
30
30
|
"publicValue": "Hosting Only (Wholesale)"
|
|
31
|
+
},
|
|
32
|
+
"HOSTING_ITSP": {
|
|
33
|
+
"name": "HOSTING_ITSP",
|
|
34
|
+
"value": 7,
|
|
35
|
+
"publicValue": "Hosting Only (ITSP)"
|
|
31
36
|
}
|
|
32
37
|
} as const;
|
|
33
38
|
|