@moonbase.sh/api 0.4.70 → 0.4.72

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.d.ts 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",
@@ -3339,14 +3340,14 @@ declare const discountSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3339
3340
  total: Record<string, number>;
3340
3341
  }>]>;
3341
3342
  declare const dateTimeSpanSchema: z.ZodObject<{
3342
- from: z.ZodNullable<z.ZodDate>;
3343
- to: z.ZodNullable<z.ZodDate>;
3343
+ from: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
3344
+ to: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
3344
3345
  }, "strip", z.ZodTypeAny, {
3345
- from: Date | null;
3346
- to: Date | null;
3346
+ from?: Date | null | undefined;
3347
+ to?: Date | null | undefined;
3347
3348
  }, {
3348
- from: Date | null;
3349
- to: Date | null;
3349
+ from?: Date | null | undefined;
3350
+ to?: Date | null | undefined;
3350
3351
  }>;
3351
3352
  declare const pricingDiscountSchema: z.ZodObject<{
3352
3353
  name: z.ZodString;
@@ -3457,14 +3458,14 @@ declare const pricingDiscountSchema: z.ZodObject<{
3457
3458
  }>]>>>;
3458
3459
  applicableVariationIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
3459
3460
  validity: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3460
- from: z.ZodNullable<z.ZodDate>;
3461
- to: z.ZodNullable<z.ZodDate>;
3461
+ from: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
3462
+ to: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
3462
3463
  }, "strip", z.ZodTypeAny, {
3463
- from: Date | null;
3464
- to: Date | null;
3464
+ from?: Date | null | undefined;
3465
+ to?: Date | null | undefined;
3465
3466
  }, {
3466
- from: Date | null;
3467
- to: Date | null;
3467
+ from?: Date | null | undefined;
3468
+ to?: Date | null | undefined;
3468
3469
  }>>>;
3469
3470
  recurringPaymentUseCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3470
3471
  }, "strip", z.ZodTypeAny, {
@@ -3508,8 +3509,8 @@ declare const pricingDiscountSchema: z.ZodObject<{
3508
3509
  } | null | undefined;
3509
3510
  applicableVariationIds?: string[] | null | undefined;
3510
3511
  validity?: {
3511
- from: Date | null;
3512
- to: Date | null;
3512
+ from?: Date | null | undefined;
3513
+ to?: Date | null | undefined;
3513
3514
  } | null | undefined;
3514
3515
  recurringPaymentUseCount?: number | null | undefined;
3515
3516
  }, {
@@ -3553,8 +3554,8 @@ declare const pricingDiscountSchema: z.ZodObject<{
3553
3554
  } | null | undefined;
3554
3555
  applicableVariationIds?: string[] | null | undefined;
3555
3556
  validity?: {
3556
- from: Date | null;
3557
- to: Date | null;
3557
+ from?: Date | null | undefined;
3558
+ to?: Date | null | undefined;
3558
3559
  } | null | undefined;
3559
3560
  recurringPaymentUseCount?: number | null | undefined;
3560
3561
  }>;
@@ -3671,6 +3672,7 @@ declare function quantifiable<T extends z.ZodType<object>>(itemSchema: T): z.Zod
3671
3672
 
3672
3673
  type PricingVariation = z.infer<typeof pricingVariationSchema>;
3673
3674
  type PricingDiscount = z.infer<typeof pricingDiscountSchema>;
