yellowgrid-api-ts 3.2.267 → 3.2.273
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 +5 -0
- package/README.md +8 -0
- package/api.ts +478 -11
- package/dist/api.d.ts +307 -11
- package/dist/api.js +378 -2
- package/docs/AccountDetailedSummaryDTO.md +2 -0
- package/docs/PromoCodesEntity.md +9 -9
- package/docs/PromoItemModel.md +35 -0
- package/docs/PromoModel.md +45 -0
- package/docs/PromoSummariesModel.md +27 -0
- package/docs/PromoSummaryDTO.md +31 -0
- package/docs/PromotionsApi.md +241 -0
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -250,6 +250,10 @@ export interface AccountDetailedSummaryDTO {
|
|
|
250
250
|
* Balance (£)
|
|
251
251
|
*/
|
|
252
252
|
'balance'?: number | null;
|
|
253
|
+
/**
|
|
254
|
+
* First Order
|
|
255
|
+
*/
|
|
256
|
+
'firstOrder'?: boolean;
|
|
253
257
|
}
|
|
254
258
|
/**
|
|
255
259
|
* Account Finance DTO
|
|
@@ -5545,7 +5549,7 @@ export interface PromoCodesEntity {
|
|
|
5545
5549
|
/**
|
|
5546
5550
|
* id
|
|
5547
5551
|
*/
|
|
5548
|
-
'id'?: number;
|
|
5552
|
+
'id'?: number | null;
|
|
5549
5553
|
/**
|
|
5550
5554
|
* code
|
|
5551
5555
|
*/
|
|
@@ -5554,18 +5558,14 @@ export interface PromoCodesEntity {
|
|
|
5554
5558
|
* description
|
|
5555
5559
|
*/
|
|
5556
5560
|
'description'?: string;
|
|
5557
|
-
/**
|
|
5558
|
-
* banner
|
|
5559
|
-
*/
|
|
5560
|
-
'banner'?: string;
|
|
5561
5561
|
/**
|
|
5562
5562
|
* start
|
|
5563
5563
|
*/
|
|
5564
|
-
'
|
|
5564
|
+
'startDate'?: string | null;
|
|
5565
5565
|
/**
|
|
5566
5566
|
* expiry
|
|
5567
5567
|
*/
|
|
5568
|
-
'
|
|
5568
|
+
'endDate'?: string | null;
|
|
5569
5569
|
/**
|
|
5570
5570
|
* customerLimit
|
|
5571
5571
|
*/
|
|
@@ -5577,19 +5577,60 @@ export interface PromoCodesEntity {
|
|
|
5577
5577
|
/**
|
|
5578
5578
|
* orderRestrictions
|
|
5579
5579
|
*/
|
|
5580
|
-
'orderRestrictions'?: string
|
|
5580
|
+
'orderRestrictions'?: Array<string>;
|
|
5581
5581
|
/**
|
|
5582
5582
|
* includeDistribution
|
|
5583
5583
|
*/
|
|
5584
|
-
'includeDistribution'?:
|
|
5584
|
+
'includeDistribution'?: boolean;
|
|
5585
5585
|
/**
|
|
5586
5586
|
* distributionOnly
|
|
5587
5587
|
*/
|
|
5588
|
-
'distributionOnly'?:
|
|
5588
|
+
'distributionOnly'?: boolean;
|
|
5589
|
+
/**
|
|
5590
|
+
* nfr
|
|
5591
|
+
*/
|
|
5592
|
+
'nfr'?: boolean;
|
|
5589
5593
|
/**
|
|
5590
5594
|
* note
|
|
5591
5595
|
*/
|
|
5592
|
-
'note'?: string;
|
|
5596
|
+
'note'?: string | null;
|
|
5597
|
+
}
|
|
5598
|
+
/**
|
|
5599
|
+
* Promo Item
|
|
5600
|
+
*/
|
|
5601
|
+
export interface PromoItemModel {
|
|
5602
|
+
/**
|
|
5603
|
+
* id
|
|
5604
|
+
*/
|
|
5605
|
+
'id'?: number;
|
|
5606
|
+
/**
|
|
5607
|
+
* promoId
|
|
5608
|
+
*/
|
|
5609
|
+
'promoId'?: number;
|
|
5610
|
+
/**
|
|
5611
|
+
* price
|
|
5612
|
+
*/
|
|
5613
|
+
'price'?: number;
|
|
5614
|
+
/**
|
|
5615
|
+
* discount
|
|
5616
|
+
*/
|
|
5617
|
+
'discount'?: number;
|
|
5618
|
+
/**
|
|
5619
|
+
* sku
|
|
5620
|
+
*/
|
|
5621
|
+
'sku'?: string;
|
|
5622
|
+
/**
|
|
5623
|
+
* quantity
|
|
5624
|
+
*/
|
|
5625
|
+
'quantity'?: number;
|
|
5626
|
+
/**
|
|
5627
|
+
* bulkQuantity
|
|
5628
|
+
*/
|
|
5629
|
+
'bulkQuantity'?: number;
|
|
5630
|
+
/**
|
|
5631
|
+
* bulkAdd
|
|
5632
|
+
*/
|
|
5633
|
+
'bulkAdd'?: number;
|
|
5593
5634
|
}
|
|
5594
5635
|
/**
|
|
5595
5636
|
* PromoItemsEntity
|
|
@@ -5628,6 +5669,113 @@ export interface PromoItemsEntity {
|
|
|
5628
5669
|
*/
|
|
5629
5670
|
'bulkAdd'?: number;
|
|
5630
5671
|
}
|
|
5672
|
+
/**
|
|
5673
|
+
* Promotion
|
|
5674
|
+
*/
|
|
5675
|
+
export interface PromoModel {
|
|
5676
|
+
/**
|
|
5677
|
+
* id
|
|
5678
|
+
*/
|
|
5679
|
+
'id'?: number | null;
|
|
5680
|
+
/**
|
|
5681
|
+
* code
|
|
5682
|
+
*/
|
|
5683
|
+
'code'?: string;
|
|
5684
|
+
/**
|
|
5685
|
+
* description
|
|
5686
|
+
*/
|
|
5687
|
+
'description'?: string;
|
|
5688
|
+
/**
|
|
5689
|
+
* start
|
|
5690
|
+
*/
|
|
5691
|
+
'startDate'?: string | null;
|
|
5692
|
+
/**
|
|
5693
|
+
* expiry
|
|
5694
|
+
*/
|
|
5695
|
+
'endDate'?: string | null;
|
|
5696
|
+
/**
|
|
5697
|
+
* customerLimit
|
|
5698
|
+
*/
|
|
5699
|
+
'customerLimit'?: number;
|
|
5700
|
+
/**
|
|
5701
|
+
* globalLimit
|
|
5702
|
+
*/
|
|
5703
|
+
'globalLimit'?: number;
|
|
5704
|
+
/**
|
|
5705
|
+
* orderRestrictions
|
|
5706
|
+
*/
|
|
5707
|
+
'orderRestrictions'?: Array<string>;
|
|
5708
|
+
/**
|
|
5709
|
+
* includeDistribution
|
|
5710
|
+
*/
|
|
5711
|
+
'includeDistribution'?: boolean;
|
|
5712
|
+
/**
|
|
5713
|
+
* distributionOnly
|
|
5714
|
+
*/
|
|
5715
|
+
'distributionOnly'?: boolean;
|
|
5716
|
+
/**
|
|
5717
|
+
* nfr
|
|
5718
|
+
*/
|
|
5719
|
+
'nfr'?: boolean;
|
|
5720
|
+
/**
|
|
5721
|
+
* note
|
|
5722
|
+
*/
|
|
5723
|
+
'note'?: string | null;
|
|
5724
|
+
/**
|
|
5725
|
+
* Items
|
|
5726
|
+
*/
|
|
5727
|
+
'items'?: Array<PromoItemModel>;
|
|
5728
|
+
}
|
|
5729
|
+
/**
|
|
5730
|
+
* Promotions
|
|
5731
|
+
*/
|
|
5732
|
+
export interface PromoSummariesModel {
|
|
5733
|
+
/**
|
|
5734
|
+
* Results
|
|
5735
|
+
*/
|
|
5736
|
+
'results'?: Array<PromoSummaryDTO>;
|
|
5737
|
+
/**
|
|
5738
|
+
* Page
|
|
5739
|
+
*/
|
|
5740
|
+
'page'?: number;
|
|
5741
|
+
/**
|
|
5742
|
+
* Per Page
|
|
5743
|
+
*/
|
|
5744
|
+
'perPage'?: number;
|
|
5745
|
+
/**
|
|
5746
|
+
* Total Results
|
|
5747
|
+
*/
|
|
5748
|
+
'totalResults'?: number;
|
|
5749
|
+
}
|
|
5750
|
+
/**
|
|
5751
|
+
* Promo Summary
|
|
5752
|
+
*/
|
|
5753
|
+
export interface PromoSummaryDTO {
|
|
5754
|
+
/**
|
|
5755
|
+
* ID
|
|
5756
|
+
*/
|
|
5757
|
+
'id'?: number | null;
|
|
5758
|
+
/**
|
|
5759
|
+
* Description
|
|
5760
|
+
*/
|
|
5761
|
+
'description'?: string;
|
|
5762
|
+
/**
|
|
5763
|
+
* Promo Code
|
|
5764
|
+
*/
|
|
5765
|
+
'code'?: string;
|
|
5766
|
+
/**
|
|
5767
|
+
* Start Date
|
|
5768
|
+
*/
|
|
5769
|
+
'startDate'?: string | null;
|
|
5770
|
+
/**
|
|
5771
|
+
* End Date
|
|
5772
|
+
*/
|
|
5773
|
+
'endDate'?: string | null;
|
|
5774
|
+
/**
|
|
5775
|
+
* Orders
|
|
5776
|
+
*/
|
|
5777
|
+
'orders'?: number;
|
|
5778
|
+
}
|
|
5631
5779
|
/**
|
|
5632
5780
|
* Prospect
|
|
5633
5781
|
*/
|
|
@@ -18730,6 +18878,154 @@ export declare const GetGetLegacyStockListFormatEnum: {
|
|
|
18730
18878
|
readonly Csv: "CSV";
|
|
18731
18879
|
};
|
|
18732
18880
|
export type GetGetLegacyStockListFormatEnum = typeof GetGetLegacyStockListFormatEnum[keyof typeof GetGetLegacyStockListFormatEnum];
|
|
18881
|
+
/**
|
|
18882
|
+
* PromotionsApi - axios parameter creator
|
|
18883
|
+
*/
|
|
18884
|
+
export declare const PromotionsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
18885
|
+
/**
|
|
18886
|
+
* Get a promotion
|
|
18887
|
+
* @param {number} id Promo ID
|
|
18888
|
+
* @param {*} [options] Override http request option.
|
|
18889
|
+
* @throws {RequiredError}
|
|
18890
|
+
*/
|
|
18891
|
+
getGetPromo: (id: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
18892
|
+
/**
|
|
18893
|
+
* Get Promos
|
|
18894
|
+
* @param {number} [pageSize] Number Of Results
|
|
18895
|
+
* @param {number} [page] Page Number
|
|
18896
|
+
* @param {string} [search] Search
|
|
18897
|
+
* @param {boolean} [expired] Expired
|
|
18898
|
+
* @param {*} [options] Override http request option.
|
|
18899
|
+
* @throws {RequiredError}
|
|
18900
|
+
*/
|
|
18901
|
+
getGetPromos: (pageSize?: number, page?: number, search?: string, expired?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
18902
|
+
/**
|
|
18903
|
+
* Create a promotion
|
|
18904
|
+
* @param {PromoModel} [promoModel] Promotion
|
|
18905
|
+
* @param {*} [options] Override http request option.
|
|
18906
|
+
* @throws {RequiredError}
|
|
18907
|
+
*/
|
|
18908
|
+
postGetPromos: (promoModel?: PromoModel, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
18909
|
+
/**
|
|
18910
|
+
* Update a promotion
|
|
18911
|
+
* @param {number} id Promo ID
|
|
18912
|
+
* @param {PromoModel} [promoModel] Promotion
|
|
18913
|
+
* @param {*} [options] Override http request option.
|
|
18914
|
+
* @throws {RequiredError}
|
|
18915
|
+
*/
|
|
18916
|
+
putGetPromo: (id: number, promoModel?: PromoModel, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
18917
|
+
};
|
|
18918
|
+
/**
|
|
18919
|
+
* PromotionsApi - functional programming interface
|
|
18920
|
+
*/
|
|
18921
|
+
export declare const PromotionsApiFp: (configuration?: Configuration) => {
|
|
18922
|
+
/**
|
|
18923
|
+
* Get a promotion
|
|
18924
|
+
* @param {number} id Promo ID
|
|
18925
|
+
* @param {*} [options] Override http request option.
|
|
18926
|
+
* @throws {RequiredError}
|
|
18927
|
+
*/
|
|
18928
|
+
getGetPromo(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PromoModel>>;
|
|
18929
|
+
/**
|
|
18930
|
+
* Get Promos
|
|
18931
|
+
* @param {number} [pageSize] Number Of Results
|
|
18932
|
+
* @param {number} [page] Page Number
|
|
18933
|
+
* @param {string} [search] Search
|
|
18934
|
+
* @param {boolean} [expired] Expired
|
|
18935
|
+
* @param {*} [options] Override http request option.
|
|
18936
|
+
* @throws {RequiredError}
|
|
18937
|
+
*/
|
|
18938
|
+
getGetPromos(pageSize?: number, page?: number, search?: string, expired?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PromoSummariesModel>>;
|
|
18939
|
+
/**
|
|
18940
|
+
* Create a promotion
|
|
18941
|
+
* @param {PromoModel} [promoModel] Promotion
|
|
18942
|
+
* @param {*} [options] Override http request option.
|
|
18943
|
+
* @throws {RequiredError}
|
|
18944
|
+
*/
|
|
18945
|
+
postGetPromos(promoModel?: PromoModel, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PromoModel>>;
|
|
18946
|
+
/**
|
|
18947
|
+
* Update a promotion
|
|
18948
|
+
* @param {number} id Promo ID
|
|
18949
|
+
* @param {PromoModel} [promoModel] Promotion
|
|
18950
|
+
* @param {*} [options] Override http request option.
|
|
18951
|
+
* @throws {RequiredError}
|
|
18952
|
+
*/
|
|
18953
|
+
putGetPromo(id: number, promoModel?: PromoModel, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PromoModel>>;
|
|
18954
|
+
};
|
|
18955
|
+
/**
|
|
18956
|
+
* PromotionsApi - factory interface
|
|
18957
|
+
*/
|
|
18958
|
+
export declare const PromotionsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
18959
|
+
/**
|
|
18960
|
+
* Get a promotion
|
|
18961
|
+
* @param {number} id Promo ID
|
|
18962
|
+
* @param {*} [options] Override http request option.
|
|
18963
|
+
* @throws {RequiredError}
|
|
18964
|
+
*/
|
|
18965
|
+
getGetPromo(id: number, options?: RawAxiosRequestConfig): AxiosPromise<PromoModel>;
|
|
18966
|
+
/**
|
|
18967
|
+
* Get Promos
|
|
18968
|
+
* @param {number} [pageSize] Number Of Results
|
|
18969
|
+
* @param {number} [page] Page Number
|
|
18970
|
+
* @param {string} [search] Search
|
|
18971
|
+
* @param {boolean} [expired] Expired
|
|
18972
|
+
* @param {*} [options] Override http request option.
|
|
18973
|
+
* @throws {RequiredError}
|
|
18974
|
+
*/
|
|
18975
|
+
getGetPromos(pageSize?: number, page?: number, search?: string, expired?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<PromoSummariesModel>;
|
|
18976
|
+
/**
|
|
18977
|
+
* Create a promotion
|
|
18978
|
+
* @param {PromoModel} [promoModel] Promotion
|
|
18979
|
+
* @param {*} [options] Override http request option.
|
|
18980
|
+
* @throws {RequiredError}
|
|
18981
|
+
*/
|
|
18982
|
+
postGetPromos(promoModel?: PromoModel, options?: RawAxiosRequestConfig): AxiosPromise<PromoModel>;
|
|
18983
|
+
/**
|
|
18984
|
+
* Update a promotion
|
|
18985
|
+
* @param {number} id Promo ID
|
|
18986
|
+
* @param {PromoModel} [promoModel] Promotion
|
|
18987
|
+
* @param {*} [options] Override http request option.
|
|
18988
|
+
* @throws {RequiredError}
|
|
18989
|
+
*/
|
|
18990
|
+
putGetPromo(id: number, promoModel?: PromoModel, options?: RawAxiosRequestConfig): AxiosPromise<PromoModel>;
|
|
18991
|
+
};
|
|
18992
|
+
/**
|
|
18993
|
+
* PromotionsApi - object-oriented interface
|
|
18994
|
+
*/
|
|
18995
|
+
export declare class PromotionsApi extends BaseAPI {
|
|
18996
|
+
/**
|
|
18997
|
+
* Get a promotion
|
|
18998
|
+
* @param {number} id Promo ID
|
|
18999
|
+
* @param {*} [options] Override http request option.
|
|
19000
|
+
* @throws {RequiredError}
|
|
19001
|
+
*/
|
|
19002
|
+
getGetPromo(id: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PromoModel, any, {}>>;
|
|
19003
|
+
/**
|
|
19004
|
+
* Get Promos
|
|
19005
|
+
* @param {number} [pageSize] Number Of Results
|
|
19006
|
+
* @param {number} [page] Page Number
|
|
19007
|
+
* @param {string} [search] Search
|
|
19008
|
+
* @param {boolean} [expired] Expired
|
|
19009
|
+
* @param {*} [options] Override http request option.
|
|
19010
|
+
* @throws {RequiredError}
|
|
19011
|
+
*/
|
|
19012
|
+
getGetPromos(pageSize?: number, page?: number, search?: string, expired?: boolean, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PromoSummariesModel, any, {}>>;
|
|
19013
|
+
/**
|
|
19014
|
+
* Create a promotion
|
|
19015
|
+
* @param {PromoModel} [promoModel] Promotion
|
|
19016
|
+
* @param {*} [options] Override http request option.
|
|
19017
|
+
* @throws {RequiredError}
|
|
19018
|
+
*/
|
|
19019
|
+
postGetPromos(promoModel?: PromoModel, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PromoModel, any, {}>>;
|
|
19020
|
+
/**
|
|
19021
|
+
* Update a promotion
|
|
19022
|
+
* @param {number} id Promo ID
|
|
19023
|
+
* @param {PromoModel} [promoModel] Promotion
|
|
19024
|
+
* @param {*} [options] Override http request option.
|
|
19025
|
+
* @throws {RequiredError}
|
|
19026
|
+
*/
|
|
19027
|
+
putGetPromo(id: number, promoModel?: PromoModel, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PromoModel, any, {}>>;
|
|
19028
|
+
}
|
|
18733
19029
|
/**
|
|
18734
19030
|
* ProspectsApi - axios parameter creator
|
|
18735
19031
|
*/
|