yellowgrid-api-ts 3.1.15-dev.0 → 3.1.16-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 +140 -0
- package/dist/api.d.ts +98 -0
- package/dist/api.js +90 -0
- package/docs/AuditLogEntity.md +37 -0
- package/docs/ShippingApi.md +59 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
package/README.md
CHANGED
|
@@ -185,6 +185,7 @@ Class | Method | HTTP request | Description
|
|
|
185
185
|
*SIPTrunksApi* | [**putGetAddress**](docs/SIPTrunksApi.md#putgetaddress) | **PUT** /sip/trunks/{id}/address | Update SIP Trunk Address
|
|
186
186
|
*SIPTrunksApi* | [**putGetDiverts**](docs/SIPTrunksApi.md#putgetdiverts) | **PUT** /sip/trunks/{id}/diverts | Update SIP Trunk Diverts
|
|
187
187
|
*SMSApi* | [**postSendSms**](docs/SMSApi.md#postsendsms) | **POST** /messaging/sms/send |
|
|
188
|
+
*ShippingApi* | [**postGetAdminShippingServices**](docs/ShippingApi.md#postgetadminshippingservices) | **POST** /admin/shipping/services | Get Shipping Services
|
|
188
189
|
*ShippingApi* | [**postGetShippingServices**](docs/ShippingApi.md#postgetshippingservices) | **POST** /shipping/services | Get Shipping Services
|
|
189
190
|
*StockManagementApi* | [**deleteDeleteStockOrder**](docs/StockManagementApi.md#deletedeletestockorder) | **DELETE** /stock/orders/{id} | Delete Stock Order
|
|
190
191
|
*StockManagementApi* | [**deleteDeleteStockOrderDeduction**](docs/StockManagementApi.md#deletedeletestockorderdeduction) | **DELETE** /stock/orders/{order_id}/deductions/{deduction_id} | Delete Stock Order Deduction
|
|
@@ -240,6 +241,7 @@ Class | Method | HTTP request | Description
|
|
|
240
241
|
- [AreaCodeModel](docs/AreaCodeModel.md)
|
|
241
242
|
- [AttachmentModel](docs/AttachmentModel.md)
|
|
242
243
|
- [AttributeSetEnum](docs/AttributeSetEnum.md)
|
|
244
|
+
- [AuditLogEntity](docs/AuditLogEntity.md)
|
|
243
245
|
- [AuthCodeResponseModel](docs/AuthCodeResponseModel.md)
|
|
244
246
|
- [BasicItemDTO](docs/BasicItemDTO.md)
|
|
245
247
|
- [BasicProductDTO](docs/BasicProductDTO.md)
|
package/api.ts
CHANGED
|
@@ -994,6 +994,67 @@ export interface AttributeSetEnum {
|
|
|
994
994
|
*/
|
|
995
995
|
'name'?: string;
|
|
996
996
|
}
|
|
997
|
+
/**
|
|
998
|
+
* AuditLogEntity
|
|
999
|
+
* @export
|
|
1000
|
+
* @interface AuditLogEntity
|
|
1001
|
+
*/
|
|
1002
|
+
export interface AuditLogEntity {
|
|
1003
|
+
/**
|
|
1004
|
+
* id
|
|
1005
|
+
* @type {number}
|
|
1006
|
+
* @memberof AuditLogEntity
|
|
1007
|
+
*/
|
|
1008
|
+
'id'?: number;
|
|
1009
|
+
/**
|
|
1010
|
+
* action
|
|
1011
|
+
* @type {string}
|
|
1012
|
+
* @memberof AuditLogEntity
|
|
1013
|
+
*/
|
|
1014
|
+
'action'?: string;
|
|
1015
|
+
/**
|
|
1016
|
+
* type
|
|
1017
|
+
* @type {string}
|
|
1018
|
+
* @memberof AuditLogEntity
|
|
1019
|
+
*/
|
|
1020
|
+
'type'?: string;
|
|
1021
|
+
/**
|
|
1022
|
+
* identifier
|
|
1023
|
+
* @type {string}
|
|
1024
|
+
* @memberof AuditLogEntity
|
|
1025
|
+
*/
|
|
1026
|
+
'identifier'?: string;
|
|
1027
|
+
/**
|
|
1028
|
+
* user
|
|
1029
|
+
* @type {string}
|
|
1030
|
+
* @memberof AuditLogEntity
|
|
1031
|
+
*/
|
|
1032
|
+
'user'?: string;
|
|
1033
|
+
/**
|
|
1034
|
+
* timestamp
|
|
1035
|
+
* @type {string}
|
|
1036
|
+
* @memberof AuditLogEntity
|
|
1037
|
+
*/
|
|
1038
|
+
'timestamp'?: string;
|
|
1039
|
+
/**
|
|
1040
|
+
* beforeData
|
|
1041
|
+
* @type {string}
|
|
1042
|
+
* @memberof AuditLogEntity
|
|
1043
|
+
*/
|
|
1044
|
+
'beforeData'?: string;
|
|
1045
|
+
/**
|
|
1046
|
+
* afterData
|
|
1047
|
+
* @type {string}
|
|
1048
|
+
* @memberof AuditLogEntity
|
|
1049
|
+
*/
|
|
1050
|
+
'afterData'?: string;
|
|
1051
|
+
/**
|
|
1052
|
+
* description
|
|
1053
|
+
* @type {string}
|
|
1054
|
+
* @memberof AuditLogEntity
|
|
1055
|
+
*/
|
|
1056
|
+
'description'?: string;
|
|
1057
|
+
}
|
|
997
1058
|
/**
|
|
998
1059
|
* OAuth Auth Code Response
|
|
999
1060
|
* @export
|
|
@@ -20380,6 +20441,47 @@ export class SMSApi extends BaseAPI {
|
|
|
20380
20441
|
*/
|
|
20381
20442
|
export const ShippingApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
20382
20443
|
return {
|
|
20444
|
+
/**
|
|
20445
|
+
* Get Shipping Services (Admin)
|
|
20446
|
+
* @summary Get Shipping Services
|
|
20447
|
+
* @param {number} customerId Customer ID
|
|
20448
|
+
* @param {ShippingInformationDTO} [shippingInformationDTO] Shipping Information
|
|
20449
|
+
* @param {*} [options] Override http request option.
|
|
20450
|
+
* @throws {RequiredError}
|
|
20451
|
+
*/
|
|
20452
|
+
postGetAdminShippingServices: async (customerId: number, shippingInformationDTO?: ShippingInformationDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
20453
|
+
// verify required parameter 'customerId' is not null or undefined
|
|
20454
|
+
assertParamExists('postGetAdminShippingServices', 'customerId', customerId)
|
|
20455
|
+
const localVarPath = `/admin/shipping/services`;
|
|
20456
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
20457
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
20458
|
+
let baseOptions;
|
|
20459
|
+
if (configuration) {
|
|
20460
|
+
baseOptions = configuration.baseOptions;
|
|
20461
|
+
}
|
|
20462
|
+
|
|
20463
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
20464
|
+
const localVarHeaderParameter = {} as any;
|
|
20465
|
+
const localVarQueryParameter = {} as any;
|
|
20466
|
+
|
|
20467
|
+
if (customerId !== undefined) {
|
|
20468
|
+
localVarQueryParameter['customerId'] = customerId;
|
|
20469
|
+
}
|
|
20470
|
+
|
|
20471
|
+
|
|
20472
|
+
|
|
20473
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
20474
|
+
|
|
20475
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
20476
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
20477
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
20478
|
+
localVarRequestOptions.data = serializeDataIfNeeded(shippingInformationDTO, localVarRequestOptions, configuration)
|
|
20479
|
+
|
|
20480
|
+
return {
|
|
20481
|
+
url: toPathString(localVarUrlObj),
|
|
20482
|
+
options: localVarRequestOptions,
|
|
20483
|
+
};
|
|
20484
|
+
},
|
|
20383
20485
|
/**
|
|
20384
20486
|
* Get Shipping Services
|
|
20385
20487
|
* @summary Get Shipping Services
|
|
@@ -20424,6 +20526,20 @@ export const ShippingApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
20424
20526
|
export const ShippingApiFp = function(configuration?: Configuration) {
|
|
20425
20527
|
const localVarAxiosParamCreator = ShippingApiAxiosParamCreator(configuration)
|
|
20426
20528
|
return {
|
|
20529
|
+
/**
|
|
20530
|
+
* Get Shipping Services (Admin)
|
|
20531
|
+
* @summary Get Shipping Services
|
|
20532
|
+
* @param {number} customerId Customer ID
|
|
20533
|
+
* @param {ShippingInformationDTO} [shippingInformationDTO] Shipping Information
|
|
20534
|
+
* @param {*} [options] Override http request option.
|
|
20535
|
+
* @throws {RequiredError}
|
|
20536
|
+
*/
|
|
20537
|
+
async postGetAdminShippingServices(customerId: number, shippingInformationDTO?: ShippingInformationDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShippingServicesModel>> {
|
|
20538
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postGetAdminShippingServices(customerId, shippingInformationDTO, options);
|
|
20539
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
20540
|
+
const localVarOperationServerBasePath = operationServerMap['ShippingApi.postGetAdminShippingServices']?.[localVarOperationServerIndex]?.url;
|
|
20541
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
20542
|
+
},
|
|
20427
20543
|
/**
|
|
20428
20544
|
* Get Shipping Services
|
|
20429
20545
|
* @summary Get Shipping Services
|
|
@@ -20447,6 +20563,17 @@ export const ShippingApiFp = function(configuration?: Configuration) {
|
|
|
20447
20563
|
export const ShippingApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
20448
20564
|
const localVarFp = ShippingApiFp(configuration)
|
|
20449
20565
|
return {
|
|
20566
|
+
/**
|
|
20567
|
+
* Get Shipping Services (Admin)
|
|
20568
|
+
* @summary Get Shipping Services
|
|
20569
|
+
* @param {number} customerId Customer ID
|
|
20570
|
+
* @param {ShippingInformationDTO} [shippingInformationDTO] Shipping Information
|
|
20571
|
+
* @param {*} [options] Override http request option.
|
|
20572
|
+
* @throws {RequiredError}
|
|
20573
|
+
*/
|
|
20574
|
+
postGetAdminShippingServices(customerId: number, shippingInformationDTO?: ShippingInformationDTO, options?: RawAxiosRequestConfig): AxiosPromise<ShippingServicesModel> {
|
|
20575
|
+
return localVarFp.postGetAdminShippingServices(customerId, shippingInformationDTO, options).then((request) => request(axios, basePath));
|
|
20576
|
+
},
|
|
20450
20577
|
/**
|
|
20451
20578
|
* Get Shipping Services
|
|
20452
20579
|
* @summary Get Shipping Services
|
|
@@ -20467,6 +20594,19 @@ export const ShippingApiFactory = function (configuration?: Configuration, baseP
|
|
|
20467
20594
|
* @extends {BaseAPI}
|
|
20468
20595
|
*/
|
|
20469
20596
|
export class ShippingApi extends BaseAPI {
|
|
20597
|
+
/**
|
|
20598
|
+
* Get Shipping Services (Admin)
|
|
20599
|
+
* @summary Get Shipping Services
|
|
20600
|
+
* @param {number} customerId Customer ID
|
|
20601
|
+
* @param {ShippingInformationDTO} [shippingInformationDTO] Shipping Information
|
|
20602
|
+
* @param {*} [options] Override http request option.
|
|
20603
|
+
* @throws {RequiredError}
|
|
20604
|
+
* @memberof ShippingApi
|
|
20605
|
+
*/
|
|
20606
|
+
public postGetAdminShippingServices(customerId: number, shippingInformationDTO?: ShippingInformationDTO, options?: RawAxiosRequestConfig) {
|
|
20607
|
+
return ShippingApiFp(this.configuration).postGetAdminShippingServices(customerId, shippingInformationDTO, options).then((request) => request(this.axios, this.basePath));
|
|
20608
|
+
}
|
|
20609
|
+
|
|
20470
20610
|
/**
|
|
20471
20611
|
* Get Shipping Services
|
|
20472
20612
|
* @summary Get Shipping Services
|
package/dist/api.d.ts
CHANGED
|
@@ -981,6 +981,67 @@ export interface AttributeSetEnum {
|
|
|
981
981
|
*/
|
|
982
982
|
'name'?: string;
|
|
983
983
|
}
|
|
984
|
+
/**
|
|
985
|
+
* AuditLogEntity
|
|
986
|
+
* @export
|
|
987
|
+
* @interface AuditLogEntity
|
|
988
|
+
*/
|
|
989
|
+
export interface AuditLogEntity {
|
|
990
|
+
/**
|
|
991
|
+
* id
|
|
992
|
+
* @type {number}
|
|
993
|
+
* @memberof AuditLogEntity
|
|
994
|
+
*/
|
|
995
|
+
'id'?: number;
|
|
996
|
+
/**
|
|
997
|
+
* action
|
|
998
|
+
* @type {string}
|
|
999
|
+
* @memberof AuditLogEntity
|
|
1000
|
+
*/
|
|
1001
|
+
'action'?: string;
|
|
1002
|
+
/**
|
|
1003
|
+
* type
|
|
1004
|
+
* @type {string}
|
|
1005
|
+
* @memberof AuditLogEntity
|
|
1006
|
+
*/
|
|
1007
|
+
'type'?: string;
|
|
1008
|
+
/**
|
|
1009
|
+
* identifier
|
|
1010
|
+
* @type {string}
|
|
1011
|
+
* @memberof AuditLogEntity
|
|
1012
|
+
*/
|
|
1013
|
+
'identifier'?: string;
|
|
1014
|
+
/**
|
|
1015
|
+
* user
|
|
1016
|
+
* @type {string}
|
|
1017
|
+
* @memberof AuditLogEntity
|
|
1018
|
+
*/
|
|
1019
|
+
'user'?: string;
|
|
1020
|
+
/**
|
|
1021
|
+
* timestamp
|
|
1022
|
+
* @type {string}
|
|
1023
|
+
* @memberof AuditLogEntity
|
|
1024
|
+
*/
|
|
1025
|
+
'timestamp'?: string;
|
|
1026
|
+
/**
|
|
1027
|
+
* beforeData
|
|
1028
|
+
* @type {string}
|
|
1029
|
+
* @memberof AuditLogEntity
|
|
1030
|
+
*/
|
|
1031
|
+
'beforeData'?: string;
|
|
1032
|
+
/**
|
|
1033
|
+
* afterData
|
|
1034
|
+
* @type {string}
|
|
1035
|
+
* @memberof AuditLogEntity
|
|
1036
|
+
*/
|
|
1037
|
+
'afterData'?: string;
|
|
1038
|
+
/**
|
|
1039
|
+
* description
|
|
1040
|
+
* @type {string}
|
|
1041
|
+
* @memberof AuditLogEntity
|
|
1042
|
+
*/
|
|
1043
|
+
'description'?: string;
|
|
1044
|
+
}
|
|
984
1045
|
/**
|
|
985
1046
|
* OAuth Auth Code Response
|
|
986
1047
|
* @export
|
|
@@ -14832,6 +14893,15 @@ export declare class SMSApi extends BaseAPI {
|
|
|
14832
14893
|
* @export
|
|
14833
14894
|
*/
|
|
14834
14895
|
export declare const ShippingApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
14896
|
+
/**
|
|
14897
|
+
* Get Shipping Services (Admin)
|
|
14898
|
+
* @summary Get Shipping Services
|
|
14899
|
+
* @param {number} customerId Customer ID
|
|
14900
|
+
* @param {ShippingInformationDTO} [shippingInformationDTO] Shipping Information
|
|
14901
|
+
* @param {*} [options] Override http request option.
|
|
14902
|
+
* @throws {RequiredError}
|
|
14903
|
+
*/
|
|
14904
|
+
postGetAdminShippingServices: (customerId: number, shippingInformationDTO?: ShippingInformationDTO, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
14835
14905
|
/**
|
|
14836
14906
|
* Get Shipping Services
|
|
14837
14907
|
* @summary Get Shipping Services
|
|
@@ -14846,6 +14916,15 @@ export declare const ShippingApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
14846
14916
|
* @export
|
|
14847
14917
|
*/
|
|
14848
14918
|
export declare const ShippingApiFp: (configuration?: Configuration) => {
|
|
14919
|
+
/**
|
|
14920
|
+
* Get Shipping Services (Admin)
|
|
14921
|
+
* @summary Get Shipping Services
|
|
14922
|
+
* @param {number} customerId Customer ID
|
|
14923
|
+
* @param {ShippingInformationDTO} [shippingInformationDTO] Shipping Information
|
|
14924
|
+
* @param {*} [options] Override http request option.
|
|
14925
|
+
* @throws {RequiredError}
|
|
14926
|
+
*/
|
|
14927
|
+
postGetAdminShippingServices(customerId: number, shippingInformationDTO?: ShippingInformationDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShippingServicesModel>>;
|
|
14849
14928
|
/**
|
|
14850
14929
|
* Get Shipping Services
|
|
14851
14930
|
* @summary Get Shipping Services
|
|
@@ -14860,6 +14939,15 @@ export declare const ShippingApiFp: (configuration?: Configuration) => {
|
|
|
14860
14939
|
* @export
|
|
14861
14940
|
*/
|
|
14862
14941
|
export declare const ShippingApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
14942
|
+
/**
|
|
14943
|
+
* Get Shipping Services (Admin)
|
|
14944
|
+
* @summary Get Shipping Services
|
|
14945
|
+
* @param {number} customerId Customer ID
|
|
14946
|
+
* @param {ShippingInformationDTO} [shippingInformationDTO] Shipping Information
|
|
14947
|
+
* @param {*} [options] Override http request option.
|
|
14948
|
+
* @throws {RequiredError}
|
|
14949
|
+
*/
|
|
14950
|
+
postGetAdminShippingServices(customerId: number, shippingInformationDTO?: ShippingInformationDTO, options?: RawAxiosRequestConfig): AxiosPromise<ShippingServicesModel>;
|
|
14863
14951
|
/**
|
|
14864
14952
|
* Get Shipping Services
|
|
14865
14953
|
* @summary Get Shipping Services
|
|
@@ -14876,6 +14964,16 @@ export declare const ShippingApiFactory: (configuration?: Configuration, basePat
|
|
|
14876
14964
|
* @extends {BaseAPI}
|
|
14877
14965
|
*/
|
|
14878
14966
|
export declare class ShippingApi extends BaseAPI {
|
|
14967
|
+
/**
|
|
14968
|
+
* Get Shipping Services (Admin)
|
|
14969
|
+
* @summary Get Shipping Services
|
|
14970
|
+
* @param {number} customerId Customer ID
|
|
14971
|
+
* @param {ShippingInformationDTO} [shippingInformationDTO] Shipping Information
|
|
14972
|
+
* @param {*} [options] Override http request option.
|
|
14973
|
+
* @throws {RequiredError}
|
|
14974
|
+
* @memberof ShippingApi
|
|
14975
|
+
*/
|
|
14976
|
+
postGetAdminShippingServices(customerId: number, shippingInformationDTO?: ShippingInformationDTO, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ShippingServicesModel, any, {}>>;
|
|
14879
14977
|
/**
|
|
14880
14978
|
* Get Shipping Services
|
|
14881
14979
|
* @summary Get Shipping Services
|
package/dist/api.js
CHANGED
|
@@ -12749,6 +12749,48 @@ exports.SMSApi = SMSApi;
|
|
|
12749
12749
|
var ShippingApiAxiosParamCreator = function (configuration) {
|
|
12750
12750
|
var _this = this;
|
|
12751
12751
|
return {
|
|
12752
|
+
/**
|
|
12753
|
+
* Get Shipping Services (Admin)
|
|
12754
|
+
* @summary Get Shipping Services
|
|
12755
|
+
* @param {number} customerId Customer ID
|
|
12756
|
+
* @param {ShippingInformationDTO} [shippingInformationDTO] Shipping Information
|
|
12757
|
+
* @param {*} [options] Override http request option.
|
|
12758
|
+
* @throws {RequiredError}
|
|
12759
|
+
*/
|
|
12760
|
+
postGetAdminShippingServices: function (customerId_1, shippingInformationDTO_1) {
|
|
12761
|
+
var args_1 = [];
|
|
12762
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
12763
|
+
args_1[_i - 2] = arguments[_i];
|
|
12764
|
+
}
|
|
12765
|
+
return __awaiter(_this, __spreadArray([customerId_1, shippingInformationDTO_1], args_1, true), void 0, function (customerId, shippingInformationDTO, options) {
|
|
12766
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
12767
|
+
if (options === void 0) { options = {}; }
|
|
12768
|
+
return __generator(this, function (_a) {
|
|
12769
|
+
// verify required parameter 'customerId' is not null or undefined
|
|
12770
|
+
(0, common_1.assertParamExists)('postGetAdminShippingServices', 'customerId', customerId);
|
|
12771
|
+
localVarPath = "/admin/shipping/services";
|
|
12772
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12773
|
+
if (configuration) {
|
|
12774
|
+
baseOptions = configuration.baseOptions;
|
|
12775
|
+
}
|
|
12776
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
12777
|
+
localVarHeaderParameter = {};
|
|
12778
|
+
localVarQueryParameter = {};
|
|
12779
|
+
if (customerId !== undefined) {
|
|
12780
|
+
localVarQueryParameter['customerId'] = customerId;
|
|
12781
|
+
}
|
|
12782
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12783
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
12784
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12785
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12786
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(shippingInformationDTO, localVarRequestOptions, configuration);
|
|
12787
|
+
return [2 /*return*/, {
|
|
12788
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
12789
|
+
options: localVarRequestOptions,
|
|
12790
|
+
}];
|
|
12791
|
+
});
|
|
12792
|
+
});
|
|
12793
|
+
},
|
|
12752
12794
|
/**
|
|
12753
12795
|
* Get Shipping Services
|
|
12754
12796
|
* @summary Get Shipping Services
|
|
@@ -12795,6 +12837,30 @@ exports.ShippingApiAxiosParamCreator = ShippingApiAxiosParamCreator;
|
|
|
12795
12837
|
var ShippingApiFp = function (configuration) {
|
|
12796
12838
|
var localVarAxiosParamCreator = (0, exports.ShippingApiAxiosParamCreator)(configuration);
|
|
12797
12839
|
return {
|
|
12840
|
+
/**
|
|
12841
|
+
* Get Shipping Services (Admin)
|
|
12842
|
+
* @summary Get Shipping Services
|
|
12843
|
+
* @param {number} customerId Customer ID
|
|
12844
|
+
* @param {ShippingInformationDTO} [shippingInformationDTO] Shipping Information
|
|
12845
|
+
* @param {*} [options] Override http request option.
|
|
12846
|
+
* @throws {RequiredError}
|
|
12847
|
+
*/
|
|
12848
|
+
postGetAdminShippingServices: function (customerId, shippingInformationDTO, options) {
|
|
12849
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
12850
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
12851
|
+
var _a, _b, _c;
|
|
12852
|
+
return __generator(this, function (_d) {
|
|
12853
|
+
switch (_d.label) {
|
|
12854
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.postGetAdminShippingServices(customerId, shippingInformationDTO, options)];
|
|
12855
|
+
case 1:
|
|
12856
|
+
localVarAxiosArgs = _d.sent();
|
|
12857
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12858
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ShippingApi.postGetAdminShippingServices']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12859
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
12860
|
+
}
|
|
12861
|
+
});
|
|
12862
|
+
});
|
|
12863
|
+
},
|
|
12798
12864
|
/**
|
|
12799
12865
|
* Get Shipping Services
|
|
12800
12866
|
* @summary Get Shipping Services
|
|
@@ -12828,6 +12894,17 @@ exports.ShippingApiFp = ShippingApiFp;
|
|
|
12828
12894
|
var ShippingApiFactory = function (configuration, basePath, axios) {
|
|
12829
12895
|
var localVarFp = (0, exports.ShippingApiFp)(configuration);
|
|
12830
12896
|
return {
|
|
12897
|
+
/**
|
|
12898
|
+
* Get Shipping Services (Admin)
|
|
12899
|
+
* @summary Get Shipping Services
|
|
12900
|
+
* @param {number} customerId Customer ID
|
|
12901
|
+
* @param {ShippingInformationDTO} [shippingInformationDTO] Shipping Information
|
|
12902
|
+
* @param {*} [options] Override http request option.
|
|
12903
|
+
* @throws {RequiredError}
|
|
12904
|
+
*/
|
|
12905
|
+
postGetAdminShippingServices: function (customerId, shippingInformationDTO, options) {
|
|
12906
|
+
return localVarFp.postGetAdminShippingServices(customerId, shippingInformationDTO, options).then(function (request) { return request(axios, basePath); });
|
|
12907
|
+
},
|
|
12831
12908
|
/**
|
|
12832
12909
|
* Get Shipping Services
|
|
12833
12910
|
* @summary Get Shipping Services
|
|
@@ -12852,6 +12929,19 @@ var ShippingApi = /** @class */ (function (_super) {
|
|
|
12852
12929
|
function ShippingApi() {
|
|
12853
12930
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
12854
12931
|
}
|
|
12932
|
+
/**
|
|
12933
|
+
* Get Shipping Services (Admin)
|
|
12934
|
+
* @summary Get Shipping Services
|
|
12935
|
+
* @param {number} customerId Customer ID
|
|
12936
|
+
* @param {ShippingInformationDTO} [shippingInformationDTO] Shipping Information
|
|
12937
|
+
* @param {*} [options] Override http request option.
|
|
12938
|
+
* @throws {RequiredError}
|
|
12939
|
+
* @memberof ShippingApi
|
|
12940
|
+
*/
|
|
12941
|
+
ShippingApi.prototype.postGetAdminShippingServices = function (customerId, shippingInformationDTO, options) {
|
|
12942
|
+
var _this = this;
|
|
12943
|
+
return (0, exports.ShippingApiFp)(this.configuration).postGetAdminShippingServices(customerId, shippingInformationDTO, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
12944
|
+
};
|
|
12855
12945
|
/**
|
|
12856
12946
|
* Get Shipping Services
|
|
12857
12947
|
* @summary Get Shipping Services
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# AuditLogEntity
|
|
2
|
+
|
|
3
|
+
AuditLogEntity
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**id** | **number** | id | [optional] [default to undefined]
|
|
10
|
+
**action** | **string** | action | [optional] [default to undefined]
|
|
11
|
+
**type** | **string** | type | [optional] [default to undefined]
|
|
12
|
+
**identifier** | **string** | identifier | [optional] [default to undefined]
|
|
13
|
+
**user** | **string** | user | [optional] [default to undefined]
|
|
14
|
+
**timestamp** | **string** | timestamp | [optional] [default to undefined]
|
|
15
|
+
**beforeData** | **string** | beforeData | [optional] [default to undefined]
|
|
16
|
+
**afterData** | **string** | afterData | [optional] [default to undefined]
|
|
17
|
+
**description** | **string** | description | [optional] [default to undefined]
|
|
18
|
+
|
|
19
|
+
## Example
|
|
20
|
+
|
|
21
|
+
```typescript
|
|
22
|
+
import { AuditLogEntity } from 'yellowgrid-api-ts';
|
|
23
|
+
|
|
24
|
+
const instance: AuditLogEntity = {
|
|
25
|
+
id,
|
|
26
|
+
action,
|
|
27
|
+
type,
|
|
28
|
+
identifier,
|
|
29
|
+
user,
|
|
30
|
+
timestamp,
|
|
31
|
+
beforeData,
|
|
32
|
+
afterData,
|
|
33
|
+
description,
|
|
34
|
+
};
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
[[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/ShippingApi.md
CHANGED
|
@@ -4,8 +4,67 @@ All URIs are relative to *http://api.yellowgrid.local*
|
|
|
4
4
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
+
|[**postGetAdminShippingServices**](#postgetadminshippingservices) | **POST** /admin/shipping/services | Get Shipping Services|
|
|
7
8
|
|[**postGetShippingServices**](#postgetshippingservices) | **POST** /shipping/services | Get Shipping Services|
|
|
8
9
|
|
|
10
|
+
# **postGetAdminShippingServices**
|
|
11
|
+
> ShippingServicesModel postGetAdminShippingServices()
|
|
12
|
+
|
|
13
|
+
Get Shipping Services (Admin)
|
|
14
|
+
|
|
15
|
+
### Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import {
|
|
19
|
+
ShippingApi,
|
|
20
|
+
Configuration,
|
|
21
|
+
ShippingInformationDTO
|
|
22
|
+
} from 'yellowgrid-api-ts';
|
|
23
|
+
|
|
24
|
+
const configuration = new Configuration();
|
|
25
|
+
const apiInstance = new ShippingApi(configuration);
|
|
26
|
+
|
|
27
|
+
let customerId: number; //Customer ID (default to undefined)
|
|
28
|
+
let shippingInformationDTO: ShippingInformationDTO; //Shipping Information (optional)
|
|
29
|
+
|
|
30
|
+
const { status, data } = await apiInstance.postGetAdminShippingServices(
|
|
31
|
+
customerId,
|
|
32
|
+
shippingInformationDTO
|
|
33
|
+
);
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
### Parameters
|
|
37
|
+
|
|
38
|
+
|Name | Type | Description | Notes|
|
|
39
|
+
|------------- | ------------- | ------------- | -------------|
|
|
40
|
+
| **shippingInformationDTO** | **ShippingInformationDTO**| Shipping Information | |
|
|
41
|
+
| **customerId** | [**number**] | Customer ID | defaults to undefined|
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
### Return type
|
|
45
|
+
|
|
46
|
+
**ShippingServicesModel**
|
|
47
|
+
|
|
48
|
+
### Authorization
|
|
49
|
+
|
|
50
|
+
No authorization required
|
|
51
|
+
|
|
52
|
+
### HTTP request headers
|
|
53
|
+
|
|
54
|
+
- **Content-Type**: application/json
|
|
55
|
+
- **Accept**: application/json
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
### HTTP response details
|
|
59
|
+
| Status code | Description | Response headers |
|
|
60
|
+
|-------------|-------------|------------------|
|
|
61
|
+
|**200** | Shipping Services | - |
|
|
62
|
+
|**400** | Bad Request | - |
|
|
63
|
+
|**401** | Unauthorised | - |
|
|
64
|
+
|**403** | Access Denied | - |
|
|
65
|
+
|
|
66
|
+
[[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)
|
|
67
|
+
|
|
9
68
|
# **postGetShippingServices**
|
|
10
69
|
> ShippingServicesModel postGetShippingServices()
|
|
11
70
|
|