@dascompany/product 4.5.38 → 4.5.40

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/index.d.ts CHANGED
@@ -16,6 +16,7 @@ import StatusI from "./types/interfaces/StatusI";
16
16
  import OrderStatusTypeE from "./types/enums/OrderStatusTypeE";
17
17
  import ProductI from './types/interfaces/product/ProductI';
18
18
  import PromotionI from './types/interfaces/product/PromotionI';
19
+ import PromotionCodeI from './types/interfaces/product/PromotionCodeI';
19
20
  import PromotionDiscountI from './types/interfaces/product/PromotionDiscountI';
20
21
  import PromotionalProductsI from './types/interfaces/product/PromotionalProductsI';
21
22
  import FileI from "./types/interfaces/FileI";
@@ -45,8 +46,8 @@ import PaymentMethodRow from "./types/rows/PaymentMethodRow";
45
46
  import PaymentStatusRow from "./types/rows/PaymentStatusRow";
46
47
  import PersonalDataRow from "./types/rows/PersonalDataRow";
47
48
  import ProductRow from "./types/rows/product/ProductRow";
48
- import PromotionAudienceRolesTypeRow from "./types/rows/product/PromotionAudienceRolesTypeRow";
49
- import PromotionAudienceUsersTypeRow from "./types/rows/product/PromotionAudienceUsersTypeRow";
49
+ import PromotionAudienceTypeRolesRow from "./types/rows/product/PromotionAudienceTypeRolesRow";
50
+ import PromotionAudienceTypeUsersRow from "./types/rows/product/PromotionAudienceTypeUsersRow";
50
51
  import PromotionCodesRow from "./types/rows/product/PromotionCodesRow";
51
52
  import PromotionDiscountRow from "./types/rows/product/PromotionDiscountRow";
52
53
  import PromotionProductsRow from "./types/rows/product/PromotionProductsRow";
@@ -62,4 +63,5 @@ import ClientAccountI from "./types/interfaces/ClientAccountI";
62
63
  import FileConnectionI from "./types/interfaces/FileConnectionI";
63
64
  import ChoiceTypeE from './types/enums/ChoiceTypeE';
64
65
  import OrderConfirmationTypeE from './types/enums/OrderConfirmationTypeE';