3675
+ type DateTimeSpan = z.infer<typeof dateTimeSpanSchema>;
3674
3676
  interface Page<T> {
3675
3677
  items: Array<T>;
3676
3678
  hasMore: boolean;
@@ -3682,483 +3684,157 @@ interface Quantifiable<T> {
3682
3684
  quantity: number;
3683
3685
  }
3684
3686
 
3685
- declare const addressSchema: z.ZodObject<{
3686
- countryCode: z.ZodString;
3687
- streetAddress1: z.ZodString;
3688
- streetAddress2: z.ZodNullable<z.ZodString>;
3689
- locality: z.ZodNullable<z.ZodString>;
3690
- region: z.ZodNullable<z.ZodString>;
3691
- postCode: z.ZodNullable<z.ZodString>;
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>>;
3692
3715
  }, "strip", z.ZodTypeAny, {
3693
- countryCode: string;
3694
- streetAddress1: string;
3695
- streetAddress2: string | null;
3696
- locality: string | null;
3697
- region: string | null;
3698
- postCode: string | null;
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;
3699
3731
  }, {
3700
- countryCode: string;
3701
- streetAddress1: string;
3702
- streetAddress2: string | null;
3703
- locality: string | null;
3704
- region: string | null;
3705
- postCode: string | null;
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;
3706
3747
  }>;
3707
- declare const communicationPreferencesSchema: z.ZodObject<{
3708
- newsletterOptIn: z.ZodBoolean;
3748
+ declare const licenseLineItemFulfillmentSchema: z.ZodObject<{
3749
+ type: z.ZodLiteral<"License">;
3750
+ licenseIds: z.ZodArray<z.ZodString, "many">;
3709
3751
  }, "strip", z.ZodTypeAny, {
3710
- newsletterOptIn: boolean;
3752
+ type: "License";
3753
+ licenseIds: string[];
3711
3754
  }, {
3712
- newsletterOptIn: boolean;
3755
+ type: "License";
3756
+ licenseIds: string[];
3713
3757
  }>;
3714
- declare const customerSchema: z.ZodObject<{
3715
- id: z.ZodString;
3716
- externalId: z.ZodOptional<z.ZodString>;
3717
- name: z.ZodString;
3718
- businessName: z.ZodNullable<z.ZodString>;
3719
- taxId: z.ZodNullable<z.ZodString>;
3720
- email: z.ZodString;
3721
- numberOfLicenses: z.ZodNumber;
3722
- numberOfTrials: z.ZodNumber;
3723
- emailConfirmed: z.ZodBoolean;
3724
- hasPassword: z.ZodBoolean;
3725
- isDeleted: z.ZodBoolean;
3726
- ownedProducts: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
3727
- subscribedProducts: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
3728
- address: z.ZodNullable<z.ZodObject<{
3729
- countryCode: z.ZodString;
3730
- streetAddress1: z.ZodString;
3731
- streetAddress2: z.ZodNullable<z.ZodString>;
3732
- locality: z.ZodNullable<z.ZodString>;
3733
- region: z.ZodNullable<z.ZodString>;
3734
- 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">;
3735
3762
  }, "strip", z.ZodTypeAny, {
3736
- countryCode: string;
3737
- streetAddress1: string;
3738
- streetAddress2: string | null;
3739
- locality: string | null;
3740
- region: string | null;
3741
- postCode: string | null;
3763
+ licenseIds: string[];
3742
3764
  }, {
3743
- countryCode: string;
3744
- streetAddress1: string;
3745
- streetAddress2: string | null;
3746
- locality: string | null;
3747
- region: string | null;
3748
- postCode: string | null;
3765
+ licenseIds: string[];
3749
3766
  }>>;
3750
- communicationPreferences: z.ZodObject<{
3751
- newsletterOptIn: z.ZodBoolean;
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">;
3752
3791
  }, "strip", z.ZodTypeAny, {
3753
- newsletterOptIn: boolean;
3792
+ licenseIds: string[];
3754
3793
  }, {
3755
- newsletterOptIn: boolean;
3794
+ licenseIds: string[];
3795
+ }>>;
3796
+ }, "strip", z.ZodTypeAny, {
3797
+ type: "Bundle";
3798
+ productLicenses: Record<string, {
3799
+ licenseIds: string[];
3756
3800
  }>;
3757
- lastUpdated: z.ZodObject<{
3758
- at: z.ZodDate;
3759
- by: z.ZodObject<{
3760
- id: z.ZodString;
3761
- name: z.ZodString;
3762
- email: z.ZodString;
3763
- }, "strip", z.ZodTypeAny, {
3764
- id: string;
3765
- name: string;
3766
- email: string;
3767
- }, {
3768
- id: string;
3769
- name: string;
3770
- email: string;
3771
- }>;
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">;
3772
3812
  }, "strip", z.ZodTypeAny, {
3773
- at: Date;
3774
- by: {
3775
- id: string;
3776
- name: string;
3777
- email: string;
3778
- };
3813
+ type: "License";
3814
+ licenseIds: string[];
3779
3815
  }, {
3780
- at: Date;
3781
- by: {
3782
- id: string;
3783
- name: string;
3784
- email: string;
3785
- };
3786
- }>;
3787
- created: z.ZodObject<{
3788
- at: z.ZodDate;
3789
- by: z.ZodObject<{
3790
- id: z.ZodString;
3791
- name: z.ZodString;
3792
- 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">;
3793
3822
  }, "strip", z.ZodTypeAny, {
3794
- id: string;
3795
- name: string;
3796
- email: string;
3823
+ licenseIds: string[];
3797
3824
  }, {
3798
- id: string;
3799
- name: string;
3800
- email: string;
3801
- }>;
3825
+ licenseIds: string[];
3826
+ }>>;
3802
3827
  }, "strip", z.ZodTypeAny, {
3803
- at: Date;
3804
- by: {
3805
- id: string;
3806
- name: string;
3807
- email: string;
3808
- };
3828
+ type: "Bundle";
3829
+ productLicenses: Record<string, {
3830
+ licenseIds: string[];
3831
+ }>;
3809
3832
  }, {
3810
- at: Date;
3811
- by: {
3812
- id: string;
3813
- name: string;
3814
- email: string;
3815
- };
3816
- }>;
3817
- }, "strip", z.ZodTypeAny, {
3818
- id: string;
3819
- name: string;
3820
- businessName: string | null;
3821
- taxId: string | null;
3822
- email: string;
3823
- address: {
3824
- countryCode: string;
3825
- streetAddress1: string;
3826
- streetAddress2: string | null;
3827
- locality: string | null;
3828
- region: string | null;
3829
- postCode: string | null;
3830
- } | null;
3831
- lastUpdated: {
3832
- at: Date;
3833
- by: {
3834
- id: string;
3835
- name: string;
3836
- email: string;
3837
- };
3838
- };
3839
- created: {
3840
- at: Date;
3841
- by: {
3842
- id: string;
3843
- name: string;
3844
- email: string;
3845
- };
3846
- };
3847
- numberOfLicenses: number;
3848
- numberOfTrials: number;
3849
- emailConfirmed: boolean;
3850
- hasPassword: boolean;
3851
- isDeleted: boolean;
3852
- ownedProducts: string[];
3853
- subscribedProducts: string[];
3854
- communicationPreferences: {
3855
- newsletterOptIn: boolean;
3856
- };
3857
- externalId?: string | undefined;
3858
- }, {
3859
- id: string;
3860
- name: string;
3861
- businessName: string | null;
3862
- taxId: string | null;
3863
- email: string;
3864
- address: {
3865
- countryCode: string;
3866
- streetAddress1: string;
3867
- streetAddress2: string | null;
3868
- locality: string | null;
3869
- region: string | null;
3870
- postCode: string | null;
3871
- } | null;
3872
- lastUpdated: {
3873
- at: Date;
3874
- by: {
3875
- id: string;
3876
- name: string;
3877
- email: string;
3878
- };
3879
- };
3880
- created: {
3881
- at: Date;
3882
- by: {
3883
- id: string;
3884
- name: string;
3885
- email: string;
3886
- };
3887
- };
3888
- numberOfLicenses: number;
3889
- numberOfTrials: number;
3890
- emailConfirmed: boolean;
3891
- hasPassword: boolean;
3892
- isDeleted: boolean;
3893
- ownedProducts: string[];
3894
- subscribedProducts: string[];
3895
- communicationPreferences: {
3896
- newsletterOptIn: boolean;
3897
- };
3898
- externalId?: string | undefined;
3899
- }>;
3900
- declare const importCustomerRequestSchema: z.ZodObject<{
3901
- name: z.ZodString;
3902
- email: z.ZodString;
3903
- externalId: z.ZodOptional<z.ZodString>;
3904
- password: z.ZodOptional<z.ZodString>;
3905
- address: z.ZodOptional<z.ZodObject<{
3906
- countryCode: z.ZodString;
3907
- streetAddress1: z.ZodString;
3908
- streetAddress2: z.ZodNullable<z.ZodString>;
3909
- locality: z.ZodNullable<z.ZodString>;
3910
- region: z.ZodNullable<z.ZodString>;
3911
- postCode: z.ZodNullable<z.ZodString>;
3912
- }, "strip", z.ZodTypeAny, {
3913
- countryCode: string;
3914
- streetAddress1: string;
3915
- streetAddress2: string | null;
3916
- locality: string | null;
3917
- region: string | null;
3918
- postCode: string | null;
3919
- }, {
3920
- countryCode: string;
3921
- streetAddress1: string;
3922
- streetAddress2: string | null;
3923
- locality: string | null;
3924
- region: string | null;
3925
- postCode: string | null;
3926
- }>>;
3927
- createdAt: z.ZodOptional<z.ZodDate>;
3928
- }, "strip", z.ZodTypeAny, {
3929
- name: string;
3930
- email: string;
3931
- address?: {
3932
- countryCode: string;
3933
- streetAddress1: string;
3934
- streetAddress2: string | null;
3935
- locality: string | null;
3936
- region: string | null;
3937
- postCode: string | null;
3938
- } | undefined;
3939
- externalId?: string | undefined;
3940
- createdAt?: Date | undefined;
3941
- password?: string | undefined;
3942
- }, {
3943
- name: string;
3944
- email: string;
3945
- address?: {
3946
- countryCode: string;
3947
- streetAddress1: string;
3948
- streetAddress2: string | null;
3949
- locality: string | null;
3950
- region: string | null;
3951
- postCode: string | null;
3952
- } | undefined;
3953
- externalId?: string | undefined;
3954
- createdAt?: Date | undefined;
3955
- password?: string | undefined;
3956
- }>;
3957
-
3958
- declare const schemas$7_addressSchema: typeof addressSchema;
3959
- declare const schemas$7_communicationPreferencesSchema: typeof communicationPreferencesSchema;
3960
- declare const schemas$7_customerSchema: typeof customerSchema;
3961
- declare const schemas$7_importCustomerRequestSchema: typeof importCustomerRequestSchema;
3962
- declare namespace schemas$7 {
3963
- export { schemas$7_addressSchema as addressSchema, schemas$7_communicationPreferencesSchema as communicationPreferencesSchema, schemas$7_customerSchema as customerSchema, schemas$7_importCustomerRequestSchema as importCustomerRequestSchema };
3964
- }
3965
-
3966
- type Customer = z.infer<typeof customerSchema>;
3967
- type ImportCustomerRequest = z.infer<typeof importCustomerRequestSchema>;
3968
-
3969
- declare class CustomerEndpoints {
3970
- private api;
3971
- constructor(api: MoonbaseApi);
3972
- query(opts?: {
3973
- paginationToken?: string;
3974
- after?: Date;
3975
- before?: Date;
3976
- pageSize?: number;
3977
- }): Promise<Page<Customer>>;
3978
- get(idOrEmail: string): Promise<Customer>;
3979
- import(customer: ImportCustomerRequest): Promise<Customer>;
3980
- }
3981
-
3982
- declare class LicenseEndpoints {
3983
- private api;
3984
- constructor(api: MoonbaseApi);
3985
- query(opts?: {
3986
- paginationToken?: string;
3987
- productFilter?: string;
3988
- after?: Date;
3989
- before?: Date;
3990
- pageSize?: number;
3991
- }): Promise<Page<License>>;
3992
- get(licenseId: string): Promise<License>;
3993
- import(license: ImportLicenseRequest): Promise<License>;
3994
- provision(input: ProvisionLicensesRequest): Promise<License[]>;
3995
- revoke(licenseId: string): Promise<License>;
3996
- queryActivations(opts?: {
3997
- paginationToken?: string;
3998
- after?: Date;
3999
- before?: Date;
4000
- pageSize?: number;
4001
- }): Promise<Page<LicenseActivation>>;
4002
- queryActivations(licenseId: string, opts?: {
4003
- paginationToken?: string;
4004
- pageSize?: number;
4005
- }): Promise<Page<LicenseActivation>>;
4006
- getActivation(licenseId: string, activationId: string): Promise<LicenseActivation>;
4007
- validateActivation(licenseId: string, activationId: string): Promise<LicenseActivation>;
4008
- revokeActivation(licenseId: string, activationId: string): Promise<LicenseActivation>;
4009
- }
4010
-
4011
- declare const couponSnapshotSchema: z.ZodObject<{
4012
- id: z.ZodString;
4013
- code: z.ZodString;
4014
- name: z.ZodString;
4015
- description: z.ZodString;
4016
- combinable: z.ZodBoolean;
4017
- discount: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4018
- type: z.ZodLiteral<"PercentageOffDiscount">;
4019
- percentage: z.ZodNumber;
4020
- }, "strip", z.ZodTypeAny, {
4021
- type: "PercentageOffDiscount";
4022
- percentage: number;
4023
- }, {
4024
- type: "PercentageOffDiscount";
4025
- percentage: number;
4026
- }>, z.ZodObject<{
4027
- type: z.ZodLiteral<"FlatAmountOffDiscount">;
4028
- total: z.ZodRecord<z.ZodString, z.ZodNumber>;
4029
- }, "strip", z.ZodTypeAny, {
4030
- type: "FlatAmountOffDiscount";
4031
- total: Record<string, number>;
4032
- }, {
4033
- type: "FlatAmountOffDiscount";
4034
- total: Record<string, number>;
4035
- }>]>;
4036
- applicableProductIds: z.ZodArray<z.ZodString, "many">;
4037
- applicableBundleIds: z.ZodArray<z.ZodString, "many">;
4038
- recurringPaymentUseCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4039
- }, "strip", z.ZodTypeAny, {
4040
- code: string;
4041
- id: string;
4042
- name: string;
4043
- description: string;
4044
- discount: {
4045
- type: "PercentageOffDiscount";
4046
- percentage: number;
4047
- } | {
4048
- type: "FlatAmountOffDiscount";
4049
- total: Record<string, number>;
4050
- };
4051
- combinable: boolean;
4052
- applicableProductIds: string[];
4053
- applicableBundleIds: string[];
4054
- recurringPaymentUseCount?: number | null | undefined;
4055
- }, {
4056
- code: string;
4057
- id: string;
4058
- name: string;
4059
- description: string;
4060
- discount: {
4061
- type: "PercentageOffDiscount";
4062
- percentage: number;
4063
- } | {
4064
- type: "FlatAmountOffDiscount";
4065
- total: Record<string, number>;
4066
- };
4067
- combinable: boolean;
4068
- applicableProductIds: string[];
4069
- applicableBundleIds: string[];
4070
- recurringPaymentUseCount?: number | null | undefined;
4071
- }>;
4072
- declare const licenseLineItemFulfillmentSchema: z.ZodObject<{
4073
- type: z.ZodLiteral<"License">;
4074
- licenseIds: z.ZodArray<z.ZodString, "many">;
4075
- }, "strip", z.ZodTypeAny, {
4076
- type: "License";
4077
- licenseIds: string[];
4078
- }, {
4079
- type: "License";
4080
- licenseIds: string[];
4081
- }>;
4082
- declare const bundleLineItemFulfillmentSchema: z.ZodObject<{
4083
- type: z.ZodLiteral<"Bundle">;
4084
- productLicenses: z.ZodRecord<z.ZodString, z.ZodObject<{
4085
- licenseIds: z.ZodArray<z.ZodString, "many">;
4086
- }, "strip", z.ZodTypeAny, {
4087
- licenseIds: string[];
4088
- }, {
4089
- licenseIds: string[];
4090
- }>>;
4091
- }, "strip", z.ZodTypeAny, {
4092
- type: "Bundle";
4093
- productLicenses: Record<string, {
4094
- licenseIds: string[];
4095
- }>;
4096
- }, {
4097
- type: "Bundle";
4098
- productLicenses: Record<string, {
4099
- licenseIds: string[];
4100
- }>;
4101
- }>;
4102
- declare const lineItemFulfillmentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4103
- type: z.ZodLiteral<"License">;
4104
- licenseIds: z.ZodArray<z.ZodString, "many">;
4105
- }, "strip", z.ZodTypeAny, {
4106
- type: "License";
4107
- licenseIds: string[];
4108
- }, {
4109
- type: "License";
4110
- licenseIds: string[];
4111
- }>, z.ZodObject<{
4112
- type: z.ZodLiteral<"Bundle">;
4113
- productLicenses: z.ZodRecord<z.ZodString, z.ZodObject<{
4114
- licenseIds: z.ZodArray<z.ZodString, "many">;
4115
- }, "strip", z.ZodTypeAny, {
4116
- licenseIds: string[];
4117
- }, {
4118
- licenseIds: string[];
4119
- }>>;
4120
- }, "strip", z.ZodTypeAny, {
4121
- type: "Bundle";
4122
- productLicenses: Record<string, {
4123
- licenseIds: string[];
4124
- }>;
4125
- }, {
4126
- type: "Bundle";
4127
- productLicenses: Record<string, {
4128
- licenseIds: string[];
4129
- }>;
4130
- }>, z.ZodObject<{
4131
- type: z.ZodLiteral<"Subscription">;
4132
- subscriptionId: z.ZodString;
4133
- inner: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4134
- type: z.ZodLiteral<"License">;
4135
- licenseIds: z.ZodArray<z.ZodString, "many">;
4136
- }, "strip", z.ZodTypeAny, {
4137
- type: "License";
4138
- licenseIds: string[];
4139
- }, {
4140
- type: "License";
4141
- licenseIds: string[];
4142
- }>, z.ZodObject<{
4143
- type: z.ZodLiteral<"Bundle">;
4144
- productLicenses: z.ZodRecord<z.ZodString, z.ZodObject<{
4145
- licenseIds: z.ZodArray<z.ZodString, "many">;
4146
- }, "strip", z.ZodTypeAny, {
4147
- licenseIds: string[];
4148
- }, {
4149
- licenseIds: string[];
4150
- }>>;
4151
- }, "strip", z.ZodTypeAny, {
4152
- type: "Bundle";
4153
- productLicenses: Record<string, {
4154
- licenseIds: string[];
4155
- }>;
4156
- }, {
4157
- type: "Bundle";
4158
- productLicenses: Record<string, {
4159
- licenseIds: string[];
4160
- }>;
4161
- }>]>;
3833
+ type: "Bundle";
3834
+ productLicenses: Record<string, {
3835
+ licenseIds: string[];
3836
+ }>;
3837
+ }>]>;
4162
3838
  }, "strip", z.ZodTypeAny, {
4163
3839
  type: "Subscription";
4164
3840
  subscriptionId: string;
@@ -4557,14 +4233,14 @@ declare const productLineItemSchema: z.ZodObject<{
4557
4233
  }>]>>>;
