@moonbase.sh/storefront-api 0.1.94 → 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 +191 -139
- package/dist/index.d.cts +621 -600
- package/dist/index.d.ts +621 -600
- package/dist/index.js +189 -138
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -695,275 +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
|
-
|
|
787
|
-
declare const licenseSchema: z.ZodObject<{
|
|
788
|
-
id: z.ZodString;
|
|
789
|
-
status: z.ZodNativeEnum<typeof LicenseStatus>;
|
|
790
|
-
product: z.ZodOptional<z.ZodObject<{
|
|
791
|
-
id: z.ZodString;
|
|
792
|
-
name: z.ZodString;
|
|
793
|
-
tagline: z.ZodString;
|
|
794
|
-
website: z.ZodOptional<z.ZodString>;
|
|
795
|
-
iconUrl: z.ZodOptional<z.ZodString>;
|
|
796
|
-
numberOfLicenses: z.ZodOptional<z.ZodNumber>;
|
|
797
|
-
numberOfTrials: z.ZodOptional<z.ZodNumber>;
|
|
798
|
-
currentActivations: z.ZodOptional<z.ZodNumber>;
|
|
799
|
-
maxActivations: z.ZodOptional<z.ZodNumber>;
|
|
800
|
-
currentVersion: z.ZodNullable<z.ZodString>;
|
|
801
|
-
downloadsNeedsUser: z.ZodBoolean;
|
|
802
|
-
downloadsNeedsOwnership: z.ZodBoolean;
|
|
803
|
-
downloads: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
804
|
-
name: z.ZodString;
|
|
805
|
-
key: z.ZodString;
|
|
806
|
-
platform: z.ZodNativeEnum<typeof Platform>;
|
|
807
|
-
size: z.ZodNumber;
|
|
808
|
-
path: z.ZodNullable<z.ZodString>;
|
|
809
|
-
}, "strip", z.ZodTypeAny, {
|
|
810
|
-
path: string | null;
|
|
811
|
-
name: string;
|
|
812
|
-
key: string;
|
|
813
|
-
platform: Platform;
|
|
814
|
-
size: number;
|
|
815
|
-
}, {
|
|
816
|
-
path: string | null;
|
|
817
|
-
name: string;
|
|
818
|
-
key: string;
|
|
819
|
-
platform: Platform;
|
|
820
|
-
size: number;
|
|
821
|
-
}>, "many">>;
|
|
822
|
-
}, "strip", z.ZodTypeAny, {
|
|
823
|
-
id: string;
|
|
824
|
-
name: string;
|
|
825
|
-
tagline: string;
|
|
826
|
-
currentVersion: string | null;
|
|
827
|
-
downloadsNeedsUser: boolean;
|
|
828
|
-
downloadsNeedsOwnership: boolean;
|
|
829
|
-
website?: string | undefined;
|
|
830
|
-
iconUrl?: string | undefined;
|
|
831
|
-
numberOfLicenses?: number | undefined;
|
|
832
|
-
numberOfTrials?: number | undefined;
|
|
833
|
-
currentActivations?: number | undefined;
|
|
834
|
-
maxActivations?: number | undefined;
|
|
835
|
-
downloads?: {
|
|
836
|
-
path: string | null;
|
|
837
|
-
name: string;
|
|
838
|
-
key: string;
|
|
839
|
-
platform: Platform;
|
|
840
|
-
size: number;
|
|
841
|
-
}[] | undefined;
|
|
842
|
-
}, {
|
|
843
|
-
id: string;
|
|
844
|
-
name: string;
|
|
845
|
-
tagline: string;
|
|
846
|
-
currentVersion: string | null;
|
|
847
|
-
downloadsNeedsUser: boolean;
|
|
848
|
-
downloadsNeedsOwnership: boolean;
|
|
849
|
-
website?: string | undefined;
|
|
850
|
-
iconUrl?: string | undefined;
|
|
851
|
-
numberOfLicenses?: number | undefined;
|
|
852
|
-
numberOfTrials?: number | undefined;
|
|
853
|
-
currentActivations?: number | undefined;
|
|
854
|
-
maxActivations?: number | undefined;
|
|
855
|
-
downloads?: {
|
|
856
|
-
path: string | null;
|
|
857
|
-
name: string;
|
|
858
|
-
key: string;
|
|
859
|
-
platform: Platform;
|
|
860
|
-
size: number;
|
|
861
|
-
}[] | undefined;
|
|
862
|
-
}>>;
|
|
863
|
-
activeNumberOfActivations: z.ZodNumber;
|
|
864
|
-
maxNumberOfActivations: z.ZodNumber;
|
|
865
|
-
createdAt: z.ZodDate;
|
|
866
|
-
}, "strip", z.ZodTypeAny, {
|
|
867
|
-
status: LicenseStatus;
|
|
868
|
-
id: string;
|
|
869
|
-
activeNumberOfActivations: number;
|
|
870
|
-
maxNumberOfActivations: number;
|
|
871
|
-
createdAt: Date;
|
|
872
|
-
product?: {
|
|
873
|
-
id: string;
|
|
874
|
-
name: string;
|
|
875
|
-
tagline: string;
|
|
876
|
-
currentVersion: string | null;
|
|
877
|
-
downloadsNeedsUser: boolean;
|
|
878
|
-
downloadsNeedsOwnership: boolean;
|
|
879
|
-
website?: string | undefined;
|
|
880
|
-
iconUrl?: string | undefined;
|
|
881
|
-
numberOfLicenses?: number | undefined;
|
|
882
|
-
numberOfTrials?: number | undefined;
|
|
883
|
-
currentActivations?: number | undefined;
|
|
884
|
-
maxActivations?: number | undefined;
|
|
885
|
-
downloads?: {
|
|
886
|
-
path: string | null;
|
|
887
|
-
name: string;
|
|
888
|
-
key: string;
|
|
889
|
-
platform: Platform;
|
|
890
|
-
size: number;
|
|
891
|
-
}[] | undefined;
|
|
892
|
-
} | undefined;
|
|
893
|
-
}, {
|
|
894
|
-
status: LicenseStatus;
|
|
895
|
-
id: string;
|
|
896
|
-
activeNumberOfActivations: number;
|
|
897
|
-
maxNumberOfActivations: number;
|
|
898
|
-
createdAt: Date;
|
|
899
|
-
product?: {
|
|
900
|
-
id: string;
|
|
901
|
-
name: string;
|
|
902
|
-
tagline: string;
|
|
903
|
-
currentVersion: string | null;
|
|
904
|
-
downloadsNeedsUser: boolean;
|
|
905
|
-
downloadsNeedsOwnership: boolean;
|
|
906
|
-
website?: string | undefined;
|
|
907
|
-
iconUrl?: string | undefined;
|
|
908
|
-
numberOfLicenses?: number | undefined;
|
|
909
|
-
numberOfTrials?: number | undefined;
|
|
910
|
-
currentActivations?: number | undefined;
|
|
911
|
-
maxActivations?: number | undefined;
|
|
912
|
-
downloads?: {
|
|
913
|
-
path: string | null;
|
|
914
|
-
name: string;
|
|
915
|
-
key: string;
|
|
916
|
-
platform: Platform;
|
|
917
|
-
size: number;
|
|
918
|
-
}[] | undefined;
|
|
919
|
-
} | undefined;
|
|
920
|
-
}>;
|
|
921
|
-
declare const activationSchema: z.ZodObject<{
|
|
922
|
-
id: z.ZodString;
|
|
923
|
-
licenseId: z.ZodString;
|
|
924
|
-
name: z.ZodString;
|
|
925
|
-
status: z.ZodNativeEnum<typeof ActivationStatus>;
|
|
926
|
-
activationMethod: z.ZodNativeEnum<typeof ActivationMethod>;
|
|
927
|
-
lastValidatedAt: z.ZodNullable<z.ZodDate>;
|
|
928
|
-
}, "strip", z.ZodTypeAny, {
|
|
929
|
-
status: ActivationStatus;
|
|
930
|
-
id: string;
|
|
931
|
-
name: string;
|
|
932
|
-
licenseId: string;
|
|
933
|
-
activationMethod: ActivationMethod;
|
|
934
|
-
lastValidatedAt: Date | null;
|
|
935
|
-
}, {
|
|
936
|
-
status: ActivationStatus;
|
|
937
|
-
id: string;
|
|
938
|
-
name: string;
|
|
939
|
-
licenseId: string;
|
|
940
|
-
activationMethod: ActivationMethod;
|
|
941
|
-
lastValidatedAt: Date | null;
|
|
942
|
-
}>;
|
|
943
|
-
|
|
944
|
-
declare enum LicenseStatus {
|
|
945
|
-
Active = "Active",
|
|
946
|
-
Revoked = "Revoked"
|
|
947
|
-
}
|
|
948
|
-
declare enum ActivationStatus {
|
|
949
|
-
Active = "Active",
|
|
950
|
-
Revoked = "Revoked"
|
|
951
|
-
}
|
|
952
|
-
declare enum ActivationMethod {
|
|
953
|
-
Online = "Online",
|
|
954
|
-
Offline = "Offline"
|
|
955
|
-
}
|
|
956
|
-
type License = z.infer<typeof licenseSchema>;
|
|
957
|
-
type Activation = z.infer<typeof activationSchema>;
|
|
958
|
-
|
|
959
|
-
declare class LicenseEndpoints {
|
|
960
|
-
private api;
|
|
961
|
-
constructor(api: MoonbaseApi);
|
|
962
|
-
get(nextUrl?: string): Promise<Page<License>>;
|
|
963
|
-
getActivations(licenseId: string, nextUrl?: string): Promise<Page<Activation>>;
|
|
964
|
-
revokeActivation(licenseId: string, activationId: string): Promise<void>;
|
|
965
|
-
}
|
|
966
|
-
|
|
967
698
|
declare const openProductLineItem: z.ZodObject<{
|
|
968
699
|
id: z.ZodString;
|
|
969
700
|
type: z.ZodLiteral<"Product">;
|
|
@@ -1944,11 +1675,11 @@ declare const openBundleLineItem: z.ZodObject<{
|
|
|
1944
1675
|
}[] | undefined;
|
|
1945
1676
|
type?: void | undefined;
|
|
1946
1677
|
}>, z.ZodObject<{
|
|
1947
|
-
included: z.ZodBoolean
|
|
1678
|
+
included: z.ZodOptional<z.ZodBoolean>;
|
|
1948
1679
|
}, "strip", z.ZodTypeAny, {
|
|
1949
|
-
included
|
|
1680
|
+
included?: boolean | undefined;
|
|
1950
1681
|
}, {
|
|
1951
|
-
included
|
|
1682
|
+
included?: boolean | undefined;
|
|
1952
1683
|
}>>, "many">;
|
|
1953
1684
|
defaultVariation: z.ZodOptional<z.ZodObject<{
|
|
1954
1685
|
id: z.ZodString;
|
|
@@ -2167,7 +1898,7 @@ declare const openBundleLineItem: z.ZodObject<{
|
|
|
2167
1898
|
} | undefined;
|
|
2168
1899
|
}[] | undefined;
|
|
2169
1900
|
} & {
|
|
2170
|
-
included
|
|
1901
|
+
included?: boolean | undefined;
|
|
2171
1902
|
})[];
|
|
2172
1903
|
defaultVariation?: {
|
|
2173
1904
|
id: string;
|
|
@@ -2268,7 +1999,7 @@ declare const openBundleLineItem: z.ZodObject<{
|
|
|
2268
1999
|
}[] | undefined;
|
|
2269
2000
|
type?: void | undefined;
|
|
2270
2001
|
} & {
|
|
2271
|
-
included
|
|
2002
|
+
included?: boolean | undefined;
|
|
2272
2003
|
})[];
|
|
2273
2004
|
defaultVariation?: {
|
|
2274
2005
|
id: string;
|
|
@@ -2438,7 +2169,7 @@ declare const openBundleLineItem: z.ZodObject<{
|
|
|
2438
2169
|
} | undefined;
|
|
2439
2170
|
}[] | undefined;
|
|
2440
2171
|
} & {
|
|
2441
|
-
included
|
|
2172
|
+
included?: boolean | undefined;
|
|
2442
2173
|
})[];
|
|
2443
2174
|
defaultVariation?: {
|
|
2444
2175
|
id: string;
|
|
@@ -2580,7 +2311,7 @@ declare const openBundleLineItem: z.ZodObject<{
|
|
|
2580
2311
|
}[] | undefined;
|
|
2581
2312
|
type?: void | undefined;
|
|
2582
2313
|
} & {
|
|
2583
|
-
included
|
|
2314
|
+
included?: boolean | undefined;
|
|
2584
2315
|
})[];
|
|
2585
2316
|
defaultVariation?: {
|
|
2586
2317
|
id: string;
|
|
@@ -3616,11 +3347,11 @@ declare const openOrderLineItem: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
3616
3347
|
}[] | undefined;
|
|
3617
3348
|
type?: void | undefined;
|
|
3618
3349
|
}>, z.ZodObject<{
|
|
3619
|
-
included: z.ZodBoolean
|
|
3350
|
+
included: z.ZodOptional<z.ZodBoolean>;
|
|
3620
3351
|
}, "strip", z.ZodTypeAny, {
|
|
3621
|
-
included
|
|
3352
|
+
included?: boolean | undefined;
|
|
3622
3353
|
}, {
|
|
3623
|
-
included
|
|
3354
|
+
included?: boolean | undefined;
|
|
3624
3355
|
}>>, "many">;
|
|
3625
3356
|
defaultVariation: z.ZodOptional<z.ZodObject<{
|
|
3626
3357
|
id: z.ZodString;
|
|
@@ -3839,7 +3570,7 @@ declare const openOrderLineItem: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
3839
3570
|
} | undefined;
|
|
3840
3571
|
}[] | undefined;
|
|
3841
3572
|
} & {
|
|
3842
|
-
included
|
|
3573
|
+
included?: boolean | undefined;
|
|
3843
3574
|
})[];
|
|
3844
3575
|
defaultVariation?: {
|
|
3845
3576
|
id: string;
|
|
@@ -3940,7 +3671,7 @@ declare const openOrderLineItem: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
3940
3671
|
}[] | undefined;
|
|
3941
3672
|
type?: void | undefined;
|
|
3942
3673
|
} & {
|
|
3943
|
-
included
|
|
3674
|
+
included?: boolean | undefined;
|
|
3944
3675
|
})[];
|
|
3945
3676
|
defaultVariation?: {
|
|
3946
3677
|
id: string;
|
|
@@ -4110,7 +3841,7 @@ declare const openOrderLineItem: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
4110
3841
|
} | undefined;
|
|
4111
3842
|
}[] | undefined;
|
|
4112
3843
|
} & {
|
|
4113
|
-
included
|
|
3844
|
+
included?: boolean | undefined;
|
|
4114
3845
|
})[];
|
|
4115
3846
|
defaultVariation?: {
|
|
4116
3847
|
id: string;
|
|
@@ -4252,7 +3983,7 @@ declare const openOrderLineItem: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
4252
3983
|
}[] | undefined;
|
|
4253
3984
|
type?: void | undefined;
|
|
4254
3985
|
} & {
|
|
4255
|
-
included
|
|
3986
|
+
included?: boolean | undefined;
|
|
4256
3987
|
})[];
|
|
4257
3988
|
defaultVariation?: {
|
|
4258
3989
|
id: string;
|
|
@@ -5292,11 +5023,11 @@ declare const openOrderSchema: z.ZodObject<{
|
|
|
5292
5023
|
}[] | undefined;
|
|
5293
5024
|
type?: void | undefined;
|
|
5294
5025
|
}>, z.ZodObject<{
|
|
5295
|
-
included: z.ZodBoolean
|
|
5026
|
+
included: z.ZodOptional<z.ZodBoolean>;
|
|
5296
5027
|
}, "strip", z.ZodTypeAny, {
|
|
5297
|
-
included
|
|
5028
|
+
included?: boolean | undefined;
|
|
5298
5029
|
}, {
|
|
5299
|
-
included
|
|
5030
|
+
included?: boolean | undefined;
|
|
5300
5031
|
}>>, "many">;
|
|
5301
5032
|
defaultVariation: z.ZodOptional<z.ZodObject<{
|
|
5302
5033
|
id: z.ZodString;
|
|
@@ -5515,7 +5246,7 @@ declare const openOrderSchema: z.ZodObject<{
|
|
|
5515
5246
|
} | undefined;
|
|
5516
5247
|
}[] | undefined;
|
|
5517
5248
|
} & {
|
|
5518
|
-
included
|
|
5249
|
+
included?: boolean | undefined;
|
|
5519
5250
|
})[];
|
|
5520
5251
|
defaultVariation?: {
|
|
5521
5252
|
id: string;
|
|
@@ -5616,7 +5347,7 @@ declare const openOrderSchema: z.ZodObject<{
|
|
|
5616
5347
|
}[] | undefined;
|
|
5617
5348
|
type?: void | undefined;
|
|
5618
5349
|
} & {
|
|
5619
|
-
included
|
|
5350
|
+
included?: boolean | undefined;
|
|
5620
5351
|
})[];
|
|
5621
5352
|
defaultVariation?: {
|
|
5622
5353
|
id: string;
|
|
@@ -5786,7 +5517,7 @@ declare const openOrderSchema: z.ZodObject<{
|
|
|
5786
5517
|
} | undefined;
|
|
5787
5518
|
}[] | undefined;
|
|
5788
5519
|
} & {
|
|
5789
|
-
included
|
|
5520
|
+
included?: boolean | undefined;
|
|
5790
5521
|
})[];
|
|
5791
5522
|
defaultVariation?: {
|
|
5792
5523
|
id: string;
|
|
@@ -5928,7 +5659,7 @@ declare const openOrderSchema: z.ZodObject<{
|
|
|
5928
5659
|
}[] | undefined;
|
|
5929
5660
|
type?: void | undefined;
|
|
5930
5661
|
} & {
|
|
5931
|
-
included
|
|
5662
|
+
included?: boolean | undefined;
|
|
5932
5663
|
})[];
|
|
5933
5664
|
defaultVariation?: {
|
|
5934
5665
|
id: string;
|
|
@@ -6184,7 +5915,7 @@ declare const openOrderSchema: z.ZodObject<{
|
|
|
6184
5915
|
} | undefined;
|
|
6185
5916
|
}[] | undefined;
|
|
6186
5917
|
} & {
|
|
6187
|
-
included
|
|
5918
|
+
included?: boolean | undefined;
|
|
6188
5919
|
})[];
|
|
6189
5920
|
defaultVariation?: {
|
|
6190
5921
|
id: string;
|
|
@@ -6431,7 +6162,7 @@ declare const openOrderSchema: z.ZodObject<{
|
|
|
6431
6162
|
}[] | undefined;
|
|
6432
6163
|
type?: void | undefined;
|
|
6433
6164
|
} & {
|
|
6434
|
-
included
|
|
6165
|
+
included?: boolean | undefined;
|
|
6435
6166
|
})[];
|
|
6436
6167
|
defaultVariation?: {
|
|
6437
6168
|
id: string;
|
|
@@ -7479,11 +7210,11 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
|
|
|
7479
7210
|
}[] | undefined;
|
|
7480
7211
|
type?: void | undefined;
|
|
7481
7212
|
}>, z.ZodObject<{
|
|
7482
|
-
included: z.ZodBoolean
|
|
7213
|
+
included: z.ZodOptional<z.ZodBoolean>;
|
|
7483
7214
|
}, "strip", z.ZodTypeAny, {
|
|
7484
|
-
included
|
|
7215
|
+
included?: boolean | undefined;
|
|
7485
7216
|
}, {
|
|
7486
|
-
included
|
|
7217
|
+
included?: boolean | undefined;
|
|
7487
7218
|
}>>, "many">;
|
|
7488
7219
|
defaultVariation: z.ZodOptional<z.ZodObject<{
|
|
7489
7220
|
id: z.ZodString;
|
|
@@ -7702,7 +7433,7 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
|
|
|
7702
7433
|
} | undefined;
|
|
7703
7434
|
}[] | undefined;
|
|
7704
7435
|
} & {
|
|
7705
|
-
included
|
|
7436
|
+
included?: boolean | undefined;
|
|
7706
7437
|
})[];
|
|
7707
7438
|
defaultVariation?: {
|
|
7708
7439
|
id: string;
|
|
@@ -7803,7 +7534,7 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
|
|
|
7803
7534
|
}[] | undefined;
|
|
7804
7535
|
type?: void | undefined;
|
|
7805
7536
|
} & {
|
|
7806
|
-
included
|
|
7537
|
+
included?: boolean | undefined;
|
|
7807
7538
|
})[];
|
|
7808
7539
|
defaultVariation?: {
|
|
7809
7540
|
id: string;
|
|
@@ -7973,7 +7704,7 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
|
|
|
7973
7704
|
} | undefined;
|
|
7974
7705
|
}[] | undefined;
|
|
7975
7706
|
} & {
|
|
7976
|
-
included
|
|
7707
|
+
included?: boolean | undefined;
|
|
7977
7708
|
})[];
|
|
7978
7709
|
defaultVariation?: {
|
|
7979
7710
|
id: string;
|
|
@@ -8115,7 +7846,7 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
|
|
|
8115
7846
|
}[] | undefined;
|
|
8116
7847
|
type?: void | undefined;
|
|
8117
7848
|
} & {
|
|
8118
|
-
included
|
|
7849
|
+
included?: boolean | undefined;
|
|
8119
7850
|
})[];
|
|
8120
7851
|
defaultVariation?: {
|
|
8121
7852
|
id: string;
|
|
@@ -8371,7 +8102,7 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
|
|
|
8371
8102
|
} | undefined;
|
|
8372
8103
|
}[] | undefined;
|
|
8373
8104
|
} & {
|
|
8374
|
-
included
|
|
8105
|
+
included?: boolean | undefined;
|
|
8375
8106
|
})[];
|
|
8376
8107
|
defaultVariation?: {
|
|
8377
8108
|
id: string;
|
|
@@ -8618,7 +8349,7 @@ declare const orderSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
|
|
|
8618
8349
|
}[] | undefined;
|
|
8619
8350
|
type?: void | undefined;
|
|
8620
8351
|
} & {
|
|
8621
|
-
included
|
|
8352
|
+
included?: boolean | undefined;
|
|
8622
8353
|
})[];
|
|
8623
8354
|
defaultVariation?: {
|
|
8624
8355
|
id: string;
|
|
@@ -8886,7 +8617,7 @@ declare class OrderEndpoints {
|
|
|
8886
8617
|
} | undefined;
|
|
8887
8618
|
}[] | undefined;
|
|
8888
8619
|
} & {
|
|
8889
|
-
included
|
|
8620
|
+
included?: boolean | undefined;
|
|
8890
8621
|
})[];
|
|
8891
8622
|
defaultVariation?: {
|
|
8892
8623
|
id: string;
|
|
@@ -8952,127 +8683,111 @@ declare class OrderEndpoints {
|
|
|
8952
8683
|
}>;
|
|
8953
8684
|
pushContent(order: Order, checkout?: {
|
|
8954
8685
|
returnUrl: string;
|
|
8955
|
-
}): Promise<OpenOrder>;
|
|
8686
|
+
}, utm?: UrchinTrackingModule): Promise<OpenOrder>;
|
|
8956
8687
|
}
|
|
8957
8688
|
|
|
8958
|
-
declare const
|
|
8959
|
-
name: z.ZodString;
|
|
8960
|
-
key: z.ZodString;
|
|
8961
|
-
platform: z.ZodNativeEnum<typeof Platform>;
|
|
8962
|
-
size: z.ZodNumber;
|
|
8963
|
-
path: z.ZodNullable<z.ZodString>;
|
|
8964
|
-
}, "strip", z.ZodTypeAny, {
|
|
8965
|
-
path: string | null;
|
|
8966
|
-
name: string;
|
|
8967
|
-
key: string;
|
|
8968
|
-
platform: Platform;
|
|
8969
|
-
size: number;
|
|
8970
|
-
}, {
|
|
8971
|
-
path: string | null;
|
|
8972
|
-
name: string;
|
|
8973
|
-
key: string;
|
|
8974
|
-
platform: Platform;
|
|
8975
|
-
size: number;
|
|
8976
|
-
}>;
|
|
8977
|
-
declare const productSummarySchema: z.ZodObject<{
|
|
8689
|
+
declare const pricingVariationSchema: z.ZodObject<{
|
|
8978
8690
|
id: z.ZodString;
|
|
8979
8691
|
name: z.ZodString;
|
|
8980
|
-
|
|
8981
|
-
|
|
8982
|
-
|
|
8983
|
-
|
|
8984
|
-
|
|
8985
|
-
|
|
8986
|
-
|
|
8987
|
-
|
|
8988
|
-
|
|
8989
|
-
|
|
8990
|
-
|
|
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">;
|
|
8697
|
+
name: z.ZodString;
|
|
8698
|
+
description: z.ZodOptional<z.ZodString>;
|
|
8699
|
+
percentage: z.ZodNumber;
|
|
8700
|
+
total: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
8701
|
+
}, "strip", z.ZodTypeAny, {
|
|
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">;
|
|
8991
8715
|
name: z.ZodString;
|
|
8992
|
-
|
|
8993
|
-
|
|
8994
|
-
size: z.ZodNumber;
|
|
8995
|
-
path: z.ZodNullable<z.ZodString>;
|
|
8716
|
+
description: z.ZodOptional<z.ZodString>;
|
|
8717
|
+
total: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
8996
8718
|
}, "strip", z.ZodTypeAny, {
|
|
8997
|
-
|
|
8719
|
+
type: "FlatAmountOffDiscount";
|
|
8998
8720
|
name: string;
|
|
8999
|
-
|
|
9000
|
-
|
|
9001
|
-
size: number;
|
|
8721
|
+
total: Record<string, number>;
|
|
8722
|
+
description?: string | undefined;
|
|
9002
8723
|
}, {
|
|
9003
|
-
|
|
8724
|
+
type: "FlatAmountOffDiscount";
|
|
9004
8725
|
name: string;
|
|
9005
|
-
|
|
9006
|
-
|
|
9007
|
-
|
|
9008
|
-
}>, "many">>;
|
|
8726
|
+
total: Record<string, number>;
|
|
8727
|
+
description?: string | undefined;
|
|
8728
|
+
}>]>>;
|
|
9009
8729
|
}, "strip", z.ZodTypeAny, {
|
|
9010
8730
|
id: string;
|
|
9011
8731
|
name: string;
|
|
9012
|
-
|
|
9013
|
-
|
|
9014
|
-
|
|
9015
|
-
|
|
9016
|
-
|
|
9017
|
-
iconUrl?: string | undefined;
|
|
9018
|
-
numberOfLicenses?: number | undefined;
|
|
9019
|
-
numberOfTrials?: number | undefined;
|
|
9020
|
-
currentActivations?: number | undefined;
|
|
9021
|
-
maxActivations?: number | undefined;
|
|
9022
|
-
downloads?: {
|
|
9023
|
-
path: string | null;
|
|
8732
|
+
originalPrice: Record<string, number>;
|
|
8733
|
+
price: Record<string, number>;
|
|
8734
|
+
hasDiscount: boolean;
|
|
8735
|
+
discount?: {
|
|
8736
|
+
type: "PercentageOffDiscount";
|
|
9024
8737
|
name: string;
|
|
9025
|
-
|
|
9026
|
-
|
|
9027
|
-
|
|
9028
|
-
}
|
|
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;
|
|
9029
8747
|
}, {
|
|
9030
8748
|
id: string;
|
|
9031
8749
|
name: string;
|
|
9032
|
-
|
|
9033
|
-
|
|
9034
|
-
|
|
9035
|
-
|
|
9036
|
-
|
|
9037
|
-
iconUrl?: string | undefined;
|
|
9038
|
-
numberOfLicenses?: number | undefined;
|
|
9039
|
-
numberOfTrials?: number | undefined;
|
|
9040
|
-
currentActivations?: number | undefined;
|
|
9041
|
-
maxActivations?: number | undefined;
|
|
9042
|
-
downloads?: {
|
|
9043
|
-
path: string | null;
|
|
8750
|
+
originalPrice: Record<string, number>;
|
|
8751
|
+
price: Record<string, number>;
|
|
8752
|
+
hasDiscount: boolean;
|
|
8753
|
+
discount?: {
|
|
8754
|
+
type: "PercentageOffDiscount";
|
|
9044
8755
|
name: string;
|
|
9045
|
-
|
|
9046
|
-
|
|
9047
|
-
|
|
9048
|
-
}
|
|
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;
|
|
9049
8765
|
}>;
|
|
9050
8766
|
|
|
9051
|
-
|
|
9052
|
-
|
|
9053
|
-
|
|
9054
|
-
|
|
9055
|
-
|
|
8767
|
+
type PricingVariation = z.infer<typeof pricingVariationSchema>;
|
|
8768
|
+
interface Page<T> {
|
|
8769
|
+
items: Array<T>;
|
|
8770
|
+
hasMore: boolean;
|
|
8771
|
+
next: string | null;
|
|
9056
8772
|
}
|
|
9057
|
-
|
|
9058
|
-
|
|
9059
|
-
|
|
9060
|
-
declare class ProductEndpoints {
|
|
9061
|
-
private api;
|
|
9062
|
-
constructor(api: MoonbaseApi);
|
|
9063
|
-
getOwned(nextUrl?: string): Promise<Page<OwnedProduct>>;
|
|
9064
|
-
getLicenses(productId: string, nextUrl?: string): Promise<Page<License>>;
|
|
9065
|
-
getActivations(productId: string, nextUrl?: string): Promise<Page<Activation>>;
|
|
9066
|
-
activate(deviceToken: string, activationMethod: ActivationMethod): Promise<{
|
|
9067
|
-
license: License;
|
|
9068
|
-
url: string;
|
|
9069
|
-
}>;
|
|
8773
|
+
interface Quantifiable<T> {
|
|
8774
|
+
value: T;
|
|
8775
|
+
quantity: number;
|
|
9070
8776
|
}
|
|
8777
|
+
interface UrchinTrackingModule {
|
|
8778
|
+
source?: string;
|
|
8779
|
+
medium?: string;
|
|
8780
|
+
campaign?: string;
|
|
8781
|
+
term?: string;
|
|
8782
|
+
content?: string;
|
|
8783
|
+
referrer?: string;
|
|
8784
|
+
}
|
|
8785
|
+
declare function utmToObject(utm?: UrchinTrackingModule): Record<string, string>;
|
|
9071
8786
|
|
|
9072
8787
|
declare class StorefrontEndpoints {
|
|
9073
8788
|
private api;
|
|
9074
8789
|
constructor(api: MoonbaseApi);
|
|
9075
|
-
get(): Promise<{
|
|
8790
|
+
get(utm?: UrchinTrackingModule): Promise<{
|
|
9076
8791
|
products: {
|
|
9077
8792
|
type: "product";
|
|
9078
8793
|
id: string;
|
|
@@ -9190,7 +8905,7 @@ declare class StorefrontEndpoints {
|
|
|
9190
8905
|
} | undefined;
|
|
9191
8906
|
}[] | undefined;
|
|
9192
8907
|
} & {
|
|
9193
|
-
included
|
|
8908
|
+
included?: boolean | undefined;
|
|
9194
8909
|
})[];
|
|
9195
8910
|
defaultVariation?: {
|
|
9196
8911
|
id: string;
|
|
@@ -9939,11 +9654,11 @@ declare const voucherSchema: z.ZodObject<{
|
|
|
9939
9654
|
}[] | undefined;
|
|
9940
9655
|
type?: void | undefined;
|
|
9941
9656
|
}>, z.ZodObject<{
|
|
9942
|
-
included: z.ZodBoolean
|
|
9657
|
+
included: z.ZodOptional<z.ZodBoolean>;
|
|
9943
9658
|
}, "strip", z.ZodTypeAny, {
|
|
9944
|
-
included
|
|
9659
|
+
included?: boolean | undefined;
|
|
9945
9660
|
}, {
|
|
9946
|
-
included
|
|
9661
|
+
included?: boolean | undefined;
|
|
9947
9662
|
}>>, "many">;
|
|
9948
9663
|
defaultVariation: z.ZodOptional<z.ZodObject<{
|
|
9949
9664
|
id: z.ZodString;
|
|
@@ -10162,7 +9877,7 @@ declare const voucherSchema: z.ZodObject<{
|
|
|
10162
9877
|
} | undefined;
|
|
10163
9878
|
}[] | undefined;
|
|
10164
9879
|
} & {
|
|
10165
|
-
included
|
|
9880
|
+
included?: boolean | undefined;
|
|
10166
9881
|
})[];
|
|
10167
9882
|
defaultVariation?: {
|
|
10168
9883
|
id: string;
|
|
@@ -10263,7 +9978,7 @@ declare const voucherSchema: z.ZodObject<{
|
|
|
10263
9978
|
}[] | undefined;
|
|
10264
9979
|
type?: void | undefined;
|
|
10265
9980
|
} & {
|
|
10266
|
-
included
|
|
9981
|
+
included?: boolean | undefined;
|
|
10267
9982
|
})[];
|
|
10268
9983
|
defaultVariation?: {
|
|
10269
9984
|
id: string;
|
|
@@ -10369,7 +10084,111 @@ declare const voucherSchema: z.ZodObject<{
|
|
|
10369
10084
|
} | undefined;
|
|
10370
10085
|
}[] | undefined;
|
|
10371
10086
|
} & {
|
|
10372
|
-
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;
|
|
10373
10192
|
})[];
|
|
10374
10193
|
defaultVariation?: {
|
|
10375
10194
|
id: string;
|
|
@@ -10409,10 +10228,76 @@ declare const voucherSchema: z.ZodObject<{
|
|
|
10409
10228
|
description?: string | undefined;
|
|
10410
10229
|
} | undefined;
|
|
10411
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;
|
|
10412
10295
|
};
|
|
10413
10296
|
quantity: number;
|
|
10414
|
-
}
|
|
10297
|
+
}[];
|
|
10298
|
+
redeemsBundles: {
|
|
10415
10299
|
value: {
|
|
10300
|
+
type: "bundle";
|
|
10416
10301
|
id: string;
|
|
10417
10302
|
name: string;
|
|
10418
10303
|
tagline: string;
|
|
@@ -10420,6 +10305,7 @@ declare const voucherSchema: z.ZodObject<{
|
|
|
10420
10305
|
owned: boolean;
|
|
10421
10306
|
partial: boolean;
|
|
10422
10307
|
products: ({
|
|
10308
|
+
type: "product";
|
|
10423
10309
|
id: string;
|
|
10424
10310
|
name: string;
|
|
10425
10311
|
tagline: string;
|
|
@@ -10471,9 +10357,8 @@ declare const voucherSchema: z.ZodObject<{
|
|
|
10471
10357
|
description?: string | undefined;
|
|
10472
10358
|
} | undefined;
|
|
10473
10359
|
}[] | undefined;
|
|
10474
|
-
type?: void | undefined;
|
|
10475
10360
|
} & {
|
|
10476
|
-
included
|
|
10361
|
+
included?: boolean | undefined;
|
|
10477
10362
|
})[];
|
|
10478
10363
|
defaultVariation?: {
|
|
10479
10364
|
id: string;
|
|
@@ -10513,11 +10398,10 @@ declare const voucherSchema: z.ZodObject<{
|
|
|
10513
10398
|
description?: string | undefined;
|
|
10514
10399
|
} | undefined;
|
|
10515
10400
|
}[] | undefined;
|
|
10516
|
-
type?: void | undefined;
|
|
10517
10401
|
};
|
|
10518
10402
|
quantity: number;
|
|
10519
|
-
}
|
|
10520
|
-
},
|
|
10403
|
+
}[];
|
|
10404
|
+
}, {
|
|
10521
10405
|
code: string;
|
|
10522
10406
|
id: string;
|
|
10523
10407
|
name: string;
|
|
@@ -10525,7 +10409,6 @@ declare const voucherSchema: z.ZodObject<{
|
|
|
10525
10409
|
redeemed: boolean;
|
|
10526
10410
|
redeemsProducts: {
|
|
10527
10411
|
value: {
|
|
10528
|
-
type: "product";
|
|
10529
10412
|
id: string;
|
|
10530
10413
|
name: string;
|
|
10531
10414
|
tagline: string;
|
|
@@ -10577,12 +10460,12 @@ declare const voucherSchema: z.ZodObject<{
|
|
|
10577
10460
|
description?: string | undefined;
|
|
10578
10461
|
} | undefined;
|
|
10579
10462
|
}[] | undefined;
|
|
10463
|
+
type?: void | undefined;
|
|
10580
10464
|
};
|
|
10581
10465
|
quantity: number;
|
|
10582
10466
|
}[];
|
|
10583
10467
|
redeemsBundles: {
|
|
10584
10468
|
value: {
|
|
10585
|
-
type: "bundle";
|
|
10586
10469
|
id: string;
|
|
10587
10470
|
name: string;
|
|
10588
10471
|
tagline: string;
|
|
@@ -10590,7 +10473,6 @@ declare const voucherSchema: z.ZodObject<{
|
|
|
10590
10473
|
owned: boolean;
|
|
10591
10474
|
partial: boolean;
|
|
10592
10475
|
products: ({
|
|
10593
|
-
type: "product";
|
|
10594
10476
|
id: string;
|
|
10595
10477
|
name: string;
|
|
10596
10478
|
tagline: string;
|
|
@@ -10642,8 +10524,9 @@ declare const voucherSchema: z.ZodObject<{
|
|
|
10642
10524
|
description?: string | undefined;
|
|
10643
10525
|
} | undefined;
|
|
10644
10526
|
}[] | undefined;
|
|
10527
|
+
type?: void | undefined;
|
|
10645
10528
|
} & {
|
|
10646
|
-
included
|
|
10529
|
+
included?: boolean | undefined;
|
|
10647
10530
|
})[];
|
|
10648
10531
|
defaultVariation?: {
|
|
10649
10532
|
id: string;
|
|
@@ -10683,187 +10566,326 @@ declare const voucherSchema: z.ZodObject<{
|
|
|
10683
10566
|
description?: string | undefined;
|
|
10684
10567
|
} | undefined;
|
|
10685
10568
|
}[] | undefined;
|
|
10569
|
+
type?: void | undefined;
|
|
10686
10570
|
};
|
|
10687
10571
|
quantity: number;
|
|
10688
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;
|
|
10689
10844
|
}, {
|
|
10690
|
-
code: string;
|
|
10691
10845
|
id: string;
|
|
10692
10846
|
name: string;
|
|
10693
|
-
|
|
10694
|
-
|
|
10695
|
-
|
|
10696
|
-
|
|
10697
|
-
|
|
10698
|
-
|
|
10699
|
-
|
|
10700
|
-
|
|
10701
|
-
|
|
10702
|
-
|
|
10703
|
-
|
|
10704
|
-
|
|
10705
|
-
|
|
10706
|
-
|
|
10707
|
-
|
|
10708
|
-
|
|
10709
|
-
|
|
10710
|
-
defaultVariation?: {
|
|
10711
|
-
id: string;
|
|
10712
|
-
name: string;
|
|
10713
|
-
originalPrice: Record<string, number>;
|
|
10714
|
-
price: Record<string, number>;
|
|
10715
|
-
hasDiscount: boolean;
|
|
10716
|
-
discount?: {
|
|
10717
|
-
type: "PercentageOffDiscount";
|
|
10718
|
-
name: string;
|
|
10719
|
-
percentage: number;
|
|
10720
|
-
total: Record<string, number>;
|
|
10721
|
-
description?: string | undefined;
|
|
10722
|
-
} | {
|
|
10723
|
-
type: "FlatAmountOffDiscount";
|
|
10724
|
-
name: string;
|
|
10725
|
-
total: Record<string, number>;
|
|
10726
|
-
description?: string | undefined;
|
|
10727
|
-
} | undefined;
|
|
10728
|
-
} | undefined;
|
|
10729
|
-
variations?: {
|
|
10730
|
-
id: string;
|
|
10731
|
-
name: string;
|
|
10732
|
-
originalPrice: Record<string, number>;
|
|
10733
|
-
price: Record<string, number>;
|
|
10734
|
-
hasDiscount: boolean;
|
|
10735
|
-
discount?: {
|
|
10736
|
-
type: "PercentageOffDiscount";
|
|
10737
|
-
name: string;
|
|
10738
|
-
percentage: number;
|
|
10739
|
-
total: Record<string, number>;
|
|
10740
|
-
description?: string | undefined;
|
|
10741
|
-
} | {
|
|
10742
|
-
type: "FlatAmountOffDiscount";
|
|
10743
|
-
name: string;
|
|
10744
|
-
total: Record<string, number>;
|
|
10745
|
-
description?: string | undefined;
|
|
10746
|
-
} | undefined;
|
|
10747
|
-
}[] | undefined;
|
|
10748
|
-
type?: void | undefined;
|
|
10749
|
-
};
|
|
10750
|
-
quantity: number;
|
|
10751
|
-
}[];
|
|
10752
|
-
redeemsBundles: {
|
|
10753
|
-
value: {
|
|
10754
|
-
id: string;
|
|
10755
|
-
name: string;
|
|
10756
|
-
tagline: string;
|
|
10757
|
-
iconUrl: string | null;
|
|
10758
|
-
owned: boolean;
|
|
10759
|
-
partial: boolean;
|
|
10760
|
-
products: ({
|
|
10761
|
-
id: string;
|
|
10762
|
-
name: string;
|
|
10763
|
-
tagline: string;
|
|
10764
|
-
iconUrl: string | null;
|
|
10765
|
-
owned: boolean;
|
|
10766
|
-
currentVersion?: string | undefined;
|
|
10767
|
-
downloads?: {
|
|
10768
|
-
path: string | null;
|
|
10769
|
-
name: string;
|
|
10770
|
-
key: string;
|
|
10771
|
-
platform: Platform;
|
|
10772
|
-
size: number;
|
|
10773
|
-
}[] | undefined;
|
|
10774
|
-
defaultVariation?: {
|
|
10775
|
-
id: string;
|
|
10776
|
-
name: string;
|
|
10777
|
-
originalPrice: Record<string, number>;
|
|
10778
|
-
price: Record<string, number>;
|
|
10779
|
-
hasDiscount: boolean;
|
|
10780
|
-
discount?: {
|
|
10781
|
-
type: "PercentageOffDiscount";
|
|
10782
|
-
name: string;
|
|
10783
|
-
percentage: number;
|
|
10784
|
-
total: Record<string, number>;
|
|
10785
|
-
description?: string | undefined;
|
|
10786
|
-
} | {
|
|
10787
|
-
type: "FlatAmountOffDiscount";
|
|
10788
|
-
name: string;
|
|
10789
|
-
total: Record<string, number>;
|
|
10790
|
-
description?: string | undefined;
|
|
10791
|
-
} | undefined;
|
|
10792
|
-
} | undefined;
|
|
10793
|
-
variations?: {
|
|
10794
|
-
id: string;
|
|
10795
|
-
name: string;
|
|
10796
|
-
originalPrice: Record<string, number>;
|
|
10797
|
-
price: Record<string, number>;
|
|
10798
|
-
hasDiscount: boolean;
|
|
10799
|
-
discount?: {
|
|
10800
|
-
type: "PercentageOffDiscount";
|
|
10801
|
-
name: string;
|
|
10802
|
-
percentage: number;
|
|
10803
|
-
total: Record<string, number>;
|
|
10804
|
-
description?: string | undefined;
|
|
10805
|
-
} | {
|
|
10806
|
-
type: "FlatAmountOffDiscount";
|
|
10807
|
-
name: string;
|
|
10808
|
-
total: Record<string, number>;
|
|
10809
|
-
description?: string | undefined;
|
|
10810
|
-
} | undefined;
|
|
10811
|
-
}[] | undefined;
|
|
10812
|
-
type?: void | undefined;
|
|
10813
|
-
} & {
|
|
10814
|
-
included: boolean;
|
|
10815
|
-
})[];
|
|
10816
|
-
defaultVariation?: {
|
|
10817
|
-
id: string;
|
|
10818
|
-
name: string;
|
|
10819
|
-
originalPrice: Record<string, number>;
|
|
10820
|
-
price: Record<string, number>;
|
|
10821
|
-
hasDiscount: boolean;
|
|
10822
|
-
discount?: {
|
|
10823
|
-
type: "PercentageOffDiscount";
|
|
10824
|
-
name: string;
|
|
10825
|
-
percentage: number;
|
|
10826
|
-
total: Record<string, number>;
|
|
10827
|
-
description?: string | undefined;
|
|
10828
|
-
} | {
|
|
10829
|
-
type: "FlatAmountOffDiscount";
|
|
10830
|
-
name: string;
|
|
10831
|
-
total: Record<string, number>;
|
|
10832
|
-
description?: string | undefined;
|
|
10833
|
-
} | undefined;
|
|
10834
|
-
} | undefined;
|
|
10835
|
-
variations?: {
|
|
10836
|
-
id: string;
|
|
10837
|
-
name: string;
|
|
10838
|
-
originalPrice: Record<string, number>;
|
|
10839
|
-
price: Record<string, number>;
|
|
10840
|
-
hasDiscount: boolean;
|
|
10841
|
-
discount?: {
|
|
10842
|
-
type: "PercentageOffDiscount";
|
|
10843
|
-
name: string;
|
|
10844
|
-
percentage: number;
|
|
10845
|
-
total: Record<string, number>;
|
|
10846
|
-
description?: string | undefined;
|
|
10847
|
-
} | {
|
|
10848
|
-
type: "FlatAmountOffDiscount";
|
|
10849
|
-
name: string;
|
|
10850
|
-
total: Record<string, number>;
|
|
10851
|
-
description?: string | undefined;
|
|
10852
|
-
} | undefined;
|
|
10853
|
-
}[] | undefined;
|
|
10854
|
-
type?: void | undefined;
|
|
10855
|
-
};
|
|
10856
|
-
quantity: number;
|
|
10857
|
-
}[];
|
|
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;
|
|
10858
10864
|
}>;
|
|
10859
10865
|
|
|
10860
|
-
|
|
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>;
|
|
10861
10874
|
|
|
10862
|
-
declare class
|
|
10875
|
+
declare class ProductEndpoints {
|
|
10863
10876
|
private api;
|
|
10864
10877
|
constructor(api: MoonbaseApi);
|
|
10865
|
-
|
|
10866
|
-
|
|
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;
|
|
10867
10889
|
}
|
|
10868
10890
|
|
|
10869
10891
|
declare const storefrontProductSchema: z.ZodObject<{
|
|
@@ -11449,11 +11471,11 @@ declare const storefrontBundleSchema: z.ZodObject<{
|
|
|
11449
11471
|
}[] | undefined;
|
|
11450
11472
|
type?: void | undefined;
|
|
11451
11473
|
}>, z.ZodObject<{
|
|
11452
|
-
included: z.ZodBoolean
|
|
11474
|
+
included: z.ZodOptional<z.ZodBoolean>;
|
|
11453
11475
|
}, "strip", z.ZodTypeAny, {
|
|
11454
|
-
included
|
|
11476
|
+
included?: boolean | undefined;
|
|
11455
11477
|
}, {
|
|
11456
|
-
included
|
|
11478
|
+
included?: boolean | undefined;
|
|
11457
11479
|
}>>, "many">;
|
|
11458
11480
|
defaultVariation: z.ZodOptional<z.ZodObject<{
|
|
11459
11481
|
id: z.ZodString;
|
|
@@ -11672,7 +11694,7 @@ declare const storefrontBundleSchema: z.ZodObject<{
|
|
|
11672
11694
|
} | undefined;
|
|
11673
11695
|
}[] | undefined;
|
|
11674
11696
|
} & {
|
|
11675
|
-
included
|
|
11697
|
+
included?: boolean | undefined;
|
|
11676
11698
|
})[];
|
|
11677
11699
|
defaultVariation?: {
|
|
11678
11700
|
id: string;
|
|
@@ -11773,7 +11795,7 @@ declare const storefrontBundleSchema: z.ZodObject<{
|
|
|
11773
11795
|
}[] | undefined;
|
|
11774
11796
|
type?: void | undefined;
|
|
11775
11797
|
} & {
|
|
11776
|
-
included
|
|
11798
|
+
included?: boolean | undefined;
|
|
11777
11799
|
})[];
|
|
11778
11800
|
defaultVariation?: {
|
|
11779
11801
|
id: string;
|
|
@@ -12400,11 +12422,11 @@ declare const storefrontSchema: z.ZodObject<{
|
|
|
12400
12422
|
}[] | undefined;
|
|
12401
12423
|
type?: void | undefined;
|
|
12402
12424
|
}>, z.ZodObject<{
|
|
12403
|
-
included: z.ZodBoolean
|
|
12425
|
+
included: z.ZodOptional<z.ZodBoolean>;
|
|
12404
12426
|
}, "strip", z.ZodTypeAny, {
|
|
12405
|
-
included
|
|
12427
|
+
included?: boolean | undefined;
|
|
12406
12428
|
}, {
|
|
12407
|
-
included
|
|
12429
|
+
included?: boolean | undefined;
|
|
12408
12430
|
}>>, "many">;
|
|
12409
12431
|
defaultVariation: z.ZodOptional<z.ZodObject<{
|
|
12410
12432
|
id: z.ZodString;
|
|
@@ -12623,7 +12645,7 @@ declare const storefrontSchema: z.ZodObject<{
|
|
|
12623
12645
|
} | undefined;
|
|
12624
12646
|
}[] | undefined;
|
|
12625
12647
|
} & {
|
|
12626
|
-
included
|
|
12648
|
+
included?: boolean | undefined;
|
|
12627
12649
|
})[];
|
|
12628
12650
|
defaultVariation?: {
|
|
12629
12651
|
id: string;
|
|
@@ -12724,7 +12746,7 @@ declare const storefrontSchema: z.ZodObject<{
|
|
|
12724
12746
|
}[] | undefined;
|
|
12725
12747
|
type?: void | undefined;
|
|
12726
12748
|
} & {
|
|
12727
|
-
included
|
|
12749
|
+
included?: boolean | undefined;
|
|
12728
12750
|
})[];
|
|
12729
12751
|
defaultVariation?: {
|
|
12730
12752
|
id: string;
|
|
@@ -12884,7 +12906,7 @@ declare const storefrontSchema: z.ZodObject<{
|
|
|
12884
12906
|
} | undefined;
|
|
12885
12907
|
}[] | undefined;
|
|
12886
12908
|
} & {
|
|
12887
|
-
included
|
|
12909
|
+
included?: boolean | undefined;
|
|
12888
12910
|
})[];
|
|
12889
12911
|
defaultVariation?: {
|
|
12890
12912
|
id: string;
|
|
@@ -13042,7 +13064,7 @@ declare const storefrontSchema: z.ZodObject<{
|
|
|
13042
13064
|
}[] | undefined;
|
|
13043
13065
|
type?: void | undefined;
|
|
13044
13066
|
} & {
|
|
13045
|
-
included
|
|
13067
|
+
included?: boolean | undefined;
|
|
13046
13068
|
})[];
|
|
13047
13069
|
defaultVariation?: {
|
|
13048
13070
|
id: string;
|
|
@@ -13116,10 +13138,9 @@ declare class MoonbaseClient {
|
|
|
13116
13138
|
storefront: StorefrontEndpoints;
|
|
13117
13139
|
identity: IdentityEndpoints;
|
|
13118
13140
|
vouchers: VoucherEndpoints;
|
|
13119
|
-
licenses: LicenseEndpoints;
|
|
13120
13141
|
activationRequests: ActivationRequestEndpoints;
|
|
13121
|
-
|
|
13142
|
+
inventory: InventoryEndpoints;
|
|
13122
13143
|
orders: OrderEndpoints;
|
|
13123
13144
|
}
|
|
13124
13145
|
|
|
13125
|
-
export { type Activation, ActivationMethod, type ActivationRequest, ActivationRequestStatus, ActivationStatus, type Address, type BundleLineItem, type CommunicationPreferences, type Download, type License, LicenseStatus, type LineItem, MoonbaseClient, type MoonbaseConfiguration, MoonbaseError, NotAuthenticatedError, NotAuthorizedError, NotFoundError, type OpenOrder, type Order, OrderStatus, type OwnedProduct, type Page, Platform, type PricingVariation, type ProductLineItem, type Quantifiable, type Storefront, type StorefrontBundle, type StorefrontProduct, type User, type Voucher };
|
|
13146
|
+
export { type Activation, ActivationMethod, type ActivationRequest, ActivationRequestStatus, ActivationStatus, type Address, type BundleLineItem, type CommunicationPreferences, type Download, type License, LicenseStatus, type LineItem, MoonbaseClient, type MoonbaseConfiguration, MoonbaseError, NotAuthenticatedError, NotAuthorizedError, NotFoundError, type OpenOrder, type Order, OrderStatus, type OwnedProduct, type Page, Platform, type PricingVariation, type ProductLineItem, type Quantifiable, type Storefront, type StorefrontBundle, type StorefrontProduct, type UrchinTrackingModule, type User, type Voucher, utmToObject };
|