@moonbase.sh/api 0.1.112 → 0.1.113

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
@@ -63,6 +63,7 @@ var communicationPreferencesSchema = import_zod.z.object({
63
63
  });
64
64
  var customerSchema = import_zod.z.object({
65
65
  id: import_zod.z.string(),
66
+ externalId: import_zod.z.string().optional(),
66
67
  name: import_zod.z.string(),
67
68
  businessName: import_zod.z.string().nullable(),
68
69
  taxId: import_zod.z.string().nullable(),
@@ -79,6 +80,7 @@ var customerSchema = import_zod.z.object({
79
80
  var importCustomerRequestSchema = import_zod.z.object({
80
81
  name: import_zod.z.string(),
81
82
  email: import_zod.z.string(),
83
+ externalId: import_zod.z.string().optional(),
82
84
  password: import_zod.z.string().optional(),
83
85
  address: addressSchema.optional()
84
86
  });
@@ -174,6 +176,7 @@ var TrialStatus = /* @__PURE__ */ ((TrialStatus2) => {
174
176
  // src/trials/schemas.ts
175
177
  var trialSchema = import_zod4.z.object({
176
178
  id: import_zod4.z.string(),
179
+ externalId: import_zod4.z.string().optional(),
177
180
  productId: import_zod4.z.string(),
178
181
  deviceName: import_zod4.z.string(),
179
182
  deviceSignature: import_zod4.z.string(),
@@ -184,6 +187,7 @@ var trialSchema = import_zod4.z.object({
184
187
  });
185
188
  var importTrialRequestSchema = import_zod4.z.object({
186
189
  productId: import_zod4.z.string(),
190
+ externalId: import_zod4.z.string().optional(),
187
191
  deviceName: import_zod4.z.string(),
188
192
  deviceSignature: import_zod4.z.string(),
189
193
  expiresAt: import_zod4.z.date(),
package/dist/index.d.cts CHANGED
@@ -121,6 +121,7 @@ declare const activationRequestSchema: z.ZodObject<{
121
121
  }>>;
122
122
  trial: z.ZodOptional<z.ZodObject<{
123
123
  id: z.ZodString;
124
+ externalId: z.ZodOptional<z.ZodString>;
124
125
  productId: z.ZodString;
125
126
  deviceName: z.ZodString;
126
127
  deviceSignature: z.ZodString;
@@ -136,6 +137,7 @@ declare const activationRequestSchema: z.ZodObject<{
136
137
  deviceName: string;
137
138
  deviceSignature: string;
138
139
  expiresAt: Date;
140
+ externalId?: string | undefined;
139
141
  ownerId?: string | undefined;
140
142
  }, {
141
143
  status: TrialStatus;
@@ -145,10 +147,12 @@ declare const activationRequestSchema: z.ZodObject<{
145
147
  deviceName: string;
146
148
  deviceSignature: string;
147
149
  expiresAt: Date;
150
+ externalId?: string | undefined;
148
151
  ownerId?: string | undefined;
149
152
  }>>;
150
153
  customer: z.ZodOptional<z.ZodObject<{
151
154
  id: z.ZodString;
155
+ externalId: z.ZodOptional<z.ZodString>;
152
156
  name: z.ZodString;
153
157
  businessName: z.ZodNullable<z.ZodString>;
154
158
  taxId: z.ZodNullable<z.ZodString>;
@@ -211,6 +215,7 @@ declare const activationRequestSchema: z.ZodObject<{
211
215
  communicationPreferences: {
212
216
  newsletterOptIn: boolean;
213
217
  };
218
+ externalId?: string | undefined;
214
219
  }, {
215
220
  id: string;
216
221
  name: string;
@@ -234,6 +239,7 @@ declare const activationRequestSchema: z.ZodObject<{
234
239
  communicationPreferences: {
235
240
  newsletterOptIn: boolean;
236
241
  };
242
+ externalId?: string | undefined;
237
243
  }>>;
238
244
  }, "strip", z.ZodTypeAny, {
239
245
  status: ActivationRequestStatus;
@@ -277,6 +283,7 @@ declare const activationRequestSchema: z.ZodObject<{
277
283
  deviceName: string;
278
284
  deviceSignature: string;
279
285
  expiresAt: Date;
286
+ externalId?: string | undefined;
280
287
  ownerId?: string | undefined;
281
288
  } | undefined;
282
289
  customer?: {
@@ -302,6 +309,7 @@ declare const activationRequestSchema: z.ZodObject<{
302
309
  communicationPreferences: {
303
310
  newsletterOptIn: boolean;
304
311
  };
312
+ externalId?: string | undefined;
305
313
  } | undefined;
306
314
  }, {
307
315
  status: ActivationRequestStatus;
@@ -345,6 +353,7 @@ declare const activationRequestSchema: z.ZodObject<{
345
353
  deviceName: string;
346
354
  deviceSignature: string;
347
355
  expiresAt: Date;
356
+ externalId?: string | undefined;
348
357
  ownerId?: string | undefined;
349
358
  } | undefined;
350
359
  customer?: {
@@ -370,6 +379,7 @@ declare const activationRequestSchema: z.ZodObject<{
370
379
  communicationPreferences: {
371
380
  newsletterOptIn: boolean;
372
381
  };
382
+ externalId?: string | undefined;
373
383
  } | undefined;
374
384
  }>;
375
385
 
@@ -392,6 +402,7 @@ declare class ActivationRequestEndpoints {
392
402
 
393
403
  declare const customerSchema: z.ZodObject<{
394
404
  id: z.ZodString;
405
+ externalId: z.ZodOptional<z.ZodString>;
395
406
  name: z.ZodString;
396
407
  businessName: z.ZodNullable<z.ZodString>;
397
408
  taxId: z.ZodNullable<z.ZodString>;
@@ -454,6 +465,7 @@ declare const customerSchema: z.ZodObject<{
454
465
  communicationPreferences: {
455
466
  newsletterOptIn: boolean;
456
467
  };
468
+ externalId?: string | undefined;
457
469
  }, {
458
470
  id: string;
459
471
  name: string;
@@ -477,10 +489,12 @@ declare const customerSchema: z.ZodObject<{
477
489
  communicationPreferences: {
478
490
  newsletterOptIn: boolean;
479
491
  };
492
+ externalId?: string | undefined;
480
493
  }>;
481
494
  declare const importCustomerRequestSchema: z.ZodObject<{
482
495
  name: z.ZodString;
483
496
  email: z.ZodString;
497
+ externalId: z.ZodOptional<z.ZodString>;
484
498
  password: z.ZodOptional<z.ZodString>;
485
499
  address: z.ZodOptional<z.ZodObject<{
486
500
  countryCode: z.ZodString;
@@ -507,6 +521,7 @@ declare const importCustomerRequestSchema: z.ZodObject<{
507
521
  }, "strip", z.ZodTypeAny, {
508
522
  name: string;
509
523
  email: string;
524
+ externalId?: string | undefined;
510
525
  password?: string | undefined;
511
526
  address?: {
512
527
  countryCode: string;
@@ -519,6 +534,7 @@ declare const importCustomerRequestSchema: z.ZodObject<{
519
534
  }, {
520
535
  name: string;
521
536
  email: string;
537
+ externalId?: string | undefined;
522
538
  password?: string | undefined;
523
539
  address?: {
524
540
  countryCode: string;
@@ -865,6 +881,7 @@ declare class ProductEndpoints {
865
881
 
866
882
  declare const trialSchema: z.ZodObject<{
867
883
  id: z.ZodString;
884
+ externalId: z.ZodOptional<z.ZodString>;
868
885
  productId: z.ZodString;
869
886
  deviceName: z.ZodString;
870
887
  deviceSignature: z.ZodString;
@@ -880,6 +897,7 @@ declare const trialSchema: z.ZodObject<{
880
897
  deviceName: string;
881
898
  deviceSignature: string;
882
899
  expiresAt: Date;
900
+ externalId?: string | undefined;
883
901
  ownerId?: string | undefined;
884
902
  }, {
885
903
  status: TrialStatus;
@@ -889,10 +907,12 @@ declare const trialSchema: z.ZodObject<{
889
907
  deviceName: string;
890
908
  deviceSignature: string;
891
909
  expiresAt: Date;
910
+ externalId?: string | undefined;
892
911
  ownerId?: string | undefined;
893
912
  }>;
894
913
  declare const importTrialRequestSchema: z.ZodObject<{
895
914
  productId: z.ZodString;
915
+ externalId: z.ZodOptional<z.ZodString>;
896
916
  deviceName: z.ZodString;
897
917
  deviceSignature: z.ZodString;
898
918
  expiresAt: z.ZodDate;
@@ -904,6 +924,7 @@ declare const importTrialRequestSchema: z.ZodObject<{
904
924
  deviceName: string;
905
925
  deviceSignature: string;
906
926
  expiresAt: Date;
927
+ externalId?: string | undefined;
907
928
  customerId?: string | undefined;
908
929
  lastValidation?: Date | undefined;
909
930
  createdAt?: Date | undefined;
@@ -912,6 +933,7 @@ declare const importTrialRequestSchema: z.ZodObject<{
912
933
  deviceName: string;
913
934
  deviceSignature: string;
914
935
  expiresAt: Date;
936
+ externalId?: string | undefined;
915
937
  customerId?: string | undefined;
916
938
  lastValidation?: Date | undefined;
917
939
  createdAt?: Date | undefined;
package/dist/index.d.ts CHANGED
@@ -121,6 +121,7 @@ declare const activationRequestSchema: z.ZodObject<{
121
121
  }>>;
122
122
  trial: z.ZodOptional<z.ZodObject<{
123
123
  id: z.ZodString;
124
+ externalId: z.ZodOptional<z.ZodString>;
124
125
  productId: z.ZodString;
125
126
  deviceName: z.ZodString;
126
127
  deviceSignature: z.ZodString;
@@ -136,6 +137,7 @@ declare const activationRequestSchema: z.ZodObject<{
136
137
  deviceName: string;
137
138
  deviceSignature: string;
138
139
  expiresAt: Date;
140
+ externalId?: string | undefined;
139
141
  ownerId?: string | undefined;
140
142
  }, {
141
143
  status: TrialStatus;
@@ -145,10 +147,12 @@ declare const activationRequestSchema: z.ZodObject<{
145
147
  deviceName: string;
146
148
  deviceSignature: string;
147
149
  expiresAt: Date;
150
+ externalId?: string | undefined;
148
151
  ownerId?: string | undefined;
149
152
  }>>;
150
153
  customer: z.ZodOptional<z.ZodObject<{
151
154
  id: z.ZodString;
155
+ externalId: z.ZodOptional<z.ZodString>;
152
156
  name: z.ZodString;
153
157
  businessName: z.ZodNullable<z.ZodString>;
154
158
  taxId: z.ZodNullable<z.ZodString>;
@@ -211,6 +215,7 @@ declare const activationRequestSchema: z.ZodObject<{
211
215
  communicationPreferences: {
212
216
  newsletterOptIn: boolean;
213
217
  };
218
+ externalId?: string | undefined;
214
219
  }, {
215
220
  id: string;
216
221
  name: string;
@@ -234,6 +239,7 @@ declare const activationRequestSchema: z.ZodObject<{
234
239
  communicationPreferences: {
235
240
  newsletterOptIn: boolean;
236
241
  };
242
+ externalId?: string | undefined;
237
243
  }>>;
238
244
  }, "strip", z.ZodTypeAny, {
239
245
  status: ActivationRequestStatus;
@@ -277,6 +283,7 @@ declare const activationRequestSchema: z.ZodObject<{
277
283
  deviceName: string;
278
284
  deviceSignature: string;
279
285
  expiresAt: Date;
286
+ externalId?: string | undefined;
280
287
  ownerId?: string | undefined;
281
288
  } | undefined;
282
289
  customer?: {
@@ -302,6 +309,7 @@ declare const activationRequestSchema: z.ZodObject<{
302
309
  communicationPreferences: {
303
310
  newsletterOptIn: boolean;
304
311
  };
312
+ externalId?: string | undefined;
305
313
  } | undefined;
306
314
  }, {
307
315
  status: ActivationRequestStatus;
@@ -345,6 +353,7 @@ declare const activationRequestSchema: z.ZodObject<{
345
353
  deviceName: string;
346
354
  deviceSignature: string;
347
355
  expiresAt: Date;
356
+ externalId?: string | undefined;
348
357
  ownerId?: string | undefined;
349
358
  } | undefined;
350
359
  customer?: {
@@ -370,6 +379,7 @@ declare const activationRequestSchema: z.ZodObject<{
370
379
  communicationPreferences: {
371
380
  newsletterOptIn: boolean;
372
381
  };
382
+ externalId?: string | undefined;
373
383
  } | undefined;
374
384
  }>;
375
385
 
@@ -392,6 +402,7 @@ declare class ActivationRequestEndpoints {
392
402
 
393
403
  declare const customerSchema: z.ZodObject<{
394
404
  id: z.ZodString;
405
+ externalId: z.ZodOptional<z.ZodString>;
395
406
  name: z.ZodString;
396
407
  businessName: z.ZodNullable<z.ZodString>;
397
408
  taxId: z.ZodNullable<z.ZodString>;
@@ -454,6 +465,7 @@ declare const customerSchema: z.ZodObject<{
454
465
  communicationPreferences: {
455
466
  newsletterOptIn: boolean;
456
467
  };
468
+ externalId?: string | undefined;
457
469
  }, {
458
470
  id: string;
459
471
  name: string;
@@ -477,10 +489,12 @@ declare const customerSchema: z.ZodObject<{
477
489
  communicationPreferences: {
478
490
  newsletterOptIn: boolean;
479
491
  };
492
+ externalId?: string | undefined;
480
493
  }>;
481
494
  declare const importCustomerRequestSchema: z.ZodObject<{
482
495
  name: z.ZodString;
483
496
  email: z.ZodString;
497
+ externalId: z.ZodOptional<z.ZodString>;
484
498
  password: z.ZodOptional<z.ZodString>;
485
499
  address: z.ZodOptional<z.ZodObject<{
486
500
  countryCode: z.ZodString;
@@ -507,6 +521,7 @@ declare const importCustomerRequestSchema: z.ZodObject<{
507
521
  }, "strip", z.ZodTypeAny, {
508
522
  name: string;
509
523
  email: string;
524
+ externalId?: string | undefined;
510
525
  password?: string | undefined;
511
526
  address?: {
512
527
  countryCode: string;
@@ -519,6 +534,7 @@ declare const importCustomerRequestSchema: z.ZodObject<{
519
534
  }, {
520
535
  name: string;
521
536
  email: string;
537
+ externalId?: string | undefined;
522
538
  password?: string | undefined;
523
539
  address?: {
524
540
  countryCode: string;
@@ -865,6 +881,7 @@ declare class ProductEndpoints {
865
881
 
866
882
  declare const trialSchema: z.ZodObject<{
867
883
  id: z.ZodString;
884
+ externalId: z.ZodOptional<z.ZodString>;
868
885
  productId: z.ZodString;
869
886
  deviceName: z.ZodString;
870
887
  deviceSignature: z.ZodString;
@@ -880,6 +897,7 @@ declare const trialSchema: z.ZodObject<{
880
897
  deviceName: string;
881
898
  deviceSignature: string;
882
899
  expiresAt: Date;
900
+ externalId?: string | undefined;
883
901
  ownerId?: string | undefined;
884
902
  }, {
885
903
  status: TrialStatus;
@@ -889,10 +907,12 @@ declare const trialSchema: z.ZodObject<{
889
907
  deviceName: string;
890
908
  deviceSignature: string;
891
909
  expiresAt: Date;
910
+ externalId?: string | undefined;
892
911
  ownerId?: string | undefined;
893
912
  }>;
894
913
  declare const importTrialRequestSchema: z.ZodObject<{
895
914
  productId: z.ZodString;
915
+ externalId: z.ZodOptional<z.ZodString>;
896
916
  deviceName: z.ZodString;
897
917
  deviceSignature: z.ZodString;
898
918
  expiresAt: z.ZodDate;
@@ -904,6 +924,7 @@ declare const importTrialRequestSchema: z.ZodObject<{
904
924
  deviceName: string;
905
925
  deviceSignature: string;
906
926
  expiresAt: Date;
927
+ externalId?: string | undefined;
907
928
  customerId?: string | undefined;
908
929
  lastValidation?: Date | undefined;
909
930
  createdAt?: Date | undefined;
@@ -912,6 +933,7 @@ declare const importTrialRequestSchema: z.ZodObject<{
912
933
  deviceName: string;
913
934
  deviceSignature: string;
914
935
  expiresAt: Date;
936
+ externalId?: string | undefined;
915
937
  customerId?: string | undefined;
916
938
  lastValidation?: Date | undefined;
917
939
  createdAt?: Date | undefined;
package/dist/index.js CHANGED
@@ -17,6 +17,7 @@ var communicationPreferencesSchema = z.object({
17
17
  });
18
18
  var customerSchema = z.object({
19
19
  id: z.string(),
20
+ externalId: z.string().optional(),
20
21
  name: z.string(),
21
22
  businessName: z.string().nullable(),
22
23
  taxId: z.string().nullable(),
@@ -33,6 +34,7 @@ var customerSchema = z.object({
33
34
  var importCustomerRequestSchema = z.object({
34
35
  name: z.string(),
35
36
  email: z.string(),
37
+ externalId: z.string().optional(),
36
38
  password: z.string().optional(),
37
39
  address: addressSchema.optional()
38
40
  });
@@ -128,6 +130,7 @@ var TrialStatus = /* @__PURE__ */ ((TrialStatus2) => {
128
130
  // src/trials/schemas.ts
129
131
  var trialSchema = z4.object({
130
132
  id: z4.string(),
133
+ externalId: z4.string().optional(),
131
134
  productId: z4.string(),
132
135
  deviceName: z4.string(),
133
136
  deviceSignature: z4.string(),
@@ -138,6 +141,7 @@ var trialSchema = z4.object({
138
141
  });
139
142
  var importTrialRequestSchema = z4.object({
140
143
  productId: z4.string(),
144
+ externalId: z4.string().optional(),
141
145
  deviceName: z4.string(),
142
146
  deviceSignature: z4.string(),
143
147
  expiresAt: z4.date(),
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@moonbase.sh/api",
3
3
  "type": "module",
4
- "version": "0.1.112",
4
+ "version": "0.1.113",
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",