4558
4234
  applicableVariationIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
4559
4235
  validity: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4560
- from: z.ZodNullable<z.ZodDate>;
4561
- to: z.ZodNullable<z.ZodDate>;
4236
+ from: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
4237
+ to: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
4562
4238
  }, "strip", z.ZodTypeAny, {
4563
- from: Date | null;
4564
- to: Date | null;
4239
+ from?: Date | null | undefined;
4240
+ to?: Date | null | undefined;
4565
4241
  }, {
4566
- from: Date | null;
4567
- to: Date | null;
4242
+ from?: Date | null | undefined;
4243
+ to?: Date | null | undefined;
4568
4244
  }>>>;
4569
4245
  recurringPaymentUseCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4570
4246
  }, "strip", z.ZodTypeAny, {
@@ -4608,8 +4284,8 @@ declare const productLineItemSchema: z.ZodObject<{
4608
4284
  } | null | undefined;
4609
4285
  applicableVariationIds?: string[] | null | undefined;
4610
4286
  validity?: {
4611
- from: Date | null;
4612
- to: Date | null;
4287
+ from?: Date | null | undefined;
4288
+ to?: Date | null | undefined;
4613
4289
  } | null | undefined;
4614
4290
  recurringPaymentUseCount?: number | null | undefined;
4615
4291
  }, {
@@ -4653,8 +4329,8 @@ declare const productLineItemSchema: z.ZodObject<{
4653
4329
  } | null | undefined;
4654
4330
  applicableVariationIds?: string[] | null | undefined;
4655
4331
  validity?: {
4656
- from: Date | null;
4657
- to: Date | null;
4332
+ from?: Date | null | undefined;
4333
+ to?: Date | null | undefined;
4658
4334
  } | null | undefined;
4659
4335
  recurringPaymentUseCount?: number | null | undefined;
4660
4336
  }>>;
@@ -4858,8 +4534,8 @@ declare const productLineItemSchema: z.ZodObject<{
4858
4534
  } | null | undefined;
4859
4535
  applicableVariationIds?: string[] | null | undefined;
4860
4536
  validity?: {
4861
- from: Date | null;
4862
- to: Date | null;
4537
+ from?: Date | null | undefined;
4538
+ to?: Date | null | undefined;
4863
4539
  } | null | undefined;
4864
4540
  recurringPaymentUseCount?: number | null | undefined;
4865
4541
  } | undefined;
@@ -4995,8 +4671,8 @@ declare const productLineItemSchema: z.ZodObject<{
4995
4671
  } | null | undefined;
4996
4672
  applicableVariationIds?: string[] | null | undefined;
4997
4673
  validity?: {
4998
- from: Date | null;
4999
- to: Date | null;
4674
+ from?: Date | null | undefined;
4675
+ to?: Date | null | undefined;
5000
4676
  } | null | undefined;
5001
4677
  recurringPaymentUseCount?: number | null | undefined;
5002
4678
  } | undefined;
@@ -5391,14 +5067,14 @@ declare const bundleLineItemSchema: z.ZodObject<{
5391
5067
  }>]>>>;
5392
5068
  applicableVariationIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
5393
5069
  validity: z.ZodOptional<z.ZodNullable<z.ZodObject<{
5394
- from: z.ZodNullable<z.ZodDate>;
5395
- to: z.ZodNullable<z.ZodDate>;
5070
+ from: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
5071
+ to: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
5396
5072
  }, "strip", z.ZodTypeAny, {
5397
- from: Date | null;
5398
- to: Date | null;
5073
+ from?: Date | null | undefined;
5074
+ to?: Date | null | undefined;
5399
5075
  }, {
5400
- from: Date | null;
5401
- to: Date | null;
5076
+ from?: Date | null | undefined;
5077
+ to?: Date | null | undefined;
5402
5078
  }>>>;
5403
5079
  recurringPaymentUseCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5404
5080
  }, "strip", z.ZodTypeAny, {
@@ -5442,8 +5118,8 @@ declare const bundleLineItemSchema: z.ZodObject<{
5442
5118
  } | null | undefined;
5443
5119
  applicableVariationIds?: string[] | null | undefined;
5444
5120
  validity?: {
5445
- from: Date | null;
5446
- to: Date | null;
5121
+ from?: Date | null | undefined;
5122
+ to?: Date | null | undefined;
5447
5123
  } | null | undefined;
5448
5124
  recurringPaymentUseCount?: number | null | undefined;
5449
5125
  }, {
@@ -5487,8 +5163,8 @@ declare const bundleLineItemSchema: z.ZodObject<{
5487
5163
  } | null | undefined;
5488
5164
  applicableVariationIds?: string[] | null | undefined;
5489
5165
  validity?: {
5490
- from: Date | null;
5491
- to: Date | null;
5166
+ from?: Date | null | undefined;
5167
+ to?: Date | null | undefined;
5492
5168
  } | null | undefined;
5493
5169
  recurringPaymentUseCount?: number | null | undefined;
5494
5170
  }>>;
@@ -5692,8 +5368,8 @@ declare const bundleLineItemSchema: z.ZodObject<{
5692
5368
  } | null | undefined;
5693
5369
  applicableVariationIds?: string[] | null | undefined;
5694
5370
  validity?: {
5695
- from: Date | null;
5696
- to: Date | null;
5371
+ from?: Date | null | undefined;
5372
+ to?: Date | null | undefined;
5697
5373
  } | null | undefined;
5698
5374
  recurringPaymentUseCount?: number | null | undefined;
5699
5375
  } | undefined;
@@ -5829,8 +5505,8 @@ declare const bundleLineItemSchema: z.ZodObject<{
5829
5505
  } | null | undefined;
5830
5506
  applicableVariationIds?: string[] | null | undefined;
5831
5507
  validity?: {
5832
- from: Date | null;
5833
- to: Date | null;
5508
+ from?: Date | null | undefined;
5509
+ to?: Date | null | undefined;
5834
5510
  } | null | undefined;
5835
5511
  recurringPaymentUseCount?: number | null | undefined;
