@moonbase.sh/api 0.1.119 → 0.1.121

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 CHANGED
@@ -125,7 +125,8 @@ var licenseActivationSchema = import_zod2.z.object({
125
125
  status: import_zod2.z.nativeEnum(ActivationStatus),
126
126
  activationMethod: import_zod2.z.nativeEnum(ActivationMethod),
127
127
  lastValidatedAt: import_zod2.z.coerce.date(),
128
- license: licenseSchema
128
+ license: licenseSchema,
129
+ customer: customerSchema.optional()
129
130
  });
130
131
  var importLicenseRequestSchema = import_zod2.z.object({
131
132
  ownerId: import_zod2.z.string(),
@@ -185,7 +186,7 @@ var trialSchema = import_zod4.z.object({
185
186
  status: import_zod4.z.nativeEnum(TrialStatus),
186
187
  expiresAt: import_zod4.z.coerce.date(),
187
188
  lastValidatedAt: import_zod4.z.coerce.date(),
188
- ownerId: import_zod4.z.string().optional()
189
+ ownerId: import_zod4.z.string().nullable()
189
190
  });
190
191
  var importTrialRequestSchema = import_zod4.z.object({
191
192
  productId: import_zod4.z.string(),
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;
@@ -128,27 +269,27 @@ declare const activationRequestSchema: z.ZodObject<{
128
269
  status: z.ZodNativeEnum<typeof TrialStatus>;
129
270
  expiresAt: z.ZodDate;
130
271
  lastValidatedAt: z.ZodDate;
131
- ownerId: z.ZodOptional<z.ZodString>;
272
+ ownerId: z.ZodNullable<z.ZodString>;
132
273
  }, "strip", z.ZodTypeAny, {
133
274
  status: TrialStatus;
134
275
  id: string;
135
276
  productId: string;
277
+ ownerId: string | null;
136
278
  lastValidatedAt: Date;
137
279
  deviceName: string;
138
280
  deviceSignature: string;
139
281
  expiresAt: Date;
140
282
  externalId?: string | undefined;
141
- ownerId?: string | undefined;
142
283
  }, {
143
284
  status: TrialStatus;
144
285
  id: string;
145
286
  productId: string;
287
+ ownerId: string | null;
146
288
  lastValidatedAt: Date;
147
289
  deviceName: string;
148
290
  deviceSignature: string;
149
291
  expiresAt: Date;
150
292
  externalId?: string | undefined;
151
- ownerId?: string | undefined;
152
293
  }>>;
153
294
  customer: z.ZodOptional<z.ZodObject<{
154
295
  id: z.ZodString;
@@ -274,17 +415,42 @@ 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;
280
446
  id: string;
281
447
  productId: string;
448
+ ownerId: string | null;
282
449
  lastValidatedAt: Date;
283
450
  deviceName: string;
284
451
  deviceSignature: string;
285
452
  expiresAt: Date;
286
453
  externalId?: string | undefined;
287
- ownerId?: string | undefined;
288
454
  } | undefined;
289
455
  customer?: {
290
456
  id: string;
@@ -344,17 +510,42 @@ 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;
350
541
  id: string;
351
542
  productId: string;
543
+ ownerId: string | null;
352
544
  lastValidatedAt: Date;
353
545
  deviceName: string;
354
546
  deviceSignature: string;
355
547
  expiresAt: Date;
356
548
  externalId?: string | undefined;
357
- ownerId?: string | undefined;
358
549
  } | undefined;
359
550
  customer?: {
360
551
  id: string;
@@ -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;
@@ -891,27 +1223,27 @@ declare const trialSchema: z.ZodObject<{
891
1223
  status: z.ZodNativeEnum<typeof TrialStatus>;
892
1224
  expiresAt: z.ZodDate;
893
1225
  lastValidatedAt: z.ZodDate;
894
- ownerId: z.ZodOptional<z.ZodString>;
1226
+ ownerId: z.ZodNullable<z.ZodString>;
895
1227
  }, "strip", z.ZodTypeAny, {
896
1228
  status: TrialStatus;
897
1229
  id: string;
898
1230
  productId: string;
1231
+ ownerId: string | null;
899
1232
  lastValidatedAt: Date;
900
1233
  deviceName: string;
901
1234
  deviceSignature: string;
902
1235
  expiresAt: Date;
903
1236
  externalId?: string | undefined;
904
- ownerId?: string | undefined;
905
1237
  }, {
906
1238
  status: TrialStatus;
907
1239
  id: string;
908
1240
  productId: string;
1241
+ ownerId: string | null;
909
1242
  lastValidatedAt: Date;
910
1243
  deviceName: string;
911
1244
  deviceSignature: string;
912
1245
  expiresAt: Date;
913
1246
  externalId?: string | undefined;
914
- ownerId?: string | undefined;
915
1247
  }>;
916
1248
  declare const importTrialRequestSchema: z.ZodObject<{
917
1249
  productId: z.ZodString;
package/dist/index.d.ts 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;
@@ -128,27 +269,27 @@ declare const activationRequestSchema: z.ZodObject<{
128
269
  status: z.ZodNativeEnum<typeof TrialStatus>;
129
270
  expiresAt: z.ZodDate;
130
271
  lastValidatedAt: z.ZodDate;
131
- ownerId: z.ZodOptional<z.ZodString>;
272
+ ownerId: z.ZodNullable<z.ZodString>;
132
273
  }, "strip", z.ZodTypeAny, {
133
274
  status: TrialStatus;
134
275
  id: string;
135
276
  productId: string;
277
+ ownerId: string | null;
136
278
  lastValidatedAt: Date;
137
279
  deviceName: string;
138
280
  deviceSignature: string;
139
281
  expiresAt: Date;
140
282
  externalId?: string | undefined;
141
- ownerId?: string | undefined;
142
283
  }, {
143
284
  status: TrialStatus;
144
285
  id: string;
145
286
  productId: string;
287
+ ownerId: string | null;
146
288
  lastValidatedAt: Date;
147
289
  deviceName: string;
148
290
  deviceSignature: string;
149
291
  expiresAt: Date;
150
292
  externalId?: string | undefined;
151
- ownerId?: string | undefined;
152
293
  }>>;
153
294
  customer: z.ZodOptional<z.ZodObject<{
154
295
  id: z.ZodString;
@@ -274,17 +415,42 @@ 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;
280
446
  id: string;
281
447
  productId: string;
448
+ ownerId: string | null;
282
449
  lastValidatedAt: Date;
283
450
  deviceName: string;
284
451
  deviceSignature: string;
285
452
  expiresAt: Date;
286
453
  externalId?: string | undefined;
287
- ownerId?: string | undefined;
288
454
  } | undefined;
289
455
  customer?: {
290
456
  id: string;
@@ -344,17 +510,42 @@ 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;
350
541
  id: string;
351
542
  productId: string;
543
+ ownerId: string | null;
352
544
  lastValidatedAt: Date;
353
545
  deviceName: string;
354
546
  deviceSignature: string;
355
547
  expiresAt: Date;
356
548
  externalId?: string | undefined;
357
- ownerId?: string | undefined;
358
549
  } | undefined;
359
550
  customer?: {
360
551
  id: string;
@@ -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;
@@ -891,27 +1223,27 @@ declare const trialSchema: z.ZodObject<{
891
1223
  status: z.ZodNativeEnum<typeof TrialStatus>;
892
1224
  expiresAt: z.ZodDate;
893
1225
  lastValidatedAt: z.ZodDate;
894
- ownerId: z.ZodOptional<z.ZodString>;
1226
+ ownerId: z.ZodNullable<z.ZodString>;
895
1227
  }, "strip", z.ZodTypeAny, {
896
1228
  status: TrialStatus;
897
1229
  id: string;
898
1230
  productId: string;
1231
+ ownerId: string | null;
899
1232
  lastValidatedAt: Date;
900
1233
  deviceName: string;
901
1234
  deviceSignature: string;
902
1235
  expiresAt: Date;
903
1236
  externalId?: string | undefined;
904
- ownerId?: string | undefined;
905
1237
  }, {
906
1238
  status: TrialStatus;
907
1239
  id: string;
908
1240
  productId: string;
1241
+ ownerId: string | null;
909
1242
  lastValidatedAt: Date;
910
1243
  deviceName: string;
911
1244
  deviceSignature: string;
912
1245
  expiresAt: Date;
913
1246
  externalId?: string | undefined;
914
- ownerId?: string | undefined;
915
1247
  }>;
916
1248
  declare const importTrialRequestSchema: z.ZodObject<{
917
1249
  productId: z.ZodString;
package/dist/index.js CHANGED
@@ -78,7 +78,8 @@ var licenseActivationSchema = z2.object({
78
78
  status: z2.nativeEnum(ActivationStatus),
79
79
  activationMethod: z2.nativeEnum(ActivationMethod),
80
80
  lastValidatedAt: z2.coerce.date(),
81
- license: licenseSchema
81
+ license: licenseSchema,
82
+ customer: customerSchema.optional()
82
83
  });
83
84
  var importLicenseRequestSchema = z2.object({
84
85
  ownerId: z2.string(),
@@ -138,7 +139,7 @@ var trialSchema = z4.object({
138
139
  status: z4.nativeEnum(TrialStatus),
139
140
  expiresAt: z4.coerce.date(),
140
141
  lastValidatedAt: z4.coerce.date(),
141
- ownerId: z4.string().optional()
142
+ ownerId: z4.string().nullable()
142
143
  });
143
144
  var importTrialRequestSchema = z4.object({
144
145
  productId: z4.string(),
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@moonbase.sh/api",
3
3
  "type": "module",
4
- "version": "0.1.119",
4
+ "version": "0.1.121",
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",