@datatr-ux/ovhcloud-types 2.0.15 → 2.0.16

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.
@@ -1,6 +1,6 @@
1
1
  /** A numeric value tagged with its unit */
2
2
  export interface UnitAndValueString {
3
- /** */
3
+ /** Unit of the value */
4
4
  unit: string;
5
5
  /** */
6
6
  value: string;
@@ -1 +1 @@
1
- {"version":3,"file":"UnitAndValueString.d.ts","sourceRoot":"","sources":["../../generated/types/complexType/UnitAndValueString.ts"],"names":[],"mappings":"AAAA,2CAA2C;AAC3C,MAAM,WAAW,kBAAkB;IACjC,OAAO;IACP,IAAI,EAAE,MAAM,CAAC;IACb,OAAO;IACP,KAAK,EAAE,MAAM,CAAC;CACf"}
1
+ {"version":3,"file":"UnitAndValueString.d.ts","sourceRoot":"","sources":["../../generated/types/complexType/UnitAndValueString.ts"],"names":[],"mappings":"AAAA,2CAA2C;AAC3C,MAAM,WAAW,kBAAkB;IACjC,wBAAwB;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO;IACP,KAAK,EAAE,MAAM,CAAC;CACf"}
@@ -1,8 +1,11 @@
1
+ import { Condition } from './domain/promotion/Condition';
1
2
  import { Price } from '../Price';
2
3
  /** Describes a promotion of a product */
3
4
  export interface Promotion {
4
5
  /** Bundle with plan code */
5
6
  bundleWithPlanCodes: string[];
7
+ /** Activation conditions of the promotion */
8
+ condition?: Condition;
6
9
  /** Promotion end date using rfc3339 */
7
10
  endDate?: string;
8
11
  /** Name of the promotion */
@@ -1 +1 @@
1
- {"version":3,"file":"Promotion.d.ts","sourceRoot":"","sources":["../../../generated/types/order/cart/Promotion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAE5C,yCAAyC;AACzC,MAAM,WAAW,SAAS;IACxB,4BAA4B;IAC5B,mBAAmB,EAAE,MAAM,EAAE,CAAC;IAC9B,uCAAuC;IACvC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,4BAA4B;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,YAAY;IACZ,KAAK,EAAE,KAAK,CAAC;IACb,yCAAyC;IACzC,SAAS,EAAE,MAAM,CAAC;IAClB,qBAAqB;IACrB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,qBAAqB;IACrB,IAAI,EAAE,MAAM,CAAC;CACd"}
1
+ {"version":3,"file":"Promotion.d.ts","sourceRoot":"","sources":["../../../generated/types/order/cart/Promotion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,+CAA+C,CAAC;AAC1E,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAE5C,yCAAyC;AACzC,MAAM,WAAW,SAAS;IACxB,4BAA4B;IAC5B,mBAAmB,EAAE,MAAM,EAAE,CAAC;IAC9B,6CAA6C;IAC7C,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,uCAAuC;IACvC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,4BAA4B;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,YAAY;IACZ,KAAK,EAAE,KAAK,CAAC;IACb,yCAAyC;IACzC,SAAS,EAAE,MAAM,CAAC;IAClB,qBAAqB;IACrB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,qBAAqB;IACrB,IAAI,EAAE,MAAM,CAAC;CACd"}
@@ -0,0 +1,3 @@
1
+ import * as promotion from './promotion/index';
2
+ export { promotion };
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../generated/types/order/cart/domain/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,SAAS,MAAM,mBAAmB,CAAC;AAE/C,OAAO,EAAE,SAAS,EAAE,CAAC"}
@@ -0,0 +1,2 @@
1
+ import * as promotion from './promotion/index.js';
2
+ export { promotion };
@@ -0,0 +1,22 @@
1
+ import { Condition as AliasTypeCondition } from './Condition';
2
+ import { Discount } from './Discount';
3
+ /** Activation conditions of the promotion */
4
+ export interface Condition {
5
+ /** All nested conditions must be satisfied */
6
+ all?: AliasTypeCondition[];
7
+ /** At least one nested condition must be satisfied */
8
+ anyOf?: AliasTypeCondition[];
9
+ /** Discounts applied when the condition is met */
10
+ discounts?: Discount[];
11
+ /** Minimum RFC3339 duration to meet the condition (e.g. P1Y) */
12
+ minDuration?: string;
13
+ /** Minimum quantity required to meet the condition */
14
+ minQuantity?: number;
15
+ /** Plan code (e.g. info, fr, com) */
16
+ planCode?: string;
17
+ /** Pricing mode (e.g. create-default) */
18
+ pricingMode?: string;
19
+ /** Product name (e.g. domain-fr) */
20
+ productName?: string;
21
+ }
22
+ //# sourceMappingURL=Condition.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Condition.d.ts","sourceRoot":"","sources":["../../../../../generated/types/order/cart/domain/promotion/Condition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,IAAI,kBAAkB,EAAE,MAAM,+CAA+C,CAAC;AAChG,OAAO,EAAE,QAAQ,EAAE,MAAM,8CAA8C,CAAC;AAExE,6CAA6C;AAC7C,MAAM,WAAW,SAAS;IACxB,8CAA8C;IAC9C,GAAG,CAAC,EAAE,kBAAkB,EAAE,CAAC;IAC3B,sDAAsD;IACtD,KAAK,CAAC,EAAE,kBAAkB,EAAE,CAAC;IAC7B,kDAAkD;IAClD,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAC;IACvB,gEAAgE;IAChE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,sDAAsD;IACtD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,qCAAqC;IACrC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,yCAAyC;IACzC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,oCAAoC;IACpC,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,30 @@
1
+ import { CurrencyCodeEnum } from '../../../CurrencyCodeEnum';
2
+ import { ReductionTypeEnum } from '../../../ReductionTypeEnum';
3
+ /** Discount definition */
4
+ export interface Discount {
5
+ /** Currency code */
6
+ currency: CurrencyCodeEnum;
7
+ /** Discounted price amount */
8
+ discountPrice: number;
9
+ /** Discounted price formatted with currency */
10
+ discountPriceText: string;
11
+ /** Last item on which discount applies (for multiple-items orders) */
12
+ endQuantityIncluded?: number;
13
+ /** Last year discount is applied (for multiyear orders) */
14
+ endYearIncluded?: number;
15
+ /** Optional discount name */
16
+ name?: string;
17
+ /** Original price before discount */
18
+ originalPrice: number;
19
+ /** Original price formatted with currency */
20
+ originalPriceText: string;
21
+ /** First item on which discount applies (for multiple-items orders) */
22
+ startQuantityIncluded?: number;
23
+ /** First year discount is applied (for multiyear orders) */
24
+ startYearIncluded?: number;
25
+ /** Discount type (e.g. percentage, forced_amount, fixed_price) */
26
+ type: ReductionTypeEnum;
27
+ /** Discount value (percentage or amount) */
28
+ value: number;
29
+ }
30
+ //# sourceMappingURL=Discount.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Discount.d.ts","sourceRoot":"","sources":["../../../../../generated/types/order/cart/domain/promotion/Discount.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AAEpE,0BAA0B;AAC1B,MAAM,WAAW,QAAQ;IACvB,oBAAoB;IACpB,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,8BAA8B;IAC9B,aAAa,EAAE,MAAM,CAAC;IACtB,+CAA+C;IAC/C,iBAAiB,EAAE,MAAM,CAAC;IAC1B,sEAAsE;IACtE,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,2DAA2D;IAC3D,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,6BAA6B;IAC7B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,qCAAqC;IACrC,aAAa,EAAE,MAAM,CAAC;IACtB,6CAA6C;IAC7C,iBAAiB,EAAE,MAAM,CAAC;IAC1B,uEAAuE;IACvE,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,4DAA4D;IAC5D,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,kEAAkE;IAClE,IAAI,EAAE,iBAAiB,CAAC;IACxB,4CAA4C;IAC5C,KAAK,EAAE,MAAM,CAAC;CACf"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,3 @@
1
+ export * from './Condition';
2
+ export * from './Discount';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../generated/types/order/cart/domain/promotion/index.ts"],"names":[],"mappings":"AACA,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './Condition.js';
2
+ export * from './Discount.js';
@@ -1,3 +1,4 @@
1
+ import * as domain from './domain/index';
1
2
  export * from './Cart';
2
3
  export * from './Checkout';
3
4
  export * from './ConfigurationItem';
@@ -31,4 +32,5 @@ export * from './PriceLabelEnum';
31
32
  export * from './ProductInformation';
32
33
  export * from './Promotion';
33
34
  export * from './Update';
35
+ export { domain };
34
36
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../generated/types/order/cart/index.ts"],"names":[],"mappings":"AACA,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,qBAAqB,CAAC;AACpC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,iCAAiC,CA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B,CAAC;AACxC,cAAc,uCAAuC,CAAC;AACtD,cAAc,qCAAqC,CAAC;AACpD,cAAc,iCAAiC,CAAC;AAChD,cAAc,0BAA0B,CAAC;AACzC,cAAc,QAAQ,CAAC;AACvB,cAAc,6BAA6B,CAAC;AAC5C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,MAAM,EAAE,CAAC"}
@@ -1,3 +1,4 @@
1
+ import * as domain from './domain/index.js';
1
2
  export * from './Cart.js';
2
3
  export * from './Checkout.js';
3
4
  export * from './ConfigurationItem.js';
@@ -31,3 +32,4 @@ export * from './PriceLabelEnum.js';
31
32
  export * from './ProductInformation.js';
32
33
  export * from './Promotion.js';
33
34
  export * from './Update.js';
35
+ export { domain };