5836
5512
  } | undefined;
@@ -6225,14 +5901,14 @@ declare const orderLineItemSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
6225
5901
  }>]>>>;
6226
5902
  applicableVariationIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
6227
5903
  validity: z.ZodOptional<z.ZodNullable<z.ZodObject<{
6228
- from: z.ZodNullable<z.ZodDate>;
6229
- to: z.ZodNullable<z.ZodDate>;
5904
+ from: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
5905
+ to: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
6230
5906
  }, "strip", z.ZodTypeAny, {
6231
- from: Date | null;
6232
- to: Date | null;
5907
+ from?: Date | null | undefined;
5908
+ to?: Date | null | undefined;
6233
5909
  }, {
6234
- from: Date | null;
6235
- to: Date | null;
5910
+ from?: Date | null | undefined;
5911
+ to?: Date | null | undefined;
6236
5912
  }>>>;
6237
5913
  recurringPaymentUseCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
6238
5914
  }, "strip", z.ZodTypeAny, {
@@ -6276,8 +5952,8 @@ declare const orderLineItemSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
6276
5952
  } | null | undefined;
6277
5953
  applicableVariationIds?: string[] | null | undefined;
6278
5954
  validity?: {
6279
- from: Date | null;
6280
- to: Date | null;
5955
+ from?: Date | null | undefined;
5956
+ to?: Date | null | undefined;
6281
5957
  } | null | undefined;
6282
5958
  recurringPaymentUseCount?: number | null | undefined;
6283
5959
  }, {
@@ -6321,8 +5997,8 @@ declare const orderLineItemSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
6321
5997
  } | null | undefined;
6322
5998
  applicableVariationIds?: string[] | null | undefined;
6323
5999
  validity?: {
6324
- from: Date | null;
6325
- to: Date | null;
6000
+ from?: Date | null | undefined;
6001
+ to?: Date | null | undefined;
6326
6002
  } | null | undefined;
6327
6003
  recurringPaymentUseCount?: number | null | undefined;
6328
6004
  }>>;
@@ -6526,8 +6202,8 @@ declare const orderLineItemSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
6526
6202
  } | null | undefined;
6527
6203
  applicableVariationIds?: string[] | null | undefined;
6528
6204
  validity?: {
6529
- from: Date | null;
6530
- to: Date | null;
6205
+ from?: Date | null | undefined;
6206
+ to?: Date | null | undefined;
6531
6207
  } | null | undefined;
6532
6208
  recurringPaymentUseCount?: number | null | undefined;
6533
6209
  } | undefined;
@@ -6663,8 +6339,8 @@ declare const orderLineItemSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
6663
6339
  } | null | undefined;
6664
6340
  applicableVariationIds?: string[] | null | undefined;
6665
6341
  validity?: {
6666
- from: Date | null;
6667
- to: Date | null;
6342
+ from?: Date | null | undefined;
6343
+ to?: Date | null | undefined;
6668
6344
  } | null | undefined;
6669
6345
  recurringPaymentUseCount?: number | null | undefined;
6670
6346
  } | undefined;
@@ -7058,14 +6734,14 @@ declare const orderLineItemSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
7058
6734
  }>]>>>;
7059
6735
  applicableVariationIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
7060
6736
  validity: z.ZodOptional<z.ZodNullable<z.ZodObject<{
7061
- from: z.ZodNullable<z.ZodDate>;
7062
- to: z.ZodNullable<z.ZodDate>;
6737
+ from: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
6738
+ to: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
7063
6739
  }, "strip", z.ZodTypeAny, {
7064
- from: Date | null;
7065
- to: Date | null;
6740
+ from?: Date | null | undefined;
6741
+ to?: Date | null | undefined;
7066
6742
  }, {
7067
- from: Date | null;
7068
- to: Date | null;
6743
+ from?: Date | null | undefined;
6744
+ to?: Date | null | undefined;
7069
6745
  }>>>;
7070
6746
  recurringPaymentUseCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
7071
6747
  }, "strip", z.ZodTypeAny, {
@@ -7109,8 +6785,8 @@ declare const orderLineItemSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
7109
6785
  } | null | undefined;
7110
6786
  applicableVariationIds?: string[] | null | undefined;
7111
6787
  validity?: {
7112
- from: Date | null;
7113
- to: Date | null;
6788
+ from?: Date | null | undefined;
6789
+ to?: Date | null | undefined;
7114
6790
  } | null | undefined;
7115
6791
  recurringPaymentUseCount?: number | null | undefined;
7116
6792
  }, {
@@ -7154,8 +6830,8 @@ declare const orderLineItemSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
7154
6830
  } | null | undefined;
7155
6831
  applicableVariationIds?: string[] | null | undefined;
7156
6832
  validity?: {
7157
- from: Date | null;
7158
- to: Date | null;
6833
+ from?: Date | null | undefined;
6834
+ to?: Date | null | undefined;
7159
6835
  } | null | undefined;
7160
6836
  recurringPaymentUseCount?: number | null | undefined;
7161
6837
  }>>;
@@ -7359,8 +7035,8 @@ declare const orderLineItemSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
7359
7035
  } | null | undefined;
7360
7036
  applicableVariationIds?: string[] | null | undefined;
7361
7037
  validity?: {
7362
- from: Date | null;
7363
- to: Date | null;
7038
+ from?: Date | null | undefined;
7039
+ to?: Date | null | undefined;
7364
7040
  } | null | undefined;
7365
7041
  recurringPaymentUseCount?: number | null | undefined;
7366
7042
  } | undefined;
@@ -7496,8 +7172,8 @@ declare const orderLineItemSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
7496
7172
  } | null | undefined;
7497
7173
  applicableVariationIds?: string[] | null | undefined;
7498
7174
  validity?: {
7499
- from: Date | null;
7500
- to: Date | null;
7175
+ from?: Date | null | undefined;
7176
+ to?: Date | null | undefined;
7501
7177
  } | null | undefined;
7502
7178
  recurringPaymentUseCount?: number | null | undefined;
7503
7179
  } | undefined;
@@ -8440,14 +8116,14 @@ declare const orderSchema: z.ZodObject<{
8440
8116
  }>]>>>;
8441
8117
  applicableVariationIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
8442
8118
  validity: z.ZodOptional<z.ZodNullable<z.ZodObject<{
8443
- from: z.ZodNullable<z.ZodDate>;
8444
- to: z.ZodNullable<z.ZodDate>;
8119
+ from: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
8120
+ to: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
8445
8121
  }, "strip", z.ZodTypeAny, {
8446
- from: Date | null;
8447
- to: Date | null;
8122
+ from?: Date | null | undefined;
8123
+ to?: Date | null | undefined;
8448
8124
  }, {
8449
- from: Date | null;
8450
- to: Date | null;
8125
+ from?: Date | null | undefined;
8126
+ to?: Date | null | undefined;
8451
8127
  }>>>;
8452
8128
  recurringPaymentUseCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
8453
8129
  }, "strip", z.ZodTypeAny, {
@@ -8491,8 +8167,8 @@ declare const orderSchema: z.ZodObject<{
8491
8167
  } | null | undefined;
8492
8168
  applicableVariationIds?: string[] | null | undefined;
8493
8169
  validity?: {
8494
- from: Date | null;
8495
- to: Date | null;
8170
+ from?: Date | null | undefined;
8171
+ to?: Date | null | undefined;
8496
8172
  } | null | undefined;
8497
8173
  recurringPaymentUseCount?: number | null | undefined;
8498
8174
  }, {
@@ -8536,8 +8212,8 @@ declare const orderSchema: z.ZodObject<{
8536
8212
  } | null | undefined;
8537
8213
  applicableVariationIds?: string[] | null | undefined;
8538
8214
  validity?: {
8539
- from: Date | null;
8540
- to: Date | null;
8215
+ from?: Date | null | undefined;
8216
+ to?: Date | null | undefined;
8541
8217
  } | null | undefined;
8542
8218
  recurringPaymentUseCount?: number | null | undefined;
8543
8219
  }>>;
@@ -8741,8 +8417,8 @@ declare const orderSchema: z.ZodObject<{
8741
8417
  } | null | undefined;
8742
8418
  applicableVariationIds?: string[] | null | undefined;
8743
8419
  validity?: {
8744
- from: Date | null;
8745
- to: Date | null;
8420
+ from?: Date | null | undefined;
8421
+ to?: Date | null | undefined;
8746
8422
  } | null | undefined;
8747
8423
  recurringPaymentUseCount?: number | null | undefined;
8748
8424
  } | undefined;
@@ -8878,8 +8554,8 @@ declare const orderSchema: z.ZodObject<{
8878
8554
  } | null | undefined;
8879
8555
  applicableVariationIds?: string[] | null | undefined;
8880
8556
  validity?: {
8881
- from: Date | null;
8882
- to: Date | null;
8557
+ from?: Date | null | undefined;
8558
+ to?: Date | null | undefined;
8883
8559
  } | null | undefined;
8884
8560
  recurringPaymentUseCount?: number | null | undefined;
8885
8561
  } | undefined;
@@ -9273,14 +8949,14 @@ declare const orderSchema: z.ZodObject<{
9273
8949
  }>]>>>;
9274
8950
  applicableVariationIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
9275
8951
  validity: z.ZodOptional<z.ZodNullable<z.ZodObject<{
9276
- from: z.ZodNullable<z.ZodDate>;
9277
- to: z.ZodNullable<z.ZodDate>;
8952
+ from: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
8953
+ to: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
9278
8954
  }, "strip", z.ZodTypeAny, {
9279
- from: Date | null;
9280
- to: Date | null;
8955
+ from?: Date | null | undefined;
8956
+ to?: Date | null | undefined;
9281
8957
  }, {
9282
- from: Date | null;
9283
- to: Date | null;
8958
+ from?: Date | null | undefined;
8959
+ to?: Date | null | undefined;
9284
8960
  }>>>;
