yellowgrid-api-ts 3.2.132-dev.0 → 3.2.134-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 +3 -0
- package/README.md +6 -0
- package/api.ts +416 -0
- package/dist/api.d.ts +247 -0
- package/dist/api.js +389 -3
- package/docs/ProspectDTO.md +35 -0
- package/docs/ProspectEntity.md +41 -0
- package/docs/ProspectsApi.md +226 -0
- package/package.json +1 -1
package/dist/api.js
CHANGED
|
@@ -84,9 +84,10 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
84
84
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
85
85
|
};
|
|
86
86
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
87
|
-
exports.
|
|
88
|
-
exports.
|
|
89
|
-
exports.
|
|
87
|
+
exports.Class3CXApi = exports.Class3CXApiFactory = exports.Class3CXApiFp = exports.Class3CXApiAxiosParamCreator = exports.GetGetCrmActivitiesTypeEnum = exports.CRMApi = exports.CRMApiFactory = exports.CRMApiFp = exports.CRMApiAxiosParamCreator = exports.PatchSetPrizePromoStateEnum = exports.PatchSetPortalAccessStateEnum = exports.AccountsApi = exports.AccountsApiFactory = exports.AccountsApiFp = exports.AccountsApiAxiosParamCreator = exports.UpgradeRequestModelSchoolTypeEnum = exports.UpgradeRequestModelLicenceTypeEnum = exports.TcxWizardModelInstallationStatusEnum = exports.TcxWizardModelInstallTypeEnum = exports.TcxSetupEntityRegionEnum = exports.TcxSetupEntityInstallTypeEnum = exports.TcxMultiTenantModelPackageEnum = exports.StockOrderModelPaidEnum = exports.StockOrderModelDeliveryMethodEnum = exports.SmsResponseModelEventTypeEnum = exports.SmsPhoneNumberModelStatusEnum = exports.SmsAccountRequestDTOTypeEnum = exports.SmsAccountRequestDTOProviderEnum = exports.SipTrunkChangeResponseModelTypeEnum = exports.ShippingServiceModelCourierEnum = exports.ShippingServiceDTOCourierEnum = exports.ShippingRequestDTOPrinterEnum = exports.ShippingRequestDTOCourierEnum = exports.ShipmentRequestDTOCourierEnum = exports.ShipmentDTOCourierEnum = exports.ServiceStatusDTOStatusEnum = exports.ServiceHealthDTOGlobalStatusEnum = exports.ProspectDTOStatusEnum = exports.OrderTotalModelCurrencyEnum = exports.OrderRequestModelSchoolTypeEnum = exports.OrderRequestModelLicenceTypeEnum = exports.MultiTenantChangeResponseModelTypeEnum = exports.ItemDiscountEntityTypeEnum = exports.HostingRegionDTOCodeEnum = exports.HostingChangeResponseModelTypeEnum = exports.EventDTOStatusEnum = exports.DivertResponseModelStatusEnum = exports.AuditLogEntityTypeEnum = exports.AuditLogEntityActionEnum = exports.AdminUserModelRoleEnum = void 0;
|
|
88
|
+
exports.PricingApiFactory = exports.PricingApiFp = exports.PricingApiAxiosParamCreator = exports.PostPrintShippingLabelPrinterEnum = exports.GetGetOrdersFilterEnum = exports.GetGetOrdersStatusEnum = exports.OrdersApi = exports.OrdersApiFactory = exports.OrdersApiFp = exports.OrdersApiAxiosParamCreator = exports.PostAuthoriseScopeEnum = exports.PostAccessTokenTokenExchangeTypeEnum = exports.PostAccessTokenScopeEnum = exports.PostAccessTokenGrantTypeEnum = exports.OAuth20Api = exports.OAuth20ApiFactory = exports.OAuth20ApiFp = exports.OAuth20ApiAxiosParamCreator = exports.NumberPortingApi = exports.NumberPortingApiFactory = exports.NumberPortingApiFp = exports.NumberPortingApiAxiosParamCreator = exports.MyPBXToolsApi = exports.MyPBXToolsApiFactory = exports.MyPBXToolsApiFp = exports.MyPBXToolsApiAxiosParamCreator = exports.GetGetTenantsStatusEnum = exports.Class3CXMultiTenantApi = exports.Class3CXMultiTenantApiFactory = exports.Class3CXMultiTenantApiFp = exports.Class3CXMultiTenantApiAxiosParamCreator = exports.GetGetPriceSchoolTypeEnum = exports.GetGetPriceLicenceTypeEnum = exports.Class3CXIntegrationsApi = exports.Class3CXIntegrationsApiFactory = exports.Class3CXIntegrationsApiFp = exports.Class3CXIntegrationsApiAxiosParamCreator = exports.PostResizeInstanceSizeEnum = exports.PostFailoverInstanceTypeEnum = exports.GetGetInstallationsInstallTypeEnum = exports.GetGetInstallationsHostingEnum = exports.GetGetInstallationsStatusEnum = exports.Class3CXInstallationsApi = exports.Class3CXInstallationsApiFactory = exports.Class3CXInstallationsApiFp = exports.Class3CXInstallationsApiAxiosParamCreator = exports.Class3CXInstallationWizardApi = exports.Class3CXInstallationWizardApiFactory = exports.Class3CXInstallationWizardApiFp = exports.Class3CXInstallationWizardApiAxiosParamCreator = void 0;
|
|
89
|
+
exports.WebhooksApiFp = exports.WebhooksApiAxiosParamCreator = exports.TicketsApi = exports.TicketsApiFactory = exports.TicketsApiFp = exports.TicketsApiAxiosParamCreator = exports.SystemApi = exports.SystemApiFactory = exports.SystemApiFp = exports.SystemApiAxiosParamCreator = exports.StockManagementApi = exports.StockManagementApiFactory = exports.StockManagementApiFp = exports.StockManagementApiAxiosParamCreator = exports.ShippingApi = exports.ShippingApiFactory = exports.ShippingApiFp = exports.ShippingApiAxiosParamCreator = exports.ServicesApi = exports.ServicesApiFactory = exports.ServicesApiFp = exports.ServicesApiAxiosParamCreator = exports.SMSApi = exports.SMSApiFactory = exports.SMSApiFp = exports.SMSApiAxiosParamCreator = exports.SIPTrunksApi = exports.SIPTrunksApiFactory = exports.SIPTrunksApiFp = exports.SIPTrunksApiAxiosParamCreator = exports.ProvisioningApi = exports.ProvisioningApiFactory = exports.ProvisioningApiFp = exports.ProvisioningApiAxiosParamCreator = exports.ProspectsApi = exports.ProspectsApiFactory = exports.ProspectsApiFp = exports.ProspectsApiAxiosParamCreator = exports.GetGetLegacyStockListFormatEnum = exports.ProductsApi = exports.ProductsApiFactory = exports.ProductsApiFp = exports.ProductsApiAxiosParamCreator = exports.PostSendPriceListCategoryEnum = exports.PostSendPriceListFormatEnum = exports.PostSendPriceListTypeEnum = exports.GetGetPriceListCategoryEnum = exports.GetGetPriceListFormatEnum = exports.GetGetPriceListTypeEnum = exports.PricingApi = void 0;
|
|
90
|
+
exports.PostAddWebhookWebhookUriEnum = exports.WebhooksApi = exports.WebhooksApiFactory = void 0;
|
|
90
91
|
var axios_1 = require("axios");
|
|
91
92
|
// Some imports not used depending on template conditions
|
|
92
93
|
// @ts-ignore
|
|
@@ -147,6 +148,7 @@ exports.AuditLogEntityTypeEnum = {
|
|
|
147
148
|
PopsPromoCodes: 'pops_promo_codes',
|
|
148
149
|
PopsPromoItems: 'pops_promo_items',
|
|
149
150
|
PopsProvisioning: 'pops_provisioning',
|
|
151
|
+
PopsProspectsV2: 'pops_prospects_v2',
|
|
150
152
|
S3Buckets: 's3_buckets',
|
|
151
153
|
PopsShipmentAddress: 'pops_shipment_address',
|
|
152
154
|
PopsShipments: 'pops_shipments',
|
|
@@ -271,6 +273,13 @@ exports.OrderTotalModelCurrencyEnum = {
|
|
|
271
273
|
Thb: 'THB',
|
|
272
274
|
Zar: 'ZAR'
|
|
273
275
|
};
|
|
276
|
+
exports.ProspectDTOStatusEnum = {
|
|
277
|
+
NoCallBackSet: 'No Call Back Set',
|
|
278
|
+
CallBackDue: 'Call Back Due',
|
|
279
|
+
NoOrdersPlaced: 'No Orders Placed',
|
|
280
|
+
NoOrdersInTheLast4Months: 'No Orders In The Last 4 Months',
|
|
281
|
+
NoActionRequired: 'No Action Required'
|
|
282
|
+
};
|
|
274
283
|
exports.ServiceHealthDTOGlobalStatusEnum = {
|
|
275
284
|
NUMBER_0: 0,
|
|
276
285
|
NUMBER_1: 1,
|
|
@@ -15369,6 +15378,383 @@ exports.GetGetLegacyStockListFormatEnum = {
|
|
|
15369
15378
|
Xml: 'XML',
|
|
15370
15379
|
Csv: 'CSV'
|
|
15371
15380
|
};
|
|
15381
|
+
/**
|
|
15382
|
+
* ProspectsApi - axios parameter creator
|
|
15383
|
+
*/
|
|
15384
|
+
var ProspectsApiAxiosParamCreator = function (configuration) {
|
|
15385
|
+
var _this = this;
|
|
15386
|
+
return {
|
|
15387
|
+
/**
|
|
15388
|
+
* Get Prospect
|
|
15389
|
+
* @summary Get Prospect
|
|
15390
|
+
* @param {string} xeroId Xero ID
|
|
15391
|
+
* @param {*} [options] Override http request option.
|
|
15392
|
+
* @throws {RequiredError}
|
|
15393
|
+
*/
|
|
15394
|
+
getGetProspect: function (xeroId_1) {
|
|
15395
|
+
var args_1 = [];
|
|
15396
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
15397
|
+
args_1[_i - 1] = arguments[_i];
|
|
15398
|
+
}
|
|
15399
|
+
return __awaiter(_this, __spreadArray([xeroId_1], args_1, true), void 0, function (xeroId, options) {
|
|
15400
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
15401
|
+
if (options === void 0) { options = {}; }
|
|
15402
|
+
return __generator(this, function (_a) {
|
|
15403
|
+
// verify required parameter 'xeroId' is not null or undefined
|
|
15404
|
+
(0, common_1.assertParamExists)('getGetProspect', 'xeroId', xeroId);
|
|
15405
|
+
localVarPath = "/accounts/prospects/{xero_id}"
|
|
15406
|
+
.replace("{".concat("xero_id", "}"), encodeURIComponent(String(xeroId)));
|
|
15407
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
15408
|
+
if (configuration) {
|
|
15409
|
+
baseOptions = configuration.baseOptions;
|
|
15410
|
+
}
|
|
15411
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
15412
|
+
localVarHeaderParameter = {};
|
|
15413
|
+
localVarQueryParameter = {};
|
|
15414
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
15415
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
15416
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15417
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
15418
|
+
return [2 /*return*/, {
|
|
15419
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
15420
|
+
options: localVarRequestOptions,
|
|
15421
|
+
}];
|
|
15422
|
+
});
|
|
15423
|
+
});
|
|
15424
|
+
},
|
|
15425
|
+
/**
|
|
15426
|
+
* Get Prospects
|
|
15427
|
+
* @summary Get Prospects
|
|
15428
|
+
* @param {*} [options] Override http request option.
|
|
15429
|
+
* @throws {RequiredError}
|
|
15430
|
+
*/
|
|
15431
|
+
getGetProspects: function () {
|
|
15432
|
+
var args_1 = [];
|
|
15433
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
15434
|
+
args_1[_i] = arguments[_i];
|
|
15435
|
+
}
|
|
15436
|
+
return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
|
|
15437
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
15438
|
+
if (options === void 0) { options = {}; }
|
|
15439
|
+
return __generator(this, function (_a) {
|
|
15440
|
+
localVarPath = "/accounts/prospects";
|
|
15441
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
15442
|
+
if (configuration) {
|
|
15443
|
+
baseOptions = configuration.baseOptions;
|
|
15444
|
+
}
|
|
15445
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
15446
|
+
localVarHeaderParameter = {};
|
|
15447
|
+
localVarQueryParameter = {};
|
|
15448
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
15449
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
15450
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15451
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
15452
|
+
return [2 /*return*/, {
|
|
15453
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
15454
|
+
options: localVarRequestOptions,
|
|
15455
|
+
}];
|
|
15456
|
+
});
|
|
15457
|
+
});
|
|
15458
|
+
},
|
|
15459
|
+
/**
|
|
15460
|
+
* Remove From Prospect
|
|
15461
|
+
* @summary Remove From Prospects
|
|
15462
|
+
* @param {string} xeroId Xero ID
|
|
15463
|
+
* @param {boolean} status Status
|
|
15464
|
+
* @param {*} [options] Override http request option.
|
|
15465
|
+
* @throws {RequiredError}
|
|
15466
|
+
*/
|
|
15467
|
+
getRemoveFromProspects: function (xeroId_1, status_1) {
|
|
15468
|
+
var args_1 = [];
|
|
15469
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
15470
|
+
args_1[_i - 2] = arguments[_i];
|
|
15471
|
+
}
|
|
15472
|
+
return __awaiter(_this, __spreadArray([xeroId_1, status_1], args_1, true), void 0, function (xeroId, status, options) {
|
|
15473
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
15474
|
+
if (options === void 0) { options = {}; }
|
|
15475
|
+
return __generator(this, function (_a) {
|
|
15476
|
+
// verify required parameter 'xeroId' is not null or undefined
|
|
15477
|
+
(0, common_1.assertParamExists)('getRemoveFromProspects', 'xeroId', xeroId);
|
|
15478
|
+
// verify required parameter 'status' is not null or undefined
|
|
15479
|
+
(0, common_1.assertParamExists)('getRemoveFromProspects', 'status', status);
|
|
15480
|
+
localVarPath = "/accounts/prospects/{xero_id}/remove"
|
|
15481
|
+
.replace("{".concat("xero_id", "}"), encodeURIComponent(String(xeroId)));
|
|
15482
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
15483
|
+
if (configuration) {
|
|
15484
|
+
baseOptions = configuration.baseOptions;
|
|
15485
|
+
}
|
|
15486
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
15487
|
+
localVarHeaderParameter = {};
|
|
15488
|
+
localVarQueryParameter = {};
|
|
15489
|
+
if (status !== undefined) {
|
|
15490
|
+
localVarQueryParameter['status'] = status;
|
|
15491
|
+
}
|
|
15492
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
15493
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
15494
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15495
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
15496
|
+
return [2 /*return*/, {
|
|
15497
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
15498
|
+
options: localVarRequestOptions,
|
|
15499
|
+
}];
|
|
15500
|
+
});
|
|
15501
|
+
});
|
|
15502
|
+
},
|
|
15503
|
+
/**
|
|
15504
|
+
* Set Call Back Date
|
|
15505
|
+
* @summary Set Call Back Date
|
|
15506
|
+
* @param {string} xeroId Xero ID
|
|
15507
|
+
* @param {string} date Callback Date
|
|
15508
|
+
* @param {*} [options] Override http request option.
|
|
15509
|
+
* @throws {RequiredError}
|
|
15510
|
+
*/
|
|
15511
|
+
getSetCallback: function (xeroId_1, date_1) {
|
|
15512
|
+
var args_1 = [];
|
|
15513
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
15514
|
+
args_1[_i - 2] = arguments[_i];
|
|
15515
|
+
}
|
|
15516
|
+
return __awaiter(_this, __spreadArray([xeroId_1, date_1], args_1, true), void 0, function (xeroId, date, options) {
|
|
15517
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
15518
|
+
if (options === void 0) { options = {}; }
|
|
15519
|
+
return __generator(this, function (_a) {
|
|
15520
|
+
// verify required parameter 'xeroId' is not null or undefined
|
|
15521
|
+
(0, common_1.assertParamExists)('getSetCallback', 'xeroId', xeroId);
|
|
15522
|
+
// verify required parameter 'date' is not null or undefined
|
|
15523
|
+
(0, common_1.assertParamExists)('getSetCallback', 'date', date);
|
|
15524
|
+
localVarPath = "/accounts/prospects/{xero_id}/date"
|
|
15525
|
+
.replace("{".concat("xero_id", "}"), encodeURIComponent(String(xeroId)));
|
|
15526
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
15527
|
+
if (configuration) {
|
|
15528
|
+
baseOptions = configuration.baseOptions;
|
|
15529
|
+
}
|
|
15530
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
15531
|
+
localVarHeaderParameter = {};
|
|
15532
|
+
localVarQueryParameter = {};
|
|
15533
|
+
if (date !== undefined) {
|
|
15534
|
+
localVarQueryParameter['date'] = date;
|
|
15535
|
+
}
|
|
15536
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
15537
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
15538
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15539
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
15540
|
+
return [2 /*return*/, {
|
|
15541
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
15542
|
+
options: localVarRequestOptions,
|
|
15543
|
+
}];
|
|
15544
|
+
});
|
|
15545
|
+
});
|
|
15546
|
+
},
|
|
15547
|
+
};
|
|
15548
|
+
};
|
|
15549
|
+
exports.ProspectsApiAxiosParamCreator = ProspectsApiAxiosParamCreator;
|
|
15550
|
+
/**
|
|
15551
|
+
* ProspectsApi - functional programming interface
|
|
15552
|
+
*/
|
|
15553
|
+
var ProspectsApiFp = function (configuration) {
|
|
15554
|
+
var localVarAxiosParamCreator = (0, exports.ProspectsApiAxiosParamCreator)(configuration);
|
|
15555
|
+
return {
|
|
15556
|
+
/**
|
|
15557
|
+
* Get Prospect
|
|
15558
|
+
* @summary Get Prospect
|
|
15559
|
+
* @param {string} xeroId Xero ID
|
|
15560
|
+
* @param {*} [options] Override http request option.
|
|
15561
|
+
* @throws {RequiredError}
|
|
15562
|
+
*/
|
|
15563
|
+
getGetProspect: function (xeroId, options) {
|
|
15564
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
15565
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
15566
|
+
var _a, _b, _c;
|
|
15567
|
+
return __generator(this, function (_d) {
|
|
15568
|
+
switch (_d.label) {
|
|
15569
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetProspect(xeroId, options)];
|
|
15570
|
+
case 1:
|
|
15571
|
+
localVarAxiosArgs = _d.sent();
|
|
15572
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
15573
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProspectsApi.getGetProspect']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
15574
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
15575
|
+
}
|
|
15576
|
+
});
|
|
15577
|
+
});
|
|
15578
|
+
},
|
|
15579
|
+
/**
|
|
15580
|
+
* Get Prospects
|
|
15581
|
+
* @summary Get Prospects
|
|
15582
|
+
* @param {*} [options] Override http request option.
|
|
15583
|
+
* @throws {RequiredError}
|
|
15584
|
+
*/
|
|
15585
|
+
getGetProspects: function (options) {
|
|
15586
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
15587
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
15588
|
+
var _a, _b, _c;
|
|
15589
|
+
return __generator(this, function (_d) {
|
|
15590
|
+
switch (_d.label) {
|
|
15591
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetProspects(options)];
|
|
15592
|
+
case 1:
|
|
15593
|
+
localVarAxiosArgs = _d.sent();
|
|
15594
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
15595
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProspectsApi.getGetProspects']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
15596
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
15597
|
+
}
|
|
15598
|
+
});
|
|
15599
|
+
});
|
|
15600
|
+
},
|
|
15601
|
+
/**
|
|
15602
|
+
* Remove From Prospect
|
|
15603
|
+
* @summary Remove From Prospects
|
|
15604
|
+
* @param {string} xeroId Xero ID
|
|
15605
|
+
* @param {boolean} status Status
|
|
15606
|
+
* @param {*} [options] Override http request option.
|
|
15607
|
+
* @throws {RequiredError}
|
|
15608
|
+
*/
|
|
15609
|
+
getRemoveFromProspects: function (xeroId, status, options) {
|
|
15610
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
15611
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
15612
|
+
var _a, _b, _c;
|
|
15613
|
+
return __generator(this, function (_d) {
|
|
15614
|
+
switch (_d.label) {
|
|
15615
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getRemoveFromProspects(xeroId, status, options)];
|
|
15616
|
+
case 1:
|
|
15617
|
+
localVarAxiosArgs = _d.sent();
|
|
15618
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
15619
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProspectsApi.getRemoveFromProspects']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
15620
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
15621
|
+
}
|
|
15622
|
+
});
|
|
15623
|
+
});
|
|
15624
|
+
},
|
|
15625
|
+
/**
|
|
15626
|
+
* Set Call Back Date
|
|
15627
|
+
* @summary Set Call Back Date
|
|
15628
|
+
* @param {string} xeroId Xero ID
|
|
15629
|
+
* @param {string} date Callback Date
|
|
15630
|
+
* @param {*} [options] Override http request option.
|
|
15631
|
+
* @throws {RequiredError}
|
|
15632
|
+
*/
|
|
15633
|
+
getSetCallback: function (xeroId, date, options) {
|
|
15634
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
15635
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
15636
|
+
var _a, _b, _c;
|
|
15637
|
+
return __generator(this, function (_d) {
|
|
15638
|
+
switch (_d.label) {
|
|
15639
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getSetCallback(xeroId, date, options)];
|
|
15640
|
+
case 1:
|
|
15641
|
+
localVarAxiosArgs = _d.sent();
|
|
15642
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
15643
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProspectsApi.getSetCallback']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
15644
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
15645
|
+
}
|
|
15646
|
+
});
|
|
15647
|
+
});
|
|
15648
|
+
},
|
|
15649
|
+
};
|
|
15650
|
+
};
|
|
15651
|
+
exports.ProspectsApiFp = ProspectsApiFp;
|
|
15652
|
+
/**
|
|
15653
|
+
* ProspectsApi - factory interface
|
|
15654
|
+
*/
|
|
15655
|
+
var ProspectsApiFactory = function (configuration, basePath, axios) {
|
|
15656
|
+
var localVarFp = (0, exports.ProspectsApiFp)(configuration);
|
|
15657
|
+
return {
|
|
15658
|
+
/**
|
|
15659
|
+
* Get Prospect
|
|
15660
|
+
* @summary Get Prospect
|
|
15661
|
+
* @param {string} xeroId Xero ID
|
|
15662
|
+
* @param {*} [options] Override http request option.
|
|
15663
|
+
* @throws {RequiredError}
|
|
15664
|
+
*/
|
|
15665
|
+
getGetProspect: function (xeroId, options) {
|
|
15666
|
+
return localVarFp.getGetProspect(xeroId, options).then(function (request) { return request(axios, basePath); });
|
|
15667
|
+
},
|
|
15668
|
+
/**
|
|
15669
|
+
* Get Prospects
|
|
15670
|
+
* @summary Get Prospects
|
|
15671
|
+
* @param {*} [options] Override http request option.
|
|
15672
|
+
* @throws {RequiredError}
|
|
15673
|
+
*/
|
|
15674
|
+
getGetProspects: function (options) {
|
|
15675
|
+
return localVarFp.getGetProspects(options).then(function (request) { return request(axios, basePath); });
|
|
15676
|
+
},
|
|
15677
|
+
/**
|
|
15678
|
+
* Remove From Prospect
|
|
15679
|
+
* @summary Remove From Prospects
|
|
15680
|
+
* @param {string} xeroId Xero ID
|
|
15681
|
+
* @param {boolean} status Status
|
|
15682
|
+
* @param {*} [options] Override http request option.
|
|
15683
|
+
* @throws {RequiredError}
|
|
15684
|
+
*/
|
|
15685
|
+
getRemoveFromProspects: function (xeroId, status, options) {
|
|
15686
|
+
return localVarFp.getRemoveFromProspects(xeroId, status, options).then(function (request) { return request(axios, basePath); });
|
|
15687
|
+
},
|
|
15688
|
+
/**
|
|
15689
|
+
* Set Call Back Date
|
|
15690
|
+
* @summary Set Call Back Date
|
|
15691
|
+
* @param {string} xeroId Xero ID
|
|
15692
|
+
* @param {string} date Callback Date
|
|
15693
|
+
* @param {*} [options] Override http request option.
|
|
15694
|
+
* @throws {RequiredError}
|
|
15695
|
+
*/
|
|
15696
|
+
getSetCallback: function (xeroId, date, options) {
|
|
15697
|
+
return localVarFp.getSetCallback(xeroId, date, options).then(function (request) { return request(axios, basePath); });
|
|
15698
|
+
},
|
|
15699
|
+
};
|
|
15700
|
+
};
|
|
15701
|
+
exports.ProspectsApiFactory = ProspectsApiFactory;
|
|
15702
|
+
/**
|
|
15703
|
+
* ProspectsApi - object-oriented interface
|
|
15704
|
+
*/
|
|
15705
|
+
var ProspectsApi = /** @class */ (function (_super) {
|
|
15706
|
+
__extends(ProspectsApi, _super);
|
|
15707
|
+
function ProspectsApi() {
|
|
15708
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
15709
|
+
}
|
|
15710
|
+
/**
|
|
15711
|
+
* Get Prospect
|
|
15712
|
+
* @summary Get Prospect
|
|
15713
|
+
* @param {string} xeroId Xero ID
|
|
15714
|
+
* @param {*} [options] Override http request option.
|
|
15715
|
+
* @throws {RequiredError}
|
|
15716
|
+
*/
|
|
15717
|
+
ProspectsApi.prototype.getGetProspect = function (xeroId, options) {
|
|
15718
|
+
var _this = this;
|
|
15719
|
+
return (0, exports.ProspectsApiFp)(this.configuration).getGetProspect(xeroId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
15720
|
+
};
|
|
15721
|
+
/**
|
|
15722
|
+
* Get Prospects
|
|
15723
|
+
* @summary Get Prospects
|
|
15724
|
+
* @param {*} [options] Override http request option.
|
|
15725
|
+
* @throws {RequiredError}
|
|
15726
|
+
*/
|
|
15727
|
+
ProspectsApi.prototype.getGetProspects = function (options) {
|
|
15728
|
+
var _this = this;
|
|
15729
|
+
return (0, exports.ProspectsApiFp)(this.configuration).getGetProspects(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
15730
|
+
};
|
|
15731
|
+
/**
|
|
15732
|
+
* Remove From Prospect
|
|
15733
|
+
* @summary Remove From Prospects
|
|
15734
|
+
* @param {string} xeroId Xero ID
|
|
15735
|
+
* @param {boolean} status Status
|
|
15736
|
+
* @param {*} [options] Override http request option.
|
|
15737
|
+
* @throws {RequiredError}
|
|
15738
|
+
*/
|
|
15739
|
+
ProspectsApi.prototype.getRemoveFromProspects = function (xeroId, status, options) {
|
|
15740
|
+
var _this = this;
|
|
15741
|
+
return (0, exports.ProspectsApiFp)(this.configuration).getRemoveFromProspects(xeroId, status, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
15742
|
+
};
|
|
15743
|
+
/**
|
|
15744
|
+
* Set Call Back Date
|
|
15745
|
+
* @summary Set Call Back Date
|
|
15746
|
+
* @param {string} xeroId Xero ID
|
|
15747
|
+
* @param {string} date Callback Date
|
|
15748
|
+
* @param {*} [options] Override http request option.
|
|
15749
|
+
* @throws {RequiredError}
|
|
15750
|
+
*/
|
|
15751
|
+
ProspectsApi.prototype.getSetCallback = function (xeroId, date, options) {
|
|
15752
|
+
var _this = this;
|
|
15753
|
+
return (0, exports.ProspectsApiFp)(this.configuration).getSetCallback(xeroId, date, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
15754
|
+
};
|
|
15755
|
+
return ProspectsApi;
|
|
15756
|
+
}(base_1.BaseAPI));
|
|
15757
|
+
exports.ProspectsApi = ProspectsApi;
|
|
15372
15758
|
/**
|
|
15373
15759
|
* ProvisioningApi - axios parameter creator
|
|
15374
15760
|
*/
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# ProspectDTO
|
|
2
|
+
|
|
3
|
+
Prospect
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**companyName** | **string** | Company Name | [optional] [default to undefined]
|
|
10
|
+
**telephone** | **string** | Telephone | [optional] [default to undefined]
|
|
11
|
+
**lastOrderDate** | **string** | Date Time | [optional] [default to undefined]
|
|
12
|
+
**callbackDate** | **string** | Date Time | [optional] [default to undefined]
|
|
13
|
+
**xeroId** | **string** | Xero ID | [optional] [default to undefined]
|
|
14
|
+
**removed** | **boolean** | Removed From Prospects | [optional] [default to undefined]
|
|
15
|
+
**status** | **string** | Status | [optional] [default to undefined]
|
|
16
|
+
**orderCount** | **number** | Order Count | [optional] [default to undefined]
|
|
17
|
+
|
|
18
|
+
## Example
|
|
19
|
+
|
|
20
|
+
```typescript
|
|
21
|
+
import { ProspectDTO } from 'yellowgrid-api-ts';
|
|
22
|
+
|
|
23
|
+
const instance: ProspectDTO = {
|
|
24
|
+
companyName,
|
|
25
|
+
telephone,
|
|
26
|
+
lastOrderDate,
|
|
27
|
+
callbackDate,
|
|
28
|
+
xeroId,
|
|
29
|
+
removed,
|
|
30
|
+
status,
|
|
31
|
+
orderCount,
|
|
32
|
+
};
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# ProspectEntity
|
|
2
|
+
|
|
3
|
+
ProspectEntity
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**id** | **number** | id | [optional] [default to undefined]
|
|
10
|
+
**status** | **number** | status | [optional] [default to undefined]
|
|
11
|
+
**customerId** | **number** | customerId | [optional] [default to undefined]
|
|
12
|
+
**companyName** | **string** | companyName | [optional] [default to undefined]
|
|
13
|
+
**contactName** | **string** | contactName | [optional] [default to undefined]
|
|
14
|
+
**telephone** | **string** | telephone | [optional] [default to undefined]
|
|
15
|
+
**email** | **string** | email | [optional] [default to undefined]
|
|
16
|
+
**reason** | **string** | reason | [optional] [default to undefined]
|
|
17
|
+
**lastOrderDate** | **string** | lastOrderDate | [optional] [default to undefined]
|
|
18
|
+
**followUpDate** | **string** | followUpDate | [optional] [default to undefined]
|
|
19
|
+
**notes** | **string** | notes | [optional] [default to undefined]
|
|
20
|
+
|
|
21
|
+
## Example
|
|
22
|
+
|
|
23
|
+
```typescript
|
|
24
|
+
import { ProspectEntity } from 'yellowgrid-api-ts';
|
|
25
|
+
|
|
26
|
+
const instance: ProspectEntity = {
|
|
27
|
+
id,
|
|
28
|
+
status,
|
|
29
|
+
customerId,
|
|
30
|
+
companyName,
|
|
31
|
+
contactName,
|
|
32
|
+
telephone,
|
|
33
|
+
email,
|
|
34
|
+
reason,
|
|
35
|
+
lastOrderDate,
|
|
36
|
+
followUpDate,
|
|
37
|
+
notes,
|
|
38
|
+
};
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|