@demind-inc/core 1.3.25 → 1.3.26
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/constants.d.ts +1 -0
- package/dist/constants.js +1 -0
- package/dist/models/Discount.d.ts +14 -0
- package/dist/models/Discount.js +2 -0
- package/dist/models/User.d.ts +3 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/lib/constants.ts +1 -0
- package/lib/models/Discount.ts +16 -0
- package/lib/models/User.ts +3 -0
- package/lib/models/index.ts +1 -0
- package/package.json +1 -1
package/dist/constants.d.ts
CHANGED
|
@@ -24,6 +24,7 @@ export declare const DB_COLLECTION: {
|
|
|
24
24
|
DATA_TREND_EVENT: string;
|
|
25
25
|
DEVICE_GROUP: string;
|
|
26
26
|
DEVICES: string;
|
|
27
|
+
DISCOUNT: string;
|
|
27
28
|
};
|
|
28
29
|
export declare const SUPPORTED_TERRA_PROVIDERS: SupportedTerraProvidersType[];
|
|
29
30
|
export declare const STRESS_SUPPORTED_TERRA_PROVIDERS: SupportedTerraProvidersType[];
|
package/dist/constants.js
CHANGED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface Discount {
|
|
2
|
+
discountId: string;
|
|
3
|
+
code: string;
|
|
4
|
+
offerFrom: DiscountOfferFrom;
|
|
5
|
+
discountType: DiscountType;
|
|
6
|
+
isActive: boolean;
|
|
7
|
+
applicableOfferingIds: string[];
|
|
8
|
+
updatedAt: string;
|
|
9
|
+
discountPercentage?: number;
|
|
10
|
+
trialDays?: number;
|
|
11
|
+
rewardfulCampaignId?: string;
|
|
12
|
+
}
|
|
13
|
+
export type DiscountOfferFrom = "affiliate" | "discount";
|
|
14
|
+
export type DiscountType = "percentage" | "trialExtend" | "free";
|
package/dist/models/User.d.ts
CHANGED
package/dist/models/index.d.ts
CHANGED
package/dist/models/index.js
CHANGED
package/lib/constants.ts
CHANGED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface Discount {
|
|
2
|
+
discountId: string;
|
|
3
|
+
code: string;
|
|
4
|
+
offerFrom: DiscountOfferFrom;
|
|
5
|
+
discountType: DiscountType;
|
|
6
|
+
isActive: boolean;
|
|
7
|
+
applicableOfferingIds: string[];
|
|
8
|
+
updatedAt: string;
|
|
9
|
+
discountPercentage?: number;
|
|
10
|
+
trialDays?: number;
|
|
11
|
+
rewardfulCampaignId?: string;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export type DiscountOfferFrom = "affiliate" | "discount";
|
|
15
|
+
|
|
16
|
+
export type DiscountType = "percentage" | "trialExtend" | "free";
|
package/lib/models/User.ts
CHANGED
package/lib/models/index.ts
CHANGED