@moonbase.sh/api 0.1.118 → 0.1.120
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 +58 -1
- package/dist/index.d.cts +568 -1
- package/dist/index.d.ts +568 -1
- package/dist/index.js +58 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -84,6 +84,97 @@ declare const activationRequestSchema: z.ZodObject<{
|
|
|
84
84
|
offlineActivationsAllowed: boolean;
|
|
85
85
|
externalId?: string | undefined;
|
|
86
86
|
}>;
|
|
87
|
+
customer: z.ZodOptional<z.ZodObject<{
|
|
88
|
+
id: z.ZodString;
|
|
89
|
+
externalId: z.ZodOptional<z.ZodString>;
|
|
90
|
+
name: z.ZodString;
|
|
91
|
+
businessName: z.ZodNullable<z.ZodString>;
|
|
92
|
+
taxId: z.ZodNullable<z.ZodString>;
|
|
93
|
+
email: z.ZodString;
|
|
94
|
+
numberOfLicenses: z.ZodNumber;
|
|
95
|
+
numberOfTrials: z.ZodNumber;
|
|
96
|
+
emailConfirmed: z.ZodBoolean;
|
|
97
|
+
hasPassword: z.ZodBoolean;
|
|
98
|
+
isDeleted: z.ZodBoolean;
|
|
99
|
+
ownedProducts: z.ZodArray<z.ZodString, "many">;
|
|
100
|
+
address: z.ZodNullable<z.ZodObject<{
|
|
101
|
+
countryCode: z.ZodString;
|
|
102
|
+
streetAddress1: z.ZodString;
|
|
103
|
+
streetAddress2: z.ZodNullable<z.ZodString>;
|
|
104
|
+
locality: z.ZodNullable<z.ZodString>;
|
|
105
|
+
region: z.ZodNullable<z.ZodString>;
|
|
106
|
+
postCode: z.ZodString;
|
|
107
|
+
}, "strip", z.ZodTypeAny, {
|
|
108
|
+
countryCode: string;
|
|
109
|
+
streetAddress1: string;
|
|
110
|
+
streetAddress2: string | null;
|
|
111
|
+
locality: string | null;
|
|
112
|
+
region: string | null;
|
|
113
|
+
postCode: string;
|
|
114
|
+
}, {
|
|
115
|
+
countryCode: string;
|
|
116
|
+
streetAddress1: string;
|
|
117
|
+
streetAddress2: string | null;
|
|
118
|
+
locality: string | null;
|
|
119
|
+
region: string | null;
|
|
120
|
+
postCode: string;
|
|
121
|
+
}>>;
|
|
122
|
+
communicationPreferences: z.ZodObject<{
|
|
123
|
+
newsletterOptIn: z.ZodBoolean;
|
|
124
|
+
}, "strip", z.ZodTypeAny, {
|
|
125
|
+
newsletterOptIn: boolean;
|
|
126
|
+
}, {
|
|
127
|
+
newsletterOptIn: boolean;
|
|
128
|
+
}>;
|
|
129
|
+
}, "strip", z.ZodTypeAny, {
|
|
130
|
+
id: string;
|
|
131
|
+
name: string;
|
|
132
|
+
businessName: string | null;
|
|
133
|
+
taxId: string | null;
|
|
134
|
+
email: string;
|
|
135
|
+
numberOfLicenses: number;
|
|
136
|
+
numberOfTrials: number;
|
|
137
|
+
emailConfirmed: boolean;
|
|
138
|
+
hasPassword: boolean;
|
|
139
|
+
isDeleted: boolean;
|
|
140
|
+
ownedProducts: string[];
|
|
141
|
+
address: {
|
|
142
|
+
countryCode: string;
|
|
143
|
+
streetAddress1: string;
|
|
144
|
+
streetAddress2: string | null;
|
|
145
|
+
locality: string | null;
|
|
146
|
+
region: string | null;
|
|
147
|
+
postCode: string;
|
|
148
|
+
} | null;
|
|
149
|
+
communicationPreferences: {
|
|
150
|
+
newsletterOptIn: boolean;
|
|
151
|
+
};
|
|
152
|
+
externalId?: string | undefined;
|
|
153
|
+
}, {
|
|
154
|
+
id: string;
|
|
155
|
+
name: string;
|
|
156
|
+
businessName: string | null;
|
|
157
|
+
taxId: string | null;
|
|
158
|
+
email: string;
|
|
159
|
+
numberOfLicenses: number;
|
|
160
|
+
numberOfTrials: number;
|
|
161
|
+
emailConfirmed: boolean;
|
|
162
|
+
hasPassword: boolean;
|
|
163
|
+
isDeleted: boolean;
|
|
164
|
+
ownedProducts: string[];
|
|
165
|
+
address: {
|
|
166
|
+
countryCode: string;
|
|
167
|
+
streetAddress1: string;
|
|
168
|
+
streetAddress2: string | null;
|
|
169
|
+
locality: string | null;
|
|
170
|
+
region: string | null;
|
|
171
|
+
postCode: string;
|
|
172
|
+
} | null;
|
|
173
|
+
communicationPreferences: {
|
|
174
|
+
newsletterOptIn: boolean;
|
|
175
|
+
};
|
|
176
|
+
externalId?: string | undefined;
|
|
177
|
+
}>>;
|
|
87
178
|
}, "strip", z.ZodTypeAny, {
|
|
88
179
|
status: ActivationStatus;
|
|
89
180
|
id: string;
|
|
@@ -101,6 +192,31 @@ declare const activationRequestSchema: z.ZodObject<{
|
|
|
101
192
|
offlineActivationsAllowed: boolean;
|
|
102
193
|
externalId?: string | undefined;
|
|
103
194
|
};
|
|
195
|
+
customer?: {
|
|
196
|
+
id: string;
|
|
197
|
+
name: string;
|
|
198
|
+
businessName: string | null;
|
|
199
|
+
taxId: string | null;
|
|
200
|
+
email: string;
|
|
201
|
+
numberOfLicenses: number;
|
|
202
|
+
numberOfTrials: number;
|
|
203
|
+
emailConfirmed: boolean;
|
|
204
|
+
hasPassword: boolean;
|
|
205
|
+
isDeleted: boolean;
|
|
206
|
+
ownedProducts: string[];
|
|
207
|
+
address: {
|
|
208
|
+
countryCode: string;
|
|
209
|
+
streetAddress1: string;
|
|
210
|
+
streetAddress2: string | null;
|
|
211
|
+
locality: string | null;
|
|
212
|
+
region: string | null;
|
|
213
|
+
postCode: string;
|
|
214
|
+
} | null;
|
|
215
|
+
communicationPreferences: {
|
|
216
|
+
newsletterOptIn: boolean;
|
|
217
|
+
};
|
|
218
|
+
externalId?: string | undefined;
|
|
219
|
+
} | undefined;
|
|
104
220
|
}, {
|
|
105
221
|
status: ActivationStatus;
|
|
106
222
|
id: string;
|
|
@@ -118,6 +234,31 @@ declare const activationRequestSchema: z.ZodObject<{
|
|
|
118
234
|
offlineActivationsAllowed: boolean;
|
|
119
235
|
externalId?: string | undefined;
|
|
120
236
|
};
|
|
237
|
+
customer?: {
|
|
238
|
+
id: string;
|
|
239
|
+
name: string;
|
|
240
|
+
businessName: string | null;
|
|
241
|
+
taxId: string | null;
|
|
242
|
+
email: string;
|
|
243
|
+
numberOfLicenses: number;
|
|
244
|
+
numberOfTrials: number;
|
|
245
|
+
emailConfirmed: boolean;
|
|
246
|
+
hasPassword: boolean;
|
|
247
|
+
isDeleted: boolean;
|
|
248
|
+
ownedProducts: string[];
|
|
249
|
+
address: {
|
|
250
|
+
countryCode: string;
|
|
251
|
+
streetAddress1: string;
|
|
252
|
+
streetAddress2: string | null;
|
|
253
|
+
locality: string | null;
|
|
254
|
+
region: string | null;
|
|
255
|
+
postCode: string;
|
|
256
|
+
} | null;
|
|
257
|
+
communicationPreferences: {
|
|
258
|
+
newsletterOptIn: boolean;
|
|
259
|
+
};
|
|
260
|
+
externalId?: string | undefined;
|
|
261
|
+
} | undefined;
|
|
121
262
|
}>>;
|
|
122
263
|
trial: z.ZodOptional<z.ZodObject<{
|
|
123
264
|
id: z.ZodString;
|
|
@@ -274,6 +415,31 @@ declare const activationRequestSchema: z.ZodObject<{
|
|
|
274
415
|
offlineActivationsAllowed: boolean;
|
|
275
416
|
externalId?: string | undefined;
|
|
276
417
|
};
|
|
418
|
+
customer?: {
|
|
419
|
+
id: string;
|
|
420
|
+
name: string;
|
|
421
|
+
businessName: string | null;
|
|
422
|
+
taxId: string | null;
|
|
423
|
+
email: string;
|
|
424
|
+
numberOfLicenses: number;
|
|
425
|
+
numberOfTrials: number;
|
|
426
|
+
emailConfirmed: boolean;
|
|
427
|
+
hasPassword: boolean;
|
|
428
|
+
isDeleted: boolean;
|
|
429
|
+
ownedProducts: string[];
|
|
430
|
+
address: {
|
|
431
|
+
countryCode: string;
|
|
432
|
+
streetAddress1: string;
|
|
433
|
+
streetAddress2: string | null;
|
|
434
|
+
locality: string | null;
|
|
435
|
+
region: string | null;
|
|
436
|
+
postCode: string;
|
|
437
|
+
} | null;
|
|
438
|
+
communicationPreferences: {
|
|
439
|
+
newsletterOptIn: boolean;
|
|
440
|
+
};
|
|
441
|
+
externalId?: string | undefined;
|
|
442
|
+
} | undefined;
|
|
277
443
|
} | undefined;
|
|
278
444
|
trial?: {
|
|
279
445
|
status: TrialStatus;
|
|
@@ -344,6 +510,31 @@ declare const activationRequestSchema: z.ZodObject<{
|
|
|
344
510
|
offlineActivationsAllowed: boolean;
|
|
345
511
|
externalId?: string | undefined;
|
|
346
512
|
};
|
|
513
|
+
customer?: {
|
|
514
|
+
id: string;
|
|
515
|
+
name: string;
|
|
516
|
+
businessName: string | null;
|
|
517
|
+
taxId: string | null;
|
|
518
|
+
email: string;
|
|
519
|
+
numberOfLicenses: number;
|
|
520
|
+
numberOfTrials: number;
|
|
521
|
+
emailConfirmed: boolean;
|
|
522
|
+
hasPassword: boolean;
|
|
523
|
+
isDeleted: boolean;
|
|
524
|
+
ownedProducts: string[];
|
|
525
|
+
address: {
|
|
526
|
+
countryCode: string;
|
|
527
|
+
streetAddress1: string;
|
|
528
|
+
streetAddress2: string | null;
|
|
529
|
+
locality: string | null;
|
|
530
|
+
region: string | null;
|
|
531
|
+
postCode: string;
|
|
532
|
+
} | null;
|
|
533
|
+
communicationPreferences: {
|
|
534
|
+
newsletterOptIn: boolean;
|
|
535
|
+
};
|
|
536
|
+
externalId?: string | undefined;
|
|
537
|
+
} | undefined;
|
|
347
538
|
} | undefined;
|
|
348
539
|
trial?: {
|
|
349
540
|
status: TrialStatus;
|
|
@@ -711,6 +902,97 @@ declare const licenseActivationSchema: z.ZodObject<{
|
|
|
711
902
|
offlineActivationsAllowed: boolean;
|
|
712
903
|
externalId?: string | undefined;
|
|
713
904
|
}>;
|
|
905
|
+
customer: z.ZodOptional<z.ZodObject<{
|
|
906
|
+
id: z.ZodString;
|
|
907
|
+
externalId: z.ZodOptional<z.ZodString>;
|
|
908
|
+
name: z.ZodString;
|
|
909
|
+
businessName: z.ZodNullable<z.ZodString>;
|
|
910
|
+
taxId: z.ZodNullable<z.ZodString>;
|
|
911
|
+
email: z.ZodString;
|
|
912
|
+
numberOfLicenses: z.ZodNumber;
|
|
913
|
+
numberOfTrials: z.ZodNumber;
|
|
914
|
+
emailConfirmed: z.ZodBoolean;
|
|
915
|
+
hasPassword: z.ZodBoolean;
|
|
916
|
+
isDeleted: z.ZodBoolean;
|
|
917
|
+
ownedProducts: z.ZodArray<z.ZodString, "many">;
|
|
918
|
+
address: z.ZodNullable<z.ZodObject<{
|
|
919
|
+
countryCode: z.ZodString;
|
|
920
|
+
streetAddress1: z.ZodString;
|
|
921
|
+
streetAddress2: z.ZodNullable<z.ZodString>;
|
|
922
|
+
locality: z.ZodNullable<z.ZodString>;
|
|
923
|
+
region: z.ZodNullable<z.ZodString>;
|
|
924
|
+
postCode: z.ZodString;
|
|
925
|
+
}, "strip", z.ZodTypeAny, {
|
|
926
|
+
countryCode: string;
|
|
927
|
+
streetAddress1: string;
|
|
928
|
+
streetAddress2: string | null;
|
|
929
|
+
locality: string | null;
|
|
930
|
+
region: string | null;
|
|
931
|
+
postCode: string;
|
|
932
|
+
}, {
|
|
933
|
+
countryCode: string;
|
|
934
|
+
streetAddress1: string;
|
|
935
|
+
streetAddress2: string | null;
|
|
936
|
+
locality: string | null;
|
|
937
|
+
region: string | null;
|
|
938
|
+
postCode: string;
|
|
939
|
+
}>>;
|
|
940
|
+
communicationPreferences: z.ZodObject<{
|
|
941
|
+
newsletterOptIn: z.ZodBoolean;
|
|
942
|
+
}, "strip", z.ZodTypeAny, {
|
|
943
|
+
newsletterOptIn: boolean;
|
|
944
|
+
}, {
|
|
945
|
+
newsletterOptIn: boolean;
|
|
946
|
+
}>;
|
|
947
|
+
}, "strip", z.ZodTypeAny, {
|
|
948
|
+
id: string;
|
|
949
|
+
name: string;
|
|
950
|
+
businessName: string | null;
|
|
951
|
+
taxId: string | null;
|
|
952
|
+
email: string;
|
|
953
|
+
numberOfLicenses: number;
|
|
954
|
+
numberOfTrials: number;
|
|
955
|
+
emailConfirmed: boolean;
|
|
956
|
+
hasPassword: boolean;
|
|
957
|
+
isDeleted: boolean;
|
|
958
|
+
ownedProducts: string[];
|
|
959
|
+
address: {
|
|
960
|
+
countryCode: string;
|
|
961
|
+
streetAddress1: string;
|
|
962
|
+
streetAddress2: string | null;
|
|
963
|
+
locality: string | null;
|
|
964
|
+
region: string | null;
|
|
965
|
+
postCode: string;
|
|
966
|
+
} | null;
|
|
967
|
+
communicationPreferences: {
|
|
968
|
+
newsletterOptIn: boolean;
|
|
969
|
+
};
|
|
970
|
+
externalId?: string | undefined;
|
|
971
|
+
}, {
|
|
972
|
+
id: string;
|
|
973
|
+
name: string;
|
|
974
|
+
businessName: string | null;
|
|
975
|
+
taxId: string | null;
|
|
976
|
+
email: string;
|
|
977
|
+
numberOfLicenses: number;
|
|
978
|
+
numberOfTrials: number;
|
|
979
|
+
emailConfirmed: boolean;
|
|
980
|
+
hasPassword: boolean;
|
|
981
|
+
isDeleted: boolean;
|
|
982
|
+
ownedProducts: string[];
|
|
983
|
+
address: {
|
|
984
|
+
countryCode: string;
|
|
985
|
+
streetAddress1: string;
|
|
986
|
+
streetAddress2: string | null;
|
|
987
|
+
locality: string | null;
|
|
988
|
+
region: string | null;
|
|
989
|
+
postCode: string;
|
|
990
|
+
} | null;
|
|
991
|
+
communicationPreferences: {
|
|
992
|
+
newsletterOptIn: boolean;
|
|
993
|
+
};
|
|
994
|
+
externalId?: string | undefined;
|
|
995
|
+
}>>;
|
|
714
996
|
}, "strip", z.ZodTypeAny, {
|
|
715
997
|
status: ActivationStatus;
|
|
716
998
|
id: string;
|
|
@@ -728,6 +1010,31 @@ declare const licenseActivationSchema: z.ZodObject<{
|
|
|
728
1010
|
offlineActivationsAllowed: boolean;
|
|
729
1011
|
externalId?: string | undefined;
|
|
730
1012
|
};
|
|
1013
|
+
customer?: {
|
|
1014
|
+
id: string;
|
|
1015
|
+
name: string;
|
|
1016
|
+
businessName: string | null;
|
|
1017
|
+
taxId: string | null;
|
|
1018
|
+
email: string;
|
|
1019
|
+
numberOfLicenses: number;
|
|
1020
|
+
numberOfTrials: number;
|
|
1021
|
+
emailConfirmed: boolean;
|
|
1022
|
+
hasPassword: boolean;
|
|
1023
|
+
isDeleted: boolean;
|
|
1024
|
+
ownedProducts: string[];
|
|
1025
|
+
address: {
|
|
1026
|
+
countryCode: string;
|
|
1027
|
+
streetAddress1: string;
|
|
1028
|
+
streetAddress2: string | null;
|
|
1029
|
+
locality: string | null;
|
|
1030
|
+
region: string | null;
|
|
1031
|
+
postCode: string;
|
|
1032
|
+
} | null;
|
|
1033
|
+
communicationPreferences: {
|
|
1034
|
+
newsletterOptIn: boolean;
|
|
1035
|
+
};
|
|
1036
|
+
externalId?: string | undefined;
|
|
1037
|
+
} | undefined;
|
|
731
1038
|
}, {
|
|
732
1039
|
status: ActivationStatus;
|
|
733
1040
|
id: string;
|
|
@@ -745,6 +1052,31 @@ declare const licenseActivationSchema: z.ZodObject<{
|
|
|
745
1052
|
offlineActivationsAllowed: boolean;
|
|
746
1053
|
externalId?: string | undefined;
|
|
747
1054
|
};
|
|
1055
|
+
customer?: {
|
|
1056
|
+
id: string;
|
|
1057
|
+
name: string;
|
|
1058
|
+
businessName: string | null;
|
|
1059
|
+
taxId: string | null;
|
|
1060
|
+
email: string;
|
|
1061
|
+
numberOfLicenses: number;
|
|
1062
|
+
numberOfTrials: number;
|
|
1063
|
+
emailConfirmed: boolean;
|
|
1064
|
+
hasPassword: boolean;
|
|
1065
|
+
isDeleted: boolean;
|
|
1066
|
+
ownedProducts: string[];
|
|
1067
|
+
address: {
|
|
1068
|
+
countryCode: string;
|
|
1069
|
+
streetAddress1: string;
|
|
1070
|
+
streetAddress2: string | null;
|
|
1071
|
+
locality: string | null;
|
|
1072
|
+
region: string | null;
|
|
1073
|
+
postCode: string;
|
|
1074
|
+
} | null;
|
|
1075
|
+
communicationPreferences: {
|
|
1076
|
+
newsletterOptIn: boolean;
|
|
1077
|
+
};
|
|
1078
|
+
externalId?: string | undefined;
|
|
1079
|
+
} | undefined;
|
|
748
1080
|
}>;
|
|
749
1081
|
declare const importLicenseRequestSchema: z.ZodObject<{
|
|
750
1082
|
ownerId: z.ZodString;
|
|
@@ -959,6 +1291,240 @@ declare class TrialEndpoints {
|
|
|
959
1291
|
import(trial: ImportTrialRequest): Promise<Trial>;
|
|
960
1292
|
}
|
|
961
1293
|
|
|
1294
|
+
declare const voucherSchema: z.ZodObject<{
|
|
1295
|
+
id: z.ZodString;
|
|
1296
|
+
description: z.ZodString;
|
|
1297
|
+
numberOfCodes: z.ZodNumber;
|
|
1298
|
+
numberOfRedemptions: z.ZodNumber;
|
|
1299
|
+
redeemsProducts: z.ZodArray<z.ZodObject<{
|
|
1300
|
+
value: z.ZodObject<{
|
|
1301
|
+
id: z.ZodString;
|
|
1302
|
+
name: z.ZodString;
|
|
1303
|
+
tagline: z.ZodString;
|
|
1304
|
+
description: z.ZodString;
|
|
1305
|
+
website: z.ZodNullable<z.ZodString>;
|
|
1306
|
+
iconUrl: z.ZodNullable<z.ZodString>;
|
|
1307
|
+
status: z.ZodNativeEnum<typeof ProductStatus>;
|
|
1308
|
+
purchasable: z.ZodBoolean;
|
|
1309
|
+
currentReleaseVersion: z.ZodNullable<z.ZodString>;
|
|
1310
|
+
}, "strip", z.ZodTypeAny, {
|
|
1311
|
+
status: ProductStatus;
|
|
1312
|
+
id: string;
|
|
1313
|
+
name: string;
|
|
1314
|
+
tagline: string;
|
|
1315
|
+
description: string;
|
|
1316
|
+
website: string | null;
|
|
1317
|
+
iconUrl: string | null;
|
|
1318
|
+
purchasable: boolean;
|
|
1319
|
+
currentReleaseVersion: string | null;
|
|
1320
|
+
}, {
|
|
1321
|
+
status: ProductStatus;
|
|
1322
|
+
id: string;
|
|
1323
|
+
name: string;
|
|
1324
|
+
tagline: string;
|
|
1325
|
+
description: string;
|
|
1326
|
+
website: string | null;
|
|
1327
|
+
iconUrl: string | null;
|
|
1328
|
+
purchasable: boolean;
|
|
1329
|
+
currentReleaseVersion: string | null;
|
|
1330
|
+
}>;
|
|
1331
|
+
quantity: z.ZodNumber;
|
|
1332
|
+
}, "strip", z.ZodTypeAny, {
|
|
1333
|
+
value: {
|
|
1334
|
+
status: ProductStatus;
|
|
1335
|
+
id: string;
|
|
1336
|
+
name: string;
|
|
1337
|
+
tagline: string;
|
|
1338
|
+
description: string;
|
|
1339
|
+
website: string | null;
|
|
1340
|
+
iconUrl: string | null;
|
|
1341
|
+
purchasable: boolean;
|
|
1342
|
+
currentReleaseVersion: string | null;
|
|
1343
|
+
};
|
|
1344
|
+
quantity: number;
|
|
1345
|
+
}, {
|
|
1346
|
+
value: {
|
|
1347
|
+
status: ProductStatus;
|
|
1348
|
+
id: string;
|
|
1349
|
+
name: string;
|
|
1350
|
+
tagline: string;
|
|
1351
|
+
description: string;
|
|
1352
|
+
website: string | null;
|
|
1353
|
+
iconUrl: string | null;
|
|
1354
|
+
purchasable: boolean;
|
|
1355
|
+
currentReleaseVersion: string | null;
|
|
1356
|
+
};
|
|
1357
|
+
quantity: number;
|
|
1358
|
+
}>, "many">;
|
|
1359
|
+
redeemsBundles: z.ZodArray<z.ZodObject<{
|
|
1360
|
+
value: z.ZodObject<{
|
|
1361
|
+
id: z.ZodString;
|
|
1362
|
+
name: z.ZodString;
|
|
1363
|
+
tagline: z.ZodString;
|
|
1364
|
+
description: z.ZodString;
|
|
1365
|
+
iconUrl: z.ZodNullable<z.ZodString>;
|
|
1366
|
+
purchasable: z.ZodBoolean;
|
|
1367
|
+
partialPurchaseEnabled: z.ZodBoolean;
|
|
1368
|
+
}, "strip", z.ZodTypeAny, {
|
|
1369
|
+
id: string;
|
|
1370
|
+
name: string;
|
|
1371
|
+
tagline: string;
|
|
1372
|
+
description: string;
|
|
1373
|
+
iconUrl: string | null;
|
|
1374
|
+
purchasable: boolean;
|
|
1375
|
+
partialPurchaseEnabled: boolean;
|
|
1376
|
+
}, {
|
|
1377
|
+
id: string;
|
|
1378
|
+
name: string;
|
|
1379
|
+
tagline: string;
|
|
1380
|
+
description: string;
|
|
1381
|
+
iconUrl: string | null;
|
|
1382
|
+
purchasable: boolean;
|
|
1383
|
+
partialPurchaseEnabled: boolean;
|
|
1384
|
+
}>;
|
|
1385
|
+
quantity: z.ZodNumber;
|
|
1386
|
+
}, "strip", z.ZodTypeAny, {
|
|
1387
|
+
value: {
|
|
1388
|
+
id: string;
|
|
1389
|
+
name: string;
|
|
1390
|
+
tagline: string;
|
|
1391
|
+
description: string;
|
|
1392
|
+
iconUrl: string | null;
|
|
1393
|
+
purchasable: boolean;
|
|
1394
|
+
partialPurchaseEnabled: boolean;
|
|
1395
|
+
};
|
|
1396
|
+
quantity: number;
|
|
1397
|
+
}, {
|
|
1398
|
+
value: {
|
|
1399
|
+
id: string;
|
|
1400
|
+
name: string;
|
|
1401
|
+
tagline: string;
|
|
1402
|
+
description: string;
|
|
1403
|
+
iconUrl: string | null;
|
|
1404
|
+
purchasable: boolean;
|
|
1405
|
+
partialPurchaseEnabled: boolean;
|
|
1406
|
+
};
|
|
1407
|
+
quantity: number;
|
|
1408
|
+
}>, "many">;
|
|
1409
|
+
}, "strip", z.ZodTypeAny, {
|
|
1410
|
+
id: string;
|
|
1411
|
+
description: string;
|
|
1412
|
+
numberOfCodes: number;
|
|
1413
|
+
numberOfRedemptions: number;
|
|
1414
|
+
redeemsProducts: {
|
|
1415
|
+
value: {
|
|
1416
|
+
status: ProductStatus;
|
|
1417
|
+
id: string;
|
|
1418
|
+
name: string;
|
|
1419
|
+
tagline: string;
|
|
1420
|
+
description: string;
|
|
1421
|
+
website: string | null;
|
|
1422
|
+
iconUrl: string | null;
|
|
1423
|
+
purchasable: boolean;
|
|
1424
|
+
currentReleaseVersion: string | null;
|
|
1425
|
+
};
|
|
1426
|
+
quantity: number;
|
|
1427
|
+
}[];
|
|
1428
|
+
redeemsBundles: {
|
|
1429
|
+
value: {
|
|
1430
|
+
id: string;
|
|
1431
|
+
name: string;
|
|
1432
|
+
tagline: string;
|
|
1433
|
+
description: string;
|
|
1434
|
+
iconUrl: string | null;
|
|
1435
|
+
purchasable: boolean;
|
|
1436
|
+
partialPurchaseEnabled: boolean;
|
|
1437
|
+
};
|
|
1438
|
+
quantity: number;
|
|
1439
|
+
}[];
|
|
1440
|
+
}, {
|
|
1441
|
+
id: string;
|
|
1442
|
+
description: string;
|
|
1443
|
+
numberOfCodes: number;
|
|
1444
|
+
numberOfRedemptions: number;
|
|
1445
|
+
redeemsProducts: {
|
|
1446
|
+
value: {
|
|
1447
|
+
status: ProductStatus;
|
|
1448
|
+
id: string;
|
|
1449
|
+
name: string;
|
|
1450
|
+
tagline: string;
|
|
1451
|
+
description: string;
|
|
1452
|
+
website: string | null;
|
|
1453
|
+
iconUrl: string | null;
|
|
1454
|
+
purchasable: boolean;
|
|
1455
|
+
currentReleaseVersion: string | null;
|
|
1456
|
+
};
|
|
1457
|
+
quantity: number;
|
|
1458
|
+
}[];
|
|
1459
|
+
redeemsBundles: {
|
|
1460
|
+
value: {
|
|
1461
|
+
id: string;
|
|
1462
|
+
name: string;
|
|
1463
|
+
tagline: string;
|
|
1464
|
+
description: string;
|
|
1465
|
+
iconUrl: string | null;
|
|
1466
|
+
purchasable: boolean;
|
|
1467
|
+
partialPurchaseEnabled: boolean;
|
|
1468
|
+
};
|
|
1469
|
+
quantity: number;
|
|
1470
|
+
}[];
|
|
1471
|
+
}>;
|
|
1472
|
+
declare const createVoucherRequestSchema: z.ZodObject<{
|
|
1473
|
+
name: z.ZodString;
|
|
1474
|
+
description: z.ZodString;
|
|
1475
|
+
productEntitlements: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
1476
|
+
bundleEntitlements: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
1477
|
+
}, "strip", z.ZodTypeAny, {
|
|
1478
|
+
name: string;
|
|
1479
|
+
description: string;
|
|
1480
|
+
productEntitlements?: Record<string, number> | undefined;
|
|
1481
|
+
bundleEntitlements?: Record<string, number> | undefined;
|
|
1482
|
+
}, {
|
|
1483
|
+
name: string;
|
|
1484
|
+
description: string;
|
|
1485
|
+
productEntitlements?: Record<string, number> | undefined;
|
|
1486
|
+
bundleEntitlements?: Record<string, number> | undefined;
|
|
1487
|
+
}>;
|
|
1488
|
+
|
|
1489
|
+
type Voucher = z.infer<typeof voucherSchema>;
|
|
1490
|
+
type CreateVoucherRequest = z.infer<typeof createVoucherRequestSchema>;
|
|
1491
|
+
|
|
1492
|
+
declare class VoucherEndpoints {
|
|
1493
|
+
private api;
|
|
1494
|
+
constructor(api: MoonbaseApi);
|
|
1495
|
+
create(voucher: CreateVoucherRequest): Promise<Voucher>;
|
|
1496
|
+
addCodes(voucherId: string, codes: string[]): Promise<void>;
|
|
1497
|
+
deleteCode(voucherId: string, code: string): Promise<void>;
|
|
1498
|
+
}
|
|
1499
|
+
|
|
1500
|
+
declare const bundleSchema: z.ZodObject<{
|
|
1501
|
+
id: z.ZodString;
|
|
1502
|
+
name: z.ZodString;
|
|
1503
|
+
tagline: z.ZodString;
|
|
1504
|
+
description: z.ZodString;
|
|
1505
|
+
iconUrl: z.ZodNullable<z.ZodString>;
|
|
1506
|
+
purchasable: z.ZodBoolean;
|
|
1507
|
+
partialPurchaseEnabled: z.ZodBoolean;
|
|
1508
|
+
}, "strip", z.ZodTypeAny, {
|
|
1509
|
+
id: string;
|
|
1510
|
+
name: string;
|
|
1511
|
+
tagline: string;
|
|
1512
|
+
description: string;
|
|
1513
|
+
iconUrl: string | null;
|
|
1514
|
+
purchasable: boolean;
|
|
1515
|
+
partialPurchaseEnabled: boolean;
|
|
1516
|
+
}, {
|
|
1517
|
+
id: string;
|
|
1518
|
+
name: string;
|
|
1519
|
+
tagline: string;
|
|
1520
|
+
description: string;
|
|
1521
|
+
iconUrl: string | null;
|
|
1522
|
+
purchasable: boolean;
|
|
1523
|
+
partialPurchaseEnabled: boolean;
|
|
1524
|
+
}>;
|
|
1525
|
+
|
|
1526
|
+
type Bundle = z.infer<typeof bundleSchema>;
|
|
1527
|
+
|
|
962
1528
|
declare const problemDetailsSchema: z.ZodObject<{
|
|
963
1529
|
type: z.ZodString;
|
|
964
1530
|
title: z.ZodString;
|
|
@@ -1013,6 +1579,7 @@ declare class MoonbaseClient {
|
|
|
1013
1579
|
licenses: LicenseEndpoints;
|
|
1014
1580
|
products: ProductEndpoints;
|
|
1015
1581
|
trials: TrialEndpoints;
|
|
1582
|
+
vouchers: VoucherEndpoints;
|
|
1016
1583
|
}
|
|
1017
1584
|
|
|
1018
|
-
export { ActivationMethod, type ActivationRequest, ActivationRequestStatus, ActivationStatus, ConflictError, type Customer, type ImportCustomerRequest, type ImportLicenseRequest, type ImportTrialRequest, type License, type LicenseActivation, LicenseStatus, MoonbaseClient, type MoonbaseConfiguration, MoonbaseError, NotAuthenticatedError, NotAuthorizedError, NotFoundError, type Page, type PricingVariation, type Product, ProductStatus, type Quantifiable, type Trial, TrialStatus };
|
|
1585
|
+
export { ActivationMethod, type ActivationRequest, ActivationRequestStatus, ActivationStatus, type Bundle, ConflictError, type CreateVoucherRequest, type Customer, type ImportCustomerRequest, type ImportLicenseRequest, type ImportTrialRequest, type License, type LicenseActivation, LicenseStatus, MoonbaseClient, type MoonbaseConfiguration, MoonbaseError, NotAuthenticatedError, NotAuthorizedError, NotFoundError, type Page, type PricingVariation, type Product, ProductStatus, type Quantifiable, type Trial, TrialStatus, type Voucher };
|