65
- export { AccountCartRow, AccountCompanyDetailsRow, AccountDeliveryDetailsRow, AddressRow, AdminRow, ClientAccountRow, CompanyDataRow, CompanyDetailsRow, DeliveryDetailsRow, DeliveryDetailsMensRow, DeliveryMethodRow, DeliveryStatusRow, FileConnectionRow, FileRow, MarketPlaceRow, OrderProductRow, OrderRow, PaymentDetailsRow, PaymentMethodRow, PaymentStatusRow, PersonalDataRow, ProductRow, PromotionAudienceRolesTypeRow, PromotionAudienceUsersTypeRow, PromotionCodesRow, PromotionDiscountRow, PromotionProductsRow, PromotionRow, StatusRow, OrderHashRow, OrderPaymentDetailsRow, AdminI, AddressI, CompanyDetailsI, DeliveryDetailsI, DeliveryMenI, DeliveryMethodI, DeliveryMethodTypeE, DeliveryMensE, DeliveryStatusTypeE, PaymentDetailsI, PaymentMethodsE, PaymentMethodI, PersonalDataI, PaymentStatusE, OrderI, OrderHashI, OrderProductI, StatusI, OrderStatusTypeE, ProductI, PromotionI, PromotionDiscountI, PromotionalProductsI, FileI, FileConnectionTypeE, CompanyDataI, PriceI, MarketPlaceI, ClaimI, ClientAccountI, FileConnectionI, ChoiceTypeE, OrderConfirmationTypeE };
66
+ import AudienceTypeE from './types/enums/AudienceTypeE';
67
+ export { AccountCartRow, AccountCompanyDetailsRow, AccountDeliveryDetailsRow, AddressRow, AdminRow, ClientAccountRow, CompanyDataRow, CompanyDetailsRow, DeliveryDetailsRow, DeliveryDetailsMensRow, DeliveryMethodRow, DeliveryStatusRow, FileConnectionRow, FileRow, MarketPlaceRow, OrderProductRow, OrderRow, PaymentDetailsRow, PaymentMethodRow, PaymentStatusRow, PersonalDataRow, ProductRow, PromotionAudienceTypeRolesRow, PromotionAudienceTypeUsersRow, PromotionCodesRow, PromotionDiscountRow, PromotionProductsRow, PromotionRow, StatusRow, OrderHashRow, OrderPaymentDetailsRow, AdminI, AddressI, CompanyDetailsI, DeliveryDetailsI, DeliveryMenI, DeliveryMethodI, DeliveryMethodTypeE, DeliveryMensE, DeliveryStatusTypeE, PaymentDetailsI, PaymentMethodsE, PaymentMethodI, PersonalDataI, PaymentStatusE, OrderI, OrderHashI, OrderProductI, StatusI, OrderStatusTypeE, ProductI, PromotionI, PromotionCodeI, PromotionDiscountI, PromotionalProductsI, FileI, FileConnectionTypeE, CompanyDataI, PriceI, MarketPlaceI, ClaimI, ClientAccountI, FileConnectionI, ChoiceTypeE, OrderConfirmationTypeE, AudienceTypeE };
package/dist/index.js CHANGED
@@ -7,4 +7,5 @@ import OrderStatusTypeE from "./types/enums/OrderStatusTypeE";
7
7
  import FileConnectionTypeE from './types/enums/FileConnectionTypeE';
8
8
  import ChoiceTypeE from './types/enums/ChoiceTypeE';
9
9
  import OrderConfirmationTypeE from './types/enums/OrderConfirmationTypeE';
10
- export { DeliveryMethodTypeE, DeliveryMensE, DeliveryStatusTypeE, PaymentMethodsE, PaymentStatusE, OrderStatusTypeE, FileConnectionTypeE, ChoiceTypeE, OrderConfirmationTypeE };
10
+ import AudienceTypeE from './types/enums/AudienceTypeE';
11
+ export { DeliveryMethodTypeE, DeliveryMensE, DeliveryStatusTypeE, PaymentMethodsE, PaymentStatusE, OrderStatusTypeE, FileConnectionTypeE, ChoiceTypeE, OrderConfirmationTypeE, AudienceTypeE };
@@ -0,0 +1,6 @@
1
+ declare enum AudienceTypeE {
2
+ all = 1,
3
+ users = 2,
4
+ role = 3
5
+ }
6
+ export default AudienceTypeE;
@@ -0,0 +1,7 @@
1
+ var AudienceTypeE;
2
+ (function (AudienceTypeE) {
3
+ AudienceTypeE[AudienceTypeE["all"] = 1] = "all";
4
+ AudienceTypeE[AudienceTypeE["users"] = 2] = "users";
5
+ AudienceTypeE[AudienceTypeE["role"] = 3] = "role";
6
+ })(AudienceTypeE || (AudienceTypeE = {}));
7
+ export default AudienceTypeE;
@@ -0,0 +1,8 @@
1
+ import PromotionI from "./PromotionI";
2
+ export default interface PromotionCodeI {
3
+ id: string;
4
+ code: string;
5
+ promotion: PromotionI;
6
+ useCount: number;
7
+ useLimit: number;
8
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,4 @@
1
+ export default interface PromotionAudienceTypeRolesRow {
2
+ promotion_id: string;
3
+ role_id: string;
4
+ }
@@ -0,0 +1,4 @@
1
+ export default interface PromotionAudienceTypeUsersRow {
2
+ promotion_id: string;
3
+ user_id: string;
4
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dascompany/product",
3
- "version": "4.5.38",
3
+ "version": "4.5.40",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6