atmn 1.0.1 → 1.0.2
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/cli.js +96 -96
- package/dist/source/compose/builders/builderFunctions.d.ts +83 -0
- package/dist/source/compose/index.d.ts +10 -0
- package/dist/source/compose/models/featureModels.d.ts +53 -0
- package/dist/source/compose/models/index.d.ts +2 -0
- package/dist/source/compose/models/planModels.d.ts +228 -0
- package/dist/source/index.d.ts +1 -0
- package/dist/source/index.js +52 -0
- package/dist/src/cli.js +87240 -0
- package/dist/src/compose/models/planModels.d.ts +17 -10
- package/package.json +1 -1
- package/dist/cli.cjs +0 -1640
- package/dist/cli.d.cts +0 -1
- package/dist/cli.d.ts +0 -1
- package/dist/cli.js.map +0 -278
- package/dist/commands/auth.d.ts +0 -1
- package/dist/commands/init.d.ts +0 -3
- package/dist/commands/nuke.d.ts +0 -1
- package/dist/commands/pull.d.ts +0 -3
- package/dist/commands/push.d.ts +0 -5
- package/dist/compose/builders/builderFunctions.d.ts +0 -63
- package/dist/compose/index.d.ts +0 -10
- package/dist/compose/models/composeModels.d.ts +0 -74
- package/dist/compose/models/productItemModels.d.ts +0 -77
- package/dist/constants.d.ts +0 -3
- package/dist/core/api.d.ts +0 -31
- package/dist/core/auth.d.ts +0 -1
- package/dist/core/builders/featureBuilder.d.ts +0 -2
- package/dist/core/builders/features.d.ts +0 -2
- package/dist/core/builders/freeTrialBuilder.d.ts +0 -4
- package/dist/core/builders/productBuilder.d.ts +0 -18
- package/dist/core/builders/products.d.ts +0 -18
- package/dist/core/config.d.ts +0 -40
- package/dist/core/nuke.d.ts +0 -6
- package/dist/core/pull.d.ts +0 -29
- package/dist/core/push.d.ts +0 -25
- package/dist/core/requests/featureRequests.d.ts +0 -10
- package/dist/core/requests/orgRequests.d.ts +0 -1
- package/dist/core/requests/prodRequests.d.ts +0 -10
- package/dist/core/utils.d.ts +0 -11
- package/dist/index.cjs +0 -58
- package/dist/index.d.cts +0 -188
- package/dist/index.d.ts +0 -188
- package/dist/index.js +0 -52
- package/dist/index.js.map +0 -10
|
@@ -8,7 +8,7 @@ export declare const PlanFeatureSchema: z.ZodObject<{
|
|
|
8
8
|
included: z.ZodOptional<z.ZodNumber>;
|
|
9
9
|
unlimited: z.ZodOptional<z.ZodBoolean>;
|
|
10
10
|
reset: z.ZodOptional<z.ZodObject<{
|
|
11
|
-
interval: z.ZodUnion<readonly [z.ZodLiteral<"one_off">, z.ZodLiteral<"hour">, z.ZodLiteral<"day">, z.ZodLiteral<"week">, z.ZodLiteral<"month">, z.ZodLiteral<"quarter">, z.ZodLiteral<"year">]>;
|
|
11
|
+
interval: z.ZodUnion<readonly [z.ZodLiteral<"one_off">, z.ZodLiteral<"minute">, z.ZodLiteral<"hour">, z.ZodLiteral<"day">, z.ZodLiteral<"week">, z.ZodLiteral<"month">, z.ZodLiteral<"quarter">, z.ZodLiteral<"semi_annual">, z.ZodLiteral<"year">]>;
|
|
12
12
|
interval_count: z.ZodOptional<z.ZodNumber>;
|
|
13
13
|
}, z.core.$strip>>;
|
|
14
14
|
price: z.ZodOptional<z.ZodObject<{
|
|
@@ -17,7 +17,7 @@ export declare const PlanFeatureSchema: z.ZodObject<{
|
|
|
17
17
|
to: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"inf">]>;
|
|
18
18
|
amount: z.ZodNumber;
|
|
19
19
|
}, z.core.$strip>>>;
|
|
20
|
-
interval: z.ZodUnion<readonly [z.ZodLiteral<"month">, z.ZodLiteral<"quarter">, z.ZodLiteral<"semi_annual">, z.ZodLiteral<"year">]>;
|
|
20
|
+
interval: z.ZodUnion<readonly [z.ZodLiteral<"week">, z.ZodLiteral<"month">, z.ZodLiteral<"quarter">, z.ZodLiteral<"semi_annual">, z.ZodLiteral<"year">]>;
|
|
21
21
|
interval_count: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
22
22
|
billing_units: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
23
23
|
billing_method: z.ZodUnion<readonly [z.ZodLiteral<"prepaid">, z.ZodLiteral<"usage_based">]>;
|
|
@@ -28,10 +28,13 @@ export declare const PlanFeatureSchema: z.ZodObject<{
|
|
|
28
28
|
on_decrease: z.ZodUnion<readonly [z.ZodLiteral<"prorate">, z.ZodLiteral<"refund_immediately">, z.ZodLiteral<"no_action">]>;
|
|
29
29
|
}, z.core.$strip>>;
|
|
30
30
|
rollover: z.ZodOptional<z.ZodObject<{
|
|
31
|
-
max: z.ZodNumber
|
|
31
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
32
32
|
expiry_duration_type: z.ZodUnion<readonly [z.ZodLiteral<"month">, z.ZodLiteral<"forever">]>;
|
|
33
33
|
expiry_duration_length: z.ZodOptional<z.ZodNumber>;
|
|
34
34
|
}, z.core.$strip>>;
|
|
35
|
+
entity_feature_id: z.ZodOptional<z.ZodString>;
|
|
36
|
+
entitlement_id: z.ZodOptional<z.ZodString>;
|
|
37
|
+
price_id: z.ZodOptional<z.ZodString>;
|
|
35
38
|
}, z.core.$strip>;
|
|
36
39
|
export declare const FreeTrialSchema: z.ZodObject<{
|
|
37
40
|
duration_length: z.ZodNumber;
|
|
@@ -43,7 +46,7 @@ export declare const PlanSchema: z.ZodObject<{
|
|
|
43
46
|
auto_enable: z.ZodDefault<z.ZodBoolean>;
|
|
44
47
|
price: z.ZodOptional<z.ZodObject<{
|
|
45
48
|
amount: z.ZodNumber;
|
|
46
|
-
interval: z.ZodUnion<readonly [z.ZodLiteral<"month">, z.ZodLiteral<"quarter">, z.ZodLiteral<"semi_annual">, z.ZodLiteral<"year">]>;
|
|
49
|
+
interval: z.ZodUnion<readonly [z.ZodLiteral<"one_off">, z.ZodLiteral<"week">, z.ZodLiteral<"month">, z.ZodLiteral<"quarter">, z.ZodLiteral<"semi_annual">, z.ZodLiteral<"year">]>;
|
|
47
50
|
interval_count: z.ZodOptional<z.ZodNumber>;
|
|
48
51
|
}, z.core.$strip>>;
|
|
49
52
|
items: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -51,7 +54,7 @@ export declare const PlanSchema: z.ZodObject<{
|
|
|
51
54
|
included: z.ZodOptional<z.ZodNumber>;
|
|
52
55
|
unlimited: z.ZodOptional<z.ZodBoolean>;
|
|
53
56
|
reset: z.ZodOptional<z.ZodObject<{
|
|
54
|
-
interval: z.ZodUnion<readonly [z.ZodLiteral<"one_off">, z.ZodLiteral<"hour">, z.ZodLiteral<"day">, z.ZodLiteral<"week">, z.ZodLiteral<"month">, z.ZodLiteral<"quarter">, z.ZodLiteral<"year">]>;
|
|
57
|
+
interval: z.ZodUnion<readonly [z.ZodLiteral<"one_off">, z.ZodLiteral<"minute">, z.ZodLiteral<"hour">, z.ZodLiteral<"day">, z.ZodLiteral<"week">, z.ZodLiteral<"month">, z.ZodLiteral<"quarter">, z.ZodLiteral<"semi_annual">, z.ZodLiteral<"year">]>;
|
|
55
58
|
interval_count: z.ZodOptional<z.ZodNumber>;
|
|
56
59
|
}, z.core.$strip>>;
|
|
57
60
|
price: z.ZodOptional<z.ZodObject<{
|
|
@@ -60,7 +63,7 @@ export declare const PlanSchema: z.ZodObject<{
|
|
|
60
63
|
to: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"inf">]>;
|
|
61
64
|
amount: z.ZodNumber;
|
|
62
65
|
}, z.core.$strip>>>;
|
|
63
|
-
interval: z.ZodUnion<readonly [z.ZodLiteral<"month">, z.ZodLiteral<"quarter">, z.ZodLiteral<"semi_annual">, z.ZodLiteral<"year">]>;
|
|
66
|
+
interval: z.ZodUnion<readonly [z.ZodLiteral<"week">, z.ZodLiteral<"month">, z.ZodLiteral<"quarter">, z.ZodLiteral<"semi_annual">, z.ZodLiteral<"year">]>;
|
|
64
67
|
interval_count: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
65
68
|
billing_units: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
66
69
|
billing_method: z.ZodUnion<readonly [z.ZodLiteral<"prepaid">, z.ZodLiteral<"usage_based">]>;
|
|
@@ -71,10 +74,13 @@ export declare const PlanSchema: z.ZodObject<{
|
|
|
71
74
|
on_decrease: z.ZodUnion<readonly [z.ZodLiteral<"prorate">, z.ZodLiteral<"refund_immediately">, z.ZodLiteral<"no_action">]>;
|
|
72
75
|
}, z.core.$strip>>;
|
|
73
76
|
rollover: z.ZodOptional<z.ZodObject<{
|
|
74
|
-
max: z.ZodNumber
|
|
77
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
75
78
|
expiry_duration_type: z.ZodUnion<readonly [z.ZodLiteral<"month">, z.ZodLiteral<"forever">]>;
|
|
76
79
|
expiry_duration_length: z.ZodOptional<z.ZodNumber>;
|
|
77
80
|
}, z.core.$strip>>;
|
|
81
|
+
entity_feature_id: z.ZodOptional<z.ZodString>;
|
|
82
|
+
entitlement_id: z.ZodOptional<z.ZodString>;
|
|
83
|
+
price_id: z.ZodOptional<z.ZodString>;
|
|
78
84
|
}, z.core.$strip>>>;
|
|
79
85
|
free_trial: z.ZodOptional<z.ZodObject<{
|
|
80
86
|
duration_length: z.ZodNumber;
|
|
@@ -85,9 +91,10 @@ export declare const PlanSchema: z.ZodObject<{
|
|
|
85
91
|
name: z.ZodString;
|
|
86
92
|
group: z.ZodDefault<z.ZodString>;
|
|
87
93
|
}, z.core.$strip>;
|
|
88
|
-
export type ResetInterval = "one_off" | "hour" | "day" | "week" | "month" | "quarter" | "year";
|
|
94
|
+
export type ResetInterval = "one_off" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "semi_annual" | "year";
|
|
89
95
|
export type RolloverExpiryDurationType = "month" | "forever";
|
|
90
|
-
export type BillingInterval = "month" | "quarter" | "semi_annual" | "year";
|
|
96
|
+
export type BillingInterval = "week" | "month" | "quarter" | "semi_annual" | "year";
|
|
97
|
+
export type PlanPriceInterval = "one_off" | "week" | "month" | "quarter" | "semi_annual" | "year";
|
|
91
98
|
export type BillingMethod = "prepaid" | "usage_based";
|
|
92
99
|
export type OnIncrease = "prorate" | "charge_immediately";
|
|
93
100
|
export type OnDecrease = "prorate" | "refund_immediately" | "no_action";
|
|
@@ -216,7 +223,7 @@ export type Plan = {
|
|
|
216
223
|
/** Price in your currency (e.g., 50 for $50.00) */
|
|
217
224
|
amount: number;
|
|
218
225
|
/** Billing frequency */
|
|
219
|
-
interval:
|
|
226
|
+
interval: PlanPriceInterval;
|
|
220
227
|
};
|
|
221
228
|
/** Items included with usage limits and pricing */
|
|
222
229
|
items?: PlanFeature[];
|