9285
8961
  recurringPaymentUseCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
9286
8962
  }, "strip", z.ZodTypeAny, {
@@ -9324,8 +9000,8 @@ declare const orderSchema: z.ZodObject<{
9324
9000
  } | null | undefined;
9325
9001
  applicableVariationIds?: string[] | null | undefined;
9326
9002
  validity?: {
9327
- from: Date | null;
9328
- to: Date | null;
9003
+ from?: Date | null | undefined;
9004
+ to?: Date | null | undefined;
9329
9005
  } | null | undefined;
9330
9006
  recurringPaymentUseCount?: number | null | undefined;
9331
9007
  }, {
@@ -9369,8 +9045,8 @@ declare const orderSchema: z.ZodObject<{
9369
9045
  } | null | undefined;
9370
9046
  applicableVariationIds?: string[] | null | undefined;
9371
9047
  validity?: {
9372
- from: Date | null;
9373
- to: Date | null;
9048
+ from?: Date | null | undefined;
9049
+ to?: Date | null | undefined;
9374
9050
  } | null | undefined;
9375
9051
  recurringPaymentUseCount?: number | null | undefined;
9376
9052
  }>>;
@@ -9574,8 +9250,8 @@ declare const orderSchema: z.ZodObject<{
9574
9250
  } | null | undefined;
9575
9251
  applicableVariationIds?: string[] | null | undefined;
9576
9252
  validity?: {
9577
- from: Date | null;
9578
- to: Date | null;
9253
+ from?: Date | null | undefined;
9254
+ to?: Date | null | undefined;
9579
9255
  } | null | undefined;
9580
9256
  recurringPaymentUseCount?: number | null | undefined;
9581
9257
  } | undefined;
@@ -9711,8 +9387,8 @@ declare const orderSchema: z.ZodObject<{
9711
9387
  } | null | undefined;
9712
9388
  applicableVariationIds?: string[] | null | undefined;
9713
9389
  validity?: {
9714
- from: Date | null;
9715
- to: Date | null;
9390
+ from?: Date | null | undefined;
9391
+ to?: Date | null | undefined;
9716
9392
  } | null | undefined;
9717
9393
  recurringPaymentUseCount?: number | null | undefined;
9718
9394
  } | undefined;
@@ -9934,8 +9610,8 @@ declare const orderSchema: z.ZodObject<{
9934
9610
  } | null | undefined;
9935
9611
  applicableVariationIds?: string[] | null | undefined;
9936
9612
  validity?: {
9937
- from: Date | null;
9938
- to: Date | null;
9613
+ from?: Date | null | undefined;
9614
+ to?: Date | null | undefined;
9939
9615
  } | null | undefined;
9940
9616
  recurringPaymentUseCount?: number | null | undefined;
9941
9617
  } | undefined;
@@ -10071,8 +9747,8 @@ declare const orderSchema: z.ZodObject<{
10071
9747
  } | null | undefined;
10072
9748
  applicableVariationIds?: string[] | null | undefined;
10073
9749
  validity?: {
10074
- from: Date | null;
10075
- to: Date | null;
9750
+ from?: Date | null | undefined;
9751
+ to?: Date | null | undefined;
10076
9752
  } | null | undefined;
10077
9753
  recurringPaymentUseCount?: number | null | undefined;
10078
9754
  } | undefined;
@@ -10335,8 +10011,8 @@ declare const orderSchema: z.ZodObject<{
10335
10011
  } | null | undefined;
10336
10012
  applicableVariationIds?: string[] | null | undefined;
10337
10013
  validity?: {
10338
- from: Date | null;
10339
- to: Date | null;
10014
+ from?: Date | null | undefined;
10015
+ to?: Date | null | undefined;
10340
10016
  } | null | undefined;
10341
10017
  recurringPaymentUseCount?: number | null | undefined;
10342
10018
  } | undefined;
@@ -10472,8 +10148,8 @@ declare const orderSchema: z.ZodObject<{
10472
10148
  } | null | undefined;
10473
10149
  applicableVariationIds?: string[] | null | undefined;
10474
10150
  validity?: {
10475
- from: Date | null;
10476
- to: Date | null;
10151
+ from?: Date | null | undefined;
10152
+ to?: Date | null | undefined;
10477
10153
  } | null | undefined;
10478
10154
  recurringPaymentUseCount?: number | null | undefined;
10479
10155
  } | undefined;
@@ -10606,19 +10282,19 @@ declare const orderSchema: z.ZodObject<{
10606
10282
  embeddedCheckoutUrl?: string | undefined;
10607
10283
  }>;
10608
10284
 
10609
- declare const schemas$6_bundleLineItemFulfillmentSchema: typeof bundleLineItemFulfillmentSchema;
10610
- declare const schemas$6_bundleLineItemSchema: typeof bundleLineItemSchema;
10611
- declare const schemas$6_couponSnapshotSchema: typeof couponSnapshotSchema;
10612
- declare const schemas$6_customerSnapshotSchema: typeof customerSnapshotSchema;
10613
- declare const schemas$6_licenseLineItemFulfillmentSchema: typeof licenseLineItemFulfillmentSchema;
10614
- declare const schemas$6_lineItemFulfillmentSchema: typeof lineItemFulfillmentSchema;
10615
- declare const schemas$6_orderLineItemSchema: typeof orderLineItemSchema;
10616
- declare const schemas$6_orderSchema: typeof orderSchema;
10617
- declare const schemas$6_orderTotalSchema: typeof orderTotalSchema;
10618
- declare const schemas$6_productLineItemSchema: typeof productLineItemSchema;
10619
- declare const schemas$6_utmSchema: typeof utmSchema;
10620
- declare namespace schemas$6 {
10621
- export { schemas$6_bundleLineItemFulfillmentSchema as bundleLineItemFulfillmentSchema, schemas$6_bundleLineItemSchema as bundleLineItemSchema, schemas$6_couponSnapshotSchema as couponSnapshotSchema, schemas$6_customerSnapshotSchema as customerSnapshotSchema, schemas$6_licenseLineItemFulfillmentSchema as licenseLineItemFulfillmentSchema, schemas$6_lineItemFulfillmentSchema as lineItemFulfillmentSchema, schemas$6_orderLineItemSchema as orderLineItemSchema, schemas$6_orderSchema as orderSchema, schemas$6_orderTotalSchema as orderTotalSchema, schemas$6_productLineItemSchema as productLineItemSchema, schemas$6_utmSchema as utmSchema };
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 };
10622
10298
  }
10623
10299
 
