@brighterly/lib-core-types 0.13.1 → 0.16.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.
@@ -9,5 +9,6 @@ export declare enum ExperimentsCode {
9
9
  Exp92 = "exp-92_cta-on-ast-result",
10
10
  Exp105 = "exp-105_new-activation-flow",
11
11
  Exp106 = "exp-106_no-1m-sub-on-pad",
12
- Exp86 = "exp-86_lesson-info-and-duration"
12
+ Exp86 = "exp-86_lesson-info-and-duration",
13
+ Exp108 = "exp-108_student-app-link"
13
14
  }
@@ -11,4 +11,5 @@ export var ExperimentsCode;
11
11
  ExperimentsCode["Exp105"] = "exp-105_new-activation-flow";
12
12
  ExperimentsCode["Exp106"] = "exp-106_no-1m-sub-on-pad";
13
13
  ExperimentsCode["Exp86"] = "exp-86_lesson-info-and-duration";
14
+ ExperimentsCode["Exp108"] = "exp-108_student-app-link";
14
15
  })(ExperimentsCode || (ExperimentsCode = {}));
@@ -1,5 +1,6 @@
1
- import type { SubscriptionStatus, SubscriptionPendingStatus, SubscriptionProvider, PauseDuration, DiscountMethod, CancelReason, CancelSubReason, PauseReason } from '../../subscription/enums';
2
- import { SubscriptionOption } from '../../plans/enums';
1
+ import type { SubscriptionStatus, SubscriptionPendingStatus, SubscriptionProvider, PauseDuration, CancelReason, CancelSubReason, PauseReason } from '../../subscription/enums';
2
+ import type { SubscriptionOption } from '../../plans/enums';
3
+ import type { DiscountMethod } from '../../orders/enums';
3
4
  export interface Subscription {
4
5
  status: Record<SubscriptionStatus, string>;
5
6
  pending_status: Record<SubscriptionPendingStatus, string>;
@@ -1 +1 @@
1
- import { SubscriptionOption } from '../../plans/enums';
1
+ export {};
@@ -9,13 +9,13 @@ export declare enum OrderRefundReason {
9
9
  OTHER = "OTHER"
10
10
  }
11
11
  export declare enum DiscountMethod {
12
- CANCELLATION = "CANCELLATION",
13
- PROMO_CODE = "PROMO_CODE",
14
- CUSTOMER_OFFER = "CUSTOMER_OFFER",
15
- CREDITS = "CREDITS",
16
- TRIAL = "TRIAL",
17
- NONE = "NONE",
18
- MANUAL = "MANUAL"
12
+ Cancellation = "CANCELLATION",
13
+ PromoCode = "PROMO_CODE",
14
+ CustomerOffer = "CUSTOMER_OFFER",
15
+ Credits = "CREDITS",
16
+ Trial = "TRIAL",
17
+ None = "NONE",
18
+ Manual = "MANUAL"
19
19
  }
20
20
  export declare enum OrderType {
21
21
  INSTALLMENT = "INSTALLMENT",
@@ -11,13 +11,13 @@ export var OrderRefundReason;
11
11
  })(OrderRefundReason || (OrderRefundReason = {}));
12
12
  export var DiscountMethod;
13
13
  (function (DiscountMethod) {
14
- DiscountMethod["CANCELLATION"] = "CANCELLATION";
15
- DiscountMethod["PROMO_CODE"] = "PROMO_CODE";
16
- DiscountMethod["CUSTOMER_OFFER"] = "CUSTOMER_OFFER";
17
- DiscountMethod["CREDITS"] = "CREDITS";
18
- DiscountMethod["TRIAL"] = "TRIAL";
19
- DiscountMethod["NONE"] = "NONE";
20
- DiscountMethod["MANUAL"] = "MANUAL";
14
+ DiscountMethod["Cancellation"] = "CANCELLATION";
15
+ DiscountMethod["PromoCode"] = "PROMO_CODE";
16
+ DiscountMethod["CustomerOffer"] = "CUSTOMER_OFFER";
17
+ DiscountMethod["Credits"] = "CREDITS";
18
+ DiscountMethod["Trial"] = "TRIAL";
19
+ DiscountMethod["None"] = "NONE";
20
+ DiscountMethod["Manual"] = "MANUAL";
21
21
  })(DiscountMethod || (DiscountMethod = {}));
22
22
  export var OrderType;
23
23
  (function (OrderType) {
@@ -1,8 +1,9 @@
1
1
  import type { Offer } from '../plans/interfaces.ts';
2
2
  import type { Subscription } from '../subscription/interfaces';
3
3
  import type { DisciplineInfo } from '../discipline/interfaces';
4
- import type { DiscountMethod, OrderSource, OrderStatus, OrderType, ProductCategory, ProductStatus } from './enums';
5
- import type { Customer } from "../customer/interfaces.ts";
4
+ import type { OrderSource, OrderStatus, OrderType, ProductCategory, ProductStatus } from './enums';
5
+ import type { Customer } from '../customer/interfaces.ts';
6
+ import type { DiscountMethod } from './enums';
6
7
  export interface OrderResponse {
7
8
  data: Order[];
8
9
  next_cursor: string | null;
@@ -36,15 +36,6 @@ export declare enum PauseReason {
36
36
  TimeShortage = "TIME_SHORTAGE",
37
37
  UnusedLessons = "UNUSED_LESSONS"
38
38
  }
39
- export declare enum DiscountMethod {
40
- Cancellation = "CANCELLATION",
41
- PromoCode = "PROMO_CODE",
42
- CustomerOffer = "CUSTOMER_OFFER",
43
- Credits = "CREDITS",
44
- Trial = "TRIAL",
45
- None = "NONE",
46
- Manual = "MANUAL"
47
- }
48
39
  export declare enum ProductType {
49
40
  Regular = "REGULAR",
50
41
  Bonus = "BONUS",
@@ -41,16 +41,6 @@ export var PauseReason;
41
41
  PauseReason["TimeShortage"] = "TIME_SHORTAGE";
42
42
  PauseReason["UnusedLessons"] = "UNUSED_LESSONS";
43
43
  })(PauseReason || (PauseReason = {}));
44
- export var DiscountMethod;
45
- (function (DiscountMethod) {
46
- DiscountMethod["Cancellation"] = "CANCELLATION";
47
- DiscountMethod["PromoCode"] = "PROMO_CODE";
48
- DiscountMethod["CustomerOffer"] = "CUSTOMER_OFFER";
49
- DiscountMethod["Credits"] = "CREDITS";
50
- DiscountMethod["Trial"] = "TRIAL";
51
- DiscountMethod["None"] = "NONE";
52
- DiscountMethod["Manual"] = "MANUAL";
53
- })(DiscountMethod || (DiscountMethod = {}));
54
44
  export var ProductType;
55
45
  (function (ProductType) {
56
46
  ProductType["Regular"] = "REGULAR";
@@ -1,5 +1,6 @@
1
1
  import type { ItemOptions, Order } from '../orders/interfaces';
2
- import type { DiscountMethod, ProductType, SubscriptionPendingStatus, SubscriptionStatus } from './enums';
2
+ import type { ProductType, SubscriptionPendingStatus, SubscriptionStatus } from './enums';
3
+ import type { DiscountMethod } from '../orders/enums';
3
4
  import type { SubscriptionOption } from '../plans/enums';
4
5
  import type { PaymentMethod } from '../payments/interfaces';
5
6
  import type { Product } from '../plans/interfaces';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brighterly/lib-core-types",
3
- "version": "0.13.1",
3
+ "version": "0.16.0",
4
4
  "description": "Official Brighterly lib-core-types",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",