@moonbase.sh/api 0.4.71 → 0.4.73
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.cjs +264 -247
- package/dist/index.d.cts +660 -655
- package/dist/index.d.ts +660 -655
- package/dist/index.js +264 -247
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -3253,7 +3253,8 @@ declare namespace schemas$8 {
|
|
|
3253
3253
|
declare enum SubscriptionStatus {
|
|
3254
3254
|
Active = "Active",
|
|
3255
3255
|
Expired = "Expired",
|
|
3256
|
-
Cancelled = "Cancelled"
|
|
3256
|
+
Cancelled = "Cancelled",
|
|
3257
|
+
Completed = "Completed"
|
|
3257
3258
|
}
|
|
3258
3259
|
declare enum CycleLength {
|
|
3259
3260
|
Daily = "Daily",
|
|
@@ -3683,483 +3684,157 @@ interface Quantifiable<T> {
|
|
|
3683
3684
|
quantity: number;
|
|
3684
3685
|
}
|
|
3685
3686
|
|
|
3686
|
-
declare const
|
|
3687
|
-
|
|
3688
|
-
|
|
3689
|
-
|
|
3690
|
-
|
|
3691
|
-
|
|
3692
|
-
|
|
3687
|
+
declare const couponSnapshotSchema: z.ZodObject<{
|
|
3688
|
+
id: z.ZodString;
|
|
3689
|
+
code: z.ZodString;
|
|
3690
|
+
name: z.ZodString;
|
|
3691
|
+
description: z.ZodString;
|
|
3692
|
+
combinable: z.ZodBoolean;
|
|
3693
|
+
discount: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
3694
|
+
type: z.ZodLiteral<"PercentageOffDiscount">;
|
|
3695
|
+
percentage: z.ZodNumber;
|
|
3696
|
+
}, "strip", z.ZodTypeAny, {
|
|
3697
|
+
type: "PercentageOffDiscount";
|
|
3698
|
+
percentage: number;
|
|
3699
|
+
}, {
|
|
3700
|
+
type: "PercentageOffDiscount";
|
|
3701
|
+
percentage: number;
|
|
3702
|
+
}>, z.ZodObject<{
|
|
3703
|
+
type: z.ZodLiteral<"FlatAmountOffDiscount">;
|
|
3704
|
+
total: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
3705
|
+
}, "strip", z.ZodTypeAny, {
|
|
3706
|
+
type: "FlatAmountOffDiscount";
|
|
3707
|
+
total: Record<string, number>;
|
|
3708
|
+
}, {
|
|
3709
|
+
type: "FlatAmountOffDiscount";
|
|
3710
|
+
total: Record<string, number>;
|
|
3711
|
+
}>]>;
|
|
3712
|
+
applicableProductIds: z.ZodArray<z.ZodString, "many">;
|
|
3713
|
+
applicableBundleIds: z.ZodArray<z.ZodString, "many">;
|
|
3714
|
+
recurringPaymentUseCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
3693
3715
|
}, "strip", z.ZodTypeAny, {
|
|
3694
|
-
|
|
3695
|
-
|
|
3696
|
-
|
|
3697
|
-
|
|
3698
|
-
|
|
3699
|
-
|
|
3716
|
+
code: string;
|
|
3717
|
+
id: string;
|
|
3718
|
+
name: string;
|
|
3719
|
+
description: string;
|
|
3720
|
+
discount: {
|
|
3721
|
+
type: "PercentageOffDiscount";
|
|
3722
|
+
percentage: number;
|
|
3723
|
+
} | {
|
|
3724
|
+
type: "FlatAmountOffDiscount";
|
|
3725
|
+
total: Record<string, number>;
|
|
3726
|
+
};
|
|
3727
|
+
combinable: boolean;
|
|
3728
|
+
applicableProductIds: string[];
|
|
3729
|
+
applicableBundleIds: string[];
|
|
3730
|
+
recurringPaymentUseCount?: number | null | undefined;
|
|
3700
3731
|
}, {
|
|
3701
|
-
|
|
3702
|
-
|
|
3703
|
-
|
|
3704
|
-
|
|
3705
|
-
|
|
3706
|
-
|
|
3732
|
+
code: string;
|
|
3733
|
+
id: string;
|
|
3734
|
+
name: string;
|
|
3735
|
+
description: string;
|
|
3736
|
+
discount: {
|
|
3737
|
+
type: "PercentageOffDiscount";
|
|
3738
|
+
percentage: number;
|
|
3739
|
+
} | {
|
|
3740
|
+
type: "FlatAmountOffDiscount";
|
|
3741
|
+
total: Record<string, number>;
|
|
3742
|
+
};
|
|
3743
|
+
combinable: boolean;
|
|
3744
|
+
applicableProductIds: string[];
|
|
3745
|
+
applicableBundleIds: string[];
|
|
3746
|
+
recurringPaymentUseCount?: number | null | undefined;
|
|
3707
3747
|
}>;
|
|
3708
|
-
declare const
|
|
3709
|
-
|
|
3748
|
+
declare const licenseLineItemFulfillmentSchema: z.ZodObject<{
|
|
3749
|
+
type: z.ZodLiteral<"License">;
|
|
3750
|
+
licenseIds: z.ZodArray<z.ZodString, "many">;
|
|
3710
3751
|
}, "strip", z.ZodTypeAny, {
|
|
3711
|
-
|
|
3752
|
+
type: "License";
|
|
3753
|
+
licenseIds: string[];
|
|
3712
3754
|
}, {
|
|
3713
|
-
|
|
3755
|
+
type: "License";
|
|
3756
|
+
licenseIds: string[];
|
|
3714
3757
|
}>;
|
|
3715
|
-
declare const
|
|
3716
|
-
|
|
3717
|
-
|
|
3718
|
-
|
|
3719
|
-
businessName: z.ZodNullable<z.ZodString>;
|
|
3720
|
-
taxId: z.ZodNullable<z.ZodString>;
|
|
3721
|
-
email: z.ZodString;
|
|
3722
|
-
numberOfLicenses: z.ZodNumber;
|
|
3723
|
-
numberOfTrials: z.ZodNumber;
|
|
3724
|
-
emailConfirmed: z.ZodBoolean;
|
|
3725
|
-
hasPassword: z.ZodBoolean;
|
|
3726
|
-
isDeleted: z.ZodBoolean;
|
|
3727
|
-
ownedProducts: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
|
|
3728
|
-
subscribedProducts: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
|
|
3729
|
-
address: z.ZodNullable<z.ZodObject<{
|
|
3730
|
-
countryCode: z.ZodString;
|
|
3731
|
-
streetAddress1: z.ZodString;
|
|
3732
|
-
streetAddress2: z.ZodNullable<z.ZodString>;
|
|
3733
|
-
locality: z.ZodNullable<z.ZodString>;
|
|
3734
|
-
region: z.ZodNullable<z.ZodString>;
|
|
3735
|
-
postCode: z.ZodNullable<z.ZodString>;
|
|
3758
|
+
declare const bundleLineItemFulfillmentSchema: z.ZodObject<{
|
|
3759
|
+
type: z.ZodLiteral<"Bundle">;
|
|
3760
|
+
productLicenses: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3761
|
+
licenseIds: z.ZodArray<z.ZodString, "many">;
|
|
3736
3762
|
}, "strip", z.ZodTypeAny, {
|
|
3737
|
-
|
|
3738
|
-
streetAddress1: string;
|
|
3739
|
-
streetAddress2: string | null;
|
|
3740
|
-
locality: string | null;
|
|
3741
|
-
region: string | null;
|
|
3742
|
-
postCode: string | null;
|
|
3763
|
+
licenseIds: string[];
|
|
3743
3764
|
}, {
|
|
3744
|
-
|
|
3745
|
-
streetAddress1: string;
|
|
3746
|
-
streetAddress2: string | null;
|
|
3747
|
-
locality: string | null;
|
|
3748
|
-
region: string | null;
|
|
3749
|
-
postCode: string | null;
|
|
3765
|
+
licenseIds: string[];
|
|
3750
3766
|
}>>;
|
|
3751
|
-
|
|
3752
|
-
|
|
3767
|
+
}, "strip", z.ZodTypeAny, {
|
|
3768
|
+
type: "Bundle";
|
|
3769
|
+
productLicenses: Record<string, {
|
|
3770
|
+
licenseIds: string[];
|
|
3771
|
+
}>;
|
|
3772
|
+
}, {
|
|
3773
|
+
type: "Bundle";
|
|
3774
|
+
productLicenses: Record<string, {
|
|
3775
|
+
licenseIds: string[];
|
|
3776
|
+
}>;
|
|
3777
|
+
}>;
|
|
3778
|
+
declare const lineItemFulfillmentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
3779
|
+
type: z.ZodLiteral<"License">;
|
|
3780
|
+
licenseIds: z.ZodArray<z.ZodString, "many">;
|
|
3781
|
+
}, "strip", z.ZodTypeAny, {
|
|
3782
|
+
type: "License";
|
|
3783
|
+
licenseIds: string[];
|
|
3784
|
+
}, {
|
|
3785
|
+
type: "License";
|
|
3786
|
+
licenseIds: string[];
|
|
3787
|
+
}>, z.ZodObject<{
|
|
3788
|
+
type: z.ZodLiteral<"Bundle">;
|
|
3789
|
+
productLicenses: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3790
|
+
licenseIds: z.ZodArray<z.ZodString, "many">;
|
|
3753
3791
|
}, "strip", z.ZodTypeAny, {
|
|
3754
|
-
|
|
3792
|
+
licenseIds: string[];
|
|
3755
3793
|
}, {
|
|
3756
|
-
|
|
3794
|
+
licenseIds: string[];
|
|
3795
|
+
}>>;
|
|
3796
|
+
}, "strip", z.ZodTypeAny, {
|
|
3797
|
+
type: "Bundle";
|
|
3798
|
+
productLicenses: Record<string, {
|
|
3799
|
+
licenseIds: string[];
|
|
3757
3800
|
}>;
|
|
3758
|
-
|
|
3759
|
-
|
|
3760
|
-
|
|
3761
|
-
|
|
3762
|
-
|
|
3763
|
-
|
|
3764
|
-
|
|
3765
|
-
|
|
3766
|
-
|
|
3767
|
-
|
|
3768
|
-
|
|
3769
|
-
id: string;
|
|
3770
|
-
name: string;
|
|
3771
|
-
email: string;
|
|
3772
|
-
}>;
|
|
3801
|
+
}, {
|
|
3802
|
+
type: "Bundle";
|
|
3803
|
+
productLicenses: Record<string, {
|
|
3804
|
+
licenseIds: string[];
|
|
3805
|
+
}>;
|
|
3806
|
+
}>, z.ZodObject<{
|
|
3807
|
+
type: z.ZodLiteral<"Subscription">;
|
|
3808
|
+
subscriptionId: z.ZodString;
|
|
3809
|
+
inner: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
3810
|
+
type: z.ZodLiteral<"License">;
|
|
3811
|
+
licenseIds: z.ZodArray<z.ZodString, "many">;
|
|
3773
3812
|
}, "strip", z.ZodTypeAny, {
|
|
3774
|
-
|
|
3775
|
-
|
|
3776
|
-
id: string;
|
|
3777
|
-
name: string;
|
|
3778
|
-
email: string;
|
|
3779
|
-
};
|
|
3813
|
+
type: "License";
|
|
3814
|
+
licenseIds: string[];
|
|
3780
3815
|
}, {
|
|
3781
|
-
|
|
3782
|
-
|
|
3783
|
-
|
|
3784
|
-
|
|
3785
|
-
|
|
3786
|
-
|
|
3787
|
-
}>;
|
|
3788
|
-
created: z.ZodObject<{
|
|
3789
|
-
at: z.ZodDate;
|
|
3790
|
-
by: z.ZodObject<{
|
|
3791
|
-
id: z.ZodString;
|
|
3792
|
-
name: z.ZodString;
|
|
3793
|
-
email: z.ZodString;
|
|
3816
|
+
type: "License";
|
|
3817
|
+
licenseIds: string[];
|
|
3818
|
+
}>, z.ZodObject<{
|
|
3819
|
+
type: z.ZodLiteral<"Bundle">;
|
|
3820
|
+
productLicenses: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3821
|
+
licenseIds: z.ZodArray<z.ZodString, "many">;
|
|
3794
3822
|
}, "strip", z.ZodTypeAny, {
|
|
3795
|
-
|
|
3796
|
-
name: string;
|
|
3797
|
-
email: string;
|
|
3823
|
+
licenseIds: string[];
|
|
3798
3824
|
}, {
|
|
3799
|
-
|
|
3800
|
-
|
|
3801
|
-
email: string;
|
|
3802
|
-
}>;
|
|
3825
|
+
licenseIds: string[];
|
|
3826
|
+
}>>;
|
|
3803
3827
|
}, "strip", z.ZodTypeAny, {
|
|
3804
|
-
|
|
3805
|
-
|
|
3806
|
-
|
|
3807
|
-
|
|
3808
|
-
email: string;
|
|
3809
|
-
};
|
|
3828
|
+
type: "Bundle";
|
|
3829
|
+
productLicenses: Record<string, {
|
|
3830
|
+
licenseIds: string[];
|
|
3831
|
+
}>;
|
|
3810
3832
|
}, {
|
|
3811
|
-
|
|
3812
|
-
|
|
3813
|
-
|
|
3814
|
-
|
|
3815
|
-
|
|
3816
|
-
};
|
|
3817
|
-
}>;
|
|
3818
|
-
}, "strip", z.ZodTypeAny, {
|
|
3819
|
-
id: string;
|
|
3820
|
-
name: string;
|
|
3821
|
-
businessName: string | null;
|
|
3822
|
-
taxId: string | null;
|
|
3823
|
-
email: string;
|
|
3824
|
-
address: {
|
|
3825
|
-
countryCode: string;
|
|
3826
|
-
streetAddress1: string;
|
|
3827
|
-
streetAddress2: string | null;
|
|
3828
|
-
locality: string | null;
|
|
3829
|
-
region: string | null;
|
|
3830
|
-
postCode: string | null;
|
|
3831
|
-
} | null;
|
|
3832
|
-
lastUpdated: {
|
|
3833
|
-
at: Date;
|
|
3834
|
-
by: {
|
|
3835
|
-
id: string;
|
|
3836
|
-
name: string;
|
|
3837
|
-
email: string;
|
|
3838
|
-
};
|
|
3839
|
-
};
|
|
3840
|
-
created: {
|
|
3841
|
-
at: Date;
|
|
3842
|
-
by: {
|
|
3843
|
-
id: string;
|
|
3844
|
-
name: string;
|
|
3845
|
-
email: string;
|
|
3846
|
-
};
|
|
3847
|
-
};
|
|
3848
|
-
numberOfLicenses: number;
|
|
3849
|
-
numberOfTrials: number;
|
|
3850
|
-
emailConfirmed: boolean;
|
|
3851
|
-
hasPassword: boolean;
|
|
3852
|
-
isDeleted: boolean;
|
|
3853
|
-
ownedProducts: string[];
|
|
3854
|
-
subscribedProducts: string[];
|
|
3855
|
-
communicationPreferences: {
|
|
3856
|
-
newsletterOptIn: boolean;
|
|
3857
|
-
};
|
|
3858
|
-
externalId?: string | undefined;
|
|
3859
|
-
}, {
|
|
3860
|
-
id: string;
|
|
3861
|
-
name: string;
|
|
3862
|
-
businessName: string | null;
|
|
3863
|
-
taxId: string | null;
|
|
3864
|
-
email: string;
|
|
3865
|
-
address: {
|
|
3866
|
-
countryCode: string;
|
|
3867
|
-
streetAddress1: string;
|
|
3868
|
-
streetAddress2: string | null;
|
|
3869
|
-
locality: string | null;
|
|
3870
|
-
region: string | null;
|
|
3871
|
-
postCode: string | null;
|
|
3872
|
-
} | null;
|
|
3873
|
-
lastUpdated: {
|
|
3874
|
-
at: Date;
|
|
3875
|
-
by: {
|
|
3876
|
-
id: string;
|
|
3877
|
-
name: string;
|
|
3878
|
-
email: string;
|
|
3879
|
-
};
|
|
3880
|
-
};
|
|
3881
|
-
created: {
|
|
3882
|
-
at: Date;
|
|
3883
|
-
by: {
|
|
3884
|
-
id: string;
|
|
3885
|
-
name: string;
|
|
3886
|
-
email: string;
|
|
3887
|
-
};
|
|
3888
|
-
};
|
|
3889
|
-
numberOfLicenses: number;
|
|
3890
|
-
numberOfTrials: number;
|
|
3891
|
-
emailConfirmed: boolean;
|
|
3892
|
-
hasPassword: boolean;
|
|
3893
|
-
isDeleted: boolean;
|
|
3894
|
-
ownedProducts: string[];
|
|
3895
|
-
subscribedProducts: string[];
|
|
3896
|
-
communicationPreferences: {
|
|
3897
|
-
newsletterOptIn: boolean;
|
|
3898
|
-
};
|
|
3899
|
-
externalId?: string | undefined;
|
|
3900
|
-
}>;
|
|
3901
|
-
declare const importCustomerRequestSchema: z.ZodObject<{
|
|
3902
|
-
name: z.ZodString;
|
|
3903
|
-
email: z.ZodString;
|
|
3904
|
-
externalId: z.ZodOptional<z.ZodString>;
|
|
3905
|
-
password: z.ZodOptional<z.ZodString>;
|
|
3906
|
-
address: z.ZodOptional<z.ZodObject<{
|
|
3907
|
-
countryCode: z.ZodString;
|
|
3908
|
-
streetAddress1: z.ZodString;
|
|
3909
|
-
streetAddress2: z.ZodNullable<z.ZodString>;
|
|
3910
|
-
locality: z.ZodNullable<z.ZodString>;
|
|
3911
|
-
region: z.ZodNullable<z.ZodString>;
|
|
3912
|
-
postCode: z.ZodNullable<z.ZodString>;
|
|
3913
|
-
}, "strip", z.ZodTypeAny, {
|
|
3914
|
-
countryCode: string;
|
|
3915
|
-
streetAddress1: string;
|
|
3916
|
-
streetAddress2: string | null;
|
|
3917
|
-
locality: string | null;
|
|
3918
|
-
region: string | null;
|
|
3919
|
-
postCode: string | null;
|
|
3920
|
-
}, {
|
|
3921
|
-
countryCode: string;
|
|
3922
|
-
streetAddress1: string;
|
|
3923
|
-
streetAddress2: string | null;
|
|
3924
|
-
locality: string | null;
|
|
3925
|
-
region: string | null;
|
|
3926
|
-
postCode: string | null;
|
|
3927
|
-
}>>;
|
|
3928
|
-
createdAt: z.ZodOptional<z.ZodDate>;
|
|
3929
|
-
}, "strip", z.ZodTypeAny, {
|
|
3930
|
-
name: string;
|
|
3931
|
-
email: string;
|
|
3932
|
-
address?: {
|
|
3933
|
-
countryCode: string;
|
|
3934
|
-
streetAddress1: string;
|
|
3935
|
-
streetAddress2: string | null;
|
|
3936
|
-
locality: string | null;
|
|
3937
|
-
region: string | null;
|
|
3938
|
-
postCode: string | null;
|
|
3939
|
-
} | undefined;
|
|
3940
|
-
externalId?: string | undefined;
|
|
3941
|
-
createdAt?: Date | undefined;
|
|
3942
|
-
password?: string | undefined;
|
|
3943
|
-
}, {
|
|
3944
|
-
name: string;
|
|
3945
|
-
email: string;
|
|
3946
|
-
address?: {
|
|
3947
|
-
countryCode: string;
|
|
3948
|
-
streetAddress1: string;
|
|
3949
|
-
streetAddress2: string | null;
|
|
3950
|
-
locality: string | null;
|
|
3951
|
-
region: string | null;
|
|
3952
|
-
postCode: string | null;
|
|
3953
|
-
} | undefined;
|
|
3954
|
-
externalId?: string | undefined;
|
|
3955
|
-
createdAt?: Date | undefined;
|
|
3956
|
-
password?: string | undefined;
|
|
3957
|
-
}>;
|
|
3958
|
-
|
|
3959
|
-
declare const schemas$7_addressSchema: typeof addressSchema;
|
|
3960
|
-
declare const schemas$7_communicationPreferencesSchema: typeof communicationPreferencesSchema;
|
|
3961
|
-
declare const schemas$7_customerSchema: typeof customerSchema;
|
|
3962
|
-
declare const schemas$7_importCustomerRequestSchema: typeof importCustomerRequestSchema;
|
|
3963
|
-
declare namespace schemas$7 {
|
|
3964
|
-
export { schemas$7_addressSchema as addressSchema, schemas$7_communicationPreferencesSchema as communicationPreferencesSchema, schemas$7_customerSchema as customerSchema, schemas$7_importCustomerRequestSchema as importCustomerRequestSchema };
|
|
3965
|
-
}
|
|
3966
|
-
|
|
3967
|
-
type Customer = z.infer<typeof customerSchema>;
|
|
3968
|
-
type ImportCustomerRequest = z.infer<typeof importCustomerRequestSchema>;
|
|
3969
|
-
|
|
3970
|
-
declare class CustomerEndpoints {
|
|
3971
|
-
private api;
|
|
3972
|
-
constructor(api: MoonbaseApi);
|
|
3973
|
-
query(opts?: {
|
|
3974
|
-
paginationToken?: string;
|
|
3975
|
-
after?: Date;
|
|
3976
|
-
before?: Date;
|
|
3977
|
-
pageSize?: number;
|
|
3978
|
-
}): Promise<Page<Customer>>;
|
|
3979
|
-
get(idOrEmail: string): Promise<Customer>;
|
|
3980
|
-
import(customer: ImportCustomerRequest): Promise<Customer>;
|
|
3981
|
-
}
|
|
3982
|
-
|
|
3983
|
-
declare class LicenseEndpoints {
|
|
3984
|
-
private api;
|
|
3985
|
-
constructor(api: MoonbaseApi);
|
|
3986
|
-
query(opts?: {
|
|
3987
|
-
paginationToken?: string;
|
|
3988
|
-
productFilter?: string;
|
|
3989
|
-
after?: Date;
|
|
3990
|
-
before?: Date;
|
|
3991
|
-
pageSize?: number;
|
|
3992
|
-
}): Promise<Page<License>>;
|
|
3993
|
-
get(licenseId: string): Promise<License>;
|
|
3994
|
-
import(license: ImportLicenseRequest): Promise<License>;
|
|
3995
|
-
provision(input: ProvisionLicensesRequest): Promise<License[]>;
|
|
3996
|
-
revoke(licenseId: string): Promise<License>;
|
|
3997
|
-
queryActivations(opts?: {
|
|
3998
|
-
paginationToken?: string;
|
|
3999
|
-
after?: Date;
|
|
4000
|
-
before?: Date;
|
|
4001
|
-
pageSize?: number;
|
|
4002
|
-
}): Promise<Page<LicenseActivation>>;
|
|
4003
|
-
queryActivations(licenseId: string, opts?: {
|
|
4004
|
-
paginationToken?: string;
|
|
4005
|
-
pageSize?: number;
|
|
4006
|
-
}): Promise<Page<LicenseActivation>>;
|
|
4007
|
-
getActivation(licenseId: string, activationId: string): Promise<LicenseActivation>;
|
|
4008
|
-
validateActivation(licenseId: string, activationId: string): Promise<LicenseActivation>;
|
|
4009
|
-
revokeActivation(licenseId: string, activationId: string): Promise<LicenseActivation>;
|
|
4010
|
-
}
|
|
4011
|
-
|
|
4012
|
-
declare const couponSnapshotSchema: z.ZodObject<{
|
|
4013
|
-
id: z.ZodString;
|
|
4014
|
-
code: z.ZodString;
|
|
4015
|
-
name: z.ZodString;
|
|
4016
|
-
description: z.ZodString;
|
|
4017
|
-
combinable: z.ZodBoolean;
|
|
4018
|
-
discount: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
4019
|
-
type: z.ZodLiteral<"PercentageOffDiscount">;
|
|
4020
|
-
percentage: z.ZodNumber;
|
|
4021
|
-
}, "strip", z.ZodTypeAny, {
|
|
4022
|
-
type: "PercentageOffDiscount";
|
|
4023
|
-
percentage: number;
|
|
4024
|
-
}, {
|
|
4025
|
-
type: "PercentageOffDiscount";
|
|
4026
|
-
percentage: number;
|
|
4027
|
-
}>, z.ZodObject<{
|
|
4028
|
-
type: z.ZodLiteral<"FlatAmountOffDiscount">;
|
|
4029
|
-
total: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
4030
|
-
}, "strip", z.ZodTypeAny, {
|
|
4031
|
-
type: "FlatAmountOffDiscount";
|
|
4032
|
-
total: Record<string, number>;
|
|
4033
|
-
}, {
|
|
4034
|
-
type: "FlatAmountOffDiscount";
|
|
4035
|
-
total: Record<string, number>;
|
|
4036
|
-
}>]>;
|
|
4037
|
-
applicableProductIds: z.ZodArray<z.ZodString, "many">;
|
|
4038
|
-
applicableBundleIds: z.ZodArray<z.ZodString, "many">;
|
|
4039
|
-
recurringPaymentUseCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
4040
|
-
}, "strip", z.ZodTypeAny, {
|
|
4041
|
-
code: string;
|
|
4042
|
-
id: string;
|
|
4043
|
-
name: string;
|
|
4044
|
-
description: string;
|
|
4045
|
-
discount: {
|
|
4046
|
-
type: "PercentageOffDiscount";
|
|
4047
|
-
percentage: number;
|
|
4048
|
-
} | {
|
|
4049
|
-
type: "FlatAmountOffDiscount";
|
|
4050
|
-
total: Record<string, number>;
|
|
4051
|
-
};
|
|
4052
|
-
combinable: boolean;
|
|
4053
|
-
applicableProductIds: string[];
|
|
4054
|
-
applicableBundleIds: string[];
|
|
4055
|
-
recurringPaymentUseCount?: number | null | undefined;
|
|
4056
|
-
}, {
|
|
4057
|
-
code: string;
|
|
4058
|
-
id: string;
|
|
4059
|
-
name: string;
|
|
4060
|
-
description: string;
|
|
4061
|
-
discount: {
|
|
4062
|
-
type: "PercentageOffDiscount";
|
|
4063
|
-
percentage: number;
|
|
4064
|
-
} | {
|
|
4065
|
-
type: "FlatAmountOffDiscount";
|
|
4066
|
-
total: Record<string, number>;
|
|
4067
|
-
};
|
|
4068
|
-
combinable: boolean;
|
|
4069
|
-
applicableProductIds: string[];
|
|
4070
|
-
applicableBundleIds: string[];
|
|
4071
|
-
recurringPaymentUseCount?: number | null | undefined;
|
|
4072
|
-
}>;
|
|
4073
|
-
declare const licenseLineItemFulfillmentSchema: z.ZodObject<{
|
|
4074
|
-
type: z.ZodLiteral<"License">;
|
|
4075
|
-
licenseIds: z.ZodArray<z.ZodString, "many">;
|
|
4076
|
-
}, "strip", z.ZodTypeAny, {
|
|
4077
|
-
type: "License";
|
|
4078
|
-
licenseIds: string[];
|
|
4079
|
-
}, {
|
|
4080
|
-
type: "License";
|
|
4081
|
-
licenseIds: string[];
|
|
4082
|
-
}>;
|
|
4083
|
-
declare const bundleLineItemFulfillmentSchema: z.ZodObject<{
|
|
4084
|
-
type: z.ZodLiteral<"Bundle">;
|
|
4085
|
-
productLicenses: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4086
|
-
licenseIds: z.ZodArray<z.ZodString, "many">;
|
|
4087
|
-
}, "strip", z.ZodTypeAny, {
|
|
4088
|
-
licenseIds: string[];
|
|
4089
|
-
}, {
|
|
4090
|
-
licenseIds: string[];
|
|
4091
|
-
}>>;
|
|
4092
|
-
}, "strip", z.ZodTypeAny, {
|
|
4093
|
-
type: "Bundle";
|
|
4094
|
-
productLicenses: Record<string, {
|
|
4095
|
-
licenseIds: string[];
|
|
4096
|
-
}>;
|
|
4097
|
-
}, {
|
|
4098
|
-
type: "Bundle";
|
|
4099
|
-
productLicenses: Record<string, {
|
|
4100
|
-
licenseIds: string[];
|
|
4101
|
-
}>;
|
|
4102
|
-
}>;
|
|
4103
|
-
declare const lineItemFulfillmentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
4104
|
-
type: z.ZodLiteral<"License">;
|
|
4105
|
-
licenseIds: z.ZodArray<z.ZodString, "many">;
|
|
4106
|
-
}, "strip", z.ZodTypeAny, {
|
|
4107
|
-
type: "License";
|
|
4108
|
-
licenseIds: string[];
|
|
4109
|
-
}, {
|
|
4110
|
-
type: "License";
|
|
4111
|
-
licenseIds: string[];
|
|
4112
|
-
}>, z.ZodObject<{
|
|
4113
|
-
type: z.ZodLiteral<"Bundle">;
|
|
4114
|
-
productLicenses: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4115
|
-
licenseIds: z.ZodArray<z.ZodString, "many">;
|
|
4116
|
-
}, "strip", z.ZodTypeAny, {
|
|
4117
|
-
licenseIds: string[];
|
|
4118
|
-
}, {
|
|
4119
|
-
licenseIds: string[];
|
|
4120
|
-
}>>;
|
|
4121
|
-
}, "strip", z.ZodTypeAny, {
|
|
4122
|
-
type: "Bundle";
|
|
4123
|
-
productLicenses: Record<string, {
|
|
4124
|
-
licenseIds: string[];
|
|
4125
|
-
}>;
|
|
4126
|
-
}, {
|
|
4127
|
-
type: "Bundle";
|
|
4128
|
-
productLicenses: Record<string, {
|
|
4129
|
-
licenseIds: string[];
|
|
4130
|
-
}>;
|
|
4131
|
-
}>, z.ZodObject<{
|
|
4132
|
-
type: z.ZodLiteral<"Subscription">;
|
|
4133
|
-
subscriptionId: z.ZodString;
|
|
4134
|
-
inner: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
4135
|
-
type: z.ZodLiteral<"License">;
|
|
4136
|
-
licenseIds: z.ZodArray<z.ZodString, "many">;
|
|
4137
|
-
}, "strip", z.ZodTypeAny, {
|
|
4138
|
-
type: "License";
|
|
4139
|
-
licenseIds: string[];
|
|
4140
|
-
}, {
|
|
4141
|
-
type: "License";
|
|
4142
|
-
licenseIds: string[];
|
|
4143
|
-
}>, z.ZodObject<{
|
|
4144
|
-
type: z.ZodLiteral<"Bundle">;
|
|
4145
|
-
productLicenses: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4146
|
-
licenseIds: z.ZodArray<z.ZodString, "many">;
|
|
4147
|
-
}, "strip", z.ZodTypeAny, {
|
|
4148
|
-
licenseIds: string[];
|
|
4149
|
-
}, {
|
|
4150
|
-
licenseIds: string[];
|
|
4151
|
-
}>>;
|
|
4152
|
-
}, "strip", z.ZodTypeAny, {
|
|
4153
|
-
type: "Bundle";
|
|
4154
|
-
productLicenses: Record<string, {
|
|
4155
|
-
licenseIds: string[];
|
|
4156
|
-
}>;
|
|
4157
|
-
}, {
|
|
4158
|
-
type: "Bundle";
|
|
4159
|
-
productLicenses: Record<string, {
|
|
4160
|
-
licenseIds: string[];
|
|
4161
|
-
}>;
|
|
4162
|
-
}>]>;
|
|
3833
|
+
type: "Bundle";
|
|
3834
|
+
productLicenses: Record<string, {
|
|
3835
|
+
licenseIds: string[];
|
|
3836
|
+
}>;
|
|
3837
|
+
}>]>;
|
|
4163
3838
|
}, "strip", z.ZodTypeAny, {
|
|
4164
3839
|
type: "Subscription";
|
|
4165
3840
|
subscriptionId: string;
|
|
@@ -10607,19 +10282,19 @@ declare const orderSchema: z.ZodObject<{
|
|
|
10607
10282
|
embeddedCheckoutUrl?: string | undefined;
|
|
10608
10283
|
}>;
|
|
10609
10284
|
|
|
10610
|
-
declare const schemas$
|
|
10611
|
-
declare const schemas$
|
|
10612
|
-
declare const schemas$
|
|
10613
|
-
declare const schemas$
|
|
10614
|
-
declare const schemas$
|
|
10615
|
-
declare const schemas$
|
|
10616
|
-
declare const schemas$
|
|
10617
|
-
declare const schemas$
|
|
10618
|
-
declare const schemas$
|
|
10619
|
-
declare const schemas$
|
|
10620
|
-
declare const schemas$
|
|
10621
|
-
declare namespace schemas$
|
|
10622
|
-
export { schemas$
|
|
10285
|
+
declare const schemas$7_bundleLineItemFulfillmentSchema: typeof bundleLineItemFulfillmentSchema;
|
|
10286
|
+
declare const schemas$7_bundleLineItemSchema: typeof bundleLineItemSchema;
|
|
10287
|
+
declare const schemas$7_couponSnapshotSchema: typeof couponSnapshotSchema;
|
|
10288
|
+
declare const schemas$7_customerSnapshotSchema: typeof customerSnapshotSchema;
|
|
10289
|
+
declare const schemas$7_licenseLineItemFulfillmentSchema: typeof licenseLineItemFulfillmentSchema;
|
|
10290
|
+
declare const schemas$7_lineItemFulfillmentSchema: typeof lineItemFulfillmentSchema;
|
|
10291
|
+
declare const schemas$7_orderLineItemSchema: typeof orderLineItemSchema;
|
|
10292
|
+
declare const schemas$7_orderSchema: typeof orderSchema;
|
|
10293
|
+
declare const schemas$7_orderTotalSchema: typeof orderTotalSchema;
|
|
10294
|
+
declare const schemas$7_productLineItemSchema: typeof productLineItemSchema;
|
|
10295
|
+
declare const schemas$7_utmSchema: typeof utmSchema;
|
|
10296
|
+
declare namespace schemas$7 {
|
|
10297
|
+
export { schemas$7_bundleLineItemFulfillmentSchema as bundleLineItemFulfillmentSchema, schemas$7_bundleLineItemSchema as bundleLineItemSchema, schemas$7_couponSnapshotSchema as couponSnapshotSchema, schemas$7_customerSnapshotSchema as customerSnapshotSchema, schemas$7_licenseLineItemFulfillmentSchema as licenseLineItemFulfillmentSchema, schemas$7_lineItemFulfillmentSchema as lineItemFulfillmentSchema, schemas$7_orderLineItemSchema as orderLineItemSchema, schemas$7_orderSchema as orderSchema, schemas$7_orderTotalSchema as orderTotalSchema, schemas$7_productLineItemSchema as productLineItemSchema, schemas$7_utmSchema as utmSchema };
|
|
10623
10298
|
}
|
|
10624
10299
|
|
|
10625
10300
|
declare enum OrderStatus {
|
|
@@ -10723,168 +10398,10 @@ type PrepareOrderRequest = {
|
|
|
10723
10398
|
/**
|
|
10724
10399
|
* Optional IP address of the customer requesting this operation.
|
|
10725
10400
|
* Will be used when calculating taxes for the order if finalizing pricing,
|
|
10726
|
-
* and if there is not billing address supplied for the customer.
|
|
10727
|
-
*/
|
|
10728
|
-
actorIPAddress?: string;
|
|
10729
|
-
};
|
|
10730
|
-
|
|
10731
|
-
declare class OrderEndpoints {
|
|
10732
|
-
private api;
|
|
10733
|
-
constructor(api: MoonbaseApi);
|
|
10734
|
-
query(opts: {
|
|
10735
|
-
paginationToken?: string;
|
|
10736
|
-
status: OrderStatus;
|
|
10737
|
-
after?: Date;
|
|
10738
|
-
before?: Date;
|
|
10739
|
-
pageSize?: number;
|
|
10740
|
-
}): Promise<Page<Order>>;
|
|
10741
|
-
get(id: string): Promise<Order>;
|
|
10742
|
-
prepare(request: PrepareOrderRequest, returnUrl?: string, finalize?: boolean): Promise<Order>;
|
|
10743
|
-
}
|
|
10744
|
-
|
|
10745
|
-
declare const productSchema: z.ZodObject<{
|
|
10746
|
-
id: z.ZodString;
|
|
10747
|
-
name: z.ZodString;
|
|
10748
|
-
tagline: z.ZodString;
|
|
10749
|
-
description: z.ZodString;
|
|
10750
|
-
website: z.ZodNullable<z.ZodString>;
|
|
10751
|
-
iconUrl: z.ZodNullable<z.ZodString>;
|
|
10752
|
-
status: z.ZodNativeEnum<typeof ProductStatus>;
|
|
10753
|
-
purchasable: z.ZodBoolean;
|
|
10754
|
-
currentReleaseVersion: z.ZodNullable<z.ZodString>;
|
|
10755
|
-
}, "strip", z.ZodTypeAny, {
|
|
10756
|
-
status: ProductStatus;
|
|
10757
|
-
id: string;
|
|
10758
|
-
name: string;
|
|
10759
|
-
description: string;
|
|
10760
|
-
tagline: string;
|
|
10761
|
-
website: string | null;
|
|
10762
|
-
iconUrl: string | null;
|
|
10763
|
-
purchasable: boolean;
|
|
10764
|
-
currentReleaseVersion: string | null;
|
|
10765
|
-
}, {
|
|
10766
|
-
status: ProductStatus;
|
|
10767
|
-
id: string;
|
|
10768
|
-
name: string;
|
|
10769
|
-
description: string;
|
|
10770
|
-
tagline: string;
|
|
10771
|
-
website: string | null;
|
|
10772
|
-
iconUrl: string | null;
|
|
10773
|
-
purchasable: boolean;
|
|
10774
|
-
currentReleaseVersion: string | null;
|
|
10775
|
-
}>;
|
|
10776
|
-
declare const productReleaseSchema: z.ZodObject<{
|
|
10777
|
-
version: z.ZodString;
|
|
10778
|
-
description: z.ZodNullable<z.ZodString>;
|
|
10779
|
-
publishedAt: z.ZodNullable<z.ZodDate>;
|
|
10780
|
-
downloadUrl: z.ZodString;
|
|
10781
|
-
hostedDownloadUrl: z.ZodString;
|
|
10782
|
-
downloads: z.ZodArray<z.ZodObject<{
|
|
10783
|
-
name: z.ZodString;
|
|
10784
|
-
key: z.ZodString;
|
|
10785
|
-
platform: z.ZodNativeEnum<typeof Platform>;
|
|
10786
|
-
size: z.ZodNumber;
|
|
10787
|
-
downloadUrl: z.ZodString;
|
|
10788
|
-
hostedDownloadUrl: z.ZodString;
|
|
10789
|
-
directUrl: z.ZodString;
|
|
10790
|
-
}, "strip", z.ZodTypeAny, {
|
|
10791
|
-
key: string;
|
|
10792
|
-
name: string;
|
|
10793
|
-
downloadUrl: string;
|
|
10794
|
-
hostedDownloadUrl: string;
|
|
10795
|
-
platform: Platform;
|
|
10796
|
-
size: number;
|
|
10797
|
-
directUrl: string;
|
|
10798
|
-
}, {
|
|
10799
|
-
key: string;
|
|
10800
|
-
name: string;
|
|
10801
|
-
downloadUrl: string;
|
|
10802
|
-
hostedDownloadUrl: string;
|
|
10803
|
-
platform: Platform;
|
|
10804
|
-
size: number;
|
|
10805
|
-
directUrl: string;
|
|
10806
|
-
}>, "many">;
|
|
10807
|
-
}, "strip", z.ZodTypeAny, {
|
|
10808
|
-
description: string | null;
|
|
10809
|
-
version: string;
|
|
10810
|
-
publishedAt: Date | null;
|
|
10811
|
-
downloadUrl: string;
|
|
10812
|
-
hostedDownloadUrl: string;
|
|
10813
|
-
downloads: {
|
|
10814
|
-
key: string;
|
|
10815
|
-
name: string;
|
|
10816
|
-
downloadUrl: string;
|
|
10817
|
-
hostedDownloadUrl: string;
|
|
10818
|
-
platform: Platform;
|
|
10819
|
-
size: number;
|
|
10820
|
-
directUrl: string;
|
|
10821
|
-
}[];
|
|
10822
|
-
}, {
|
|
10823
|
-
description: string | null;
|
|
10824
|
-
version: string;
|
|
10825
|
-
publishedAt: Date | null;
|
|
10826
|
-
downloadUrl: string;
|
|
10827
|
-
hostedDownloadUrl: string;
|
|
10828
|
-
downloads: {
|
|
10829
|
-
key: string;
|
|
10830
|
-
name: string;
|
|
10831
|
-
downloadUrl: string;
|
|
10832
|
-
hostedDownloadUrl: string;
|
|
10833
|
-
platform: Platform;
|
|
10834
|
-
size: number;
|
|
10835
|
-
directUrl: string;
|
|
10836
|
-
}[];
|
|
10837
|
-
}>;
|
|
10838
|
-
|
|
10839
|
-
declare const schemas$5_productReleaseSchema: typeof productReleaseSchema;
|
|
10840
|
-
declare const schemas$5_productSchema: typeof productSchema;
|
|
10841
|
-
declare namespace schemas$5 {
|
|
10842
|
-
export { schemas$5_productReleaseSchema as productReleaseSchema, schemas$5_productSchema as productSchema };
|
|
10843
|
-
}
|
|
10844
|
-
|
|
10845
|
-
declare enum Platform {
|
|
10846
|
-
Universal = "Universal",
|
|
10847
|
-
Windows = "Windows",
|
|
10848
|
-
Linux = "Linux",
|
|
10849
|
-
Mac = "Mac",
|
|
10850
|
-
iOS = "iOS",
|
|
10851
|
-
Android = "Android"
|
|
10852
|
-
}
|
|
10853
|
-
declare enum ProductStatus {
|
|
10854
|
-
Active = "Active",
|
|
10855
|
-
Inactive = "Inactive"
|
|
10856
|
-
}
|
|
10857
|
-
type Product = z.infer<typeof productSchema>;
|
|
10858
|
-
type ProductRelease = z.infer<typeof productReleaseSchema>;
|
|
10859
|
-
|
|
10860
|
-
declare class ProductEndpoints {
|
|
10861
|
-
private api;
|
|
10862
|
-
constructor(api: MoonbaseApi);
|
|
10863
|
-
query(opts?: {
|
|
10864
|
-
paginationToken?: string;
|
|
10865
|
-
activeOnly?: boolean;
|
|
10866
|
-
pageSize?: number;
|
|
10867
|
-
}): Promise<Page<Product>>;
|
|
10868
|
-
get(id: string): Promise<Product>;
|
|
10869
|
-
queryReleases(id: string, opts?: {
|
|
10870
|
-
paginationToken?: string;
|
|
10871
|
-
pageSize?: number;
|
|
10872
|
-
}): Promise<Page<ProductRelease>>;
|
|
10873
|
-
}
|
|
10874
|
-
|
|
10875
|
-
declare class SubscriptionEndpoints {
|
|
10876
|
-
private api;
|
|
10877
|
-
constructor(api: MoonbaseApi);
|
|
10878
|
-
query(opts: {
|
|
10879
|
-
paginationToken?: string;
|
|
10880
|
-
status: SubscriptionStatus;
|
|
10881
|
-
after?: Date;
|
|
10882
|
-
before?: Date;
|
|
10883
|
-
pageSize?: number;
|
|
10884
|
-
}): Promise<Page<Subscription>>;
|
|
10885
|
-
get(subscriptionId: string): Promise<Subscription>;
|
|
10886
|
-
import(subscription: ImportSubscriptionRequest): Promise<Subscription>;
|
|
10887
|
-
}
|
|
10401
|
+
* and if there is not billing address supplied for the customer.
|
|
10402
|
+
*/
|
|
10403
|
+
actorIPAddress?: string;
|
|
10404
|
+
};
|
|
10888
10405
|
|
|
10889
10406
|
declare const trialSchema: z.ZodObject<{
|
|
10890
10407
|
id: z.ZodString;
|
|
@@ -11286,37 +10803,525 @@ declare const importTrialRequestSchema: z.ZodObject<{
|
|
|
11286
10803
|
lastValidation: z.ZodOptional<z.ZodDate>;
|
|
11287
10804
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
11288
10805
|
}, "strip", z.ZodTypeAny, {
|
|
11289
|
-
productId: string;
|
|
11290
|
-
expiresAt: Date;
|
|
11291
|
-
deviceName: string;
|
|
11292
|
-
deviceSignature: string;
|
|
10806
|
+
productId: string;
|
|
10807
|
+
expiresAt: Date;
|
|
10808
|
+
deviceName: string;
|
|
10809
|
+
deviceSignature: string;
|
|
10810
|
+
externalId?: string | undefined;
|
|
10811
|
+
ownerId?: string | undefined;
|
|
10812
|
+
createdAt?: Date | undefined;
|
|
10813
|
+
lastValidation?: Date | undefined;
|
|
10814
|
+
}, {
|
|
10815
|
+
productId: string;
|
|
10816
|
+
expiresAt: Date;
|
|
10817
|
+
deviceName: string;
|
|
10818
|
+
deviceSignature: string;
|
|
10819
|
+
externalId?: string | undefined;
|
|
10820
|
+
ownerId?: string | undefined;
|
|
10821
|
+
createdAt?: Date | undefined;
|
|
10822
|
+
lastValidation?: Date | undefined;
|
|
10823
|
+
}>;
|
|
10824
|
+
|
|
10825
|
+
declare const schemas$6_importTrialRequestSchema: typeof importTrialRequestSchema;
|
|
10826
|
+
declare const schemas$6_trialSchema: typeof trialSchema;
|
|
10827
|
+
declare namespace schemas$6 {
|
|
10828
|
+
export { schemas$6_importTrialRequestSchema as importTrialRequestSchema, schemas$6_trialSchema as trialSchema };
|
|
10829
|
+
}
|
|
10830
|
+
|
|
10831
|
+
declare enum TrialStatus {
|
|
10832
|
+
Active = "Active",
|
|
10833
|
+
Expired = "Expired"
|
|
10834
|
+
}
|
|
10835
|
+
type Trial = z.infer<typeof trialSchema>;
|
|
10836
|
+
type ImportTrialRequest = z.infer<typeof importTrialRequestSchema>;
|
|
10837
|
+
|
|
10838
|
+
declare const addressSchema: z.ZodObject<{
|
|
10839
|
+
countryCode: z.ZodString;
|
|
10840
|
+
streetAddress1: z.ZodString;
|
|
10841
|
+
streetAddress2: z.ZodNullable<z.ZodString>;
|
|
10842
|
+
locality: z.ZodNullable<z.ZodString>;
|
|
10843
|
+
region: z.ZodNullable<z.ZodString>;
|
|
10844
|
+
postCode: z.ZodNullable<z.ZodString>;
|
|
10845
|
+
}, "strip", z.ZodTypeAny, {
|
|
10846
|
+
countryCode: string;
|
|
10847
|
+
streetAddress1: string;
|
|
10848
|
+
streetAddress2: string | null;
|
|
10849
|
+
locality: string | null;
|
|
10850
|
+
region: string | null;
|
|
10851
|
+
postCode: string | null;
|
|
10852
|
+
}, {
|
|
10853
|
+
countryCode: string;
|
|
10854
|
+
streetAddress1: string;
|
|
10855
|
+
streetAddress2: string | null;
|
|
10856
|
+
locality: string | null;
|
|
10857
|
+
region: string | null;
|
|
10858
|
+
postCode: string | null;
|
|
10859
|
+
}>;
|
|
10860
|
+
declare const communicationPreferencesSchema: z.ZodObject<{
|
|
10861
|
+
newsletterOptIn: z.ZodBoolean;
|
|
10862
|
+
}, "strip", z.ZodTypeAny, {
|
|
10863
|
+
newsletterOptIn: boolean;
|
|
10864
|
+
}, {
|
|
10865
|
+
newsletterOptIn: boolean;
|
|
10866
|
+
}>;
|
|
10867
|
+
declare const customerSchema: z.ZodObject<{
|
|
10868
|
+
id: z.ZodString;
|
|
10869
|
+
externalId: z.ZodOptional<z.ZodString>;
|
|
10870
|
+
name: z.ZodString;
|
|
10871
|
+
businessName: z.ZodNullable<z.ZodString>;
|
|
10872
|
+
taxId: z.ZodNullable<z.ZodString>;
|
|
10873
|
+
email: z.ZodString;
|
|
10874
|
+
numberOfLicenses: z.ZodNumber;
|
|
10875
|
+
numberOfTrials: z.ZodNumber;
|
|
10876
|
+
emailConfirmed: z.ZodBoolean;
|
|
10877
|
+
hasPassword: z.ZodBoolean;
|
|
10878
|
+
isDeleted: z.ZodBoolean;
|
|
10879
|
+
ownedProducts: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
|
|
10880
|
+
subscribedProducts: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
|
|
10881
|
+
address: z.ZodNullable<z.ZodObject<{
|
|
10882
|
+
countryCode: z.ZodString;
|
|
10883
|
+
streetAddress1: z.ZodString;
|
|
10884
|
+
streetAddress2: z.ZodNullable<z.ZodString>;
|
|
10885
|
+
locality: z.ZodNullable<z.ZodString>;
|
|
10886
|
+
region: z.ZodNullable<z.ZodString>;
|
|
10887
|
+
postCode: z.ZodNullable<z.ZodString>;
|
|
10888
|
+
}, "strip", z.ZodTypeAny, {
|
|
10889
|
+
countryCode: string;
|
|
10890
|
+
streetAddress1: string;
|
|
10891
|
+
streetAddress2: string | null;
|
|
10892
|
+
locality: string | null;
|
|
10893
|
+
region: string | null;
|
|
10894
|
+
postCode: string | null;
|
|
10895
|
+
}, {
|
|
10896
|
+
countryCode: string;
|
|
10897
|
+
streetAddress1: string;
|
|
10898
|
+
streetAddress2: string | null;
|
|
10899
|
+
locality: string | null;
|
|
10900
|
+
region: string | null;
|
|
10901
|
+
postCode: string | null;
|
|
10902
|
+
}>>;
|
|
10903
|
+
communicationPreferences: z.ZodObject<{
|
|
10904
|
+
newsletterOptIn: z.ZodBoolean;
|
|
10905
|
+
}, "strip", z.ZodTypeAny, {
|
|
10906
|
+
newsletterOptIn: boolean;
|
|
10907
|
+
}, {
|
|
10908
|
+
newsletterOptIn: boolean;
|
|
10909
|
+
}>;
|
|
10910
|
+
lastUpdated: z.ZodObject<{
|
|
10911
|
+
at: z.ZodDate;
|
|
10912
|
+
by: z.ZodObject<{
|
|
10913
|
+
id: z.ZodString;
|
|
10914
|
+
name: z.ZodString;
|
|
10915
|
+
email: z.ZodString;
|
|
10916
|
+
}, "strip", z.ZodTypeAny, {
|
|
10917
|
+
id: string;
|
|
10918
|
+
name: string;
|
|
10919
|
+
email: string;
|
|
10920
|
+
}, {
|
|
10921
|
+
id: string;
|
|
10922
|
+
name: string;
|
|
10923
|
+
email: string;
|
|
10924
|
+
}>;
|
|
10925
|
+
}, "strip", z.ZodTypeAny, {
|
|
10926
|
+
at: Date;
|
|
10927
|
+
by: {
|
|
10928
|
+
id: string;
|
|
10929
|
+
name: string;
|
|
10930
|
+
email: string;
|
|
10931
|
+
};
|
|
10932
|
+
}, {
|
|
10933
|
+
at: Date;
|
|
10934
|
+
by: {
|
|
10935
|
+
id: string;
|
|
10936
|
+
name: string;
|
|
10937
|
+
email: string;
|
|
10938
|
+
};
|
|
10939
|
+
}>;
|
|
10940
|
+
created: z.ZodObject<{
|
|
10941
|
+
at: z.ZodDate;
|
|
10942
|
+
by: z.ZodObject<{
|
|
10943
|
+
id: z.ZodString;
|
|
10944
|
+
name: z.ZodString;
|
|
10945
|
+
email: z.ZodString;
|
|
10946
|
+
}, "strip", z.ZodTypeAny, {
|
|
10947
|
+
id: string;
|
|
10948
|
+
name: string;
|
|
10949
|
+
email: string;
|
|
10950
|
+
}, {
|
|
10951
|
+
id: string;
|
|
10952
|
+
name: string;
|
|
10953
|
+
email: string;
|
|
10954
|
+
}>;
|
|
10955
|
+
}, "strip", z.ZodTypeAny, {
|
|
10956
|
+
at: Date;
|
|
10957
|
+
by: {
|
|
10958
|
+
id: string;
|
|
10959
|
+
name: string;
|
|
10960
|
+
email: string;
|
|
10961
|
+
};
|
|
10962
|
+
}, {
|
|
10963
|
+
at: Date;
|
|
10964
|
+
by: {
|
|
10965
|
+
id: string;
|
|
10966
|
+
name: string;
|
|
10967
|
+
email: string;
|
|
10968
|
+
};
|
|
10969
|
+
}>;
|
|
10970
|
+
}, "strip", z.ZodTypeAny, {
|
|
10971
|
+
id: string;
|
|
10972
|
+
name: string;
|
|
10973
|
+
businessName: string | null;
|
|
10974
|
+
taxId: string | null;
|
|
10975
|
+
email: string;
|
|
10976
|
+
address: {
|
|
10977
|
+
countryCode: string;
|
|
10978
|
+
streetAddress1: string;
|
|
10979
|
+
streetAddress2: string | null;
|
|
10980
|
+
locality: string | null;
|
|
10981
|
+
region: string | null;
|
|
10982
|
+
postCode: string | null;
|
|
10983
|
+
} | null;
|
|
10984
|
+
lastUpdated: {
|
|
10985
|
+
at: Date;
|
|
10986
|
+
by: {
|
|
10987
|
+
id: string;
|
|
10988
|
+
name: string;
|
|
10989
|
+
email: string;
|
|
10990
|
+
};
|
|
10991
|
+
};
|
|
10992
|
+
created: {
|
|
10993
|
+
at: Date;
|
|
10994
|
+
by: {
|
|
10995
|
+
id: string;
|
|
10996
|
+
name: string;
|
|
10997
|
+
email: string;
|
|
10998
|
+
};
|
|
10999
|
+
};
|
|
11000
|
+
numberOfLicenses: number;
|
|
11001
|
+
numberOfTrials: number;
|
|
11002
|
+
emailConfirmed: boolean;
|
|
11003
|
+
hasPassword: boolean;
|
|
11004
|
+
isDeleted: boolean;
|
|
11005
|
+
ownedProducts: string[];
|
|
11006
|
+
subscribedProducts: string[];
|
|
11007
|
+
communicationPreferences: {
|
|
11008
|
+
newsletterOptIn: boolean;
|
|
11009
|
+
};
|
|
11010
|
+
externalId?: string | undefined;
|
|
11011
|
+
}, {
|
|
11012
|
+
id: string;
|
|
11013
|
+
name: string;
|
|
11014
|
+
businessName: string | null;
|
|
11015
|
+
taxId: string | null;
|
|
11016
|
+
email: string;
|
|
11017
|
+
address: {
|
|
11018
|
+
countryCode: string;
|
|
11019
|
+
streetAddress1: string;
|
|
11020
|
+
streetAddress2: string | null;
|
|
11021
|
+
locality: string | null;
|
|
11022
|
+
region: string | null;
|
|
11023
|
+
postCode: string | null;
|
|
11024
|
+
} | null;
|
|
11025
|
+
lastUpdated: {
|
|
11026
|
+
at: Date;
|
|
11027
|
+
by: {
|
|
11028
|
+
id: string;
|
|
11029
|
+
name: string;
|
|
11030
|
+
email: string;
|
|
11031
|
+
};
|
|
11032
|
+
};
|
|
11033
|
+
created: {
|
|
11034
|
+
at: Date;
|
|
11035
|
+
by: {
|
|
11036
|
+
id: string;
|
|
11037
|
+
name: string;
|
|
11038
|
+
email: string;
|
|
11039
|
+
};
|
|
11040
|
+
};
|
|
11041
|
+
numberOfLicenses: number;
|
|
11042
|
+
numberOfTrials: number;
|
|
11043
|
+
emailConfirmed: boolean;
|
|
11044
|
+
hasPassword: boolean;
|
|
11045
|
+
isDeleted: boolean;
|
|
11046
|
+
ownedProducts: string[];
|
|
11047
|
+
subscribedProducts: string[];
|
|
11048
|
+
communicationPreferences: {
|
|
11049
|
+
newsletterOptIn: boolean;
|
|
11050
|
+
};
|
|
11051
|
+
externalId?: string | undefined;
|
|
11052
|
+
}>;
|
|
11053
|
+
declare const importCustomerRequestSchema: z.ZodObject<{
|
|
11054
|
+
name: z.ZodString;
|
|
11055
|
+
email: z.ZodString;
|
|
11056
|
+
externalId: z.ZodOptional<z.ZodString>;
|
|
11057
|
+
password: z.ZodOptional<z.ZodString>;
|
|
11058
|
+
address: z.ZodOptional<z.ZodObject<{
|
|
11059
|
+
countryCode: z.ZodString;
|
|
11060
|
+
streetAddress1: z.ZodString;
|
|
11061
|
+
streetAddress2: z.ZodNullable<z.ZodString>;
|
|
11062
|
+
locality: z.ZodNullable<z.ZodString>;
|
|
11063
|
+
region: z.ZodNullable<z.ZodString>;
|
|
11064
|
+
postCode: z.ZodNullable<z.ZodString>;
|
|
11065
|
+
}, "strip", z.ZodTypeAny, {
|
|
11066
|
+
countryCode: string;
|
|
11067
|
+
streetAddress1: string;
|
|
11068
|
+
streetAddress2: string | null;
|
|
11069
|
+
locality: string | null;
|
|
11070
|
+
region: string | null;
|
|
11071
|
+
postCode: string | null;
|
|
11072
|
+
}, {
|
|
11073
|
+
countryCode: string;
|
|
11074
|
+
streetAddress1: string;
|
|
11075
|
+
streetAddress2: string | null;
|
|
11076
|
+
locality: string | null;
|
|
11077
|
+
region: string | null;
|
|
11078
|
+
postCode: string | null;
|
|
11079
|
+
}>>;
|
|
11080
|
+
createdAt: z.ZodOptional<z.ZodDate>;
|
|
11081
|
+
}, "strip", z.ZodTypeAny, {
|
|
11082
|
+
name: string;
|
|
11083
|
+
email: string;
|
|
11084
|
+
address?: {
|
|
11085
|
+
countryCode: string;
|
|
11086
|
+
streetAddress1: string;
|
|
11087
|
+
streetAddress2: string | null;
|
|
11088
|
+
locality: string | null;
|
|
11089
|
+
region: string | null;
|
|
11090
|
+
postCode: string | null;
|
|
11091
|
+
} | undefined;
|
|
11293
11092
|
externalId?: string | undefined;
|
|
11294
|
-
ownerId?: string | undefined;
|
|
11295
11093
|
createdAt?: Date | undefined;
|
|
11296
|
-
|
|
11094
|
+
password?: string | undefined;
|
|
11297
11095
|
}, {
|
|
11298
|
-
|
|
11299
|
-
|
|
11300
|
-
|
|
11301
|
-
|
|
11096
|
+
name: string;
|
|
11097
|
+
email: string;
|
|
11098
|
+
address?: {
|
|
11099
|
+
countryCode: string;
|
|
11100
|
+
streetAddress1: string;
|
|
11101
|
+
streetAddress2: string | null;
|
|
11102
|
+
locality: string | null;
|
|
11103
|
+
region: string | null;
|
|
11104
|
+
postCode: string | null;
|
|
11105
|
+
} | undefined;
|
|
11302
11106
|
externalId?: string | undefined;
|
|
11303
|
-
ownerId?: string | undefined;
|
|
11304
11107
|
createdAt?: Date | undefined;
|
|
11305
|
-
|
|
11108
|
+
password?: string | undefined;
|
|
11109
|
+
}>;
|
|
11110
|
+
|
|
11111
|
+
declare const schemas$5_addressSchema: typeof addressSchema;
|
|
11112
|
+
declare const schemas$5_communicationPreferencesSchema: typeof communicationPreferencesSchema;
|
|
11113
|
+
declare const schemas$5_customerSchema: typeof customerSchema;
|
|
11114
|
+
declare const schemas$5_importCustomerRequestSchema: typeof importCustomerRequestSchema;
|
|
11115
|
+
declare namespace schemas$5 {
|
|
11116
|
+
export { schemas$5_addressSchema as addressSchema, schemas$5_communicationPreferencesSchema as communicationPreferencesSchema, schemas$5_customerSchema as customerSchema, schemas$5_importCustomerRequestSchema as importCustomerRequestSchema };
|
|
11117
|
+
}
|
|
11118
|
+
|
|
11119
|
+
type Customer = z.infer<typeof customerSchema>;
|
|
11120
|
+
type ImportCustomerRequest = z.infer<typeof importCustomerRequestSchema>;
|
|
11121
|
+
|
|
11122
|
+
declare class CustomerEndpoints {
|
|
11123
|
+
private api;
|
|
11124
|
+
constructor(api: MoonbaseApi);
|
|
11125
|
+
query(opts?: {
|
|
11126
|
+
paginationToken?: string;
|
|
11127
|
+
after?: Date;
|
|
11128
|
+
before?: Date;
|
|
11129
|
+
pageSize?: number;
|
|
11130
|
+
}): Promise<Page<Customer>>;
|
|
11131
|
+
get(idOrEmail: string): Promise<Customer>;
|
|
11132
|
+
import(customer: ImportCustomerRequest): Promise<Customer>;
|
|
11133
|
+
getOrders(customerId: string, status: OrderStatus): Promise<Page<Order>>;
|
|
11134
|
+
getSubscriptions(customerId: string, status: SubscriptionStatus): Promise<Page<Subscription>>;
|
|
11135
|
+
getLicenses(customerId: string): Promise<Page<License>>;
|
|
11136
|
+
getTrials(customerId: string): Promise<Page<Trial>>;
|
|
11137
|
+
}
|
|
11138
|
+
|
|
11139
|
+
declare class LicenseEndpoints {
|
|
11140
|
+
private api;
|
|
11141
|
+
constructor(api: MoonbaseApi);
|
|
11142
|
+
query(opts?: {
|
|
11143
|
+
paginationToken?: string;
|
|
11144
|
+
productFilter?: string;
|
|
11145
|
+
after?: Date;
|
|
11146
|
+
before?: Date;
|
|
11147
|
+
pageSize?: number;
|
|
11148
|
+
}): Promise<Page<License>>;
|
|
11149
|
+
get(licenseId: string): Promise<License>;
|
|
11150
|
+
import(license: ImportLicenseRequest): Promise<License>;
|
|
11151
|
+
provision(input: ProvisionLicensesRequest): Promise<License[]>;
|
|
11152
|
+
revoke(licenseId: string): Promise<License>;
|
|
11153
|
+
queryActivations(opts?: {
|
|
11154
|
+
paginationToken?: string;
|
|
11155
|
+
after?: Date;
|
|
11156
|
+
before?: Date;
|
|
11157
|
+
pageSize?: number;
|
|
11158
|
+
}): Promise<Page<LicenseActivation>>;
|
|
11159
|
+
queryActivations(licenseId: string, opts?: {
|
|
11160
|
+
paginationToken?: string;
|
|
11161
|
+
pageSize?: number;
|
|
11162
|
+
}): Promise<Page<LicenseActivation>>;
|
|
11163
|
+
getActivation(licenseId: string, activationId: string): Promise<LicenseActivation>;
|
|
11164
|
+
validateActivation(licenseId: string, activationId: string): Promise<LicenseActivation>;
|
|
11165
|
+
revokeActivation(licenseId: string, activationId: string): Promise<LicenseActivation>;
|
|
11166
|
+
}
|
|
11167
|
+
|
|
11168
|
+
declare class OrderEndpoints {
|
|
11169
|
+
private api;
|
|
11170
|
+
constructor(api: MoonbaseApi);
|
|
11171
|
+
query(opts: {
|
|
11172
|
+
paginationToken?: string;
|
|
11173
|
+
status: OrderStatus;
|
|
11174
|
+
after?: Date;
|
|
11175
|
+
before?: Date;
|
|
11176
|
+
pageSize?: number;
|
|
11177
|
+
}): Promise<Page<Order>>;
|
|
11178
|
+
get(id: string): Promise<Order>;
|
|
11179
|
+
prepare(request: PrepareOrderRequest, returnUrl?: string, finalize?: boolean): Promise<Order>;
|
|
11180
|
+
}
|
|
11181
|
+
|
|
11182
|
+
declare const productSchema: z.ZodObject<{
|
|
11183
|
+
id: z.ZodString;
|
|
11184
|
+
name: z.ZodString;
|
|
11185
|
+
tagline: z.ZodString;
|
|
11186
|
+
description: z.ZodString;
|
|
11187
|
+
website: z.ZodNullable<z.ZodString>;
|
|
11188
|
+
iconUrl: z.ZodNullable<z.ZodString>;
|
|
11189
|
+
status: z.ZodNativeEnum<typeof ProductStatus>;
|
|
11190
|
+
purchasable: z.ZodBoolean;
|
|
11191
|
+
currentReleaseVersion: z.ZodNullable<z.ZodString>;
|
|
11192
|
+
}, "strip", z.ZodTypeAny, {
|
|
11193
|
+
status: ProductStatus;
|
|
11194
|
+
id: string;
|
|
11195
|
+
name: string;
|
|
11196
|
+
description: string;
|
|
11197
|
+
tagline: string;
|
|
11198
|
+
website: string | null;
|
|
11199
|
+
iconUrl: string | null;
|
|
11200
|
+
purchasable: boolean;
|
|
11201
|
+
currentReleaseVersion: string | null;
|
|
11202
|
+
}, {
|
|
11203
|
+
status: ProductStatus;
|
|
11204
|
+
id: string;
|
|
11205
|
+
name: string;
|
|
11206
|
+
description: string;
|
|
11207
|
+
tagline: string;
|
|
11208
|
+
website: string | null;
|
|
11209
|
+
iconUrl: string | null;
|
|
11210
|
+
purchasable: boolean;
|
|
11211
|
+
currentReleaseVersion: string | null;
|
|
11212
|
+
}>;
|
|
11213
|
+
declare const productReleaseSchema: z.ZodObject<{
|
|
11214
|
+
version: z.ZodString;
|
|
11215
|
+
description: z.ZodNullable<z.ZodString>;
|
|
11216
|
+
publishedAt: z.ZodNullable<z.ZodDate>;
|
|
11217
|
+
downloadUrl: z.ZodString;
|
|
11218
|
+
hostedDownloadUrl: z.ZodString;
|
|
11219
|
+
downloads: z.ZodArray<z.ZodObject<{
|
|
11220
|
+
name: z.ZodString;
|
|
11221
|
+
key: z.ZodString;
|
|
11222
|
+
platform: z.ZodNativeEnum<typeof Platform>;
|
|
11223
|
+
size: z.ZodNumber;
|
|
11224
|
+
downloadUrl: z.ZodString;
|
|
11225
|
+
hostedDownloadUrl: z.ZodString;
|
|
11226
|
+
directUrl: z.ZodString;
|
|
11227
|
+
}, "strip", z.ZodTypeAny, {
|
|
11228
|
+
key: string;
|
|
11229
|
+
name: string;
|
|
11230
|
+
downloadUrl: string;
|
|
11231
|
+
hostedDownloadUrl: string;
|
|
11232
|
+
platform: Platform;
|
|
11233
|
+
size: number;
|
|
11234
|
+
directUrl: string;
|
|
11235
|
+
}, {
|
|
11236
|
+
key: string;
|
|
11237
|
+
name: string;
|
|
11238
|
+
downloadUrl: string;
|
|
11239
|
+
hostedDownloadUrl: string;
|
|
11240
|
+
platform: Platform;
|
|
11241
|
+
size: number;
|
|
11242
|
+
directUrl: string;
|
|
11243
|
+
}>, "many">;
|
|
11244
|
+
}, "strip", z.ZodTypeAny, {
|
|
11245
|
+
description: string | null;
|
|
11246
|
+
version: string;
|
|
11247
|
+
publishedAt: Date | null;
|
|
11248
|
+
downloadUrl: string;
|
|
11249
|
+
hostedDownloadUrl: string;
|
|
11250
|
+
downloads: {
|
|
11251
|
+
key: string;
|
|
11252
|
+
name: string;
|
|
11253
|
+
downloadUrl: string;
|
|
11254
|
+
hostedDownloadUrl: string;
|
|
11255
|
+
platform: Platform;
|
|
11256
|
+
size: number;
|
|
11257
|
+
directUrl: string;
|
|
11258
|
+
}[];
|
|
11259
|
+
}, {
|
|
11260
|
+
description: string | null;
|
|
11261
|
+
version: string;
|
|
11262
|
+
publishedAt: Date | null;
|
|
11263
|
+
downloadUrl: string;
|
|
11264
|
+
hostedDownloadUrl: string;
|
|
11265
|
+
downloads: {
|
|
11266
|
+
key: string;
|
|
11267
|
+
name: string;
|
|
11268
|
+
downloadUrl: string;
|
|
11269
|
+
hostedDownloadUrl: string;
|
|
11270
|
+
platform: Platform;
|
|
11271
|
+
size: number;
|
|
11272
|
+
directUrl: string;
|
|
11273
|
+
}[];
|
|
11306
11274
|
}>;
|
|
11307
11275
|
|
|
11308
|
-
declare const schemas$
|
|
11309
|
-
declare const schemas$
|
|
11276
|
+
declare const schemas$4_productReleaseSchema: typeof productReleaseSchema;
|
|
11277
|
+
declare const schemas$4_productSchema: typeof productSchema;
|
|
11310
11278
|
declare namespace schemas$4 {
|
|
11311
|
-
export { schemas$
|
|
11279
|
+
export { schemas$4_productReleaseSchema as productReleaseSchema, schemas$4_productSchema as productSchema };
|
|
11312
11280
|
}
|
|
11313
11281
|
|
|
11314
|
-
declare enum
|
|
11282
|
+
declare enum Platform {
|
|
11283
|
+
Universal = "Universal",
|
|
11284
|
+
Windows = "Windows",
|
|
11285
|
+
Linux = "Linux",
|
|
11286
|
+
Mac = "Mac",
|
|
11287
|
+
iOS = "iOS",
|
|
11288
|
+
Android = "Android"
|
|
11289
|
+
}
|
|
11290
|
+
declare enum ProductStatus {
|
|
11315
11291
|
Active = "Active",
|
|
11316
|
-
|
|
11292
|
+
Inactive = "Inactive"
|
|
11293
|
+
}
|
|
11294
|
+
type Product = z.infer<typeof productSchema>;
|
|
11295
|
+
type ProductRelease = z.infer<typeof productReleaseSchema>;
|
|
11296
|
+
|
|
11297
|
+
declare class ProductEndpoints {
|
|
11298
|
+
private api;
|
|
11299
|
+
constructor(api: MoonbaseApi);
|
|
11300
|
+
query(opts?: {
|
|
11301
|
+
paginationToken?: string;
|
|
11302
|
+
activeOnly?: boolean;
|
|
11303
|
+
pageSize?: number;
|
|
11304
|
+
}): Promise<Page<Product>>;
|
|
11305
|
+
get(id: string): Promise<Product>;
|
|
11306
|
+
queryReleases(id: string, opts?: {
|
|
11307
|
+
paginationToken?: string;
|
|
11308
|
+
pageSize?: number;
|
|
11309
|
+
}): Promise<Page<ProductRelease>>;
|
|
11310
|
+
}
|
|
11311
|
+
|
|
11312
|
+
declare class SubscriptionEndpoints {
|
|
11313
|
+
private api;
|
|
11314
|
+
constructor(api: MoonbaseApi);
|
|
11315
|
+
query(opts: {
|
|
11316
|
+
paginationToken?: string;
|
|
11317
|
+
status: SubscriptionStatus;
|
|
11318
|
+
after?: Date;
|
|
11319
|
+
before?: Date;
|
|
11320
|
+
pageSize?: number;
|
|
11321
|
+
}): Promise<Page<Subscription>>;
|
|
11322
|
+
get(subscriptionId: string): Promise<Subscription>;
|
|
11323
|
+
import(subscription: ImportSubscriptionRequest): Promise<Subscription>;
|
|
11317
11324
|
}
|
|
11318
|
-
type Trial = z.infer<typeof trialSchema>;
|
|
11319
|
-
type ImportTrialRequest = z.infer<typeof importTrialRequestSchema>;
|
|
11320
11325
|
|
|
11321
11326
|
declare class TrialEndpoints {
|
|
11322
11327
|
private api;
|
|
@@ -12101,7 +12106,7 @@ declare const schemas_pricingVariationSchema: typeof pricingVariationSchema;
|
|
|
12101
12106
|
declare const schemas_quantifiable: typeof quantifiable;
|
|
12102
12107
|
declare const schemas_userSchema: typeof userSchema;
|
|
12103
12108
|
declare namespace schemas {
|
|
12104
|
-
export { schemas$a as activationRequests, schemas$2 as bundles, schemas$1 as coupons, schemas$
|
|
12109
|
+
export { schemas$a as activationRequests, schemas$2 as bundles, schemas$1 as coupons, schemas$5 as customers, schemas_dateTimeSpanSchema as dateTimeSpanSchema, schemas_discountSchema as discountSchema, schemas_entityChangeSchema as entityChangeSchema, schemas$9 as licenses, schemas_moneySchema as moneySchema, schemas$7 as orders, schemas_paged as paged, schemas_priceCollectionSchema as priceCollectionSchema, schemas_pricingDiscountSchema as pricingDiscountSchema, schemas_pricingVariationSchema as pricingVariationSchema, schemas$4 as products, schemas_quantifiable as quantifiable, schemas$8 as subscriptions, schemas$6 as trials, schemas_userSchema as userSchema, schemas$3 as vouchers };
|
|
12105
12110
|
}
|
|
12106
12111
|
|
|
12107
12112
|
interface MoonbaseConfiguration {
|