10624
10300
  declare enum OrderStatus {
@@ -10727,164 +10403,6 @@ type PrepareOrderRequest = {
10727
10403
  actorIPAddress?: string;
10728
10404
  };
10729
10405
 
10730
- declare class OrderEndpoints {
10731
- private api;
10732
- constructor(api: MoonbaseApi);
10733
- query(opts: {
10734
- paginationToken?: string;
10735
- status: OrderStatus;
10736
- after?: Date;
10737
- before?: Date;
10738
- pageSize?: number;
10739
- }): Promise<Page<Order>>;
10740
- get(id: string): Promise<Order>;
10741
- prepare(request: PrepareOrderRequest, returnUrl?: string, finalize?: boolean): Promise<Order>;
10742
- }
10743
-
10744
- declare const productSchema: z.ZodObject<{
10745
- id: z.ZodString;
10746
- name: z.ZodString;
10747
- tagline: z.ZodString;
10748
- description: z.ZodString;
10749
- website: z.ZodNullable<z.ZodString>;
10750
- iconUrl: z.ZodNullable<z.ZodString>;
10751
- status: z.ZodNativeEnum<typeof ProductStatus>;
10752
- purchasable: z.ZodBoolean;
10753
- currentReleaseVersion: z.ZodNullable<z.ZodString>;
10754
- }, "strip", z.ZodTypeAny, {
10755
- status: ProductStatus;
10756
- id: string;
10757
- name: string;
10758
- description: string;
10759
- tagline: string;
10760
- website: string | null;
10761
- iconUrl: string | null;
10762
- purchasable: boolean;
10763
- currentReleaseVersion: string | null;
10764
- }, {
10765
- status: ProductStatus;
10766
- id: string;
10767
- name: string;
10768
- description: string;
10769
- tagline: string;
10770
- website: string | null;
10771
- iconUrl: string | null;
10772
- purchasable: boolean;
10773
- currentReleaseVersion: string | null;
10774
- }>;
10775
- declare const productReleaseSchema: z.ZodObject<{
10776
- version: z.ZodString;
10777
- description: z.ZodNullable<z.ZodString>;
10778
- publishedAt: z.ZodNullable<z.ZodDate>;
10779
- downloadUrl: z.ZodString;
10780
- hostedDownloadUrl: z.ZodString;
10781
- downloads: z.ZodArray<z.ZodObject<{
10782
- name: z.ZodString;
10783
- key: z.ZodString;
10784
- platform: z.ZodNativeEnum<typeof Platform>;
10785
- size: z.ZodNumber;
10786
- downloadUrl: z.ZodString;
10787
- hostedDownloadUrl: z.ZodString;
10788
- directUrl: z.ZodString;
10789
- }, "strip", z.ZodTypeAny, {
10790
- key: string;
10791
- name: string;
10792
- downloadUrl: string;
10793
- hostedDownloadUrl: string;
10794
- platform: Platform;
10795
- size: number;
10796
- directUrl: string;
10797
- }, {
10798
- key: string;
10799
- name: string;
10800
- downloadUrl: string;
10801
- hostedDownloadUrl: string;
10802
- platform: Platform;
10803
- size: number;
10804
- directUrl: string;
10805
- }>, "many">;
10806
- }, "strip", z.ZodTypeAny, {
10807
- description: string | null;
10808
- version: string;
10809
- publishedAt: Date | null;
10810
- downloadUrl: string;
10811
- hostedDownloadUrl: string;
10812
- downloads: {
10813
- key: string;
10814
- name: string;
10815
- downloadUrl: string;
10816
- hostedDownloadUrl: string;
10817
- platform: Platform;
10818
- size: number;
10819
- directUrl: string;
10820
- }[];
10821
- }, {
10822
- description: string | null;
10823
- version: string;
10824
- publishedAt: Date | null;
10825
- downloadUrl: string;
10826
- hostedDownloadUrl: string;
10827
- downloads: {
10828
- key: string;
10829
- name: string;
10830
- downloadUrl: string;
10831
- hostedDownloadUrl: string;
10832
- platform: Platform;
10833
- size: number;
10834
- directUrl: string;
10835
- }[];
10836
- }>;
10837
-
10838
- declare const schemas$5_productReleaseSchema: typeof productReleaseSchema;
10839
- declare const schemas$5_productSchema: typeof productSchema;
10840
- declare namespace schemas$5 {
10841
- export { schemas$5_productReleaseSchema as productReleaseSchema, schemas$5_productSchema as productSchema };
10842
- }
10843
-
10844
- declare enum Platform {
10845
- Universal = "Universal",
10846
- Windows = "Windows",
10847
- Linux = "Linux",
10848
- Mac = "Mac",
10849
- iOS = "iOS",
10850
- Android = "Android"
10851
- }
10852
- declare enum ProductStatus {
10853
- Active = "Active",
10854
- Inactive = "Inactive"
10855
- }
10856
- type Product = z.infer<typeof productSchema>;
10857
- type ProductRelease = z.infer<typeof productReleaseSchema>;
10858
-
10859
- declare class ProductEndpoints {
10860
- private api;
10861
- constructor(api: MoonbaseApi);
10862
- query(opts?: {
10863
- paginationToken?: string;
10864
- activeOnly?: boolean;
10865
- pageSize?: number;
10866
- }): Promise<Page<Product>>;
10867
- get(id: string): Promise<Product>;
10868
- queryReleases(id: string, opts?: {
10869
- paginationToken?: string;
10870
- pageSize?: number;
10871
- }): Promise<Page<ProductRelease>>;
10872
- }
10873
-
10874
- declare class SubscriptionEndpoints {
10875
- private api;
10876
- constructor(api: MoonbaseApi);
10877
- query(opts: {
10878
- paginationToken?: string;
10879
- status: SubscriptionStatus;
10880
- after?: Date;
10881
- before?: Date;
10882
- pageSize?: number;
10883
- }): Promise<Page<Subscription>>;
10884
- get(subscriptionId: string): Promise<Subscription>;
10885
- import(subscription: ImportSubscriptionRequest): Promise<Subscription>;
10886
- }
10887
-
10888
10406
  declare const trialSchema: z.ZodObject<{
10889
10407
  id: z.ZodString;
10890
10408
  externalId: z.ZodOptional<z.ZodString>;
@@ -10959,45 +10477,279 @@ declare const trialSchema: z.ZodObject<{
10959
10477
  name: string;
10960
10478
  email: string;
10961
10479
  };
10962
- }, {
10480
+ }, {
10481
+ at: Date;
10482
+ by: {
10483
+ id: string;
10484
+ name: string;
10485
+ email: string;
10486
+ };
10487
+ }>;
10488
+ created: z.ZodObject<{
10489
+ at: z.ZodDate;
10490
+ by: z.ZodObject<{
10491
+ id: z.ZodString;
10492
+ name: z.ZodString;
10493
+ email: z.ZodString;
10494
+ }, "strip", z.ZodTypeAny, {
10495
+ id: string;
10496
+ name: string;
10497
+ email: string;
10498
+ }, {
10499
+ id: string;
10500
+ name: string;
10501
+ email: string;
10502
+ }>;
10503
+ }, "strip", z.ZodTypeAny, {
10504
+ at: Date;
10505
+ by: {
10506
+ id: string;
10507
+ name: string;
10508
+ email: string;
10509
+ };
10510
+ }, {
10511
+ at: Date;
10512
+ by: {
10513
+ id: string;
10514
+ name: string;
10515
+ email: string;
10516
+ };
10517
+ }>;
10518
+ }, "strip", z.ZodTypeAny, {
10519
+ id: string;
10520
+ name: string;
10521
+ businessName: string | null;
10522
+ taxId: string | null;
10523
+ email: string;
10524
+ address: {
10525
+ countryCode: string;
10526
+ streetAddress1: string;
10527
+ streetAddress2: string | null;
10528
+ locality: string | null;
10529
+ region: string | null;
10530
+ postCode: string | null;
10531
+ } | null;
10532
+ lastUpdated: {
10533
+ at: Date;
10534
+ by: {
10535
+ id: string;
10536
+ name: string;
10537
+ email: string;
10538
+ };
10539
+ };
10540
+ created: {
10541
+ at: Date;
10542
+ by: {
10543
+ id: string;
10544
+ name: string;
10545
+ email: string;
10546
+ };
10547
+ };
10548
+ numberOfLicenses: number;
10549
+ numberOfTrials: number;
10550
+ emailConfirmed: boolean;
10551
+ hasPassword: boolean;
10552
+ isDeleted: boolean;
10553
+ ownedProducts: string[];
10554
+ subscribedProducts: string[];
10555
+ communicationPreferences: {
10556
+ newsletterOptIn: boolean;
10557
+ };
10558
+ externalId?: string | undefined;
10559
+ }, {
10560
+ id: string;
10561
+ name: string;
10562
+ businessName: string | null;
10563
+ taxId: string | null;
10564
+ email: string;
10565
+ address: {
10566
+ countryCode: string;
10567
+ streetAddress1: string;
10568
+ streetAddress2: string | null;
10569
+ locality: string | null;
10570
+ region: string | null;
10571
+ postCode: string | null;
10572
+ } | null;
10573
+ lastUpdated: {
10574
+ at: Date;
10575
+ by: {
10576
+ id: string;
10577
+ name: string;
10578
+ email: string;
10579
+ };
10580
+ };
10581
+ created: {
10963
10582
  at: Date;
10964
10583
  by: {
10965
10584
  id: string;
10966
10585
  name: string;
10967
10586
  email: string;
10968
10587
  };
10588
+ };
10589
+ numberOfLicenses: number;
10590
+ numberOfTrials: number;
10591
+ emailConfirmed: boolean;
10592
+ hasPassword: boolean;
10593
+ isDeleted: boolean;
10594
+ ownedProducts: string[];
10595
+ subscribedProducts: string[];
10596
+ communicationPreferences: {
10597
+ newsletterOptIn: boolean;
10598
+ };
10599
+ externalId?: string | undefined;
10600
+ }>>;
10601
+ lastUpdated: z.ZodObject<{
10602
+ at: z.ZodDate;
10603
+ by: z.ZodObject<{
10604
+ id: z.ZodString;
10605
+ name: z.ZodString;
10606
+ email: z.ZodString;
10607
+ }, "strip", z.ZodTypeAny, {
10608
+ id: string;
10609
+ name: string;
10610
+ email: string;
10611
+ }, {
10612
+ id: string;
10613
+ name: string;
10614
+ email: string;
10969
10615
  }>;
10970
- created: z.ZodObject<{
10971
- at: z.ZodDate;
10972
- by: z.ZodObject<{
10973
- id: z.ZodString;
10974
- name: z.ZodString;
10975
- email: z.ZodString;
10976
- }, "strip", z.ZodTypeAny, {
10977
- id: string;
10978
- name: string;
10979
- email: string;
10980
- }, {
10981
- id: string;
10982
- name: string;
10983
- email: string;
10984
- }>;
10616
+ }, "strip", z.ZodTypeAny, {
10617
+ at: Date;
10618
+ by: {
10619
+ id: string;
10620
+ name: string;
10621
+ email: string;
10622
+ };
10623
+ }, {
10624
+ at: Date;
10625
+ by: {
10626
+ id: string;
10627
+ name: string;
10628
+ email: string;
10629
+ };
10630
+ }>;
10631
+ created: z.ZodObject<{
10632
+ at: z.ZodDate;
10633
+ by: z.ZodObject<{
10634
+ id: z.ZodString;
10635
+ name: z.ZodString;
10636
+ email: z.ZodString;
10985
10637
  }, "strip", z.ZodTypeAny, {
10638
+ id: string;
10639
+ name: string;
10640
+ email: string;
10641
+ }, {
10642
+ id: string;
10643
+ name: string;
10644
+ email: string;
10645
+ }>;
10646
+ }, "strip", z.ZodTypeAny, {
10647
+ at: Date;
10648
+ by: {
10649
+ id: string;
10650
+ name: string;
10651
+ email: string;
10652
+ };
10653
+ }, {
10654
+ at: Date;
10655
+ by: {
10656
+ id: string;
10657
+ name: string;
10658
+ email: string;
10659
+ };
10660
+ }>;
10661
+ }, "strip", z.ZodTypeAny, {
10662
+ status: TrialStatus;
10663
+ id: string;
10664
+ productId: string;
10665
+ lastUpdated: {
10666
+ at: Date;
10667
+ by: {
10668
+ id: string;
10669
+ name: string;
10670
+ email: string;
10671
+ };
10672
+ };
10673
+ created: {
10674
+ at: Date;
10675
+ by: {
10676
+ id: string;
10677
+ name: string;
10678
+ email: string;
10679
+ };
10680
+ };
10681
+ lastValidatedAt: Date;
10682
+ expiresAt: Date;
10683
+ deviceName: string;
10684
+ deviceSignature: string;
10685
+ customer?: {
10686
+ id: string;
10687
+ name: string;
10688
+ businessName: string | null;
10689
+ taxId: string | null;
10690
+ email: string;
10691
+ address: {
10692
+ countryCode: string;
10693
+ streetAddress1: string;
10694
+ streetAddress2: string | null;
10695
+ locality: string | null;
10696
+ region: string | null;
10697
+ postCode: string | null;
10698
+ } | null;
10699
+ lastUpdated: {
10986
10700
  at: Date;
10987
10701
  by: {
10988
10702
  id: string;
10989
10703
  name: string;
10990
10704
  email: string;
10991
10705
  };
10992
- }, {
10706
+ };
10707
+ created: {
10993
10708
  at: Date;
10994
10709
  by: {
10995
10710
  id: string;
10996
10711
  name: string;
10997
10712
  email: string;
10998
10713
  };
10999
- }>;
11000
- }, "strip", z.ZodTypeAny, {
10714
+ };
10715
+ numberOfLicenses: number;
10716
+ numberOfTrials: number;
10717
+ emailConfirmed: boolean;
10718
+ hasPassword: boolean;
10719
+ isDeleted: boolean;
10720
+ ownedProducts: string[];
10721
+ subscribedProducts: string[];
10722
+ communicationPreferences: {
10723
+ newsletterOptIn: boolean;
10724
+ };
10725
+ externalId?: string | undefined;
10726
+ } | undefined;
10727
+ externalId?: string | undefined;
10728
+ }, {
10729
+ status: TrialStatus;
10730
+ id: string;
10731
+ productId: string;
10732
+ lastUpdated: {
10733
+ at: Date;
10734
+ by: {
10735
+ id: string;
10736
+ name: string;
10737
+ email: string;
10738
+ };
10739
+ };
10740
+ created: {
10741
+ at: Date;
10742
+ by: {
10743
+ id: string;
10744
+ name: string;
10745
+ email: string;
10746
+ };
10747
+ };
10748
+ lastValidatedAt: Date;
10749
+ expiresAt: Date;
10750
+ deviceName: string;
10751
+ deviceSignature: string;
10752
+ customer?: {
11001
10753
  id: string;
11002
10754
  name: string;
11003
10755
  businessName: string | null;
@@ -11038,48 +10790,123 @@ declare const trialSchema: z.ZodObject<{
11038
10790
  newsletterOptIn: boolean;
11039
10791
  };
11040
10792
  externalId?: string | undefined;
10793
+ } | undefined;
10794
+ externalId?: string | undefined;
10795
+ }>;
10796
+ declare const importTrialRequestSchema: z.ZodObject<{
10797
+ productId: z.ZodString;
10798
+ externalId: z.ZodOptional<z.ZodString>;
10799
+ deviceName: z.ZodString;
10800
+ deviceSignature: z.ZodString;
10801
+ expiresAt: z.ZodDate;
10802
+ ownerId: z.ZodOptional<z.ZodString>;
10803
+ lastValidation: z.ZodOptional<z.ZodDate>;
10804
+ createdAt: z.ZodOptional<z.ZodDate>;
10805
+ }, "strip", z.ZodTypeAny, {
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;
11041
10895
  }, {
11042
- id: string;
11043
- name: string;
11044
- businessName: string | null;
11045
- taxId: string | null;
11046
- email: string;
11047
- address: {
11048
- countryCode: string;
11049
- streetAddress1: string;
11050
- streetAddress2: string | null;
11051
- locality: string | null;
11052
- region: string | null;
11053
- postCode: string | null;
11054
- } | null;
11055
- lastUpdated: {
11056
- at: Date;
11057
- by: {
11058
- id: string;
11059
- name: string;
11060
- email: string;
11061
- };
11062
- };
11063
- created: {
11064
- at: Date;
11065
- by: {
11066
- id: string;
11067
- name: string;
11068
- email: string;
11069
- };
11070
- };
11071
- numberOfLicenses: number;
11072
- numberOfTrials: number;
11073
- emailConfirmed: boolean;
11074
- hasPassword: boolean;
11075
- isDeleted: boolean;
11076
- ownedProducts: string[];
11077
- subscribedProducts: string[];
11078
- communicationPreferences: {
11079
- newsletterOptIn: boolean;
11080
- };
11081
- externalId?: string | undefined;
10896
+ countryCode: string;
10897
+ streetAddress1: string;
10898
+ streetAddress2: string | null;
10899
+ locality: string | null;
10900
+ region: string | null;
10901
+ postCode: string | null;
11082
10902
  }>>;
