yellowgrid-api-ts 3.2.268 → 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/dist/api.d.ts CHANGED
@@ -5549,7 +5549,7 @@ export interface PromoCodesEntity {
5549
5549
  /**
5550
5550
  * id
5551
5551
  */
5552
- 'id'?: number;
5552
+ 'id'?: number | null;
5553
5553
  /**
5554
5554
  * code
5555
5555
  */
@@ -5558,18 +5558,14 @@ export interface PromoCodesEntity {
5558
5558
  * description
5559
5559
  */
5560
5560
  'description'?: string;
5561
- /**
5562
- * banner
5563
- */
5564
- 'banner'?: string;
5565
5561
  /**
5566
5562
  * start
5567
5563
  */
5568
- 'start'?: string;
5564
+ 'startDate'?: string | null;
5569
5565
  /**
5570
5566
  * expiry
5571
5567
  */
5572
- 'expiry'?: string;
5568
+ 'endDate'?: string | null;
5573
5569
  /**
5574
5570
  * customerLimit
5575
5571
  */
@@ -5581,19 +5577,60 @@ export interface PromoCodesEntity {
5581
5577
  /**
5582
5578
  * orderRestrictions
5583
5579
  */
5584
- 'orderRestrictions'?: string;
5580
+ 'orderRestrictions'?: Array<string>;
5585
5581
  /**
5586
5582
  * includeDistribution
5587
5583
  */
5588
- 'includeDistribution'?: number;
5584
+ 'includeDistribution'?: boolean;
5589
5585
  /**
5590
5586
  * distributionOnly
5591
5587
  */
5592
- 'distributionOnly'?: number;
5588
+ 'distributionOnly'?: boolean;
5589
+ /**
5590
+ * nfr
5591
+ */
5592
+ 'nfr'?: boolean;
5593
5593
  /**
5594
5594
  * note
5595
5595
  */
5596
- '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;
5597
5634
  }
5598
5635
  /**
5599
5636
  * PromoItemsEntity
@@ -5632,6 +5669,113 @@ export interface PromoItemsEntity {
5632
5669
  */
5633
5670
  'bulkAdd'?: number;
5634
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
+ }
5635
5779
  /**
5636
5780
  * Prospect
5637
5781
  */
@@ -18734,6 +18878,154 @@ export declare const GetGetLegacyStockListFormatEnum: {
18734
18878
  readonly Csv: "CSV";
18735
18879
  };
18736
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
+ }
18737
19029
  /**
18738
19030
  * ProspectsApi - axios parameter creator
18739
19031
  */