@moonbase.sh/api 0.2.22 → 0.2.23
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 +5 -6
- package/dist/index.d.cts +332 -149
- package/dist/index.d.ts +332 -149
- package/dist/index.js +5 -6
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -48,6 +48,9 @@ module.exports = __toCommonJS(src_exports);
|
|
|
48
48
|
// src/activationRequests/schemas.ts
|
|
49
49
|
var import_zod5 = require("zod");
|
|
50
50
|
|
|
51
|
+
// src/licenses/schemas.ts
|
|
52
|
+
var import_zod2 = require("zod");
|
|
53
|
+
|
|
51
54
|
// src/customers/schemas.ts
|
|
52
55
|
var import_zod = require("zod");
|
|
53
56
|
var addressSchema = import_zod.z.object({
|
|
@@ -87,9 +90,6 @@ var importCustomerRequestSchema = import_zod.z.object({
|
|
|
87
90
|
createdAt: import_zod.z.date().optional()
|
|
88
91
|
});
|
|
89
92
|
|
|
90
|
-
// src/licenses/schemas.ts
|
|
91
|
-
var import_zod2 = require("zod");
|
|
92
|
-
|
|
93
93
|
// src/licenses/models.ts
|
|
94
94
|
var LicenseStatus = /* @__PURE__ */ ((LicenseStatus2) => {
|
|
95
95
|
LicenseStatus2["Active"] = "Active";
|
|
@@ -186,7 +186,7 @@ var trialSchema = import_zod4.z.object({
|
|
|
186
186
|
status: import_zod4.z.nativeEnum(TrialStatus),
|
|
187
187
|
expiresAt: import_zod4.z.coerce.date(),
|
|
188
188
|
lastValidatedAt: import_zod4.z.coerce.date(),
|
|
189
|
-
|
|
189
|
+
customer: customerSchema.optional()
|
|
190
190
|
});
|
|
191
191
|
var importTrialRequestSchema = import_zod4.z.object({
|
|
192
192
|
productId: import_zod4.z.string(),
|
|
@@ -215,8 +215,7 @@ var activationRequestSchema = import_zod5.z.object({
|
|
|
215
215
|
status: import_zod5.z.nativeEnum(ActivationRequestStatus),
|
|
216
216
|
product: productSchema,
|
|
217
217
|
activation: licenseActivationSchema.optional(),
|
|
218
|
-
trial: trialSchema.optional()
|
|
219
|
-
customer: customerSchema.optional()
|
|
218
|
+
trial: trialSchema.optional()
|
|
220
219
|
});
|
|
221
220
|
|
|
222
221
|
// src/activationRequests/endpoints.ts
|
package/dist/index.d.cts
CHANGED
|
@@ -269,118 +269,165 @@ declare const activationRequestSchema: z.ZodObject<{
|
|
|
269
269
|
status: z.ZodNativeEnum<typeof TrialStatus>;
|
|
270
270
|
expiresAt: z.ZodDate;
|
|
271
271
|
lastValidatedAt: z.ZodDate;
|
|
272
|
-
|
|
272
|
+
customer: z.ZodOptional<z.ZodObject<{
|
|
273
|
+
id: z.ZodString;
|
|
274
|
+
externalId: z.ZodOptional<z.ZodString>;
|
|
275
|
+
name: z.ZodString;
|
|
276
|
+
businessName: z.ZodNullable<z.ZodString>;
|
|
277
|
+
taxId: z.ZodNullable<z.ZodString>;
|
|
278
|
+
email: z.ZodString;
|
|
279
|
+
numberOfLicenses: z.ZodNumber;
|
|
280
|
+
numberOfTrials: z.ZodNumber;
|
|
281
|
+
emailConfirmed: z.ZodBoolean;
|
|
282
|
+
hasPassword: z.ZodBoolean;
|
|
283
|
+
isDeleted: z.ZodBoolean;
|
|
284
|
+
ownedProducts: z.ZodArray<z.ZodString, "many">;
|
|
285
|
+
address: z.ZodNullable<z.ZodObject<{
|
|
286
|
+
countryCode: z.ZodString;
|
|
287
|
+
streetAddress1: z.ZodString;
|
|
288
|
+
streetAddress2: z.ZodNullable<z.ZodString>;
|
|
289
|
+
locality: z.ZodNullable<z.ZodString>;
|
|
290
|
+
region: z.ZodNullable<z.ZodString>;
|
|
291
|
+
postCode: z.ZodString;
|
|
292
|
+
}, "strip", z.ZodTypeAny, {
|
|
293
|
+
countryCode: string;
|
|
294
|
+
streetAddress1: string;
|
|
295
|
+
streetAddress2: string | null;
|
|
296
|
+
locality: string | null;
|
|
297
|
+
region: string | null;
|
|
298
|
+
postCode: string;
|
|
299
|
+
}, {
|
|
300
|
+
countryCode: string;
|
|
301
|
+
streetAddress1: string;
|
|
302
|
+
streetAddress2: string | null;
|
|
303
|
+
locality: string | null;
|
|
304
|
+
region: string | null;
|
|
305
|
+
postCode: string;
|
|
306
|
+
}>>;
|
|
307
|
+
communicationPreferences: z.ZodObject<{
|
|
308
|
+
newsletterOptIn: z.ZodBoolean;
|
|
309
|
+
}, "strip", z.ZodTypeAny, {
|
|
310
|
+
newsletterOptIn: boolean;
|
|
311
|
+
}, {
|
|
312
|
+
newsletterOptIn: boolean;
|
|
313
|
+
}>;
|
|
314
|
+
}, "strip", z.ZodTypeAny, {
|
|
315
|
+
id: string;
|
|
316
|
+
name: string;
|
|
317
|
+
businessName: string | null;
|
|
318
|
+
taxId: string | null;
|
|
319
|
+
email: string;
|
|
320
|
+
numberOfLicenses: number;
|
|
321
|
+
numberOfTrials: number;
|
|
322
|
+
emailConfirmed: boolean;
|
|
323
|
+
hasPassword: boolean;
|
|
324
|
+
isDeleted: boolean;
|
|
325
|
+
ownedProducts: string[];
|
|
326
|
+
address: {
|
|
327
|
+
countryCode: string;
|
|
328
|
+
streetAddress1: string;
|
|
329
|
+
streetAddress2: string | null;
|
|
330
|
+
locality: string | null;
|
|
331
|
+
region: string | null;
|
|
332
|
+
postCode: string;
|
|
333
|
+
} | null;
|
|
334
|
+
communicationPreferences: {
|
|
335
|
+
newsletterOptIn: boolean;
|
|
336
|
+
};
|
|
337
|
+
externalId?: string | undefined;
|
|
338
|
+
}, {
|
|
339
|
+
id: string;
|
|
340
|
+
name: string;
|
|
341
|
+
businessName: string | null;
|
|
342
|
+
taxId: string | null;
|
|
343
|
+
email: string;
|
|
344
|
+
numberOfLicenses: number;
|
|
345
|
+
numberOfTrials: number;
|
|
346
|
+
emailConfirmed: boolean;
|
|
347
|
+
hasPassword: boolean;
|
|
348
|
+
isDeleted: boolean;
|
|
349
|
+
ownedProducts: string[];
|
|
350
|
+
address: {
|
|
351
|
+
countryCode: string;
|
|
352
|
+
streetAddress1: string;
|
|
353
|
+
streetAddress2: string | null;
|
|
354
|
+
locality: string | null;
|
|
355
|
+
region: string | null;
|
|
356
|
+
postCode: string;
|
|
357
|
+
} | null;
|
|
358
|
+
communicationPreferences: {
|
|
359
|
+
newsletterOptIn: boolean;
|
|
360
|
+
};
|
|
361
|
+
externalId?: string | undefined;
|
|
362
|
+
}>>;
|
|
273
363
|
}, "strip", z.ZodTypeAny, {
|
|
274
364
|
status: TrialStatus;
|
|
275
365
|
id: string;
|
|
276
366
|
productId: string;
|
|
277
|
-
ownerId: string | null;
|
|
278
367
|
lastValidatedAt: Date;
|
|
279
368
|
deviceName: string;
|
|
280
369
|
deviceSignature: string;
|
|
281
370
|
expiresAt: Date;
|
|
282
371
|
externalId?: string | undefined;
|
|
372
|
+
customer?: {
|
|
373
|
+
id: string;
|
|
374
|
+
name: string;
|
|
375
|
+
businessName: string | null;
|
|
376
|
+
taxId: string | null;
|
|
377
|
+
email: string;
|
|
378
|
+
numberOfLicenses: number;
|
|
379
|
+
numberOfTrials: number;
|
|
380
|
+
emailConfirmed: boolean;
|
|
381
|
+
hasPassword: boolean;
|
|
382
|
+
isDeleted: boolean;
|
|
383
|
+
ownedProducts: string[];
|
|
384
|
+
address: {
|
|
385
|
+
countryCode: string;
|
|
386
|
+
streetAddress1: string;
|
|
387
|
+
streetAddress2: string | null;
|
|
388
|
+
locality: string | null;
|
|
389
|
+
region: string | null;
|
|
390
|
+
postCode: string;
|
|
391
|
+
} | null;
|
|
392
|
+
communicationPreferences: {
|
|
393
|
+
newsletterOptIn: boolean;
|
|
394
|
+
};
|
|
395
|
+
externalId?: string | undefined;
|
|
396
|
+
} | undefined;
|
|
283
397
|
}, {
|
|
284
398
|
status: TrialStatus;
|
|
285
399
|
id: string;
|
|
286
400
|
productId: string;
|
|
287
|
-
ownerId: string | null;
|
|
288
401
|
lastValidatedAt: Date;
|
|
289
402
|
deviceName: string;
|
|
290
403
|
deviceSignature: string;
|
|
291
404
|
expiresAt: Date;
|
|
292
405
|
externalId?: string | undefined;
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
locality: string | null;
|
|
319
|
-
region: string | null;
|
|
320
|
-
postCode: string;
|
|
321
|
-
}, {
|
|
322
|
-
countryCode: string;
|
|
323
|
-
streetAddress1: string;
|
|
324
|
-
streetAddress2: string | null;
|
|
325
|
-
locality: string | null;
|
|
326
|
-
region: string | null;
|
|
327
|
-
postCode: string;
|
|
328
|
-
}>>;
|
|
329
|
-
communicationPreferences: z.ZodObject<{
|
|
330
|
-
newsletterOptIn: z.ZodBoolean;
|
|
331
|
-
}, "strip", z.ZodTypeAny, {
|
|
332
|
-
newsletterOptIn: boolean;
|
|
333
|
-
}, {
|
|
334
|
-
newsletterOptIn: boolean;
|
|
335
|
-
}>;
|
|
336
|
-
}, "strip", z.ZodTypeAny, {
|
|
337
|
-
id: string;
|
|
338
|
-
name: string;
|
|
339
|
-
businessName: string | null;
|
|
340
|
-
taxId: string | null;
|
|
341
|
-
email: string;
|
|
342
|
-
numberOfLicenses: number;
|
|
343
|
-
numberOfTrials: number;
|
|
344
|
-
emailConfirmed: boolean;
|
|
345
|
-
hasPassword: boolean;
|
|
346
|
-
isDeleted: boolean;
|
|
347
|
-
ownedProducts: string[];
|
|
348
|
-
address: {
|
|
349
|
-
countryCode: string;
|
|
350
|
-
streetAddress1: string;
|
|
351
|
-
streetAddress2: string | null;
|
|
352
|
-
locality: string | null;
|
|
353
|
-
region: string | null;
|
|
354
|
-
postCode: string;
|
|
355
|
-
} | null;
|
|
356
|
-
communicationPreferences: {
|
|
357
|
-
newsletterOptIn: boolean;
|
|
358
|
-
};
|
|
359
|
-
externalId?: string | undefined;
|
|
360
|
-
}, {
|
|
361
|
-
id: string;
|
|
362
|
-
name: string;
|
|
363
|
-
businessName: string | null;
|
|
364
|
-
taxId: string | null;
|
|
365
|
-
email: string;
|
|
366
|
-
numberOfLicenses: number;
|
|
367
|
-
numberOfTrials: number;
|
|
368
|
-
emailConfirmed: boolean;
|
|
369
|
-
hasPassword: boolean;
|
|
370
|
-
isDeleted: boolean;
|
|
371
|
-
ownedProducts: string[];
|
|
372
|
-
address: {
|
|
373
|
-
countryCode: string;
|
|
374
|
-
streetAddress1: string;
|
|
375
|
-
streetAddress2: string | null;
|
|
376
|
-
locality: string | null;
|
|
377
|
-
region: string | null;
|
|
378
|
-
postCode: string;
|
|
379
|
-
} | null;
|
|
380
|
-
communicationPreferences: {
|
|
381
|
-
newsletterOptIn: boolean;
|
|
382
|
-
};
|
|
383
|
-
externalId?: string | undefined;
|
|
406
|
+
customer?: {
|
|
407
|
+
id: string;
|
|
408
|
+
name: string;
|
|
409
|
+
businessName: string | null;
|
|
410
|
+
taxId: string | null;
|
|
411
|
+
email: string;
|
|
412
|
+
numberOfLicenses: number;
|
|
413
|
+
numberOfTrials: number;
|
|
414
|
+
emailConfirmed: boolean;
|
|
415
|
+
hasPassword: boolean;
|
|
416
|
+
isDeleted: boolean;
|
|
417
|
+
ownedProducts: string[];
|
|
418
|
+
address: {
|
|
419
|
+
countryCode: string;
|
|
420
|
+
streetAddress1: string;
|
|
421
|
+
streetAddress2: string | null;
|
|
422
|
+
locality: string | null;
|
|
423
|
+
region: string | null;
|
|
424
|
+
postCode: string;
|
|
425
|
+
} | null;
|
|
426
|
+
communicationPreferences: {
|
|
427
|
+
newsletterOptIn: boolean;
|
|
428
|
+
};
|
|
429
|
+
externalId?: string | undefined;
|
|
430
|
+
} | undefined;
|
|
384
431
|
}>>;
|
|
385
432
|
}, "strip", z.ZodTypeAny, {
|
|
386
433
|
status: ActivationRequestStatus;
|
|
@@ -445,37 +492,36 @@ declare const activationRequestSchema: z.ZodObject<{
|
|
|
445
492
|
status: TrialStatus;
|
|
446
493
|
id: string;
|
|
447
494
|
productId: string;
|
|
448
|
-
ownerId: string | null;
|
|
449
495
|
lastValidatedAt: Date;
|
|
450
496
|
deviceName: string;
|
|
451
497
|
deviceSignature: string;
|
|
452
498
|
expiresAt: Date;
|
|
453
499
|
externalId?: string | undefined;
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
500
|
+
customer?: {
|
|
501
|
+
id: string;
|
|
502
|
+
name: string;
|
|
503
|
+
businessName: string | null;
|
|
504
|
+
taxId: string | null;
|
|
505
|
+
email: string;
|
|
506
|
+
numberOfLicenses: number;
|
|
507
|
+
numberOfTrials: number;
|
|
508
|
+
emailConfirmed: boolean;
|
|
509
|
+
hasPassword: boolean;
|
|
510
|
+
isDeleted: boolean;
|
|
511
|
+
ownedProducts: string[];
|
|
512
|
+
address: {
|
|
513
|
+
countryCode: string;
|
|
514
|
+
streetAddress1: string;
|
|
515
|
+
streetAddress2: string | null;
|
|
516
|
+
locality: string | null;
|
|
517
|
+
region: string | null;
|
|
518
|
+
postCode: string;
|
|
519
|
+
} | null;
|
|
520
|
+
communicationPreferences: {
|
|
521
|
+
newsletterOptIn: boolean;
|
|
522
|
+
};
|
|
523
|
+
externalId?: string | undefined;
|
|
524
|
+
} | undefined;
|
|
479
525
|
} | undefined;
|
|
480
526
|
}, {
|
|
481
527
|
status: ActivationRequestStatus;
|
|
@@ -540,37 +586,36 @@ declare const activationRequestSchema: z.ZodObject<{
|
|
|
540
586
|
status: TrialStatus;
|
|
541
587
|
id: string;
|
|
542
588
|
productId: string;
|
|
543
|
-
ownerId: string | null;
|
|
544
589
|
lastValidatedAt: Date;
|
|
545
590
|
deviceName: string;
|
|
546
591
|
deviceSignature: string;
|
|
547
592
|
expiresAt: Date;
|
|
548
593
|
externalId?: string | undefined;
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
594
|
+
customer?: {
|
|
595
|
+
id: string;
|
|
596
|
+
name: string;
|
|
597
|
+
businessName: string | null;
|
|
598
|
+
taxId: string | null;
|
|
599
|
+
email: string;
|
|
600
|
+
numberOfLicenses: number;
|
|
601
|
+
numberOfTrials: number;
|
|
602
|
+
emailConfirmed: boolean;
|
|
603
|
+
hasPassword: boolean;
|
|
604
|
+
isDeleted: boolean;
|
|
605
|
+
ownedProducts: string[];
|
|
606
|
+
address: {
|
|
607
|
+
countryCode: string;
|
|
608
|
+
streetAddress1: string;
|
|
609
|
+
streetAddress2: string | null;
|
|
610
|
+
locality: string | null;
|
|
611
|
+
region: string | null;
|
|
612
|
+
postCode: string;
|
|
613
|
+
} | null;
|
|
614
|
+
communicationPreferences: {
|
|
615
|
+
newsletterOptIn: boolean;
|
|
616
|
+
};
|
|
617
|
+
externalId?: string | undefined;
|
|
618
|
+
} | undefined;
|
|
574
619
|
} | undefined;
|
|
575
620
|
}>;
|
|
576
621
|
|
|
@@ -1224,27 +1269,165 @@ declare const trialSchema: z.ZodObject<{
|
|
|
1224
1269
|
status: z.ZodNativeEnum<typeof TrialStatus>;
|
|
1225
1270
|
expiresAt: z.ZodDate;
|
|
1226
1271
|
lastValidatedAt: z.ZodDate;
|
|
1227
|
-
|
|
1272
|
+
customer: z.ZodOptional<z.ZodObject<{
|
|
1273
|
+
id: z.ZodString;
|
|
1274
|
+
externalId: z.ZodOptional<z.ZodString>;
|
|
1275
|
+
name: z.ZodString;
|
|
1276
|
+
businessName: z.ZodNullable<z.ZodString>;
|
|
1277
|
+
taxId: z.ZodNullable<z.ZodString>;
|
|
1278
|
+
email: z.ZodString;
|
|
1279
|
+
numberOfLicenses: z.ZodNumber;
|
|
1280
|
+
numberOfTrials: z.ZodNumber;
|
|
1281
|
+
emailConfirmed: z.ZodBoolean;
|
|
1282
|
+
hasPassword: z.ZodBoolean;
|
|
1283
|
+
isDeleted: z.ZodBoolean;
|
|
1284
|
+
ownedProducts: z.ZodArray<z.ZodString, "many">;
|
|
1285
|
+
address: z.ZodNullable<z.ZodObject<{
|
|
1286
|
+
countryCode: z.ZodString;
|
|
1287
|
+
streetAddress1: z.ZodString;
|
|
1288
|
+
streetAddress2: z.ZodNullable<z.ZodString>;
|
|
1289
|
+
locality: z.ZodNullable<z.ZodString>;
|
|
1290
|
+
region: z.ZodNullable<z.ZodString>;
|
|
1291
|
+
postCode: z.ZodString;
|
|
1292
|
+
}, "strip", z.ZodTypeAny, {
|
|
1293
|
+
countryCode: string;
|
|
1294
|
+
streetAddress1: string;
|
|
1295
|
+
streetAddress2: string | null;
|
|
1296
|
+
locality: string | null;
|
|
1297
|
+
region: string | null;
|
|
1298
|
+
postCode: string;
|
|
1299
|
+
}, {
|
|
1300
|
+
countryCode: string;
|
|
1301
|
+
streetAddress1: string;
|
|
1302
|
+
streetAddress2: string | null;
|
|
1303
|
+
locality: string | null;
|
|
1304
|
+
region: string | null;
|
|
1305
|
+
postCode: string;
|
|
1306
|
+
}>>;
|
|
1307
|
+
communicationPreferences: z.ZodObject<{
|
|
1308
|
+
newsletterOptIn: z.ZodBoolean;
|
|
1309
|
+
}, "strip", z.ZodTypeAny, {
|
|
1310
|
+
newsletterOptIn: boolean;
|
|
1311
|
+
}, {
|
|
1312
|
+
newsletterOptIn: boolean;
|
|
1313
|
+
}>;
|
|
1314
|
+
}, "strip", z.ZodTypeAny, {
|
|
1315
|
+
id: string;
|
|
1316
|
+
name: string;
|
|
1317
|
+
businessName: string | null;
|
|
1318
|
+
taxId: string | null;
|
|
1319
|
+
email: string;
|
|
1320
|
+
numberOfLicenses: number;
|
|
1321
|
+
numberOfTrials: number;
|
|
1322
|
+
emailConfirmed: boolean;
|
|
1323
|
+
hasPassword: boolean;
|
|
1324
|
+
isDeleted: boolean;
|
|
1325
|
+
ownedProducts: string[];
|
|
1326
|
+
address: {
|
|
1327
|
+
countryCode: string;
|
|
1328
|
+
streetAddress1: string;
|
|
1329
|
+
streetAddress2: string | null;
|
|
1330
|
+
locality: string | null;
|
|
1331
|
+
region: string | null;
|
|
1332
|
+
postCode: string;
|
|
1333
|
+
} | null;
|
|
1334
|
+
communicationPreferences: {
|
|
1335
|
+
newsletterOptIn: boolean;
|
|
1336
|
+
};
|
|
1337
|
+
externalId?: string | undefined;
|
|
1338
|
+
}, {
|
|
1339
|
+
id: string;
|
|
1340
|
+
name: string;
|
|
1341
|
+
businessName: string | null;
|
|
1342
|
+
taxId: string | null;
|
|
1343
|
+
email: string;
|
|
1344
|
+
numberOfLicenses: number;
|
|
1345
|
+
numberOfTrials: number;
|
|
1346
|
+
emailConfirmed: boolean;
|
|
1347
|
+
hasPassword: boolean;
|
|
1348
|
+
isDeleted: boolean;
|
|
1349
|
+
ownedProducts: string[];
|
|
1350
|
+
address: {
|
|
1351
|
+
countryCode: string;
|
|
1352
|
+
streetAddress1: string;
|
|
1353
|
+
streetAddress2: string | null;
|
|
1354
|
+
locality: string | null;
|
|
1355
|
+
region: string | null;
|
|
1356
|
+
postCode: string;
|
|
1357
|
+
} | null;
|
|
1358
|
+
communicationPreferences: {
|
|
1359
|
+
newsletterOptIn: boolean;
|
|
1360
|
+
};
|
|
1361
|
+
externalId?: string | undefined;
|
|
1362
|
+
}>>;
|
|
1228
1363
|
}, "strip", z.ZodTypeAny, {
|
|
1229
1364
|
status: TrialStatus;
|
|
1230
1365
|
id: string;
|
|
1231
1366
|
productId: string;
|
|
1232
|
-
ownerId: string | null;
|
|
1233
1367
|
lastValidatedAt: Date;
|
|
1234
1368
|
deviceName: string;
|
|
1235
1369
|
deviceSignature: string;
|
|
1236
1370
|
expiresAt: Date;
|
|
1237
1371
|
externalId?: string | undefined;
|
|
1372
|
+
customer?: {
|
|
1373
|
+
id: string;
|
|
1374
|
+
name: string;
|
|
1375
|
+
businessName: string | null;
|
|
1376
|
+
taxId: string | null;
|
|
1377
|
+
email: string;
|
|
1378
|
+
numberOfLicenses: number;
|
|
1379
|
+
numberOfTrials: number;
|
|
1380
|
+
emailConfirmed: boolean;
|
|
1381
|
+
hasPassword: boolean;
|
|
1382
|
+
isDeleted: boolean;
|
|
1383
|
+
ownedProducts: string[];
|
|
1384
|
+
address: {
|
|
1385
|
+
countryCode: string;
|
|
1386
|
+
streetAddress1: string;
|
|
1387
|
+
streetAddress2: string | null;
|
|
1388
|
+
locality: string | null;
|
|
1389
|
+
region: string | null;
|
|
1390
|
+
postCode: string;
|
|
1391
|
+
} | null;
|
|
1392
|
+
communicationPreferences: {
|
|
1393
|
+
newsletterOptIn: boolean;
|
|
1394
|
+
};
|
|
1395
|
+
externalId?: string | undefined;
|
|
1396
|
+
} | undefined;
|
|
1238
1397
|
}, {
|
|
1239
1398
|
status: TrialStatus;
|
|
1240
1399
|
id: string;
|
|
1241
1400
|
productId: string;
|
|
1242
|
-
ownerId: string | null;
|
|
1243
1401
|
lastValidatedAt: Date;
|
|
1244
1402
|
deviceName: string;
|
|
1245
1403
|
deviceSignature: string;
|
|
1246
1404
|
expiresAt: Date;
|
|
1247
1405
|
externalId?: string | undefined;
|
|
1406
|
+
customer?: {
|
|
1407
|
+
id: string;
|
|
1408
|
+
name: string;
|
|
1409
|
+
businessName: string | null;
|
|
1410
|
+
taxId: string | null;
|
|
1411
|
+
email: string;
|
|
1412
|
+
numberOfLicenses: number;
|
|
1413
|
+
numberOfTrials: number;
|
|
1414
|
+
emailConfirmed: boolean;
|
|
1415
|
+
hasPassword: boolean;
|
|
1416
|
+
isDeleted: boolean;
|
|
1417
|
+
ownedProducts: string[];
|
|
1418
|
+
address: {
|
|
1419
|
+
countryCode: string;
|
|
1420
|
+
streetAddress1: string;
|
|
1421
|
+
streetAddress2: string | null;
|
|
1422
|
+
locality: string | null;
|
|
1423
|
+
region: string | null;
|
|
1424
|
+
postCode: string;
|
|
1425
|
+
} | null;
|
|
1426
|
+
communicationPreferences: {
|
|
1427
|
+
newsletterOptIn: boolean;
|
|
1428
|
+
};
|
|
1429
|
+
externalId?: string | undefined;
|
|
1430
|
+
} | undefined;
|
|
1248
1431
|
}>;
|
|
1249
1432
|
declare const importTrialRequestSchema: z.ZodObject<{
|
|
1250
1433
|
productId: z.ZodString;
|
package/dist/index.d.ts
CHANGED
|
@@ -269,118 +269,165 @@ declare const activationRequestSchema: z.ZodObject<{
|
|
|
269
269
|
status: z.ZodNativeEnum<typeof TrialStatus>;
|
|
270
270
|
expiresAt: z.ZodDate;
|
|
271
271
|
lastValidatedAt: z.ZodDate;
|
|
272
|
-
|
|
272
|
+
customer: z.ZodOptional<z.ZodObject<{
|
|
273
|
+
id: z.ZodString;
|
|
274
|
+
externalId: z.ZodOptional<z.ZodString>;
|
|
275
|
+
name: z.ZodString;
|
|
276
|
+
businessName: z.ZodNullable<z.ZodString>;
|
|
277
|
+
taxId: z.ZodNullable<z.ZodString>;
|
|
278
|
+
email: z.ZodString;
|
|
279
|
+
numberOfLicenses: z.ZodNumber;
|
|
280
|
+
numberOfTrials: z.ZodNumber;
|
|
281
|
+
emailConfirmed: z.ZodBoolean;
|
|
282
|
+
hasPassword: z.ZodBoolean;
|
|
283
|
+
isDeleted: z.ZodBoolean;
|
|
284
|
+
ownedProducts: z.ZodArray<z.ZodString, "many">;
|
|
285
|
+
address: z.ZodNullable<z.ZodObject<{
|
|
286
|
+
countryCode: z.ZodString;
|
|
287
|
+
streetAddress1: z.ZodString;
|
|
288
|
+
streetAddress2: z.ZodNullable<z.ZodString>;
|
|
289
|
+
locality: z.ZodNullable<z.ZodString>;
|
|
290
|
+
region: z.ZodNullable<z.ZodString>;
|
|
291
|
+
postCode: z.ZodString;
|
|
292
|
+
}, "strip", z.ZodTypeAny, {
|
|
293
|
+
countryCode: string;
|
|
294
|
+
streetAddress1: string;
|
|
295
|
+
streetAddress2: string | null;
|
|
296
|
+
locality: string | null;
|
|
297
|
+
region: string | null;
|
|
298
|
+
postCode: string;
|
|
299
|
+
}, {
|
|
300
|
+
countryCode: string;
|
|
301
|
+
streetAddress1: string;
|
|
302
|
+
streetAddress2: string | null;
|
|
303
|
+
locality: string | null;
|
|
304
|
+
region: string | null;
|
|
305
|
+
postCode: string;
|
|
306
|
+
}>>;
|
|
307
|
+
communicationPreferences: z.ZodObject<{
|
|
308
|
+
newsletterOptIn: z.ZodBoolean;
|
|
309
|
+
}, "strip", z.ZodTypeAny, {
|
|
310
|
+
newsletterOptIn: boolean;
|
|
311
|
+
}, {
|
|
312
|
+
newsletterOptIn: boolean;
|
|
313
|
+
}>;
|
|
314
|
+
}, "strip", z.ZodTypeAny, {
|
|
315
|
+
id: string;
|
|
316
|
+
name: string;
|
|
317
|
+
businessName: string | null;
|
|
318
|
+
taxId: string | null;
|
|
319
|
+
email: string;
|
|
320
|
+
numberOfLicenses: number;
|
|
321
|
+
numberOfTrials: number;
|
|
322
|
+
emailConfirmed: boolean;
|
|
323
|
+
hasPassword: boolean;
|
|
324
|
+
isDeleted: boolean;
|
|
325
|
+
ownedProducts: string[];
|
|
326
|
+
address: {
|
|
327
|
+
countryCode: string;
|
|
328
|
+
streetAddress1: string;
|
|
329
|
+
streetAddress2: string | null;
|
|
330
|
+
locality: string | null;
|
|
331
|
+
region: string | null;
|
|
332
|
+
postCode: string;
|
|
333
|
+
} | null;
|
|
334
|
+
communicationPreferences: {
|
|
335
|
+
newsletterOptIn: boolean;
|
|
336
|
+
};
|
|
337
|
+
externalId?: string | undefined;
|
|
338
|
+
}, {
|
|
339
|
+
id: string;
|
|
340
|
+
name: string;
|
|
341
|
+
businessName: string | null;
|
|
342
|
+
taxId: string | null;
|
|
343
|
+
email: string;
|
|
344
|
+
numberOfLicenses: number;
|
|
345
|
+
numberOfTrials: number;
|
|
346
|
+
emailConfirmed: boolean;
|
|
347
|
+
hasPassword: boolean;
|
|
348
|
+
isDeleted: boolean;
|
|
349
|
+
ownedProducts: string[];
|
|
350
|
+
address: {
|
|
351
|
+
countryCode: string;
|
|
352
|
+
streetAddress1: string;
|
|
353
|
+
streetAddress2: string | null;
|
|
354
|
+
locality: string | null;
|
|
355
|
+
region: string | null;
|
|
356
|
+
postCode: string;
|
|
357
|
+
} | null;
|
|
358
|
+
communicationPreferences: {
|
|
359
|
+
newsletterOptIn: boolean;
|
|
360
|
+
};
|
|
361
|
+
externalId?: string | undefined;
|
|
362
|
+
}>>;
|
|
273
363
|
}, "strip", z.ZodTypeAny, {
|
|
274
364
|
status: TrialStatus;
|
|
275
365
|
id: string;
|
|
276
366
|
productId: string;
|
|
277
|
-
ownerId: string | null;
|
|
278
367
|
lastValidatedAt: Date;
|
|
279
368
|
deviceName: string;
|
|
280
369
|
deviceSignature: string;
|
|
281
370
|
expiresAt: Date;
|
|
282
371
|
externalId?: string | undefined;
|
|
372
|
+
customer?: {
|
|
373
|
+
id: string;
|
|
374
|
+
name: string;
|
|
375
|
+
businessName: string | null;
|
|
376
|
+
taxId: string | null;
|
|
377
|
+
email: string;
|
|
378
|
+
numberOfLicenses: number;
|
|
379
|
+
numberOfTrials: number;
|
|
380
|
+
emailConfirmed: boolean;
|
|
381
|
+
hasPassword: boolean;
|
|
382
|
+
isDeleted: boolean;
|
|
383
|
+
ownedProducts: string[];
|
|
384
|
+
address: {
|
|
385
|
+
countryCode: string;
|
|
386
|
+
streetAddress1: string;
|
|
387
|
+
streetAddress2: string | null;
|
|
388
|
+
locality: string | null;
|
|
389
|
+
region: string | null;
|
|
390
|
+
postCode: string;
|
|
391
|
+
} | null;
|
|
392
|
+
communicationPreferences: {
|
|
393
|
+
newsletterOptIn: boolean;
|
|
394
|
+
};
|
|
395
|
+
externalId?: string | undefined;
|
|
396
|
+
} | undefined;
|
|
283
397
|
}, {
|
|
284
398
|
status: TrialStatus;
|
|
285
399
|
id: string;
|
|
286
400
|
productId: string;
|
|
287
|
-
ownerId: string | null;
|
|
288
401
|
lastValidatedAt: Date;
|
|
289
402
|
deviceName: string;
|
|
290
403
|
deviceSignature: string;
|
|
291
404
|
expiresAt: Date;
|
|
292
405
|
externalId?: string | undefined;
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
locality: string | null;
|
|
319
|
-
region: string | null;
|
|
320
|
-
postCode: string;
|
|
321
|
-
}, {
|
|
322
|
-
countryCode: string;
|
|
323
|
-
streetAddress1: string;
|
|
324
|
-
streetAddress2: string | null;
|
|
325
|
-
locality: string | null;
|
|
326
|
-
region: string | null;
|
|
327
|
-
postCode: string;
|
|
328
|
-
}>>;
|
|
329
|
-
communicationPreferences: z.ZodObject<{
|
|
330
|
-
newsletterOptIn: z.ZodBoolean;
|
|
331
|
-
}, "strip", z.ZodTypeAny, {
|
|
332
|
-
newsletterOptIn: boolean;
|
|
333
|
-
}, {
|
|
334
|
-
newsletterOptIn: boolean;
|
|
335
|
-
}>;
|
|
336
|
-
}, "strip", z.ZodTypeAny, {
|
|
337
|
-
id: string;
|
|
338
|
-
name: string;
|
|
339
|
-
businessName: string | null;
|
|
340
|
-
taxId: string | null;
|
|
341
|
-
email: string;
|
|
342
|
-
numberOfLicenses: number;
|
|
343
|
-
numberOfTrials: number;
|
|
344
|
-
emailConfirmed: boolean;
|
|
345
|
-
hasPassword: boolean;
|
|
346
|
-
isDeleted: boolean;
|
|
347
|
-
ownedProducts: string[];
|
|
348
|
-
address: {
|
|
349
|
-
countryCode: string;
|
|
350
|
-
streetAddress1: string;
|
|
351
|
-
streetAddress2: string | null;
|
|
352
|
-
locality: string | null;
|
|
353
|
-
region: string | null;
|
|
354
|
-
postCode: string;
|
|
355
|
-
} | null;
|
|
356
|
-
communicationPreferences: {
|
|
357
|
-
newsletterOptIn: boolean;
|
|
358
|
-
};
|
|
359
|
-
externalId?: string | undefined;
|
|
360
|
-
}, {
|
|
361
|
-
id: string;
|
|
362
|
-
name: string;
|
|
363
|
-
businessName: string | null;
|
|
364
|
-
taxId: string | null;
|
|
365
|
-
email: string;
|
|
366
|
-
numberOfLicenses: number;
|
|
367
|
-
numberOfTrials: number;
|
|
368
|
-
emailConfirmed: boolean;
|
|
369
|
-
hasPassword: boolean;
|
|
370
|
-
isDeleted: boolean;
|
|
371
|
-
ownedProducts: string[];
|
|
372
|
-
address: {
|
|
373
|
-
countryCode: string;
|
|
374
|
-
streetAddress1: string;
|
|
375
|
-
streetAddress2: string | null;
|
|
376
|
-
locality: string | null;
|
|
377
|
-
region: string | null;
|
|
378
|
-
postCode: string;
|
|
379
|
-
} | null;
|
|
380
|
-
communicationPreferences: {
|
|
381
|
-
newsletterOptIn: boolean;
|
|
382
|
-
};
|
|
383
|
-
externalId?: string | undefined;
|
|
406
|
+
customer?: {
|
|
407
|
+
id: string;
|
|
408
|
+
name: string;
|
|
409
|
+
businessName: string | null;
|
|
410
|
+
taxId: string | null;
|
|
411
|
+
email: string;
|
|
412
|
+
numberOfLicenses: number;
|
|
413
|
+
numberOfTrials: number;
|
|
414
|
+
emailConfirmed: boolean;
|
|
415
|
+
hasPassword: boolean;
|
|
416
|
+
isDeleted: boolean;
|
|
417
|
+
ownedProducts: string[];
|
|
418
|
+
address: {
|
|
419
|
+
countryCode: string;
|
|
420
|
+
streetAddress1: string;
|
|
421
|
+
streetAddress2: string | null;
|
|
422
|
+
locality: string | null;
|
|
423
|
+
region: string | null;
|
|
424
|
+
postCode: string;
|
|
425
|
+
} | null;
|
|
426
|
+
communicationPreferences: {
|
|
427
|
+
newsletterOptIn: boolean;
|
|
428
|
+
};
|
|
429
|
+
externalId?: string | undefined;
|
|
430
|
+
} | undefined;
|
|
384
431
|
}>>;
|
|
385
432
|
}, "strip", z.ZodTypeAny, {
|
|
386
433
|
status: ActivationRequestStatus;
|
|
@@ -445,37 +492,36 @@ declare const activationRequestSchema: z.ZodObject<{
|
|
|
445
492
|
status: TrialStatus;
|
|
446
493
|
id: string;
|
|
447
494
|
productId: string;
|
|
448
|
-
ownerId: string | null;
|
|
449
495
|
lastValidatedAt: Date;
|
|
450
496
|
deviceName: string;
|
|
451
497
|
deviceSignature: string;
|
|
452
498
|
expiresAt: Date;
|
|
453
499
|
externalId?: string | undefined;
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
500
|
+
customer?: {
|
|
501
|
+
id: string;
|
|
502
|
+
name: string;
|
|
503
|
+
businessName: string | null;
|
|
504
|
+
taxId: string | null;
|
|
505
|
+
email: string;
|
|
506
|
+
numberOfLicenses: number;
|
|
507
|
+
numberOfTrials: number;
|
|
508
|
+
emailConfirmed: boolean;
|
|
509
|
+
hasPassword: boolean;
|
|
510
|
+
isDeleted: boolean;
|
|
511
|
+
ownedProducts: string[];
|
|
512
|
+
address: {
|
|
513
|
+
countryCode: string;
|
|
514
|
+
streetAddress1: string;
|
|
515
|
+
streetAddress2: string | null;
|
|
516
|
+
locality: string | null;
|
|
517
|
+
region: string | null;
|
|
518
|
+
postCode: string;
|
|
519
|
+
} | null;
|
|
520
|
+
communicationPreferences: {
|
|
521
|
+
newsletterOptIn: boolean;
|
|
522
|
+
};
|
|
523
|
+
externalId?: string | undefined;
|
|
524
|
+
} | undefined;
|
|
479
525
|
} | undefined;
|
|
480
526
|
}, {
|
|
481
527
|
status: ActivationRequestStatus;
|
|
@@ -540,37 +586,36 @@ declare const activationRequestSchema: z.ZodObject<{
|
|
|
540
586
|
status: TrialStatus;
|
|
541
587
|
id: string;
|
|
542
588
|
productId: string;
|
|
543
|
-
ownerId: string | null;
|
|
544
589
|
lastValidatedAt: Date;
|
|
545
590
|
deviceName: string;
|
|
546
591
|
deviceSignature: string;
|
|
547
592
|
expiresAt: Date;
|
|
548
593
|
externalId?: string | undefined;
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
594
|
+
customer?: {
|
|
595
|
+
id: string;
|
|
596
|
+
name: string;
|
|
597
|
+
businessName: string | null;
|
|
598
|
+
taxId: string | null;
|
|
599
|
+
email: string;
|
|
600
|
+
numberOfLicenses: number;
|
|
601
|
+
numberOfTrials: number;
|
|
602
|
+
emailConfirmed: boolean;
|
|
603
|
+
hasPassword: boolean;
|
|
604
|
+
isDeleted: boolean;
|
|
605
|
+
ownedProducts: string[];
|
|
606
|
+
address: {
|
|
607
|
+
countryCode: string;
|
|
608
|
+
streetAddress1: string;
|
|
609
|
+
streetAddress2: string | null;
|
|
610
|
+
locality: string | null;
|
|
611
|
+
region: string | null;
|
|
612
|
+
postCode: string;
|
|
613
|
+
} | null;
|
|
614
|
+
communicationPreferences: {
|
|
615
|
+
newsletterOptIn: boolean;
|
|
616
|
+
};
|
|
617
|
+
externalId?: string | undefined;
|
|
618
|
+
} | undefined;
|
|
574
619
|
} | undefined;
|
|
575
620
|
}>;
|
|
576
621
|
|
|
@@ -1224,27 +1269,165 @@ declare const trialSchema: z.ZodObject<{
|
|
|
1224
1269
|
status: z.ZodNativeEnum<typeof TrialStatus>;
|
|
1225
1270
|
expiresAt: z.ZodDate;
|
|
1226
1271
|
lastValidatedAt: z.ZodDate;
|
|
1227
|
-
|
|
1272
|
+
customer: z.ZodOptional<z.ZodObject<{
|
|
1273
|
+
id: z.ZodString;
|
|
1274
|
+
externalId: z.ZodOptional<z.ZodString>;
|
|
1275
|
+
name: z.ZodString;
|
|
1276
|
+
businessName: z.ZodNullable<z.ZodString>;
|
|
1277
|
+
taxId: z.ZodNullable<z.ZodString>;
|
|
1278
|
+
email: z.ZodString;
|
|
1279
|
+
numberOfLicenses: z.ZodNumber;
|
|
1280
|
+
numberOfTrials: z.ZodNumber;
|
|
1281
|
+
emailConfirmed: z.ZodBoolean;
|
|
1282
|
+
hasPassword: z.ZodBoolean;
|
|
1283
|
+
isDeleted: z.ZodBoolean;
|
|
1284
|
+
ownedProducts: z.ZodArray<z.ZodString, "many">;
|
|
1285
|
+
address: z.ZodNullable<z.ZodObject<{
|
|
1286
|
+
countryCode: z.ZodString;
|
|
1287
|
+
streetAddress1: z.ZodString;
|
|
1288
|
+
streetAddress2: z.ZodNullable<z.ZodString>;
|
|
1289
|
+
locality: z.ZodNullable<z.ZodString>;
|
|
1290
|
+
region: z.ZodNullable<z.ZodString>;
|
|
1291
|
+
postCode: z.ZodString;
|
|
1292
|
+
}, "strip", z.ZodTypeAny, {
|
|
1293
|
+
countryCode: string;
|
|
1294
|
+
streetAddress1: string;
|
|
1295
|
+
streetAddress2: string | null;
|
|
1296
|
+
locality: string | null;
|
|
1297
|
+
region: string | null;
|
|
1298
|
+
postCode: string;
|
|
1299
|
+
}, {
|
|
1300
|
+
countryCode: string;
|
|
1301
|
+
streetAddress1: string;
|
|
1302
|
+
streetAddress2: string | null;
|
|
1303
|
+
locality: string | null;
|
|
1304
|
+
region: string | null;
|
|
1305
|
+
postCode: string;
|
|
1306
|
+
}>>;
|
|
1307
|
+
communicationPreferences: z.ZodObject<{
|
|
1308
|
+
newsletterOptIn: z.ZodBoolean;
|
|
1309
|
+
}, "strip", z.ZodTypeAny, {
|
|
1310
|
+
newsletterOptIn: boolean;
|
|
1311
|
+
}, {
|
|
1312
|
+
newsletterOptIn: boolean;
|
|
1313
|
+
}>;
|
|
1314
|
+
}, "strip", z.ZodTypeAny, {
|
|
1315
|
+
id: string;
|
|
1316
|
+
name: string;
|
|
1317
|
+
businessName: string | null;
|
|
1318
|
+
taxId: string | null;
|
|
1319
|
+
email: string;
|
|
1320
|
+
numberOfLicenses: number;
|
|
1321
|
+
numberOfTrials: number;
|
|
1322
|
+
emailConfirmed: boolean;
|
|
1323
|
+
hasPassword: boolean;
|
|
1324
|
+
isDeleted: boolean;
|
|
1325
|
+
ownedProducts: string[];
|
|
1326
|
+
address: {
|
|
1327
|
+
countryCode: string;
|
|
1328
|
+
streetAddress1: string;
|
|
1329
|
+
streetAddress2: string | null;
|
|
1330
|
+
locality: string | null;
|
|
1331
|
+
region: string | null;
|
|
1332
|
+
postCode: string;
|
|
1333
|
+
} | null;
|
|
1334
|
+
communicationPreferences: {
|
|
1335
|
+
newsletterOptIn: boolean;
|
|
1336
|
+
};
|
|
1337
|
+
externalId?: string | undefined;
|
|
1338
|
+
}, {
|
|
1339
|
+
id: string;
|
|
1340
|
+
name: string;
|
|
1341
|
+
businessName: string | null;
|
|
1342
|
+
taxId: string | null;
|
|
1343
|
+
email: string;
|
|
1344
|
+
numberOfLicenses: number;
|
|
1345
|
+
numberOfTrials: number;
|
|
1346
|
+
emailConfirmed: boolean;
|
|
1347
|
+
hasPassword: boolean;
|
|
1348
|
+
isDeleted: boolean;
|
|
1349
|
+
ownedProducts: string[];
|
|
1350
|
+
address: {
|
|
1351
|
+
countryCode: string;
|
|
1352
|
+
streetAddress1: string;
|
|
1353
|
+
streetAddress2: string | null;
|
|
1354
|
+
locality: string | null;
|
|
1355
|
+
region: string | null;
|
|
1356
|
+
postCode: string;
|
|
1357
|
+
} | null;
|
|
1358
|
+
communicationPreferences: {
|
|
1359
|
+
newsletterOptIn: boolean;
|
|
1360
|
+
};
|
|
1361
|
+
externalId?: string | undefined;
|
|
1362
|
+
}>>;
|
|
1228
1363
|
}, "strip", z.ZodTypeAny, {
|
|
1229
1364
|
status: TrialStatus;
|
|
1230
1365
|
id: string;
|
|
1231
1366
|
productId: string;
|
|
1232
|
-
ownerId: string | null;
|
|
1233
1367
|
lastValidatedAt: Date;
|
|
1234
1368
|
deviceName: string;
|
|
1235
1369
|
deviceSignature: string;
|
|
1236
1370
|
expiresAt: Date;
|
|
1237
1371
|
externalId?: string | undefined;
|
|
1372
|
+
customer?: {
|
|
1373
|
+
id: string;
|
|
1374
|
+
name: string;
|
|
1375
|
+
businessName: string | null;
|
|
1376
|
+
taxId: string | null;
|
|
1377
|
+
email: string;
|
|
1378
|
+
numberOfLicenses: number;
|
|
1379
|
+
numberOfTrials: number;
|
|
1380
|
+
emailConfirmed: boolean;
|
|
1381
|
+
hasPassword: boolean;
|
|
1382
|
+
isDeleted: boolean;
|
|
1383
|
+
ownedProducts: string[];
|
|
1384
|
+
address: {
|
|
1385
|
+
countryCode: string;
|
|
1386
|
+
streetAddress1: string;
|
|
1387
|
+
streetAddress2: string | null;
|
|
1388
|
+
locality: string | null;
|
|
1389
|
+
region: string | null;
|
|
1390
|
+
postCode: string;
|
|
1391
|
+
} | null;
|
|
1392
|
+
communicationPreferences: {
|
|
1393
|
+
newsletterOptIn: boolean;
|
|
1394
|
+
};
|
|
1395
|
+
externalId?: string | undefined;
|
|
1396
|
+
} | undefined;
|
|
1238
1397
|
}, {
|
|
1239
1398
|
status: TrialStatus;
|
|
1240
1399
|
id: string;
|
|
1241
1400
|
productId: string;
|
|
1242
|
-
ownerId: string | null;
|
|
1243
1401
|
lastValidatedAt: Date;
|
|
1244
1402
|
deviceName: string;
|
|
1245
1403
|
deviceSignature: string;
|
|
1246
1404
|
expiresAt: Date;
|
|
1247
1405
|
externalId?: string | undefined;
|
|
1406
|
+
customer?: {
|
|
1407
|
+
id: string;
|
|
1408
|
+
name: string;
|
|
1409
|
+
businessName: string | null;
|
|
1410
|
+
taxId: string | null;
|
|
1411
|
+
email: string;
|
|
1412
|
+
numberOfLicenses: number;
|
|
1413
|
+
numberOfTrials: number;
|
|
1414
|
+
emailConfirmed: boolean;
|
|
1415
|
+
hasPassword: boolean;
|
|
1416
|
+
isDeleted: boolean;
|
|
1417
|
+
ownedProducts: string[];
|
|
1418
|
+
address: {
|
|
1419
|
+
countryCode: string;
|
|
1420
|
+
streetAddress1: string;
|
|
1421
|
+
streetAddress2: string | null;
|
|
1422
|
+
locality: string | null;
|
|
1423
|
+
region: string | null;
|
|
1424
|
+
postCode: string;
|
|
1425
|
+
} | null;
|
|
1426
|
+
communicationPreferences: {
|
|
1427
|
+
newsletterOptIn: boolean;
|
|
1428
|
+
};
|
|
1429
|
+
externalId?: string | undefined;
|
|
1430
|
+
} | undefined;
|
|
1248
1431
|
}>;
|
|
1249
1432
|
declare const importTrialRequestSchema: z.ZodObject<{
|
|
1250
1433
|
productId: z.ZodString;
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
// src/activationRequests/schemas.ts
|
|
2
2
|
import { z as z5 } from "zod";
|
|
3
3
|
|
|
4
|
+
// src/licenses/schemas.ts
|
|
5
|
+
import { z as z2 } from "zod";
|
|
6
|
+
|
|
4
7
|
// src/customers/schemas.ts
|
|
5
8
|
import { z } from "zod";
|
|
6
9
|
var addressSchema = z.object({
|
|
@@ -40,9 +43,6 @@ var importCustomerRequestSchema = z.object({
|
|
|
40
43
|
createdAt: z.date().optional()
|
|
41
44
|
});
|
|
42
45
|
|
|
43
|
-
// src/licenses/schemas.ts
|
|
44
|
-
import { z as z2 } from "zod";
|
|
45
|
-
|
|
46
46
|
// src/licenses/models.ts
|
|
47
47
|
var LicenseStatus = /* @__PURE__ */ ((LicenseStatus2) => {
|
|
48
48
|
LicenseStatus2["Active"] = "Active";
|
|
@@ -139,7 +139,7 @@ var trialSchema = z4.object({
|
|
|
139
139
|
status: z4.nativeEnum(TrialStatus),
|
|
140
140
|
expiresAt: z4.coerce.date(),
|
|
141
141
|
lastValidatedAt: z4.coerce.date(),
|
|
142
|
-
|
|
142
|
+
customer: customerSchema.optional()
|
|
143
143
|
});
|
|
144
144
|
var importTrialRequestSchema = z4.object({
|
|
145
145
|
productId: z4.string(),
|
|
@@ -168,8 +168,7 @@ var activationRequestSchema = z5.object({
|
|
|
168
168
|
status: z5.nativeEnum(ActivationRequestStatus),
|
|
169
169
|
product: productSchema,
|
|
170
170
|
activation: licenseActivationSchema.optional(),
|
|
171
|
-
trial: trialSchema.optional()
|
|
172
|
-
customer: customerSchema.optional()
|
|
171
|
+
trial: trialSchema.optional()
|
|
173
172
|
});
|
|
174
173
|
|
|
175
174
|
// src/activationRequests/endpoints.ts
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moonbase.sh/api",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.23",
|
|
5
5
|
"description": "Package to let you integrate backends with Moonbase.sh as payment and delivery provider",
|
|
6
6
|
"author": "Tobias Lønnerød Madsen <m@dsen.tv>",
|
|
7
7
|
"license": "MIT",
|