10903
+ communicationPreferences: z.ZodObject<{
10904
+ newsletterOptIn: z.ZodBoolean;
10905
+ }, "strip", z.ZodTypeAny, {
10906
+ newsletterOptIn: boolean;
10907
+ }, {
10908
+ newsletterOptIn: boolean;
10909
+ }>;
11083
10910
  lastUpdated: z.ZodObject<{
11084
10911
  at: z.ZodDate;
11085
10912
  by: z.ZodObject<{
@@ -11141,9 +10968,19 @@ declare const trialSchema: z.ZodObject<{
11141
10968
  };
11142
10969
  }>;
11143
10970
  }, "strip", z.ZodTypeAny, {
11144
- status: TrialStatus;
11145
10971
  id: string;
11146
- productId: 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;
11147
10984
  lastUpdated: {
11148
10985
  at: Date;
11149
10986
  by: {
@@ -11160,57 +10997,31 @@ declare const trialSchema: z.ZodObject<{
11160
10997
  email: string;
11161
10998
  };
11162
10999
  };
11163
- lastValidatedAt: Date;
11164
- expiresAt: Date;
11165
- deviceName: string;
11166
- deviceSignature: string;
11167
- customer?: {
11168
- id: string;
11169
- name: string;
11170
- businessName: string | null;
11171
- taxId: string | null;
11172
- email: string;
11173
- address: {
11174
- countryCode: string;
11175
- streetAddress1: string;
11176
- streetAddress2: string | null;
11177
- locality: string | null;
11178
- region: string | null;
11179
- postCode: string | null;
11180
- } | null;
11181
- lastUpdated: {
11182
- at: Date;
11183
- by: {
11184
- id: string;
11185
- name: string;
11186
- email: string;
11187
- };
11188
- };
11189
- created: {
11190
- at: Date;
11191
- by: {
11192
- id: string;
11193
- name: string;
11194
- email: string;
11195
- };
11196
- };
11197
- numberOfLicenses: number;
11198
- numberOfTrials: number;
11199
- emailConfirmed: boolean;
11200
- hasPassword: boolean;
11201
- isDeleted: boolean;
11202
- ownedProducts: string[];
11203
- subscribedProducts: string[];
11204
- communicationPreferences: {
11205
- newsletterOptIn: boolean;
11206
- };
11207
- externalId?: string | undefined;
11208
- } | undefined;
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
+ };
11209
11010
  externalId?: string | undefined;
11210
11011
  }, {
11211
- status: TrialStatus;
11212
11012
  id: string;
11213
- productId: 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;
11214
11025
  lastUpdated: {
11215
11026
  at: Date;
11216
11027
  by: {
@@ -11227,95 +11038,290 @@ declare const trialSchema: z.ZodObject<{
11227
11038
  email: string;
11228
11039
  };
11229
11040
  };
11230
- lastValidatedAt: Date;
11231
- expiresAt: Date;
11232
- deviceName: string;
11233
- deviceSignature: string;
11234
- customer?: {
11235
- id: string;
11236
- name: string;
11237
- businessName: string | null;
11238
- taxId: string | null;
11239
- email: string;
11240
- address: {
11241
- countryCode: string;
11242
- streetAddress1: string;
11243
- streetAddress2: string | null;
11244
- locality: string | null;
11245
- region: string | null;
11246
- postCode: string | null;
11247
- } | null;
11248
- lastUpdated: {
11249
- at: Date;
11250
- by: {
11251
- id: string;
11252
- name: string;
11253
- email: string;
11254
- };
11255
- };
11256
- created: {
11257
- at: Date;
11258
- by: {
11259
- id: string;
11260
- name: string;
11261
- email: string;
11262
- };
11263
- };
11264
- numberOfLicenses: number;
11265
- numberOfTrials: number;
11266
- emailConfirmed: boolean;
11267
- hasPassword: boolean;
11268
- isDeleted: boolean;
11269
- ownedProducts: string[];
11270
- subscribedProducts: string[];
11271
- communicationPreferences: {
11272
- newsletterOptIn: boolean;
11273
- };
11274
- externalId?: string | undefined;
11275
- } | undefined;
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
+ };
11276
11051
  externalId?: string | undefined;
11277
11052
  }>;
