@moonbase.sh/storefront-api 0.1.96 → 0.1.97
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 +161 -134
- package/dist/index.d.cts +618 -606
- package/dist/index.d.ts +618 -606
- package/dist/index.js +161 -134
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -695,284 +695,6 @@ declare class IdentityEndpoints {
|
|
|
695
695
|
resetPassword(email: string, newPassword: string, code: string): Promise<void>;
|
|
696
696
|
}
|
|
697
697
|
|
|
698
|
-
declare const pricingVariationSchema: z.ZodObject<{
|
|
699
|
-
id: z.ZodString;
|
|
700
|
-
name: z.ZodString;
|
|
701
|
-
originalPrice: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
702
|
-
price: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
703
|
-
hasDiscount: z.ZodBoolean;
|
|
704
|
-
discount: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
705
|
-
type: z.ZodLiteral<"PercentageOffDiscount">;
|
|
706
|
-
name: z.ZodString;
|
|
707
|
-
description: z.ZodOptional<z.ZodString>;
|
|
708
|
-
percentage: z.ZodNumber;
|
|
709
|
-
total: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
710
|
-
}, "strip", z.ZodTypeAny, {
|
|
711
|
-
type: "PercentageOffDiscount";
|
|
712
|
-
name: string;
|
|
713
|
-
percentage: number;
|
|
714
|
-
total: Record<string, number>;
|
|
715
|
-
description?: string | undefined;
|
|
716
|
-
}, {
|
|
717
|
-
type: "PercentageOffDiscount";
|
|
718
|
-
name: string;
|
|
719
|
-
percentage: number;
|
|
720
|
-
total: Record<string, number>;
|
|
721
|
-
description?: string | undefined;
|
|
722
|
-
}>, z.ZodObject<{
|
|
723
|
-
type: z.ZodLiteral<"FlatAmountOffDiscount">;
|
|
724
|
-
name: z.ZodString;
|
|
725
|
-
description: z.ZodOptional<z.ZodString>;
|
|
726
|
-
total: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
727
|
-
}, "strip", z.ZodTypeAny, {
|
|
728
|
-
type: "FlatAmountOffDiscount";
|
|
729
|
-
name: string;
|
|
730
|
-
total: Record<string, number>;
|
|
731
|
-
description?: string | undefined;
|
|
732
|
-
}, {
|
|
733
|
-
type: "FlatAmountOffDiscount";
|
|
734
|
-
name: string;
|
|
735
|
-
total: Record<string, number>;
|
|
736
|
-
description?: string | undefined;
|
|
737
|
-
}>]>>;
|
|
738
|
-
}, "strip", z.ZodTypeAny, {
|
|
739
|
-
id: string;
|
|
740
|
-
name: string;
|
|
741
|
-
originalPrice: Record<string, number>;
|
|
742
|
-
price: Record<string, number>;
|
|
743
|
-
hasDiscount: boolean;
|
|
744
|
-
discount?: {
|
|
745
|
-
type: "PercentageOffDiscount";
|
|
746
|
-
name: string;
|
|
747
|
-
percentage: number;
|
|
748
|
-
total: Record<string, number>;
|
|
749
|
-
description?: string | undefined;
|
|
750
|
-
} | {
|
|
751
|
-
type: "FlatAmountOffDiscount";
|
|
752
|
-
name: string;
|
|
753
|
-
total: Record<string, number>;
|
|
754
|
-
description?: string | undefined;
|
|
755
|
-
} | undefined;
|
|
756
|
-
}, {
|
|
757
|
-
id: string;
|
|
758
|
-
name: string;
|
|
759
|
-
originalPrice: Record<string, number>;
|
|
760
|
-
price: Record<string, number>;
|
|
761
|
-
hasDiscount: boolean;
|
|
762
|
-
discount?: {
|
|
763
|
-
type: "PercentageOffDiscount";
|
|
764
|
-
name: string;
|
|
765
|
-
percentage: number;
|
|
766
|
-
total: Record<string, number>;
|
|
767
|
-
description?: string | undefined;
|
|
768
|
-
} | {
|
|
769
|
-
type: "FlatAmountOffDiscount";
|
|
770
|
-
name: string;
|
|
771
|
-
total: Record<string, number>;
|
|
772
|
-
description?: string | undefined;
|
|
773
|
-
} | undefined;
|
|
774
|
-
}>;
|
|
775
|
-
|
|
776
|
-
type PricingVariation = z.infer<typeof pricingVariationSchema>;
|
|
777
|
-
interface Page<T> {
|
|
778
|
-
items: Array<T>;
|
|
779
|
-
hasMore: boolean;
|
|
780
|
-
next: string | null;
|
|
781
|
-
}
|
|
782
|
-
interface Quantifiable<T> {
|
|
783
|
-
value: T;
|
|
784
|
-
quantity: number;
|
|
785
|
-
}
|
|
786
|
-
interface UrchinTrackingModule {
|
|
787
|
-
source?: string;
|
|
788
|
-
medium?: string;
|
|
789
|
-
campaign?: string;
|
|
790
|
-
term?: string;
|
|
791
|
-
content?: string;
|
|
792
|
-
referrer?: string;
|
|
793
|
-
}
|
|
794
|
-
declare function utmToObject(utm?: UrchinTrackingModule): Record<string, string>;
|
|
795
|
-
|
|
796
|
-
declare const licenseSchema: z.ZodObject<{
|
|
797
|
-
id: z.ZodString;
|
|
798
|
-
status: z.ZodNativeEnum<typeof LicenseStatus>;
|
|
799
|
-
product: z.ZodOptional<z.ZodObject<{
|
|
800
|
-
id: z.ZodString;
|
|
801
|
-
name: z.ZodString;
|
|
802
|
-
tagline: z.ZodString;
|
|
803
|
-
website: z.ZodOptional<z.ZodString>;
|
|
804
|
-
iconUrl: z.ZodOptional<z.ZodString>;
|
|
805
|
-
numberOfLicenses: z.ZodOptional<z.ZodNumber>;
|
|
806
|
-
numberOfTrials: z.ZodOptional<z.ZodNumber>;
|
|
807
|
-
currentActivations: z.ZodOptional<z.ZodNumber>;
|
|
808
|
-
maxActivations: z.ZodOptional<z.ZodNumber>;
|
|
809
|
-
currentVersion: z.ZodNullable<z.ZodString>;
|
|
810
|
-
downloadsNeedsUser: z.ZodBoolean;
|
|
811
|
-
downloadsNeedsOwnership: z.ZodBoolean;
|
|
812
|
-
downloads: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
813
|
-
name: z.ZodString;
|
|
814
|
-
key: z.ZodString;
|
|
815
|
-
platform: z.ZodNativeEnum<typeof Platform>;
|
|
816
|
-
size: z.ZodNumber;
|
|
817
|
-
path: z.ZodNullable<z.ZodString>;
|
|
818
|
-
}, "strip", z.ZodTypeAny, {
|
|
819
|
-
path: string | null;
|
|
820
|
-
name: string;
|
|
821
|
-
key: string;
|
|
822
|
-
platform: Platform;
|
|
823
|
-
size: number;
|
|
824
|
-
}, {
|
|
825
|
-
path: string | null;
|
|
826
|
-
name: string;
|
|
827
|
-
key: string;
|
|
828
|
-
platform: Platform;
|
|
829
|
-
size: number;
|
|
830
|
-
}>, "many">>;
|
|
831
|
-
}, "strip", z.ZodTypeAny, {
|
|
832
|
-
id: string;
|
|
833
|
-
name: string;
|
|
834
|
-
tagline: string;
|
|
835
|
-
currentVersion: string | null;
|
|
836
|
-
downloadsNeedsUser: boolean;
|
|
837
|
-
downloadsNeedsOwnership: boolean;
|
|
838
|
-
website?: string | undefined;
|
|
839
|
-
iconUrl?: string | undefined;
|
|
840
|
-
numberOfLicenses?: number | undefined;
|
|
841
|
-
numberOfTrials?: number | undefined;
|
|
842
|
-
currentActivations?: number | undefined;
|
|
843
|
-
maxActivations?: number | undefined;
|
|
844
|
-
downloads?: {
|
|
845
|
-
path: string | null;
|
|
846
|
-
name: string;
|
|
847
|
-
key: string;
|
|
848
|
-
platform: Platform;
|
|
849
|
-
size: number;
|
|
850
|
-
}[] | undefined;
|
|
851
|
-
}, {
|
|
852
|
-
id: string;
|
|
853
|
-
name: string;
|
|
854
|
-
tagline: string;
|
|
855
|
-
currentVersion: string | null;
|
|
856
|
-
downloadsNeedsUser: boolean;
|
|
857
|
-
downloadsNeedsOwnership: boolean;
|
|
858
|
-
website?: string | undefined;
|
|
859
|
-
iconUrl?: string | undefined;
|
|
860
|
-
numberOfLicenses?: number | undefined;
|
|
861
|
-
numberOfTrials?: number | undefined;
|
|
862
|
-
currentActivations?: number | undefined;
|
|
863
|
-
maxActivations?: number | undefined;
|
|
864
|
-
downloads?: {
|
|
865
|
-
path: string | null;
|
|
866
|
-
name: string;
|
|
867
|
-
key: string;
|
|
868
|
-
platform: Platform;
|
|
869
|
-
size: number;
|
|
870
|
-
}[] | undefined;
|
|
871
|
-
}>>;
|
|
872
|
-
activeNumberOfActivations: z.ZodNumber;
|
|
873
|
-
maxNumberOfActivations: z.ZodNumber;
|
|
874
|
-
createdAt: z.ZodDate;
|
|
875
|
-
}, "strip", z.ZodTypeAny, {
|
|
876
|
-
status: LicenseStatus;
|
|
877
|
-
id: string;
|
|
878
|
-
activeNumberOfActivations: number;
|
|
879
|
-
maxNumberOfActivations: number;
|
|
880
|
-
createdAt: Date;
|
|
881
|
-
product?: {
|
|
882
|
-
id: string;
|
|
883
|
-
name: string;
|
|
884
|
-
tagline: string;
|
|
885
|
-
currentVersion: string | null;
|
|
886
|
-
downloadsNeedsUser: boolean;
|
|
887
|
-
downloadsNeedsOwnership: boolean;
|
|
888
|
-
website?: string | undefined;
|
|
889
|
-
iconUrl?: string | undefined;
|
|
890
|
-
numberOfLicenses?: number | undefined;
|
|
891
|
-
numberOfTrials?: number | undefined;
|
|
892
|
-
currentActivations?: number | undefined;
|
|
893
|
-
maxActivations?: number | undefined;
|
|
894
|
-
downloads?: {
|
|
895
|
-
path: string | null;
|
|
896
|
-
name: string;
|
|
897
|
-
key: string;
|
|
898
|
-
platform: Platform;
|
|
899
|
-
size: number;
|
|
900
|
-
}[] | undefined;
|
|
901
|
-
} | undefined;
|
|
902
|
-
}, {
|
|
903
|
-
status: LicenseStatus;
|
|
904
|
-
id: string;
|
|
905
|
-
activeNumberOfActivations: number;
|
|
906
|
-
maxNumberOfActivations: number;
|
|
907
|
-
createdAt: Date;
|
|
908
|
-
product?: {
|
|
909
|
-
id: string;
|
|
910
|
-
name: string;
|
|
911
|
-
tagline: string;
|
|
912
|
-
currentVersion: string | null;
|
|
913
|
-
downloadsNeedsUser: boolean;
|
|
914
|
-
downloadsNeedsOwnership: boolean;
|
|
915
|
-
website?: string | undefined;
|
|
916
|
-
iconUrl?: string | undefined;
|
|
917
|
-
numberOfLicenses?: number | undefined;
|
|
918
|
-
numberOfTrials?: number | undefined;
|
|
919
|
-
currentActivations?: number | undefined;
|
|
920
|
-
maxActivations?: number | undefined;
|
|
921
|
-
downloads?: {
|
|
922
|
-
path: string | null;
|
|
923
|
-
name: string;
|
|
924
|
-
key: string;
|
|
925
|
-
platform: Platform;
|
|
926
|
-
size: number;
|
|
927
|
-
}[] | undefined;
|
|
928
|
-
} | undefined;
|
|
929
|
-
}>;
|
|
930
|
-
declare const activationSchema: z.ZodObject<{
|
|
931
|
-
id: z.ZodString;
|
|
932
|
-
licenseId: z.ZodString;
|
|
933
|
-
name: z.ZodString;
|
|
934
|
-
status: z.ZodNativeEnum<typeof ActivationStatus>;
|
|
935
|
-
activationMethod: z.ZodNativeEnum<typeof ActivationMethod>;
|
|
936
|
-
lastValidatedAt: z.ZodNullable<z.ZodDate>;
|
|
937
|
-
}, "strip", z.ZodTypeAny, {
|
|
938
|
-
status: ActivationStatus;
|
|
939
|
-
id: string;
|
|
940
|
-
name: string;
|
|
941
|
-
licenseId: string;
|
|
942
|
-
activationMethod: ActivationMethod;
|
|
943
|
-
lastValidatedAt: Date | null;
|
|
944
|
-
}, {
|
|
945
|
-
status: ActivationStatus;
|
|
946
|
-
id: string;
|
|
947
|
-
name: string;
|
|
948
|
-
licenseId: string;
|
|
949
|
-
activationMethod: ActivationMethod;
|
|
950
|
-
lastValidatedAt: Date | null;
|
|
951
|
-
}>;
|
|
952
|
-
|
|
953
|
-
declare enum LicenseStatus {
|
|
954
|
-
Active = "Active",
|
|
955
|
-
Revoked = "Revoked"
|
|
956
|
-
}
|
|
957
|
-
declare enum ActivationStatus {
|
|
958
|
-
Active = "Active",
|
|
959
|
-
Revoked = "Revoked"
|
|
960
|
-
}
|
|
961
|
-
declare enum ActivationMethod {
|
|
962
|
-
Online = "Online",
|
|
963
|
-
Offline = "Offline"
|
|
964
|
-
}
|
|
965
|
-
type License = z.infer<typeof licenseSchema>;
|
|
966
|
-
type Activation = z.infer<typeof activationSchema>;
|
|
967
|
-
|
|
968
|
-
declare class LicenseEndpoints {
|
|
969
|
-
private api;
|
|
970
|
-
constructor(api: MoonbaseApi);
|
|
971
|
-
get(nextUrl?: string): Promise<Page<License>>;
|
|
972
|
-
getActivations(licenseId: string, nextUrl?: string): Promise<Page<Activation>>;
|
|
973
|
-
revokeActivation(licenseId: string, activationId: string): Promise<void>;
|
|
974
|
-
}
|
|
975
|
-
|
|
976
698
|
declare const openProductLineItem: z.ZodObject<{
|
|
977
699
|
id: z.ZodString;
|
|
978
700
|
type: z.ZodLiteral<"Product">;
|
|
@@ -1953,11 +1675,11 @@ declare const openBundleLineItem: z.ZodObject<{
|
|
|
1953
1675
|
}[] | undefined;
|
|
1954
1676
|
type?: void | undefined;
|
|
1955
1677
|
}>, z.ZodObject<{
|
|
1956
|
-
included: z.ZodBoolean
|
|
1678
|
+
included: z.ZodOptional<z.ZodBoolean>;
|
|
1957
1679
|
}, "strip", z.ZodTypeAny, {
|
|
1958
|
-
included
|
|
1680
|
+
included?: boolean | undefined;
|
|
1959
1681
|
}, {
|
|
1960
|
-
included
|
|
1682
|
+
included?: boolean | undefined;
|
|
1961
1683
|
}>>, "many">;
|
|
1962
1684
|
defaultVariation: z.ZodOptional<z.ZodObject<{
|
|
1963
1685
|
id: z.ZodString;
|
|
@@ -2176,7 +1898,7 @@ declare const openBundleLineItem: z.ZodObject<{
|
|
|
2176
1898
|
} | undefined;
|
|
2177
1899
|
}[] | undefined;
|
|
2178
1900
|
} & {
|
|
2179
|
-
included
|
|
1901
|
+
included?: boolean | undefined;
|
|
2180
1902
|
})[];
|
|
2181
1903
|
defaultVariation?: {
|
|
2182
1904
|
id: string;
|
|
@@ -2277,7 +1999,7 @@ declare const openBundleLineItem: z.ZodObject<{
|
|
|
2277
1999
|
}[] | undefined;
|
|
2278
2000
|
type?: void | undefined;
|
|
2279
2001
|
} & {
|
|
2280
|
-
included
|
|
2002
|
+
included?: boolean | undefined;
|
|
2281
2003
|
})[];
|
|
2282
2004
|
defaultVariation?: {
|
|
2283
2005
|
id: string;
|
|
@@ -2447,7 +2169,7 @@ declare const openBundleLineItem: z.ZodObject<{
|
|
|
2447
2169
|
} | undefined;
|
|
2448
2170
|
}[] | undefined;
|
|
2449
2171
|
} & {
|
|
2450
|
-
included
|
|
2172
|
+
included?: boolean | undefined;
|
|
2451
2173
|
})[];
|
|
2452
2174
|
defaultVariation?: {
|
|
2453
2175
|
id: string;
|
|
@@ -2589,7 +2311,7 @@ declare const openBundleLineItem: z.ZodObject<{
|
|
|
2589
2311
|
}[] | undefined;
|
|
2590
2312
|
type?: void | undefined;
|
|
2591
2313
|
} & {
|
|
2592
|
-
included
|
|
2314
|
+
included?: boolean | undefined;
|
|
2593
2315
|
})[];
|
|
2594
2316
|
defaultVariation?: {
|
|
2595
2317
|
id: string;
|
|
@@ -3625,11 +3347,11 @@ declare const openOrderLineItem: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
3625
3347
|
}[] | undefined;
|
|
3626
3348
|
type?: void | undefined;
|
|
3627
3349
|
}>, z.ZodObject<{
|
|
3628
|
-
included: z.ZodBoolean
|
|
3350
|
+
included: z.ZodOptional<z.ZodBoolean>;
|
|
3629
3351
|
}, "strip", z.ZodTypeAny, {
|
|
3630
|
-
included
|
|
3352
|
+
included?: boolean | undefined;
|
|
3631
3353
|
}, {
|
|
3632
|
-
included
|
|
3354
|
+
included?: boolean | undefined;
|
|
3633
3355
|
}>>, "many">;
|
|
3634
3356
|
defaultVariation: z.ZodOptional<z.ZodObject<{
|
|
3635
3357
|
id: z.ZodString;
|
|
@@ -3848,7 +3570,7 @@ declare const openOrderLineItem: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
3848
3570
|
} | undefined;
|
|
3849
3571
|
}[] | undefined;
|
|
3850
3572
|
} & {
|
|
3851
|
-
included
|
|
3573
|
+
included?: boolean | undefined;
|
|
3852
3574
|
})[];
|
|
3853
3575
|
defaultVariation?: {
|
|
3854
3576
|
id: string;
|
|
@@ -3949,7 +3671,7 @@ declare const openOrderLineItem: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
3949
3671
|
}[] | undefined;
|
|
3950
3672
|
type?: void | undefined;
|
|
3951
3673
|
} & {
|
|
3952
|
-
included
|
|
3674
|
+
included?: boolean | undefined;
|
|
3953
3675
|
})[];
|
|
3954
3676
|
defaultVariation?: {
|
|
3955
3677
|
id: string;
|
|
@@ -4119,7 +3841,7 @@ declare const openOrderLineItem: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
4119
3841
|
} | undefined;
|
|
4120
3842
|
}[] | undefined;
|
|
4121
3843
|
} & {
|
|
4122
|
-
included
|
|
3844
|
+
included?: boolean | undefined;
|
|
4123
3845
|
})[];
|
|
4124
3846
|
defaultVariation?: {
|
|
4125
3847
|
id: string;
|
|
@@ -4261,7 +3983,7 @@ declare const openOrderLineItem: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
4261
3983
|
}[] | undefined;
|
|
4262
3984
|
type?: void | undefined;
|
|
4263
3985
|
} & {
|
|
4264
|
-
included
|
|
3986
|
+
included?: boolean | undefined;
|
|
4265
3987
|
})[];
|
|
4266
3988
|
defaultVariation?: {
|
|
4267
3989
|
id: string;
|
|
@@ -5301,11 +5023,11 @@ declare const openOrderSchema: z.ZodObject<{
|
|
|
5301
5023
|
}[] | undefined;
|
|
5302
5024
|
type?: void | undefined;
|
|
5303
5025
|
}>, z.ZodObject<{
|
|
5304
|
-
included: z.ZodBoolean
|
|
5026
|
+
included: z.ZodOptional<z.ZodBoolean>;
|
|
5305
5027
|
}, "strip", z.ZodTypeAny, {
|
|
5306
|
-
included
|
|
5028
|
+
included?: boolean | undefined;
|
|
5307
5029
|
}, {
|
|
5308
|
-
included
|
|
5030
|
+
included?: boolean | undefined;
|
|
5309
5031
|
}>>, "many">;
|
|
5310
5032
|
defaultVariation: z.ZodOptional<z.ZodObject<{
|
|
5311
5033
|
id: z.ZodString;
|
|
@@ -5524,7 +5246,7 @@ declare const openOrderSchema: z.ZodObject<{
|
|
|
5524
5246
|
} | undefined;
|
|
5525
5247
|
}[] | undefined;
|
|
5526
5248
|
} & {
|
|
5527
|
-
included
|
|
5249
|
+
included?: boolean | undefined;
|
|
5528
5250
|
})[];
|
|
5529
5251
|
defaultVariation?: {
|
|
5530
5252
|
id: string;
|
|
@@ -5625,7 +5347,7 @@ declare const openOrderSchema: z.ZodObject<{
|
|
|
5625
5347
|
}[] | undefined;
|
|
5626
5348
|
type?: void | undefined;
|
|
5627
5349
|
} & {
|
|
5628
|
-
included
|
|
5350
|
+
included?: boolean | undefined;
|
|
5629
5351
|
})[];
|
|
5630
5352
|
defaultVariation?: {
|
|
5631
5353
|
id: string;
|
|
@@ -5795,7 +5517,7 @@ declare const openOrderSchema: z.ZodObject<{
|
|
|
5795
5517
|
} | undefined;
|
|
5796
5518
|
}[] | undefined;
|
|
5797
5519
|
} & {
|
|
5798
|
-
included
|
|
5520
|
+
included?: boolean | undefined;
|
|
5799
5521
|
})[];
|
|
5800
5522
|
defaultVariation?: {
|
|
5801
5523
|
id: string;
|
|
@@ -5937,7 +5659,7 @@ declare const openOrderSchema: z.ZodObject<{
|
|
|
5937
5659
|
}[] | undefined;
|
|
5938
5660
|
type?: void | undefined;
|
|
5939
5661
|
} & {
|
|
5940
|
-
included
|
|
5662
|
+
included?: boolean | undefined;
|
|
5941
5663
|
})[];
|
|
5942
5664
|
defaultVariation?: {
|
|
5943
5665
|
id: string;
|
|
@@ -6193,7 +5915,7 @@ declare const openOrderSchema: z.ZodObject<{
|
|
|
6193
5915
|
} | undefined;
|
|
6194
5916
|
}[] | undefined;
|
|
6195
5917
|
} & {
|
|
6196
|
-
included
|
|
5918
|
+
included?: boolean | undefined;
|
|
6197
5919
|
})[];
|
|
6198
5920
|
defaultVariation?: {
|
|
6199
5921
|
id: string;
|
|
@@ -6440,7 +6162,7 @@ declare const openOrderSchema: z.ZodObject<{
|
|
|
6440
6162
|
}[] | undefined;
|
|
6441
6163
|
type?: void | undefined;
|
|
6442
6164
|
} & {
|
|
6443
|
-
included
|
|
6165
|
+
included?: boolean | undefined;
|
|
6444
6166
|
})[];
|
|
6445
6167
|
defaultVariation?: {
|
|
6446
6168
|
id: string;
|
|
@@ -7488,11 +7210,11 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
|
|
|
7488
7210
|
}[] | undefined;
|
|
7489
7211
|
type?: void | undefined;
|
|
7490
7212
|
}>, z.ZodObject<{
|
|
7491
|
-
included: z.ZodBoolean
|
|
7213
|
+
included: z.ZodOptional<z.ZodBoolean>;
|
|
7492
7214
|
}, "strip", z.ZodTypeAny, {
|
|
7493
|
-
included
|
|
7215
|
+
included?: boolean | undefined;
|
|
7494
7216
|
}, {
|
|
7495
|
-
included
|
|
7217
|
+
included?: boolean | undefined;
|
|
7496
7218
|
}>>, "many">;
|
|
7497
7219
|
defaultVariation: z.ZodOptional<z.ZodObject<{
|
|
7498
7220
|
id: z.ZodString;
|
|
@@ -7711,7 +7433,7 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
|
|
|
7711
7433
|
} | undefined;
|
|
7712
7434
|
}[] | undefined;
|
|
7713
7435
|
} & {
|
|
7714
|
-
included
|
|
7436
|
+
included?: boolean | undefined;
|
|
7715
7437
|
})[];
|
|
7716
7438
|
defaultVariation?: {
|
|
7717
7439
|
id: string;
|
|
@@ -7812,7 +7534,7 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
|
|
|
7812
7534
|
}[] | undefined;
|
|
7813
7535
|
type?: void | undefined;
|
|
7814
7536
|
} & {
|
|
7815
|
-
included
|
|
7537
|
+
included?: boolean | undefined;
|
|
7816
7538
|
})[];
|
|
7817
7539
|
defaultVariation?: {
|
|
7818
7540
|
id: string;
|
|
@@ -7982,7 +7704,7 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
|
|
|
7982
7704
|
} | undefined;
|
|
7983
7705
|
}[] | undefined;
|
|
7984
7706
|
} & {
|
|
7985
|
-
included
|
|
7707
|
+
included?: boolean | undefined;
|
|
7986
7708
|
})[];
|
|
7987
7709
|
defaultVariation?: {
|
|
7988
7710
|
id: string;
|
|
@@ -8124,7 +7846,7 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
|
|
|
8124
7846
|
}[] | undefined;
|
|
8125
7847
|
type?: void | undefined;
|
|
8126
7848
|
} & {
|
|
8127
|
-
included
|
|
7849
|
+
included?: boolean | undefined;
|
|
8128
7850
|
})[];
|
|
8129
7851
|
defaultVariation?: {
|
|
8130
7852
|
id: string;
|
|
@@ -8380,7 +8102,7 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
|
|
|
8380
8102
|
} | undefined;
|
|
8381
8103
|
}[] | undefined;
|
|
8382
8104
|
} & {
|
|
8383
|
-
included
|
|
8105
|
+
included?: boolean | undefined;
|
|
8384
8106
|
})[];
|
|
8385
8107
|
defaultVariation?: {
|
|
8386
8108
|
id: string;
|
|
@@ -8627,7 +8349,7 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
|
|
|
8627
8349
|
}[] | undefined;
|
|
8628
8350
|
type?: void | undefined;
|
|
8629
8351
|
} & {
|
|
8630
|
-
included
|
|
8352
|
+
included?: boolean | undefined;
|
|
8631
8353
|
})[];
|
|
8632
8354
|
defaultVariation?: {
|
|
8633
8355
|
id: string;
|
|
@@ -8895,7 +8617,7 @@ declare class OrderEndpoints {
|
|
|
8895
8617
|
} | undefined;
|
|
8896
8618
|
}[] | undefined;
|
|
8897
8619
|
} & {
|
|
8898
|
-
included
|
|
8620
|
+
included?: boolean | undefined;
|
|
8899
8621
|
})[];
|
|
8900
8622
|
defaultVariation?: {
|
|
8901
8623
|
id: string;
|
|
@@ -8964,119 +8686,103 @@ declare class OrderEndpoints {
|
|
|
8964
8686
|
}, utm?: UrchinTrackingModule): Promise<OpenOrder>;
|
|
8965
8687
|
}
|
|
8966
8688
|
|
|
8967
|
-
declare const
|
|
8968
|
-
name: z.ZodString;
|
|
8969
|
-
key: z.ZodString;
|
|
8970
|
-
platform: z.ZodNativeEnum<typeof Platform>;
|
|
8971
|
-
size: z.ZodNumber;
|
|
8972
|
-
path: z.ZodNullable<z.ZodString>;
|
|
8973
|
-
}, "strip", z.ZodTypeAny, {
|
|
8974
|
-
path: string | null;
|
|
8975
|
-
name: string;
|
|
8976
|
-
key: string;
|
|
8977
|
-
platform: Platform;
|
|
8978
|
-
size: number;
|
|
8979
|
-
}, {
|
|
8980
|
-
path: string | null;
|
|
8981
|
-
name: string;
|
|
8982
|
-
key: string;
|
|
8983
|
-
platform: Platform;
|
|
8984
|
-
size: number;
|
|
8985
|
-
}>;
|
|
8986
|
-
declare const productSummarySchema: z.ZodObject<{
|
|
8689
|
+
declare const pricingVariationSchema: z.ZodObject<{
|
|
8987
8690
|
id: z.ZodString;
|
|
8988
8691
|
name: z.ZodString;
|
|
8989
|
-
|
|
8990
|
-
|
|
8991
|
-
|
|
8992
|
-
|
|
8993
|
-
|
|
8994
|
-
currentActivations: z.ZodOptional<z.ZodNumber>;
|
|
8995
|
-
maxActivations: z.ZodOptional<z.ZodNumber>;
|
|
8996
|
-
currentVersion: z.ZodNullable<z.ZodString>;
|
|
8997
|
-
downloadsNeedsUser: z.ZodBoolean;
|
|
8998
|
-
downloadsNeedsOwnership: z.ZodBoolean;
|
|
8999
|
-
downloads: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
8692
|
+
originalPrice: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
8693
|
+
price: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
8694
|
+
hasDiscount: z.ZodBoolean;
|
|
8695
|
+
discount: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
8696
|
+
type: z.ZodLiteral<"PercentageOffDiscount">;
|
|
9000
8697
|
name: z.ZodString;
|
|
9001
|
-
|
|
9002
|
-
|
|
9003
|
-
|
|
9004
|
-
path: z.ZodNullable<z.ZodString>;
|
|
8698
|
+
description: z.ZodOptional<z.ZodString>;
|
|
8699
|
+
percentage: z.ZodNumber;
|
|
8700
|
+
total: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
9005
8701
|
}, "strip", z.ZodTypeAny, {
|
|
9006
|
-
|
|
8702
|
+
type: "PercentageOffDiscount";
|
|
8703
|
+
name: string;
|
|
8704
|
+
percentage: number;
|
|
8705
|
+
total: Record<string, number>;
|
|
8706
|
+
description?: string | undefined;
|
|
8707
|
+
}, {
|
|
8708
|
+
type: "PercentageOffDiscount";
|
|
8709
|
+
name: string;
|
|
8710
|
+
percentage: number;
|
|
8711
|
+
total: Record<string, number>;
|
|
8712
|
+
description?: string | undefined;
|
|
8713
|
+
}>, z.ZodObject<{
|
|
8714
|
+
type: z.ZodLiteral<"FlatAmountOffDiscount">;
|
|
8715
|
+
name: z.ZodString;
|
|
8716
|
+
description: z.ZodOptional<z.ZodString>;
|
|
8717
|
+
total: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
8718
|
+
}, "strip", z.ZodTypeAny, {
|
|
8719
|
+
type: "FlatAmountOffDiscount";
|
|
9007
8720
|
name: string;
|
|
9008
|
-
|
|
9009
|
-
|
|
9010
|
-
size: number;
|
|
8721
|
+
total: Record<string, number>;
|
|
8722
|
+
description?: string | undefined;
|
|
9011
8723
|
}, {
|
|
9012
|
-
|
|
8724
|
+
type: "FlatAmountOffDiscount";
|
|
9013
8725
|
name: string;
|
|
9014
|
-
|
|
9015
|
-
|
|
9016
|
-
|
|
9017
|
-
}>, "many">>;
|
|
8726
|
+
total: Record<string, number>;
|
|
8727
|
+
description?: string | undefined;
|
|
8728
|
+
}>]>>;
|
|
9018
8729
|
}, "strip", z.ZodTypeAny, {
|
|
9019
8730
|
id: string;
|
|
9020
8731
|
name: string;
|
|
9021
|
-
|
|
9022
|
-
|
|
9023
|
-
|
|
9024
|
-
|
|
9025
|
-
|
|
9026
|
-
iconUrl?: string | undefined;
|
|
9027
|
-
numberOfLicenses?: number | undefined;
|
|
9028
|
-
numberOfTrials?: number | undefined;
|
|
9029
|
-
currentActivations?: number | undefined;
|
|
9030
|
-
maxActivations?: number | undefined;
|
|
9031
|
-
downloads?: {
|
|
9032
|
-
path: string | null;
|
|
8732
|
+
originalPrice: Record<string, number>;
|
|
8733
|
+
price: Record<string, number>;
|
|
8734
|
+
hasDiscount: boolean;
|
|
8735
|
+
discount?: {
|
|
8736
|
+
type: "PercentageOffDiscount";
|
|
9033
8737
|
name: string;
|
|
9034
|
-
|
|
9035
|
-
|
|
9036
|
-
|
|
9037
|
-
}
|
|
8738
|
+
percentage: number;
|
|
8739
|
+
total: Record<string, number>;
|
|
8740
|
+
description?: string | undefined;
|
|
8741
|
+
} | {
|
|
8742
|
+
type: "FlatAmountOffDiscount";
|
|
8743
|
+
name: string;
|
|
8744
|
+
total: Record<string, number>;
|
|
8745
|
+
description?: string | undefined;
|
|
8746
|
+
} | undefined;
|
|
9038
8747
|
}, {
|
|
9039
8748
|
id: string;
|
|
9040
8749
|
name: string;
|
|
9041
|
-
|
|
9042
|
-
|
|
9043
|
-
|
|
9044
|
-
|
|
9045
|
-
|
|
9046
|
-
iconUrl?: string | undefined;
|
|
9047
|
-
numberOfLicenses?: number | undefined;
|
|
9048
|
-
numberOfTrials?: number | undefined;
|
|
9049
|
-
currentActivations?: number | undefined;
|
|
9050
|
-
maxActivations?: number | undefined;
|
|
9051
|
-
downloads?: {
|
|
9052
|
-
path: string | null;
|
|
8750
|
+
originalPrice: Record<string, number>;
|
|
8751
|
+
price: Record<string, number>;
|
|
8752
|
+
hasDiscount: boolean;
|
|
8753
|
+
discount?: {
|
|
8754
|
+
type: "PercentageOffDiscount";
|
|
9053
8755
|
name: string;
|
|
9054
|
-
|
|
9055
|
-
|
|
9056
|
-
|
|
9057
|
-
}
|
|
8756
|
+
percentage: number;
|
|
8757
|
+
total: Record<string, number>;
|
|
8758
|
+
description?: string | undefined;
|
|
8759
|
+
} | {
|
|
8760
|
+
type: "FlatAmountOffDiscount";
|
|
8761
|
+
name: string;
|
|
8762
|
+
total: Record<string, number>;
|
|
8763
|
+
description?: string | undefined;
|
|
8764
|
+
} | undefined;
|
|
9058
8765
|
}>;
|
|
9059
8766
|
|
|
9060
|
-
|
|
9061
|
-
|
|
9062
|
-
|
|
9063
|
-
|
|
9064
|
-
|
|
8767
|
+
type PricingVariation = z.infer<typeof pricingVariationSchema>;
|
|
8768
|
+
interface Page<T> {
|
|
8769
|
+
items: Array<T>;
|
|
8770
|
+
hasMore: boolean;
|
|
8771
|
+
next: string | null;
|
|
9065
8772
|
}
|
|
9066
|
-
|
|
9067
|
-
|
|
9068
|
-
|
|
9069
|
-
|
|
9070
|
-
|
|
9071
|
-
|
|
9072
|
-
|
|
9073
|
-
|
|
9074
|
-
|
|
9075
|
-
|
|
9076
|
-
|
|
9077
|
-
url: string;
|
|
9078
|
-
}>;
|
|
8773
|
+
interface Quantifiable<T> {
|
|
8774
|
+
value: T;
|
|
8775
|
+
quantity: number;
|
|
8776
|
+
}
|
|
8777
|
+
interface UrchinTrackingModule {
|
|
8778
|
+
source?: string;
|
|
8779
|
+
medium?: string;
|
|
8780
|
+
campaign?: string;
|
|
8781
|
+
term?: string;
|
|
8782
|
+
content?: string;
|
|
8783
|
+
referrer?: string;
|
|
9079
8784
|
}
|
|
8785
|
+
declare function utmToObject(utm?: UrchinTrackingModule): Record<string, string>;
|
|
9080
8786
|
|
|
9081
8787
|
declare class StorefrontEndpoints {
|
|
9082
8788
|
private api;
|
|
@@ -9199,7 +8905,7 @@ declare class StorefrontEndpoints {
|
|
|
9199
8905
|
} | undefined;
|
|
9200
8906
|
}[] | undefined;
|
|
9201
8907
|
} & {
|
|
9202
|
-
included
|
|
8908
|
+
included?: boolean | undefined;
|
|
9203
8909
|
})[];
|
|
9204
8910
|
defaultVariation?: {
|
|
9205
8911
|
id: string;
|
|
@@ -9948,11 +9654,11 @@ declare const voucherSchema: z.ZodObject<{
|
|
|
9948
9654
|
}[] | undefined;
|
|
9949
9655
|
type?: void | undefined;
|
|
9950
9656
|
}>, z.ZodObject<{
|
|
9951
|
-
included: z.ZodBoolean
|
|
9657
|
+
included: z.ZodOptional<z.ZodBoolean>;
|
|
9952
9658
|
}, "strip", z.ZodTypeAny, {
|
|
9953
|
-
included
|
|
9659
|
+
included?: boolean | undefined;
|
|
9954
9660
|
}, {
|
|
9955
|
-
included
|
|
9661
|
+
included?: boolean | undefined;
|
|
9956
9662
|
}>>, "many">;
|
|
9957
9663
|
defaultVariation: z.ZodOptional<z.ZodObject<{
|
|
9958
9664
|
id: z.ZodString;
|
|
@@ -10171,7 +9877,7 @@ declare const voucherSchema: z.ZodObject<{
|
|
|
10171
9877
|
} | undefined;
|
|
10172
9878
|
}[] | undefined;
|
|
10173
9879
|
} & {
|
|
10174
|
-
included
|
|
9880
|
+
included?: boolean | undefined;
|
|
10175
9881
|
})[];
|
|
10176
9882
|
defaultVariation?: {
|
|
10177
9883
|
id: string;
|
|
@@ -10272,7 +9978,7 @@ declare const voucherSchema: z.ZodObject<{
|
|
|
10272
9978
|
}[] | undefined;
|
|
10273
9979
|
type?: void | undefined;
|
|
10274
9980
|
} & {
|
|
10275
|
-
included
|
|
9981
|
+
included?: boolean | undefined;
|
|
10276
9982
|
})[];
|
|
10277
9983
|
defaultVariation?: {
|
|
10278
9984
|
id: string;
|
|
@@ -10378,7 +10084,111 @@ declare const voucherSchema: z.ZodObject<{
|
|
|
10378
10084
|
} | undefined;
|
|
10379
10085
|
}[] | undefined;
|
|
10380
10086
|
} & {
|
|
10381
|
-
included
|
|
10087
|
+
included?: boolean | undefined;
|
|
10088
|
+
})[];
|
|
10089
|
+
defaultVariation?: {
|
|
10090
|
+
id: string;
|
|
10091
|
+
name: string;
|
|
10092
|
+
originalPrice: Record<string, number>;
|
|
10093
|
+
price: Record<string, number>;
|
|
10094
|
+
hasDiscount: boolean;
|
|
10095
|
+
discount?: {
|
|
10096
|
+
type: "PercentageOffDiscount";
|
|
10097
|
+
name: string;
|
|
10098
|
+
percentage: number;
|
|
10099
|
+
total: Record<string, number>;
|
|
10100
|
+
description?: string | undefined;
|
|
10101
|
+
} | {
|
|
10102
|
+
type: "FlatAmountOffDiscount";
|
|
10103
|
+
name: string;
|
|
10104
|
+
total: Record<string, number>;
|
|
10105
|
+
description?: string | undefined;
|
|
10106
|
+
} | undefined;
|
|
10107
|
+
} | undefined;
|
|
10108
|
+
variations?: {
|
|
10109
|
+
id: string;
|
|
10110
|
+
name: string;
|
|
10111
|
+
originalPrice: Record<string, number>;
|
|
10112
|
+
price: Record<string, number>;
|
|
10113
|
+
hasDiscount: boolean;
|
|
10114
|
+
discount?: {
|
|
10115
|
+
type: "PercentageOffDiscount";
|
|
10116
|
+
name: string;
|
|
10117
|
+
percentage: number;
|
|
10118
|
+
total: Record<string, number>;
|
|
10119
|
+
description?: string | undefined;
|
|
10120
|
+
} | {
|
|
10121
|
+
type: "FlatAmountOffDiscount";
|
|
10122
|
+
name: string;
|
|
10123
|
+
total: Record<string, number>;
|
|
10124
|
+
description?: string | undefined;
|
|
10125
|
+
} | undefined;
|
|
10126
|
+
}[] | undefined;
|
|
10127
|
+
};
|
|
10128
|
+
quantity: number;
|
|
10129
|
+
}, {
|
|
10130
|
+
value: {
|
|
10131
|
+
id: string;
|
|
10132
|
+
name: string;
|
|
10133
|
+
tagline: string;
|
|
10134
|
+
iconUrl: string | null;
|
|
10135
|
+
owned: boolean;
|
|
10136
|
+
partial: boolean;
|
|
10137
|
+
products: ({
|
|
10138
|
+
id: string;
|
|
10139
|
+
name: string;
|
|
10140
|
+
tagline: string;
|
|
10141
|
+
iconUrl: string | null;
|
|
10142
|
+
owned: boolean;
|
|
10143
|
+
currentVersion?: string | undefined;
|
|
10144
|
+
downloads?: {
|
|
10145
|
+
path: string | null;
|
|
10146
|
+
name: string;
|
|
10147
|
+
key: string;
|
|
10148
|
+
platform: Platform;
|
|
10149
|
+
size: number;
|
|
10150
|
+
}[] | undefined;
|
|
10151
|
+
defaultVariation?: {
|
|
10152
|
+
id: string;
|
|
10153
|
+
name: string;
|
|
10154
|
+
originalPrice: Record<string, number>;
|
|
10155
|
+
price: Record<string, number>;
|
|
10156
|
+
hasDiscount: boolean;
|
|
10157
|
+
discount?: {
|
|
10158
|
+
type: "PercentageOffDiscount";
|
|
10159
|
+
name: string;
|
|
10160
|
+
percentage: number;
|
|
10161
|
+
total: Record<string, number>;
|
|
10162
|
+
description?: string | undefined;
|
|
10163
|
+
} | {
|
|
10164
|
+
type: "FlatAmountOffDiscount";
|
|
10165
|
+
name: string;
|
|
10166
|
+
total: Record<string, number>;
|
|
10167
|
+
description?: string | undefined;
|
|
10168
|
+
} | undefined;
|
|
10169
|
+
} | undefined;
|
|
10170
|
+
variations?: {
|
|
10171
|
+
id: string;
|
|
10172
|
+
name: string;
|
|
10173
|
+
originalPrice: Record<string, number>;
|
|
10174
|
+
price: Record<string, number>;
|
|
10175
|
+
hasDiscount: boolean;
|
|
10176
|
+
discount?: {
|
|
10177
|
+
type: "PercentageOffDiscount";
|
|
10178
|
+
name: string;
|
|
10179
|
+
percentage: number;
|
|
10180
|
+
total: Record<string, number>;
|
|
10181
|
+
description?: string | undefined;
|
|
10182
|
+
} | {
|
|
10183
|
+
type: "FlatAmountOffDiscount";
|
|
10184
|
+
name: string;
|
|
10185
|
+
total: Record<string, number>;
|
|
10186
|
+
description?: string | undefined;
|
|
10187
|
+
} | undefined;
|
|
10188
|
+
}[] | undefined;
|
|
10189
|
+
type?: void | undefined;
|
|
10190
|
+
} & {
|
|
10191
|
+
included?: boolean | undefined;
|
|
10382
10192
|
})[];
|
|
10383
10193
|
defaultVariation?: {
|
|
10384
10194
|
id: string;
|
|
@@ -10418,10 +10228,76 @@ declare const voucherSchema: z.ZodObject<{
|
|
|
10418
10228
|
description?: string | undefined;
|
|
10419
10229
|
} | undefined;
|
|
10420
10230
|
}[] | undefined;
|
|
10231
|
+
type?: void | undefined;
|
|
10232
|
+
};
|
|
10233
|
+
quantity: number;
|
|
10234
|
+
}>, "many">;
|
|
10235
|
+
}, "strip", z.ZodTypeAny, {
|
|
10236
|
+
code: string;
|
|
10237
|
+
id: string;
|
|
10238
|
+
name: string;
|
|
10239
|
+
description: string;
|
|
10240
|
+
redeemed: boolean;
|
|
10241
|
+
redeemsProducts: {
|
|
10242
|
+
value: {
|
|
10243
|
+
type: "product";
|
|
10244
|
+
id: string;
|
|
10245
|
+
name: string;
|
|
10246
|
+
tagline: string;
|
|
10247
|
+
iconUrl: string | null;
|
|
10248
|
+
owned: boolean;
|
|
10249
|
+
currentVersion?: string | undefined;
|
|
10250
|
+
downloads?: {
|
|
10251
|
+
path: string | null;
|
|
10252
|
+
name: string;
|
|
10253
|
+
key: string;
|
|
10254
|
+
platform: Platform;
|
|
10255
|
+
size: number;
|
|
10256
|
+
}[] | undefined;
|
|
10257
|
+
defaultVariation?: {
|
|
10258
|
+
id: string;
|
|
10259
|
+
name: string;
|
|
10260
|
+
originalPrice: Record<string, number>;
|
|
10261
|
+
price: Record<string, number>;
|
|
10262
|
+
hasDiscount: boolean;
|
|
10263
|
+
discount?: {
|
|
10264
|
+
type: "PercentageOffDiscount";
|
|
10265
|
+
name: string;
|
|
10266
|
+
percentage: number;
|
|
10267
|
+
total: Record<string, number>;
|
|
10268
|
+
description?: string | undefined;
|
|
10269
|
+
} | {
|
|
10270
|
+
type: "FlatAmountOffDiscount";
|
|
10271
|
+
name: string;
|
|
10272
|
+
total: Record<string, number>;
|
|
10273
|
+
description?: string | undefined;
|
|
10274
|
+
} | undefined;
|
|
10275
|
+
} | undefined;
|
|
10276
|
+
variations?: {
|
|
10277
|
+
id: string;
|
|
10278
|
+
name: string;
|
|
10279
|
+
originalPrice: Record<string, number>;
|
|
10280
|
+
price: Record<string, number>;
|
|
10281
|
+
hasDiscount: boolean;
|
|
10282
|
+
discount?: {
|
|
10283
|
+
type: "PercentageOffDiscount";
|
|
10284
|
+
name: string;
|
|
10285
|
+
percentage: number;
|
|
10286
|
+
total: Record<string, number>;
|
|
10287
|
+
description?: string | undefined;
|
|
10288
|
+
} | {
|
|
10289
|
+
type: "FlatAmountOffDiscount";
|
|
10290
|
+
name: string;
|
|
10291
|
+
total: Record<string, number>;
|
|
10292
|
+
description?: string | undefined;
|
|
10293
|
+
} | undefined;
|
|
10294
|
+
}[] | undefined;
|
|
10421
10295
|
};
|
|
10422
10296
|
quantity: number;
|
|
10423
|
-
}
|
|
10297
|
+
}[];
|
|
10298
|
+
redeemsBundles: {
|
|
10424
10299
|
value: {
|
|
10300
|
+
type: "bundle";
|
|
10425
10301
|
id: string;
|
|
10426
10302
|
name: string;
|
|
10427
10303
|
tagline: string;
|
|
@@ -10429,6 +10305,7 @@ declare const voucherSchema: z.ZodObject<{
|
|
|
10429
10305
|
owned: boolean;
|
|
10430
10306
|
partial: boolean;
|
|
10431
10307
|
products: ({
|
|
10308
|
+
type: "product";
|
|
10432
10309
|
id: string;
|
|
10433
10310
|
name: string;
|
|
10434
10311
|
tagline: string;
|
|
@@ -10480,9 +10357,8 @@ declare const voucherSchema: z.ZodObject<{
|
|
|
10480
10357
|
description?: string | undefined;
|
|
10481
10358
|
} | undefined;
|
|
10482
10359
|
}[] | undefined;
|
|
10483
|
-
type?: void | undefined;
|
|
10484
10360
|
} & {
|
|
10485
|
-
included
|
|
10361
|
+
included?: boolean | undefined;
|
|
10486
10362
|
})[];
|
|
10487
10363
|
defaultVariation?: {
|
|
10488
10364
|
id: string;
|
|
@@ -10522,11 +10398,10 @@ declare const voucherSchema: z.ZodObject<{
|
|
|
10522
10398
|
description?: string | undefined;
|
|
10523
10399
|
} | undefined;
|
|
10524
10400
|
}[] | undefined;
|
|
10525
|
-
type?: void | undefined;
|
|
10526
10401
|
};
|
|
10527
10402
|
quantity: number;
|
|
10528
|
-
}
|
|
10529
|
-
},
|
|
10403
|
+
}[];
|
|
10404
|
+
}, {
|
|
10530
10405
|
code: string;
|
|
10531
10406
|
id: string;
|
|
10532
10407
|
name: string;
|
|
@@ -10534,7 +10409,6 @@ declare const voucherSchema: z.ZodObject<{
|
|
|
10534
10409
|
redeemed: boolean;
|
|
10535
10410
|
redeemsProducts: {
|
|
10536
10411
|
value: {
|
|
10537
|
-
type: "product";
|
|
10538
10412
|
id: string;
|
|
10539
10413
|
name: string;
|
|
10540
10414
|
tagline: string;
|
|
@@ -10586,12 +10460,12 @@ declare const voucherSchema: z.ZodObject<{
|
|
|
10586
10460
|
description?: string | undefined;
|
|
10587
10461
|
} | undefined;
|
|
10588
10462
|
}[] | undefined;
|
|
10463
|
+
type?: void | undefined;
|
|
10589
10464
|
};
|
|
10590
10465
|
quantity: number;
|
|
10591
10466
|
}[];
|
|
10592
10467
|
redeemsBundles: {
|
|
10593
10468
|
value: {
|
|
10594
|
-
type: "bundle";
|
|
10595
10469
|
id: string;
|
|
10596
10470
|
name: string;
|
|
10597
10471
|
tagline: string;
|
|
@@ -10599,7 +10473,6 @@ declare const voucherSchema: z.ZodObject<{
|
|
|
10599
10473
|
owned: boolean;
|
|
10600
10474
|
partial: boolean;
|
|
10601
10475
|
products: ({
|
|
10602
|
-
type: "product";
|
|
10603
10476
|
id: string;
|
|
10604
10477
|
name: string;
|
|
10605
10478
|
tagline: string;
|
|
@@ -10651,8 +10524,9 @@ declare const voucherSchema: z.ZodObject<{
|
|
|
10651
10524
|
description?: string | undefined;
|
|
10652
10525
|
} | undefined;
|
|
10653
10526
|
}[] | undefined;
|
|
10527
|
+
type?: void | undefined;
|
|
10654
10528
|
} & {
|
|
10655
|
-
included
|
|
10529
|
+
included?: boolean | undefined;
|
|
10656
10530
|
})[];
|
|
10657
10531
|
defaultVariation?: {
|
|
10658
10532
|
id: string;
|
|
@@ -10692,187 +10566,326 @@ declare const voucherSchema: z.ZodObject<{
|
|
|
10692
10566
|
description?: string | undefined;
|
|
10693
10567
|
} | undefined;
|
|
10694
10568
|
}[] | undefined;
|
|
10569
|
+
type?: void | undefined;
|
|
10695
10570
|
};
|
|
10696
10571
|
quantity: number;
|
|
10697
10572
|
}[];
|
|
10573
|
+
}>;
|
|
10574
|
+
|
|
10575
|
+
type Voucher = z.infer<typeof voucherSchema>;
|
|
10576
|
+
|
|
10577
|
+
declare class VoucherEndpoints {
|
|
10578
|
+
private api;
|
|
10579
|
+
constructor(api: MoonbaseApi);
|
|
10580
|
+
peek(code: string): Promise<Voucher>;
|
|
10581
|
+
redeem(code: string): Promise<Voucher>;
|
|
10582
|
+
}
|
|
10583
|
+
|
|
10584
|
+
declare const licenseSchema: z.ZodObject<{
|
|
10585
|
+
id: z.ZodString;
|
|
10586
|
+
status: z.ZodNativeEnum<typeof LicenseStatus>;
|
|
10587
|
+
product: z.ZodObject<{
|
|
10588
|
+
id: z.ZodString;
|
|
10589
|
+
name: z.ZodString;
|
|
10590
|
+
tagline: z.ZodString;
|
|
10591
|
+
website: z.ZodOptional<z.ZodString>;
|
|
10592
|
+
iconUrl: z.ZodOptional<z.ZodString>;
|
|
10593
|
+
numberOfLicenses: z.ZodOptional<z.ZodNumber>;
|
|
10594
|
+
numberOfTrials: z.ZodOptional<z.ZodNumber>;
|
|
10595
|
+
currentActivations: z.ZodOptional<z.ZodNumber>;
|
|
10596
|
+
maxActivations: z.ZodOptional<z.ZodNumber>;
|
|
10597
|
+
currentVersion: z.ZodNullable<z.ZodString>;
|
|
10598
|
+
downloadsNeedsUser: z.ZodBoolean;
|
|
10599
|
+
downloadsNeedsOwnership: z.ZodBoolean;
|
|
10600
|
+
downloads: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
10601
|
+
name: z.ZodString;
|
|
10602
|
+
key: z.ZodString;
|
|
10603
|
+
platform: z.ZodNativeEnum<typeof Platform>;
|
|
10604
|
+
size: z.ZodNumber;
|
|
10605
|
+
path: z.ZodNullable<z.ZodString>;
|
|
10606
|
+
}, "strip", z.ZodTypeAny, {
|
|
10607
|
+
path: string | null;
|
|
10608
|
+
name: string;
|
|
10609
|
+
key: string;
|
|
10610
|
+
platform: Platform;
|
|
10611
|
+
size: number;
|
|
10612
|
+
}, {
|
|
10613
|
+
path: string | null;
|
|
10614
|
+
name: string;
|
|
10615
|
+
key: string;
|
|
10616
|
+
platform: Platform;
|
|
10617
|
+
size: number;
|
|
10618
|
+
}>, "many">>;
|
|
10619
|
+
}, "strip", z.ZodTypeAny, {
|
|
10620
|
+
id: string;
|
|
10621
|
+
name: string;
|
|
10622
|
+
tagline: string;
|
|
10623
|
+
currentVersion: string | null;
|
|
10624
|
+
downloadsNeedsUser: boolean;
|
|
10625
|
+
downloadsNeedsOwnership: boolean;
|
|
10626
|
+
website?: string | undefined;
|
|
10627
|
+
iconUrl?: string | undefined;
|
|
10628
|
+
numberOfLicenses?: number | undefined;
|
|
10629
|
+
numberOfTrials?: number | undefined;
|
|
10630
|
+
currentActivations?: number | undefined;
|
|
10631
|
+
maxActivations?: number | undefined;
|
|
10632
|
+
downloads?: {
|
|
10633
|
+
path: string | null;
|
|
10634
|
+
name: string;
|
|
10635
|
+
key: string;
|
|
10636
|
+
platform: Platform;
|
|
10637
|
+
size: number;
|
|
10638
|
+
}[] | undefined;
|
|
10639
|
+
}, {
|
|
10640
|
+
id: string;
|
|
10641
|
+
name: string;
|
|
10642
|
+
tagline: string;
|
|
10643
|
+
currentVersion: string | null;
|
|
10644
|
+
downloadsNeedsUser: boolean;
|
|
10645
|
+
downloadsNeedsOwnership: boolean;
|
|
10646
|
+
website?: string | undefined;
|
|
10647
|
+
iconUrl?: string | undefined;
|
|
10648
|
+
numberOfLicenses?: number | undefined;
|
|
10649
|
+
numberOfTrials?: number | undefined;
|
|
10650
|
+
currentActivations?: number | undefined;
|
|
10651
|
+
maxActivations?: number | undefined;
|
|
10652
|
+
downloads?: {
|
|
10653
|
+
path: string | null;
|
|
10654
|
+
name: string;
|
|
10655
|
+
key: string;
|
|
10656
|
+
platform: Platform;
|
|
10657
|
+
size: number;
|
|
10658
|
+
}[] | undefined;
|
|
10659
|
+
}>;
|
|
10660
|
+
activeNumberOfActivations: z.ZodNumber;
|
|
10661
|
+
maxNumberOfActivations: z.ZodNumber;
|
|
10662
|
+
createdAt: z.ZodDate;
|
|
10663
|
+
}, "strip", z.ZodTypeAny, {
|
|
10664
|
+
status: LicenseStatus;
|
|
10665
|
+
id: string;
|
|
10666
|
+
product: {
|
|
10667
|
+
id: string;
|
|
10668
|
+
name: string;
|
|
10669
|
+
tagline: string;
|
|
10670
|
+
currentVersion: string | null;
|
|
10671
|
+
downloadsNeedsUser: boolean;
|
|
10672
|
+
downloadsNeedsOwnership: boolean;
|
|
10673
|
+
website?: string | undefined;
|
|
10674
|
+
iconUrl?: string | undefined;
|
|
10675
|
+
numberOfLicenses?: number | undefined;
|
|
10676
|
+
numberOfTrials?: number | undefined;
|
|
10677
|
+
currentActivations?: number | undefined;
|
|
10678
|
+
maxActivations?: number | undefined;
|
|
10679
|
+
downloads?: {
|
|
10680
|
+
path: string | null;
|
|
10681
|
+
name: string;
|
|
10682
|
+
key: string;
|
|
10683
|
+
platform: Platform;
|
|
10684
|
+
size: number;
|
|
10685
|
+
}[] | undefined;
|
|
10686
|
+
};
|
|
10687
|
+
activeNumberOfActivations: number;
|
|
10688
|
+
maxNumberOfActivations: number;
|
|
10689
|
+
createdAt: Date;
|
|
10690
|
+
}, {
|
|
10691
|
+
status: LicenseStatus;
|
|
10692
|
+
id: string;
|
|
10693
|
+
product: {
|
|
10694
|
+
id: string;
|
|
10695
|
+
name: string;
|
|
10696
|
+
tagline: string;
|
|
10697
|
+
currentVersion: string | null;
|
|
10698
|
+
downloadsNeedsUser: boolean;
|
|
10699
|
+
downloadsNeedsOwnership: boolean;
|
|
10700
|
+
website?: string | undefined;
|
|
10701
|
+
iconUrl?: string | undefined;
|
|
10702
|
+
numberOfLicenses?: number | undefined;
|
|
10703
|
+
numberOfTrials?: number | undefined;
|
|
10704
|
+
currentActivations?: number | undefined;
|
|
10705
|
+
maxActivations?: number | undefined;
|
|
10706
|
+
downloads?: {
|
|
10707
|
+
path: string | null;
|
|
10708
|
+
name: string;
|
|
10709
|
+
key: string;
|
|
10710
|
+
platform: Platform;
|
|
10711
|
+
size: number;
|
|
10712
|
+
}[] | undefined;
|
|
10713
|
+
};
|
|
10714
|
+
activeNumberOfActivations: number;
|
|
10715
|
+
maxNumberOfActivations: number;
|
|
10716
|
+
createdAt: Date;
|
|
10717
|
+
}>;
|
|
10718
|
+
declare const activationSchema: z.ZodObject<{
|
|
10719
|
+
id: z.ZodString;
|
|
10720
|
+
licenseId: z.ZodString;
|
|
10721
|
+
name: z.ZodString;
|
|
10722
|
+
status: z.ZodNativeEnum<typeof ActivationStatus>;
|
|
10723
|
+
activationMethod: z.ZodNativeEnum<typeof ActivationMethod>;
|
|
10724
|
+
lastValidatedAt: z.ZodNullable<z.ZodDate>;
|
|
10725
|
+
}, "strip", z.ZodTypeAny, {
|
|
10726
|
+
status: ActivationStatus;
|
|
10727
|
+
id: string;
|
|
10728
|
+
name: string;
|
|
10729
|
+
licenseId: string;
|
|
10730
|
+
activationMethod: ActivationMethod;
|
|
10731
|
+
lastValidatedAt: Date | null;
|
|
10732
|
+
}, {
|
|
10733
|
+
status: ActivationStatus;
|
|
10734
|
+
id: string;
|
|
10735
|
+
name: string;
|
|
10736
|
+
licenseId: string;
|
|
10737
|
+
activationMethod: ActivationMethod;
|
|
10738
|
+
lastValidatedAt: Date | null;
|
|
10739
|
+
}>;
|
|
10740
|
+
|
|
10741
|
+
declare enum LicenseStatus {
|
|
10742
|
+
Active = "Active",
|
|
10743
|
+
Revoked = "Revoked"
|
|
10744
|
+
}
|
|
10745
|
+
declare enum ActivationStatus {
|
|
10746
|
+
Active = "Active",
|
|
10747
|
+
Revoked = "Revoked"
|
|
10748
|
+
}
|
|
10749
|
+
declare enum ActivationMethod {
|
|
10750
|
+
Online = "Online",
|
|
10751
|
+
Offline = "Offline"
|
|
10752
|
+
}
|
|
10753
|
+
type License = z.infer<typeof licenseSchema>;
|
|
10754
|
+
type Activation = z.infer<typeof activationSchema>;
|
|
10755
|
+
|
|
10756
|
+
declare class ActivationEndpoints {
|
|
10757
|
+
private api;
|
|
10758
|
+
constructor(api: MoonbaseApi);
|
|
10759
|
+
activate(deviceToken: string, activationMethod: ActivationMethod): Promise<{
|
|
10760
|
+
license: License;
|
|
10761
|
+
url: string;
|
|
10762
|
+
}>;
|
|
10763
|
+
}
|
|
10764
|
+
|
|
10765
|
+
declare class LicenseEndpoints {
|
|
10766
|
+
private api;
|
|
10767
|
+
constructor(api: MoonbaseApi);
|
|
10768
|
+
get(nextUrl?: string): Promise<Page<License>>;
|
|
10769
|
+
getActivations(licenseId: string, nextUrl?: string): Promise<Page<Activation>>;
|
|
10770
|
+
revokeActivation(licenseId: string, activationId: string): Promise<void>;
|
|
10771
|
+
}
|
|
10772
|
+
|
|
10773
|
+
declare const downloadSchema: z.ZodObject<{
|
|
10774
|
+
name: z.ZodString;
|
|
10775
|
+
key: z.ZodString;
|
|
10776
|
+
platform: z.ZodNativeEnum<typeof Platform>;
|
|
10777
|
+
size: z.ZodNumber;
|
|
10778
|
+
path: z.ZodNullable<z.ZodString>;
|
|
10779
|
+
}, "strip", z.ZodTypeAny, {
|
|
10780
|
+
path: string | null;
|
|
10781
|
+
name: string;
|
|
10782
|
+
key: string;
|
|
10783
|
+
platform: Platform;
|
|
10784
|
+
size: number;
|
|
10785
|
+
}, {
|
|
10786
|
+
path: string | null;
|
|
10787
|
+
name: string;
|
|
10788
|
+
key: string;
|
|
10789
|
+
platform: Platform;
|
|
10790
|
+
size: number;
|
|
10791
|
+
}>;
|
|
10792
|
+
declare const productSummarySchema: z.ZodObject<{
|
|
10793
|
+
id: z.ZodString;
|
|
10794
|
+
name: z.ZodString;
|
|
10795
|
+
tagline: z.ZodString;
|
|
10796
|
+
website: z.ZodOptional<z.ZodString>;
|
|
10797
|
+
iconUrl: z.ZodOptional<z.ZodString>;
|
|
10798
|
+
numberOfLicenses: z.ZodOptional<z.ZodNumber>;
|
|
10799
|
+
numberOfTrials: z.ZodOptional<z.ZodNumber>;
|
|
10800
|
+
currentActivations: z.ZodOptional<z.ZodNumber>;
|
|
10801
|
+
maxActivations: z.ZodOptional<z.ZodNumber>;
|
|
10802
|
+
currentVersion: z.ZodNullable<z.ZodString>;
|
|
10803
|
+
downloadsNeedsUser: z.ZodBoolean;
|
|
10804
|
+
downloadsNeedsOwnership: z.ZodBoolean;
|
|
10805
|
+
downloads: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
10806
|
+
name: z.ZodString;
|
|
10807
|
+
key: z.ZodString;
|
|
10808
|
+
platform: z.ZodNativeEnum<typeof Platform>;
|
|
10809
|
+
size: z.ZodNumber;
|
|
10810
|
+
path: z.ZodNullable<z.ZodString>;
|
|
10811
|
+
}, "strip", z.ZodTypeAny, {
|
|
10812
|
+
path: string | null;
|
|
10813
|
+
name: string;
|
|
10814
|
+
key: string;
|
|
10815
|
+
platform: Platform;
|
|
10816
|
+
size: number;
|
|
10817
|
+
}, {
|
|
10818
|
+
path: string | null;
|
|
10819
|
+
name: string;
|
|
10820
|
+
key: string;
|
|
10821
|
+
platform: Platform;
|
|
10822
|
+
size: number;
|
|
10823
|
+
}>, "many">>;
|
|
10824
|
+
}, "strip", z.ZodTypeAny, {
|
|
10825
|
+
id: string;
|
|
10826
|
+
name: string;
|
|
10827
|
+
tagline: string;
|
|
10828
|
+
currentVersion: string | null;
|
|
10829
|
+
downloadsNeedsUser: boolean;
|
|
10830
|
+
downloadsNeedsOwnership: boolean;
|
|
10831
|
+
website?: string | undefined;
|
|
10832
|
+
iconUrl?: string | undefined;
|
|
10833
|
+
numberOfLicenses?: number | undefined;
|
|
10834
|
+
numberOfTrials?: number | undefined;
|
|
10835
|
+
currentActivations?: number | undefined;
|
|
10836
|
+
maxActivations?: number | undefined;
|
|
10837
|
+
downloads?: {
|
|
10838
|
+
path: string | null;
|
|
10839
|
+
name: string;
|
|
10840
|
+
key: string;
|
|
10841
|
+
platform: Platform;
|
|
10842
|
+
size: number;
|
|
10843
|
+
}[] | undefined;
|
|
10698
10844
|
}, {
|
|
10699
|
-
code: string;
|
|
10700
10845
|
id: string;
|
|
10701
10846
|
name: string;
|
|
10702
|
-
|
|
10703
|
-
|
|
10704
|
-
|
|
10705
|
-
|
|
10706
|
-
|
|
10707
|
-
|
|
10708
|
-
|
|
10709
|
-
|
|
10710
|
-
|
|
10711
|
-
|
|
10712
|
-
|
|
10713
|
-
|
|
10714
|
-
|
|
10715
|
-
|
|
10716
|
-
|
|
10717
|
-
|
|
10718
|
-
|
|
10719
|
-
defaultVariation?: {
|
|
10720
|
-
id: string;
|
|
10721
|
-
name: string;
|
|
10722
|
-
originalPrice: Record<string, number>;
|
|
10723
|
-
price: Record<string, number>;
|
|
10724
|
-
hasDiscount: boolean;
|
|
10725
|
-
discount?: {
|
|
10726
|
-
type: "PercentageOffDiscount";
|
|
10727
|
-
name: string;
|
|
10728
|
-
percentage: number;
|
|
10729
|
-
total: Record<string, number>;
|
|
10730
|
-
description?: string | undefined;
|
|
10731
|
-
} | {
|
|
10732
|
-
type: "FlatAmountOffDiscount";
|
|
10733
|
-
name: string;
|
|
10734
|
-
total: Record<string, number>;
|
|
10735
|
-
description?: string | undefined;
|
|
10736
|
-
} | undefined;
|
|
10737
|
-
} | undefined;
|
|
10738
|
-
variations?: {
|
|
10739
|
-
id: string;
|
|
10740
|
-
name: string;
|
|
10741
|
-
originalPrice: Record<string, number>;
|
|
10742
|
-
price: Record<string, number>;
|
|
10743
|
-
hasDiscount: boolean;
|
|
10744
|
-
discount?: {
|
|
10745
|
-
type: "PercentageOffDiscount";
|
|
10746
|
-
name: string;
|
|
10747
|
-
percentage: number;
|
|
10748
|
-
total: Record<string, number>;
|
|
10749
|
-
description?: string | undefined;
|
|
10750
|
-
} | {
|
|
10751
|
-
type: "FlatAmountOffDiscount";
|
|
10752
|
-
name: string;
|
|
10753
|
-
total: Record<string, number>;
|
|
10754
|
-
description?: string | undefined;
|
|
10755
|
-
} | undefined;
|
|
10756
|
-
}[] | undefined;
|
|
10757
|
-
type?: void | undefined;
|
|
10758
|
-
};
|
|
10759
|
-
quantity: number;
|
|
10760
|
-
}[];
|
|
10761
|
-
redeemsBundles: {
|
|
10762
|
-
value: {
|
|
10763
|
-
id: string;
|
|
10764
|
-
name: string;
|
|
10765
|
-
tagline: string;
|
|
10766
|
-
iconUrl: string | null;
|
|
10767
|
-
owned: boolean;
|
|
10768
|
-
partial: boolean;
|
|
10769
|
-
products: ({
|
|
10770
|
-
id: string;
|
|
10771
|
-
name: string;
|
|
10772
|
-
tagline: string;
|
|
10773
|
-
iconUrl: string | null;
|
|
10774
|
-
owned: boolean;
|
|
10775
|
-
currentVersion?: string | undefined;
|
|
10776
|
-
downloads?: {
|
|
10777
|
-
path: string | null;
|
|
10778
|
-
name: string;
|
|
10779
|
-
key: string;
|
|
10780
|
-
platform: Platform;
|
|
10781
|
-
size: number;
|
|
10782
|
-
}[] | undefined;
|
|
10783
|
-
defaultVariation?: {
|
|
10784
|
-
id: string;
|
|
10785
|
-
name: string;
|
|
10786
|
-
originalPrice: Record<string, number>;
|
|
10787
|
-
price: Record<string, number>;
|
|
10788
|
-
hasDiscount: boolean;
|
|
10789
|
-
discount?: {
|
|
10790
|
-
type: "PercentageOffDiscount";
|
|
10791
|
-
name: string;
|
|
10792
|
-
percentage: number;
|
|
10793
|
-
total: Record<string, number>;
|
|
10794
|
-
description?: string | undefined;
|
|
10795
|
-
} | {
|
|
10796
|
-
type: "FlatAmountOffDiscount";
|
|
10797
|
-
name: string;
|
|
10798
|
-
total: Record<string, number>;
|
|
10799
|
-
description?: string | undefined;
|
|
10800
|
-
} | undefined;
|
|
10801
|
-
} | undefined;
|
|
10802
|
-
variations?: {
|
|
10803
|
-
id: string;
|
|
10804
|
-
name: string;
|
|
10805
|
-
originalPrice: Record<string, number>;
|
|
10806
|
-
price: Record<string, number>;
|
|
10807
|
-
hasDiscount: boolean;
|
|
10808
|
-
discount?: {
|
|
10809
|
-
type: "PercentageOffDiscount";
|
|
10810
|
-
name: string;
|
|
10811
|
-
percentage: number;
|
|
10812
|
-
total: Record<string, number>;
|
|
10813
|
-
description?: string | undefined;
|
|
10814
|
-
} | {
|
|
10815
|
-
type: "FlatAmountOffDiscount";
|
|
10816
|
-
name: string;
|
|
10817
|
-
total: Record<string, number>;
|
|
10818
|
-
description?: string | undefined;
|
|
10819
|
-
} | undefined;
|
|
10820
|
-
}[] | undefined;
|
|
10821
|
-
type?: void | undefined;
|
|
10822
|
-
} & {
|
|
10823
|
-
included: boolean;
|
|
10824
|
-
})[];
|
|
10825
|
-
defaultVariation?: {
|
|
10826
|
-
id: string;
|
|
10827
|
-
name: string;
|
|
10828
|
-
originalPrice: Record<string, number>;
|
|
10829
|
-
price: Record<string, number>;
|
|
10830
|
-
hasDiscount: boolean;
|
|
10831
|
-
discount?: {
|
|
10832
|
-
type: "PercentageOffDiscount";
|
|
10833
|
-
name: string;
|
|
10834
|
-
percentage: number;
|
|
10835
|
-
total: Record<string, number>;
|
|
10836
|
-
description?: string | undefined;
|
|
10837
|
-
} | {
|
|
10838
|
-
type: "FlatAmountOffDiscount";
|
|
10839
|
-
name: string;
|
|
10840
|
-
total: Record<string, number>;
|
|
10841
|
-
description?: string | undefined;
|
|
10842
|
-
} | undefined;
|
|
10843
|
-
} | undefined;
|
|
10844
|
-
variations?: {
|
|
10845
|
-
id: string;
|
|
10846
|
-
name: string;
|
|
10847
|
-
originalPrice: Record<string, number>;
|
|
10848
|
-
price: Record<string, number>;
|
|
10849
|
-
hasDiscount: boolean;
|
|
10850
|
-
discount?: {
|
|
10851
|
-
type: "PercentageOffDiscount";
|
|
10852
|
-
name: string;
|
|
10853
|
-
percentage: number;
|
|
10854
|
-
total: Record<string, number>;
|
|
10855
|
-
description?: string | undefined;
|
|
10856
|
-
} | {
|
|
10857
|
-
type: "FlatAmountOffDiscount";
|
|
10858
|
-
name: string;
|
|
10859
|
-
total: Record<string, number>;
|
|
10860
|
-
description?: string | undefined;
|
|
10861
|
-
} | undefined;
|
|
10862
|
-
}[] | undefined;
|
|
10863
|
-
type?: void | undefined;
|
|
10864
|
-
};
|
|
10865
|
-
quantity: number;
|
|
10866
|
-
}[];
|
|
10847
|
+
tagline: string;
|
|
10848
|
+
currentVersion: string | null;
|
|
10849
|
+
downloadsNeedsUser: boolean;
|
|
10850
|
+
downloadsNeedsOwnership: boolean;
|
|
10851
|
+
website?: string | undefined;
|
|
10852
|
+
iconUrl?: string | undefined;
|
|
10853
|
+
numberOfLicenses?: number | undefined;
|
|
10854
|
+
numberOfTrials?: number | undefined;
|
|
10855
|
+
currentActivations?: number | undefined;
|
|
10856
|
+
maxActivations?: number | undefined;
|
|
10857
|
+
downloads?: {
|
|
10858
|
+
path: string | null;
|
|
10859
|
+
name: string;
|
|
10860
|
+
key: string;
|
|
10861
|
+
platform: Platform;
|
|
10862
|
+
size: number;
|
|
10863
|
+
}[] | undefined;
|
|
10867
10864
|
}>;
|
|
10868
10865
|
|
|
10869
|
-
|
|
10866
|
+
declare enum Platform {
|
|
10867
|
+
Universal = "Universal",
|
|
10868
|
+
Windows = "Windows",
|
|
10869
|
+
Linux = "Linux",
|
|
10870
|
+
Mac = "Mac"
|
|
10871
|
+
}
|
|
10872
|
+
type Download = z.infer<typeof downloadSchema>;
|
|
10873
|
+
type OwnedProduct = z.infer<typeof productSummarySchema>;
|
|
10870
10874
|
|
|
10871
|
-
declare class
|
|
10875
|
+
declare class ProductEndpoints {
|
|
10872
10876
|
private api;
|
|
10873
10877
|
constructor(api: MoonbaseApi);
|
|
10874
|
-
|
|
10875
|
-
|
|
10878
|
+
getOwned(nextUrl?: string): Promise<Page<OwnedProduct>>;
|
|
10879
|
+
getLicenses(productId: string, nextUrl?: string): Promise<Page<License>>;
|
|
10880
|
+
getActivations(productId: string, nextUrl?: string): Promise<Page<Activation>>;
|
|
10881
|
+
getDownloadUrl(path: string): Promise<string>;
|
|
10882
|
+
}
|
|
10883
|
+
|
|
10884
|
+
declare class InventoryEndpoints {
|
|
10885
|
+
constructor(api: MoonbaseApi);
|
|
10886
|
+
licenses: LicenseEndpoints;
|
|
10887
|
+
products: ProductEndpoints;
|
|
10888
|
+
activation: ActivationEndpoints;
|
|
10876
10889
|
}
|
|
10877
10890
|
|
|
10878
10891
|
declare const storefrontProductSchema: z.ZodObject<{
|
|
@@ -11458,11 +11471,11 @@ declare const storefrontBundleSchema: z.ZodObject<{
|
|
|
11458
11471
|
}[] | undefined;
|
|
11459
11472
|
type?: void | undefined;
|
|
11460
11473
|
}>, z.ZodObject<{
|
|
11461
|
-
included: z.ZodBoolean
|
|
11474
|
+
included: z.ZodOptional<z.ZodBoolean>;
|
|
11462
11475
|
}, "strip", z.ZodTypeAny, {
|
|
11463
|
-
included
|
|
11476
|
+
included?: boolean | undefined;
|
|
11464
11477
|
}, {
|
|
11465
|
-
included
|
|
11478
|
+
included?: boolean | undefined;
|
|
11466
11479
|
}>>, "many">;
|
|
11467
11480
|
defaultVariation: z.ZodOptional<z.ZodObject<{
|
|
11468
11481
|
id: z.ZodString;
|
|
@@ -11681,7 +11694,7 @@ declare const storefrontBundleSchema: z.ZodObject<{
|
|
|
11681
11694
|
} | undefined;
|
|
11682
11695
|
}[] | undefined;
|
|
11683
11696
|
} & {
|
|
11684
|
-
included
|
|
11697
|
+
included?: boolean | undefined;
|
|
11685
11698
|
})[];
|
|
11686
11699
|
defaultVariation?: {
|
|
11687
11700
|
id: string;
|
|
@@ -11782,7 +11795,7 @@ declare const storefrontBundleSchema: z.ZodObject<{
|
|
|
11782
11795
|
}[] | undefined;
|
|
11783
11796
|
type?: void | undefined;
|
|
11784
11797
|
} & {
|
|
11785
|
-
included
|
|
11798
|
+
included?: boolean | undefined;
|
|
11786
11799
|
})[];
|
|
11787
11800
|
defaultVariation?: {
|
|
11788
11801
|
id: string;
|
|
@@ -12409,11 +12422,11 @@ declare const storefrontSchema: z.ZodObject<{
|
|
|
12409
12422
|
}[] | undefined;
|
|
12410
12423
|
type?: void | undefined;
|
|
12411
12424
|
}>, z.ZodObject<{
|
|
12412
|
-
included: z.ZodBoolean
|
|
12425
|
+
included: z.ZodOptional<z.ZodBoolean>;
|
|
12413
12426
|
}, "strip", z.ZodTypeAny, {
|
|
12414
|
-
included
|
|
12427
|
+
included?: boolean | undefined;
|
|
12415
12428
|
}, {
|
|
12416
|
-
included
|
|
12429
|
+
included?: boolean | undefined;
|
|
12417
12430
|
}>>, "many">;
|
|
12418
12431
|
defaultVariation: z.ZodOptional<z.ZodObject<{
|
|
12419
12432
|
id: z.ZodString;
|
|
@@ -12632,7 +12645,7 @@ declare const storefrontSchema: z.ZodObject<{
|
|
|
12632
12645
|
} | undefined;
|
|
12633
12646
|
}[] | undefined;
|
|
12634
12647
|
} & {
|
|
12635
|
-
included
|
|
12648
|
+
included?: boolean | undefined;
|
|
12636
12649
|
})[];
|
|
12637
12650
|
defaultVariation?: {
|
|
12638
12651
|
id: string;
|
|
@@ -12733,7 +12746,7 @@ declare const storefrontSchema: z.ZodObject<{
|
|
|
12733
12746
|
}[] | undefined;
|
|
12734
12747
|
type?: void | undefined;
|
|
12735
12748
|
} & {
|
|
12736
|
-
included
|
|
12749
|
+
included?: boolean | undefined;
|
|
12737
12750
|
})[];
|
|
12738
12751
|
defaultVariation?: {
|
|
12739
12752
|
id: string;
|
|
@@ -12893,7 +12906,7 @@ declare const storefrontSchema: z.ZodObject<{
|
|
|
12893
12906
|
} | undefined;
|
|
12894
12907
|
}[] | undefined;
|
|
12895
12908
|
} & {
|
|
12896
|
-
included
|
|
12909
|
+
included?: boolean | undefined;
|
|
12897
12910
|
})[];
|
|
12898
12911
|
defaultVariation?: {
|
|
12899
12912
|
id: string;
|
|
@@ -13051,7 +13064,7 @@ declare const storefrontSchema: z.ZodObject<{
|
|
|
13051
13064
|
}[] | undefined;
|
|
13052
13065
|
type?: void | undefined;
|
|
13053
13066
|
} & {
|
|
13054
|
-
included
|
|
13067
|
+
included?: boolean | undefined;
|
|
13055
13068
|
})[];
|
|
13056
13069
|
defaultVariation?: {
|
|
13057
13070
|
id: string;
|
|
@@ -13125,9 +13138,8 @@ declare class MoonbaseClient {
|
|
|
13125
13138
|
storefront: StorefrontEndpoints;
|
|
13126
13139
|
identity: IdentityEndpoints;
|
|
13127
13140
|
vouchers: VoucherEndpoints;
|
|
13128
|
-
licenses: LicenseEndpoints;
|
|
13129
13141
|
activationRequests: ActivationRequestEndpoints;
|
|
13130
|
-
|
|
13142
|
+
inventory: InventoryEndpoints;
|
|
13131
13143
|
orders: OrderEndpoints;
|
|
13132
13144
|
}
|
|
13133
13145
|
|