11278
- declare const importTrialRequestSchema: z.ZodObject<{
11279
- productId: z.ZodString;
11053
+ declare const importCustomerRequestSchema: z.ZodObject<{
11054
+ name: z.ZodString;
11055
+ email: z.ZodString;
11280
11056
  externalId: z.ZodOptional<z.ZodString>;
11281
- deviceName: z.ZodString;
11282
- deviceSignature: z.ZodString;
11283
- expiresAt: z.ZodDate;
11284
- ownerId: z.ZodOptional<z.ZodString>;
11285
- lastValidation: z.ZodOptional<z.ZodDate>;
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
+ }>>;
11286
11080
  createdAt: z.ZodOptional<z.ZodDate>;
11287
- }, "strip", z.ZodTypeAny, {
11288
- productId: string;
11289
- expiresAt: Date;
11290
- deviceName: string;
11291
- deviceSignature: string;
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;
11292
11092
  externalId?: string | undefined;
11293
- ownerId?: string | undefined;
11294
11093
  createdAt?: Date | undefined;
11295
- lastValidation?: Date | undefined;
11094
+ password?: string | undefined;
11296
11095
  }, {
11297
- productId: string;
11298
- expiresAt: Date;
11299
- deviceName: string;
11300
- deviceSignature: string;
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;
11301
11106
  externalId?: string | undefined;
11302
- ownerId?: string | undefined;
11303
11107
  createdAt?: Date | undefined;
11304
- lastValidation?: Date | undefined;
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
+ }[];
11305
11274
  }>;
11306
11275
 
11307
- declare const schemas$4_importTrialRequestSchema: typeof importTrialRequestSchema;
11308
- declare const schemas$4_trialSchema: typeof trialSchema;
11276
+ declare const schemas$4_productReleaseSchema: typeof productReleaseSchema;
11277
+ declare const schemas$4_productSchema: typeof productSchema;
11309
11278
  declare namespace schemas$4 {
11310
- export { schemas$4_importTrialRequestSchema as importTrialRequestSchema, schemas$4_trialSchema as trialSchema };
11279
+ export { schemas$4_productReleaseSchema as productReleaseSchema, schemas$4_productSchema as productSchema };
11311
11280
  }
11312
11281
 
11313
- declare enum TrialStatus {
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 {
11314
11291
  Active = "Active",
11315
- Expired = "Expired"
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>;
11316
11324
  }
11317
- type Trial = z.infer<typeof trialSchema>;
11318
- type ImportTrialRequest = z.infer<typeof importTrialRequestSchema>;
11319
11325
 
11320
11326
  declare class TrialEndpoints {
11321
11327
  private api;
@@ -11831,6 +11837,16 @@ declare const couponSchema: z.ZodObject<{
11831
11837
  }>, "many">;
11832
11838
  applicableProductVariations: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
11833
11839
  applicableBundleVariations: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
11840
+ validity: z.ZodOptional<z.ZodNullable<z.ZodObject<{
11841
+ from: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
11842
+ to: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
11843
+ }, "strip", z.ZodTypeAny, {
11844
+ from?: Date | null | undefined;
11845
+ to?: Date | null | undefined;
11846
+ }, {
11847
+ from?: Date | null | undefined;
11848
+ to?: Date | null | undefined;
11849
+ }>>>;
11834
11850
  isDeleted: z.ZodBoolean;
11835
11851
  lastUpdated: z.ZodObject<{
11836
11852
  at: z.ZodDate;
@@ -11946,6 +11962,10 @@ declare const couponSchema: z.ZodObject<{
11946
11962
  }[];
11947
11963
  applicableProductVariations: Record<string, string[]>;
11948
11964
  applicableBundleVariations: Record<string, string[]>;
11965
+ validity?: {
11966
+ from?: Date | null | undefined;
11967
+ to?: Date | null | undefined;
11968
+ } | null | undefined;
11949
11969
  }, {
11950
11970
  id: string;
11951
11971
  name: string;
@@ -12000,32 +12020,72 @@ declare const couponSchema: z.ZodObject<{
12000
12020
  }[];
12001
12021
  applicableProductVariations: Record<string, string[]>;
12002
12022
  applicableBundleVariations: Record<string, string[]>;
12023
+ validity?: {
12024
+ from?: Date | null | undefined;
12025
+ to?: Date | null | undefined;
12026
+ } | null | undefined;
12003
12027
  }>;
12004
12028
  declare const createCouponRequestSchema: z.ZodObject<{
12005
12029
  name: z.ZodString;
12006
12030
  description: z.ZodString;
12007
12031
  applicableProducts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
12008
12032
  applicableBundles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
12033
+ validity: z.ZodOptional<z.ZodNullable<z.ZodObject<{
12034
+ from: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
12035
+ to: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
12036
+ }, "strip", z.ZodTypeAny, {
12037
+ from?: Date | null | undefined;
12038
+ to?: Date | null | undefined;
12039
+ }, {
12040
+ from?: Date | null | undefined;
12041
+ to?: Date | null | undefined;
12042
+ }>>>;
12009
12043
  }, "strip", z.ZodTypeAny, {
12010
12044
  name: string;
12011
12045
  description: string;
12046
+ validity?: {
12047
+ from?: Date | null | undefined;
12048
+ to?: Date | null | undefined;
12049
+ } | null | undefined;
12012
12050
  applicableProducts?: Record<string, string[]> | undefined;
12013
12051
  applicableBundles?: Record<string, string[]> | undefined;
12014
12052
  }, {
12015
12053
  name: string;
12016
12054
  description: string;
12055
+ validity?: {
12056
+ from?: Date | null | undefined;
12057
+ to?: Date | null | undefined;
12058
+ } | null | undefined;
12017
12059
  applicableProducts?: Record<string, string[]> | undefined;
12018
12060
  applicableBundles?: Record<string, string[]> | undefined;
12019
12061
  }>;
12020
12062
  declare const couponCodeSchema: z.ZodObject<{
12021
12063
  code: z.ZodString;
12022
12064
  numberOfRedemptions: z.ZodNumber;
12065
+ validity: z.ZodOptional<z.ZodNullable<z.ZodObject<{
12066
+ from: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
12067
+ to: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
12068
+ }, "strip", z.ZodTypeAny, {
12069
+ from?: Date | null | undefined;
12070
+ to?: Date | null | undefined;
12071
+ }, {
12072
+ from?: Date | null | undefined;
12073
+ to?: Date | null | undefined;
12074
+ }>>>;
12023
12075
  }, "strip", z.ZodTypeAny, {
12024
12076
  code: string;
12025
12077
  numberOfRedemptions: number;
12078
+ validity?: {
12079
+ from?: Date | null | undefined;
12080
+ to?: Date | null | undefined;
12081
+ } | null | undefined;
12026
12082
  }, {
12027
12083
  code: string;
12028
12084
  numberOfRedemptions: number;
12085
+ validity?: {
12086
+ from?: Date | null | undefined;
12087
+ to?: Date | null | undefined;
12088
+ } | null | undefined;
12029
12089
  }>;
12030
12090
 
12031
12091
  declare const schemas$1_couponCodeSchema: typeof couponCodeSchema;
@@ -12046,7 +12106,7 @@ declare const schemas_pricingVariationSchema: typeof pricingVariationSchema;
12046
12106
  declare const schemas_quantifiable: typeof quantifiable;
12047
12107
  declare const schemas_userSchema: typeof userSchema;
12048
12108
  declare namespace schemas {
12049
- export { schemas$a as activationRequests, schemas$2 as bundles, schemas$1 as coupons, schemas$7 as customers, schemas_dateTimeSpanSchema as dateTimeSpanSchema, schemas_discountSchema as discountSchema, schemas_entityChangeSchema as entityChangeSchema, schemas$9 as licenses, schemas_moneySchema as moneySchema, schemas$6 as orders, schemas_paged as paged, schemas_priceCollectionSchema as priceCollectionSchema, schemas_pricingDiscountSchema as pricingDiscountSchema, schemas_pricingVariationSchema as pricingVariationSchema, schemas$5 as products, schemas_quantifiable as quantifiable, schemas$8 as subscriptions, schemas$4 as trials, schemas_userSchema as userSchema, schemas$3 as vouchers };
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 };
12050
12110
  }
12051
12111
 
12052
12112
  interface MoonbaseConfiguration {
@@ -12067,4 +12127,4 @@ declare class MoonbaseClient {
12067
12127
  orders: OrderEndpoints;
12068
12128
  }
12069
12129
 
12070
- export { ActivationMethod, type ActivationRequest, ActivationRequestStatus, ActivationStatus, type Bundle, ConflictError, type CouponSnapshot, type CreateVoucherRequest, type Customer, type CustomerSnapshot, CycleLength, type ImportCustomerRequest, type ImportLicenseRequest, type ImportSubscriptionRequest, type ImportTrialRequest, type License, type LicenseActivation, LicenseStatus, MoonbaseApi, MoonbaseClient, type MoonbaseConfiguration, MoonbaseError, NotAuthenticatedError, NotAuthorizedError, NotFoundError, type Order, OrderStatus, type Page, Platform, type PrepareOrderRequest, type PricingDiscount, type PricingVariation, type Product, type ProductRelease, ProductStatus, type ProvisionLicensesRequest, type Quantifiable, type Subscription, SubscriptionStatus, type Trial, TrialStatus, type UrchingTrackingModule, type Voucher, type VoucherCode, objectToQuery, schemas };
12130
+ export { ActivationMethod, type ActivationRequest, ActivationRequestStatus, ActivationStatus, type Bundle, ConflictError, type CouponSnapshot, type CreateVoucherRequest, type Customer, type CustomerSnapshot, CycleLength, type DateTimeSpan, type ImportCustomerRequest, type ImportLicenseRequest, type ImportSubscriptionRequest, type ImportTrialRequest, type License, type LicenseActivation, LicenseStatus, MoonbaseApi, MoonbaseClient, type MoonbaseConfiguration, MoonbaseError, NotAuthenticatedError, NotAuthorizedError, NotFoundError, type Order, OrderStatus, type Page, Platform, type PrepareOrderRequest, type PricingDiscount, type PricingVariation, type Product, type ProductRelease, ProductStatus, type ProvisionLicensesRequest, type Quantifiable, type Subscription, SubscriptionStatus, type Trial, TrialStatus, type UrchingTrackingModule, type Voucher, type VoucherCode, objectToQuery, schemas };