@moonbase.sh/api 0.4.35 → 0.4.40
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 +142 -26
- package/dist/index.d.cts +701 -9
- package/dist/index.d.ts +701 -9
- package/dist/index.js +140 -26
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -985,9 +985,9 @@ declare const activationRequestSchema: z.ZodObject<{
|
|
|
985
985
|
};
|
|
986
986
|
productId: string;
|
|
987
987
|
lastValidatedAt: Date;
|
|
988
|
+
expiresAt: Date;
|
|
988
989
|
deviceName: string;
|
|
989
990
|
deviceSignature: string;
|
|
990
|
-
expiresAt: Date;
|
|
991
991
|
externalId?: string | undefined;
|
|
992
992
|
customer?: {
|
|
993
993
|
id: string;
|
|
@@ -1052,9 +1052,9 @@ declare const activationRequestSchema: z.ZodObject<{
|
|
|
1052
1052
|
};
|
|
1053
1053
|
productId: string;
|
|
1054
1054
|
lastValidatedAt: Date;
|
|
1055
|
+
expiresAt: Date;
|
|
1055
1056
|
deviceName: string;
|
|
1056
1057
|
deviceSignature: string;
|
|
1057
|
-
expiresAt: Date;
|
|
1058
1058
|
externalId?: string | undefined;
|
|
1059
1059
|
customer?: {
|
|
1060
1060
|
id: string;
|
|
@@ -1243,9 +1243,9 @@ declare const activationRequestSchema: z.ZodObject<{
|
|
|
1243
1243
|
};
|
|
1244
1244
|
productId: string;
|
|
1245
1245
|
lastValidatedAt: Date;
|
|
1246
|
+
expiresAt: Date;
|
|
1246
1247
|
deviceName: string;
|
|
1247
1248
|
deviceSignature: string;
|
|
1248
|
-
expiresAt: Date;
|
|
1249
1249
|
externalId?: string | undefined;
|
|
1250
1250
|
customer?: {
|
|
1251
1251
|
id: string;
|
|
@@ -1434,9 +1434,9 @@ declare const activationRequestSchema: z.ZodObject<{
|
|
|
1434
1434
|
};
|
|
1435
1435
|
productId: string;
|
|
1436
1436
|
lastValidatedAt: Date;
|
|
1437
|
+
expiresAt: Date;
|
|
1437
1438
|
deviceName: string;
|
|
1438
1439
|
deviceSignature: string;
|
|
1439
|
-
expiresAt: Date;
|
|
1440
1440
|
externalId?: string | undefined;
|
|
1441
1441
|
customer?: {
|
|
1442
1442
|
id: string;
|
|
@@ -2643,6 +2643,7 @@ declare const importLicenseRequestSchema: z.ZodObject<{
|
|
|
2643
2643
|
productId: z.ZodString;
|
|
2644
2644
|
externalId: z.ZodOptional<z.ZodString>;
|
|
2645
2645
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
2646
|
+
expiresAt: z.ZodOptional<z.ZodDate>;
|
|
2646
2647
|
maxNumberOfActivations: z.ZodOptional<z.ZodNumber>;
|
|
2647
2648
|
offlineActivationsAllowed: z.ZodOptional<z.ZodBoolean>;
|
|
2648
2649
|
activations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -2668,6 +2669,7 @@ declare const importLicenseRequestSchema: z.ZodObject<{
|
|
|
2668
2669
|
createdAt?: Date | undefined;
|
|
2669
2670
|
maxNumberOfActivations?: number | undefined;
|
|
2670
2671
|
offlineActivationsAllowed?: boolean | undefined;
|
|
2672
|
+
expiresAt?: Date | undefined;
|
|
2671
2673
|
activations?: {
|
|
2672
2674
|
activationMethod: ActivationMethod;
|
|
2673
2675
|
deviceName: string;
|
|
@@ -2681,6 +2683,7 @@ declare const importLicenseRequestSchema: z.ZodObject<{
|
|
|
2681
2683
|
createdAt?: Date | undefined;
|
|
2682
2684
|
maxNumberOfActivations?: number | undefined;
|
|
2683
2685
|
offlineActivationsAllowed?: boolean | undefined;
|
|
2686
|
+
expiresAt?: Date | undefined;
|
|
2684
2687
|
activations?: {
|
|
2685
2688
|
activationMethod: ActivationMethod;
|
|
2686
2689
|
deviceName: string;
|
|
@@ -5034,6 +5037,694 @@ declare class ProductEndpoints {
|
|
|
5034
5037
|
}): Promise<Page<ProductRelease>>;
|
|
5035
5038
|
}
|
|
5036
5039
|
|
|
5040
|
+
declare const subscriptionSchema: z.ZodObject<{
|
|
5041
|
+
id: z.ZodString;
|
|
5042
|
+
externalId: z.ZodOptional<z.ZodString>;
|
|
5043
|
+
ownerId: z.ZodString;
|
|
5044
|
+
status: z.ZodNativeEnum<typeof SubscriptionStatus>;
|
|
5045
|
+
expiresAt: z.ZodDate;
|
|
5046
|
+
startedAt: z.ZodDate;
|
|
5047
|
+
licenseExpiry: z.ZodDate;
|
|
5048
|
+
renewedAt: z.ZodNullable<z.ZodDate>;
|
|
5049
|
+
nextPaymentScheduledAt: z.ZodNullable<z.ZodDate>;
|
|
5050
|
+
total: z.ZodObject<{
|
|
5051
|
+
original: z.ZodObject<{
|
|
5052
|
+
currency: z.ZodString;
|
|
5053
|
+
amount: z.ZodNumber;
|
|
5054
|
+
}, "strip", z.ZodTypeAny, {
|
|
5055
|
+
currency: string;
|
|
5056
|
+
amount: number;
|
|
5057
|
+
}, {
|
|
5058
|
+
currency: string;
|
|
5059
|
+
amount: number;
|
|
5060
|
+
}>;
|
|
5061
|
+
discount: z.ZodObject<{
|
|
5062
|
+
currency: z.ZodString;
|
|
5063
|
+
amount: z.ZodNumber;
|
|
5064
|
+
}, "strip", z.ZodTypeAny, {
|
|
5065
|
+
currency: string;
|
|
5066
|
+
amount: number;
|
|
5067
|
+
}, {
|
|
5068
|
+
currency: string;
|
|
5069
|
+
amount: number;
|
|
5070
|
+
}>;
|
|
5071
|
+
subtotal: z.ZodObject<{
|
|
5072
|
+
currency: z.ZodString;
|
|
5073
|
+
amount: z.ZodNumber;
|
|
5074
|
+
}, "strip", z.ZodTypeAny, {
|
|
5075
|
+
currency: string;
|
|
5076
|
+
amount: number;
|
|
5077
|
+
}, {
|
|
5078
|
+
currency: string;
|
|
5079
|
+
amount: number;
|
|
5080
|
+
}>;
|
|
5081
|
+
taxes: z.ZodObject<{
|
|
5082
|
+
currency: z.ZodString;
|
|
5083
|
+
amount: z.ZodNumber;
|
|
5084
|
+
}, "strip", z.ZodTypeAny, {
|
|
5085
|
+
currency: string;
|
|
5086
|
+
amount: number;
|
|
5087
|
+
}, {
|
|
5088
|
+
currency: string;
|
|
5089
|
+
amount: number;
|
|
5090
|
+
}>;
|
|
5091
|
+
due: z.ZodObject<{
|
|
5092
|
+
currency: z.ZodString;
|
|
5093
|
+
amount: z.ZodNumber;
|
|
5094
|
+
}, "strip", z.ZodTypeAny, {
|
|
5095
|
+
currency: string;
|
|
5096
|
+
amount: number;
|
|
5097
|
+
}, {
|
|
5098
|
+
currency: string;
|
|
5099
|
+
amount: number;
|
|
5100
|
+
}>;
|
|
5101
|
+
}, "strip", z.ZodTypeAny, {
|
|
5102
|
+
discount: {
|
|
5103
|
+
currency: string;
|
|
5104
|
+
amount: number;
|
|
5105
|
+
};
|
|
5106
|
+
original: {
|
|
5107
|
+
currency: string;
|
|
5108
|
+
amount: number;
|
|
5109
|
+
};
|
|
5110
|
+
subtotal: {
|
|
5111
|
+
currency: string;
|
|
5112
|
+
amount: number;
|
|
5113
|
+
};
|
|
5114
|
+
due: {
|
|
5115
|
+
currency: string;
|
|
5116
|
+
amount: number;
|
|
5117
|
+
};
|
|
5118
|
+
taxes: {
|
|
5119
|
+
currency: string;
|
|
5120
|
+
amount: number;
|
|
5121
|
+
};
|
|
5122
|
+
}, {
|
|
5123
|
+
discount: {
|
|
5124
|
+
currency: string;
|
|
5125
|
+
amount: number;
|
|
5126
|
+
};
|
|
5127
|
+
original: {
|
|
5128
|
+
currency: string;
|
|
5129
|
+
amount: number;
|
|
5130
|
+
};
|
|
5131
|
+
subtotal: {
|
|
5132
|
+
currency: string;
|
|
5133
|
+
amount: number;
|
|
5134
|
+
};
|
|
5135
|
+
due: {
|
|
5136
|
+
currency: string;
|
|
5137
|
+
amount: number;
|
|
5138
|
+
};
|
|
5139
|
+
taxes: {
|
|
5140
|
+
currency: string;
|
|
5141
|
+
amount: number;
|
|
5142
|
+
};
|
|
5143
|
+
}>;
|
|
5144
|
+
currency: z.ZodString;
|
|
5145
|
+
cycleLength: z.ZodNativeEnum<typeof CycleLength>;
|
|
5146
|
+
currentCycle: z.ZodNumber;
|
|
5147
|
+
content: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
5148
|
+
type: z.ZodLiteral<"Product">;
|
|
5149
|
+
productId: z.ZodString;
|
|
5150
|
+
quantity: z.ZodNumber;
|
|
5151
|
+
fulfillment: z.ZodObject<{
|
|
5152
|
+
type: z.ZodLiteral<"License">;
|
|
5153
|
+
licenseIds: z.ZodArray<z.ZodString, "many">;
|
|
5154
|
+
}, "strip", z.ZodTypeAny, {
|
|
5155
|
+
type: "License";
|
|
5156
|
+
licenseIds: string[];
|
|
5157
|
+
}, {
|
|
5158
|
+
type: "License";
|
|
5159
|
+
licenseIds: string[];
|
|
5160
|
+
}>;
|
|
5161
|
+
}, "strip", z.ZodTypeAny, {
|
|
5162
|
+
type: "Product";
|
|
5163
|
+
quantity: number;
|
|
5164
|
+
productId: string;
|
|
5165
|
+
fulfillment: {
|
|
5166
|
+
type: "License";
|
|
5167
|
+
licenseIds: string[];
|
|
5168
|
+
};
|
|
5169
|
+
}, {
|
|
5170
|
+
type: "Product";
|
|
5171
|
+
quantity: number;
|
|
5172
|
+
productId: string;
|
|
5173
|
+
fulfillment: {
|
|
5174
|
+
type: "License";
|
|
5175
|
+
licenseIds: string[];
|
|
5176
|
+
};
|
|
5177
|
+
}>, z.ZodObject<{
|
|
5178
|
+
type: z.ZodLiteral<"Bundle">;
|
|
5179
|
+
bundleId: z.ZodString;
|
|
5180
|
+
quantity: z.ZodNumber;
|
|
5181
|
+
fulfillment: z.ZodObject<{
|
|
5182
|
+
type: z.ZodLiteral<"Bundle">;
|
|
5183
|
+
productLicenses: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
5184
|
+
licenseIds: z.ZodArray<z.ZodString, "many">;
|
|
5185
|
+
}, "strip", z.ZodTypeAny, {
|
|
5186
|
+
licenseIds: string[];
|
|
5187
|
+
}, {
|
|
5188
|
+
licenseIds: string[];
|
|
5189
|
+
}>>;
|
|
5190
|
+
}, "strip", z.ZodTypeAny, {
|
|
5191
|
+
type: "Bundle";
|
|
5192
|
+
productLicenses: Record<string, {
|
|
5193
|
+
licenseIds: string[];
|
|
5194
|
+
}>;
|
|
5195
|
+
}, {
|
|
5196
|
+
type: "Bundle";
|
|
5197
|
+
productLicenses: Record<string, {
|
|
5198
|
+
licenseIds: string[];
|
|
5199
|
+
}>;
|
|
5200
|
+
}>;
|
|
5201
|
+
}, "strip", z.ZodTypeAny, {
|
|
5202
|
+
type: "Bundle";
|
|
5203
|
+
quantity: number;
|
|
5204
|
+
fulfillment: {
|
|
5205
|
+
type: "Bundle";
|
|
5206
|
+
productLicenses: Record<string, {
|
|
5207
|
+
licenseIds: string[];
|
|
5208
|
+
}>;
|
|
5209
|
+
};
|
|
5210
|
+
bundleId: string;
|
|
5211
|
+
}, {
|
|
5212
|
+
type: "Bundle";
|
|
5213
|
+
quantity: number;
|
|
5214
|
+
fulfillment: {
|
|
5215
|
+
type: "Bundle";
|
|
5216
|
+
productLicenses: Record<string, {
|
|
5217
|
+
licenseIds: string[];
|
|
5218
|
+
}>;
|
|
5219
|
+
};
|
|
5220
|
+
bundleId: string;
|
|
5221
|
+
}>]>;
|
|
5222
|
+
pricingVariation: z.ZodObject<{
|
|
5223
|
+
id: z.ZodString;
|
|
5224
|
+
name: z.ZodString;
|
|
5225
|
+
price: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
5226
|
+
}, "strip", z.ZodTypeAny, {
|
|
5227
|
+
id: string;
|
|
5228
|
+
name: string;
|
|
5229
|
+
price: Record<string, number>;
|
|
5230
|
+
}, {
|
|
5231
|
+
id: string;
|
|
5232
|
+
name: string;
|
|
5233
|
+
price: Record<string, number>;
|
|
5234
|
+
}>;
|
|
5235
|
+
lastUpdated: z.ZodObject<{
|
|
5236
|
+
at: z.ZodDate;
|
|
5237
|
+
by: z.ZodObject<{
|
|
5238
|
+
id: z.ZodString;
|
|
5239
|
+
name: z.ZodString;
|
|
5240
|
+
email: z.ZodString;
|
|
5241
|
+
}, "strip", z.ZodTypeAny, {
|
|
5242
|
+
id: string;
|
|
5243
|
+
name: string;
|
|
5244
|
+
email: string;
|
|
5245
|
+
}, {
|
|
5246
|
+
id: string;
|
|
5247
|
+
name: string;
|
|
5248
|
+
email: string;
|
|
5249
|
+
}>;
|
|
5250
|
+
}, "strip", z.ZodTypeAny, {
|
|
5251
|
+
at: Date;
|
|
5252
|
+
by: {
|
|
5253
|
+
id: string;
|
|
5254
|
+
name: string;
|
|
5255
|
+
email: string;
|
|
5256
|
+
};
|
|
5257
|
+
}, {
|
|
5258
|
+
at: Date;
|
|
5259
|
+
by: {
|
|
5260
|
+
id: string;
|
|
5261
|
+
name: string;
|
|
5262
|
+
email: string;
|
|
5263
|
+
};
|
|
5264
|
+
}>;
|
|
5265
|
+
created: z.ZodObject<{
|
|
5266
|
+
at: z.ZodDate;
|
|
5267
|
+
by: z.ZodObject<{
|
|
5268
|
+
id: z.ZodString;
|
|
5269
|
+
name: z.ZodString;
|
|
5270
|
+
email: z.ZodString;
|
|
5271
|
+
}, "strip", z.ZodTypeAny, {
|
|
5272
|
+
id: string;
|
|
5273
|
+
name: string;
|
|
5274
|
+
email: string;
|
|
5275
|
+
}, {
|
|
5276
|
+
id: string;
|
|
5277
|
+
name: string;
|
|
5278
|
+
email: string;
|
|
5279
|
+
}>;
|
|
5280
|
+
}, "strip", z.ZodTypeAny, {
|
|
5281
|
+
at: Date;
|
|
5282
|
+
by: {
|
|
5283
|
+
id: string;
|
|
5284
|
+
name: string;
|
|
5285
|
+
email: string;
|
|
5286
|
+
};
|
|
5287
|
+
}, {
|
|
5288
|
+
at: Date;
|
|
5289
|
+
by: {
|
|
5290
|
+
id: string;
|
|
5291
|
+
name: string;
|
|
5292
|
+
email: string;
|
|
5293
|
+
};
|
|
5294
|
+
}>;
|
|
5295
|
+
}, "strip", z.ZodTypeAny, {
|
|
5296
|
+
status: SubscriptionStatus;
|
|
5297
|
+
id: string;
|
|
5298
|
+
currency: string;
|
|
5299
|
+
total: {
|
|
5300
|
+
discount: {
|
|
5301
|
+
currency: string;
|
|
5302
|
+
amount: number;
|
|
5303
|
+
};
|
|
5304
|
+
original: {
|
|
5305
|
+
currency: string;
|
|
5306
|
+
amount: number;
|
|
5307
|
+
};
|
|
5308
|
+
subtotal: {
|
|
5309
|
+
currency: string;
|
|
5310
|
+
amount: number;
|
|
5311
|
+
};
|
|
5312
|
+
due: {
|
|
5313
|
+
currency: string;
|
|
5314
|
+
amount: number;
|
|
5315
|
+
};
|
|
5316
|
+
taxes: {
|
|
5317
|
+
currency: string;
|
|
5318
|
+
amount: number;
|
|
5319
|
+
};
|
|
5320
|
+
};
|
|
5321
|
+
lastUpdated: {
|
|
5322
|
+
at: Date;
|
|
5323
|
+
by: {
|
|
5324
|
+
id: string;
|
|
5325
|
+
name: string;
|
|
5326
|
+
email: string;
|
|
5327
|
+
};
|
|
5328
|
+
};
|
|
5329
|
+
created: {
|
|
5330
|
+
at: Date;
|
|
5331
|
+
by: {
|
|
5332
|
+
id: string;
|
|
5333
|
+
name: string;
|
|
5334
|
+
email: string;
|
|
5335
|
+
};
|
|
5336
|
+
};
|
|
5337
|
+
ownerId: string;
|
|
5338
|
+
expiresAt: Date;
|
|
5339
|
+
content: {
|
|
5340
|
+
type: "Product";
|
|
5341
|
+
quantity: number;
|
|
5342
|
+
productId: string;
|
|
5343
|
+
fulfillment: {
|
|
5344
|
+
type: "License";
|
|
5345
|
+
licenseIds: string[];
|
|
5346
|
+
};
|
|
5347
|
+
} | {
|
|
5348
|
+
type: "Bundle";
|
|
5349
|
+
quantity: number;
|
|
5350
|
+
fulfillment: {
|
|
5351
|
+
type: "Bundle";
|
|
5352
|
+
productLicenses: Record<string, {
|
|
5353
|
+
licenseIds: string[];
|
|
5354
|
+
}>;
|
|
5355
|
+
};
|
|
5356
|
+
bundleId: string;
|
|
5357
|
+
};
|
|
5358
|
+
startedAt: Date;
|
|
5359
|
+
licenseExpiry: Date;
|
|
5360
|
+
renewedAt: Date | null;
|
|
5361
|
+
nextPaymentScheduledAt: Date | null;
|
|
5362
|
+
cycleLength: CycleLength;
|
|
5363
|
+
currentCycle: number;
|
|
5364
|
+
pricingVariation: {
|
|
5365
|
+
id: string;
|
|
5366
|
+
name: string;
|
|
5367
|
+
price: Record<string, number>;
|
|
5368
|
+
};
|
|
5369
|
+
externalId?: string | undefined;
|
|
5370
|
+
}, {
|
|
5371
|
+
status: SubscriptionStatus;
|
|
5372
|
+
id: string;
|
|
5373
|
+
currency: string;
|
|
5374
|
+
total: {
|
|
5375
|
+
discount: {
|
|
5376
|
+
currency: string;
|
|
5377
|
+
amount: number;
|
|
5378
|
+
};
|
|
5379
|
+
original: {
|
|
5380
|
+
currency: string;
|
|
5381
|
+
amount: number;
|
|
5382
|
+
};
|
|
5383
|
+
subtotal: {
|
|
5384
|
+
currency: string;
|
|
5385
|
+
amount: number;
|
|
5386
|
+
};
|
|
5387
|
+
due: {
|
|
5388
|
+
currency: string;
|
|
5389
|
+
amount: number;
|
|
5390
|
+
};
|
|
5391
|
+
taxes: {
|
|
5392
|
+
currency: string;
|
|
5393
|
+
amount: number;
|
|
5394
|
+
};
|
|
5395
|
+
};
|
|
5396
|
+
lastUpdated: {
|
|
5397
|
+
at: Date;
|
|
5398
|
+
by: {
|
|
5399
|
+
id: string;
|
|
5400
|
+
name: string;
|
|
5401
|
+
email: string;
|
|
5402
|
+
};
|
|
5403
|
+
};
|
|
5404
|
+
created: {
|
|
5405
|
+
at: Date;
|
|
5406
|
+
by: {
|
|
5407
|
+
id: string;
|
|
5408
|
+
name: string;
|
|
5409
|
+
email: string;
|
|
5410
|
+
};
|
|
5411
|
+
};
|
|
5412
|
+
ownerId: string;
|
|
5413
|
+
expiresAt: Date;
|
|
5414
|
+
content: {
|
|
5415
|
+
type: "Product";
|
|
5416
|
+
quantity: number;
|
|
5417
|
+
productId: string;
|
|
5418
|
+
fulfillment: {
|
|
5419
|
+
type: "License";
|
|
5420
|
+
licenseIds: string[];
|
|
5421
|
+
};
|
|
5422
|
+
} | {
|
|
5423
|
+
type: "Bundle";
|
|
5424
|
+
quantity: number;
|
|
5425
|
+
fulfillment: {
|
|
5426
|
+
type: "Bundle";
|
|
5427
|
+
productLicenses: Record<string, {
|
|
5428
|
+
licenseIds: string[];
|
|
5429
|
+
}>;
|
|
5430
|
+
};
|
|
5431
|
+
bundleId: string;
|
|
5432
|
+
};
|
|
5433
|
+
startedAt: Date;
|
|
5434
|
+
licenseExpiry: Date;
|
|
5435
|
+
renewedAt: Date | null;
|
|
5436
|
+
nextPaymentScheduledAt: Date | null;
|
|
5437
|
+
cycleLength: CycleLength;
|
|
5438
|
+
currentCycle: number;
|
|
5439
|
+
pricingVariation: {
|
|
5440
|
+
id: string;
|
|
5441
|
+
name: string;
|
|
5442
|
+
price: Record<string, number>;
|
|
5443
|
+
};
|
|
5444
|
+
externalId?: string | undefined;
|
|
5445
|
+
}>;
|
|
5446
|
+
declare const importSubscriptionRequestSchema: z.ZodObject<{
|
|
5447
|
+
ownerId: z.ZodString;
|
|
5448
|
+
externalId: z.ZodOptional<z.ZodString>;
|
|
5449
|
+
status: z.ZodNativeEnum<typeof SubscriptionStatus>;
|
|
5450
|
+
startedAt: z.ZodDate;
|
|
5451
|
+
expiresAt: z.ZodDate;
|
|
5452
|
+
currentCycle: z.ZodOptional<z.ZodNumber>;
|
|
5453
|
+
currency: z.ZodOptional<z.ZodString>;
|
|
5454
|
+
content: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
5455
|
+
type: z.ZodLiteral<"Product">;
|
|
5456
|
+
productId: z.ZodString;
|
|
5457
|
+
variationId: z.ZodOptional<z.ZodString>;
|
|
5458
|
+
license: z.ZodObject<{
|
|
5459
|
+
externalId: z.ZodOptional<z.ZodString>;
|
|
5460
|
+
createdAt: z.ZodOptional<z.ZodDate>;
|
|
5461
|
+
maxNumberOfActivations: z.ZodOptional<z.ZodNumber>;
|
|
5462
|
+
offlineActivationsAllowed: z.ZodOptional<z.ZodBoolean>;
|
|
5463
|
+
activations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5464
|
+
activationMethod: z.ZodNativeEnum<typeof ActivationMethod>;
|
|
5465
|
+
deviceName: z.ZodString;
|
|
5466
|
+
deviceSignature: z.ZodString;
|
|
5467
|
+
lastValidation: z.ZodOptional<z.ZodDate>;
|
|
5468
|
+
}, "strip", z.ZodTypeAny, {
|
|
5469
|
+
activationMethod: ActivationMethod;
|
|
5470
|
+
deviceName: string;
|
|
5471
|
+
deviceSignature: string;
|
|
5472
|
+
lastValidation?: Date | undefined;
|
|
5473
|
+
}, {
|
|
5474
|
+
activationMethod: ActivationMethod;
|
|
5475
|
+
deviceName: string;
|
|
5476
|
+
deviceSignature: string;
|
|
5477
|
+
lastValidation?: Date | undefined;
|
|
5478
|
+
}>, "many">>;
|
|
5479
|
+
}, "strip", z.ZodTypeAny, {
|
|
5480
|
+
externalId?: string | undefined;
|
|
5481
|
+
createdAt?: Date | undefined;
|
|
5482
|
+
maxNumberOfActivations?: number | undefined;
|
|
5483
|
+
offlineActivationsAllowed?: boolean | undefined;
|
|
5484
|
+
activations?: {
|
|
5485
|
+
activationMethod: ActivationMethod;
|
|
5486
|
+
deviceName: string;
|
|
5487
|
+
deviceSignature: string;
|
|
5488
|
+
lastValidation?: Date | undefined;
|
|
5489
|
+
}[] | undefined;
|
|
5490
|
+
}, {
|
|
5491
|
+
externalId?: string | undefined;
|
|
5492
|
+
createdAt?: Date | undefined;
|
|
5493
|
+
maxNumberOfActivations?: number | undefined;
|
|
5494
|
+
offlineActivationsAllowed?: boolean | undefined;
|
|
5495
|
+
activations?: {
|
|
5496
|
+
activationMethod: ActivationMethod;
|
|
5497
|
+
deviceName: string;
|
|
5498
|
+
deviceSignature: string;
|
|
5499
|
+
lastValidation?: Date | undefined;
|
|
5500
|
+
}[] | undefined;
|
|
5501
|
+
}>;
|
|
5502
|
+
}, "strip", z.ZodTypeAny, {
|
|
5503
|
+
type: "Product";
|
|
5504
|
+
productId: string;
|
|
5505
|
+
license: {
|
|
5506
|
+
externalId?: string | undefined;
|
|
5507
|
+
createdAt?: Date | undefined;
|
|
5508
|
+
maxNumberOfActivations?: number | undefined;
|
|
5509
|
+
offlineActivationsAllowed?: boolean | undefined;
|
|
5510
|
+
activations?: {
|
|
5511
|
+
activationMethod: ActivationMethod;
|
|
5512
|
+
deviceName: string;
|
|
5513
|
+
deviceSignature: string;
|
|
5514
|
+
lastValidation?: Date | undefined;
|
|
5515
|
+
}[] | undefined;
|
|
5516
|
+
};
|
|
5517
|
+
variationId?: string | undefined;
|
|
5518
|
+
}, {
|
|
5519
|
+
type: "Product";
|
|
5520
|
+
productId: string;
|
|
5521
|
+
license: {
|
|
5522
|
+
externalId?: string | undefined;
|
|
5523
|
+
createdAt?: Date | undefined;
|
|
5524
|
+
maxNumberOfActivations?: number | undefined;
|
|
5525
|
+
offlineActivationsAllowed?: boolean | undefined;
|
|
5526
|
+
activations?: {
|
|
5527
|
+
activationMethod: ActivationMethod;
|
|
5528
|
+
deviceName: string;
|
|
5529
|
+
deviceSignature: string;
|
|
5530
|
+
lastValidation?: Date | undefined;
|
|
5531
|
+
}[] | undefined;
|
|
5532
|
+
};
|
|
5533
|
+
variationId?: string | undefined;
|
|
5534
|
+
}>, z.ZodObject<{
|
|
5535
|
+
type: z.ZodLiteral<"Bundle">;
|
|
5536
|
+
bundleId: z.ZodString;
|
|
5537
|
+
variationId: z.ZodOptional<z.ZodString>;
|
|
5538
|
+
licenses: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
5539
|
+
externalId: z.ZodOptional<z.ZodString>;
|
|
5540
|
+
createdAt: z.ZodOptional<z.ZodDate>;
|
|
5541
|
+
maxNumberOfActivations: z.ZodOptional<z.ZodNumber>;
|
|
5542
|
+
offlineActivationsAllowed: z.ZodOptional<z.ZodBoolean>;
|
|
5543
|
+
activations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5544
|
+
activationMethod: z.ZodNativeEnum<typeof ActivationMethod>;
|
|
5545
|
+
deviceName: z.ZodString;
|
|
5546
|
+
deviceSignature: z.ZodString;
|
|
5547
|
+
lastValidation: z.ZodOptional<z.ZodDate>;
|
|
5548
|
+
}, "strip", z.ZodTypeAny, {
|
|
5549
|
+
activationMethod: ActivationMethod;
|
|
5550
|
+
deviceName: string;
|
|
5551
|
+
deviceSignature: string;
|
|
5552
|
+
lastValidation?: Date | undefined;
|
|
5553
|
+
}, {
|
|
5554
|
+
activationMethod: ActivationMethod;
|
|
5555
|
+
deviceName: string;
|
|
5556
|
+
deviceSignature: string;
|
|
5557
|
+
lastValidation?: Date | undefined;
|
|
5558
|
+
}>, "many">>;
|
|
5559
|
+
}, "strip", z.ZodTypeAny, {
|
|
5560
|
+
externalId?: string | undefined;
|
|
5561
|
+
createdAt?: Date | undefined;
|
|
5562
|
+
maxNumberOfActivations?: number | undefined;
|
|
5563
|
+
offlineActivationsAllowed?: boolean | undefined;
|
|
5564
|
+
activations?: {
|
|
5565
|
+
activationMethod: ActivationMethod;
|
|
5566
|
+
deviceName: string;
|
|
5567
|
+
deviceSignature: string;
|
|
5568
|
+
lastValidation?: Date | undefined;
|
|
5569
|
+
}[] | undefined;
|
|
5570
|
+
}, {
|
|
5571
|
+
externalId?: string | undefined;
|
|
5572
|
+
createdAt?: Date | undefined;
|
|
5573
|
+
maxNumberOfActivations?: number | undefined;
|
|
5574
|
+
offlineActivationsAllowed?: boolean | undefined;
|
|
5575
|
+
activations?: {
|
|
5576
|
+
activationMethod: ActivationMethod;
|
|
5577
|
+
deviceName: string;
|
|
5578
|
+
deviceSignature: string;
|
|
5579
|
+
lastValidation?: Date | undefined;
|
|
5580
|
+
}[] | undefined;
|
|
5581
|
+
}>>>;
|
|
5582
|
+
}, "strip", z.ZodTypeAny, {
|
|
5583
|
+
type: "Bundle";
|
|
5584
|
+
bundleId: string;
|
|
5585
|
+
variationId?: string | undefined;
|
|
5586
|
+
licenses?: Record<string, {
|
|
5587
|
+
externalId?: string | undefined;
|
|
5588
|
+
createdAt?: Date | undefined;
|
|
5589
|
+
maxNumberOfActivations?: number | undefined;
|
|
5590
|
+
offlineActivationsAllowed?: boolean | undefined;
|
|
5591
|
+
activations?: {
|
|
5592
|
+
activationMethod: ActivationMethod;
|
|
5593
|
+
deviceName: string;
|
|
5594
|
+
deviceSignature: string;
|
|
5595
|
+
lastValidation?: Date | undefined;
|
|
5596
|
+
}[] | undefined;
|
|
5597
|
+
}> | undefined;
|
|
5598
|
+
}, {
|
|
5599
|
+
type: "Bundle";
|
|
5600
|
+
bundleId: string;
|
|
5601
|
+
variationId?: string | undefined;
|
|
5602
|
+
licenses?: Record<string, {
|
|
5603
|
+
externalId?: string | undefined;
|
|
5604
|
+
createdAt?: Date | undefined;
|
|
5605
|
+
maxNumberOfActivations?: number | undefined;
|
|
5606
|
+
offlineActivationsAllowed?: boolean | undefined;
|
|
5607
|
+
activations?: {
|
|
5608
|
+
activationMethod: ActivationMethod;
|
|
5609
|
+
deviceName: string;
|
|
5610
|
+
deviceSignature: string;
|
|
5611
|
+
lastValidation?: Date | undefined;
|
|
5612
|
+
}[] | undefined;
|
|
5613
|
+
}> | undefined;
|
|
5614
|
+
}>]>;
|
|
5615
|
+
}, "strip", z.ZodTypeAny, {
|
|
5616
|
+
status: SubscriptionStatus;
|
|
5617
|
+
ownerId: string;
|
|
5618
|
+
expiresAt: Date;
|
|
5619
|
+
content: {
|
|
5620
|
+
type: "Product";
|
|
5621
|
+
productId: string;
|
|
5622
|
+
license: {
|
|
5623
|
+
externalId?: string | undefined;
|
|
5624
|
+
createdAt?: Date | undefined;
|
|
5625
|
+
maxNumberOfActivations?: number | undefined;
|
|
5626
|
+
offlineActivationsAllowed?: boolean | undefined;
|
|
5627
|
+
activations?: {
|
|
5628
|
+
activationMethod: ActivationMethod;
|
|
5629
|
+
deviceName: string;
|
|
5630
|
+
deviceSignature: string;
|
|
5631
|
+
lastValidation?: Date | undefined;
|
|
5632
|
+
}[] | undefined;
|
|
5633
|
+
};
|
|
5634
|
+
variationId?: string | undefined;
|
|
5635
|
+
} | {
|
|
5636
|
+
type: "Bundle";
|
|
5637
|
+
bundleId: string;
|
|
5638
|
+
variationId?: string | undefined;
|
|
5639
|
+
licenses?: Record<string, {
|
|
5640
|
+
externalId?: string | undefined;
|
|
5641
|
+
createdAt?: Date | undefined;
|
|
5642
|
+
maxNumberOfActivations?: number | undefined;
|
|
5643
|
+
offlineActivationsAllowed?: boolean | undefined;
|
|
5644
|
+
activations?: {
|
|
5645
|
+
activationMethod: ActivationMethod;
|
|
5646
|
+
deviceName: string;
|
|
5647
|
+
deviceSignature: string;
|
|
5648
|
+
lastValidation?: Date | undefined;
|
|
5649
|
+
}[] | undefined;
|
|
5650
|
+
}> | undefined;
|
|
5651
|
+
};
|
|
5652
|
+
startedAt: Date;
|
|
5653
|
+
currency?: string | undefined;
|
|
5654
|
+
externalId?: string | undefined;
|
|
5655
|
+
currentCycle?: number | undefined;
|
|
5656
|
+
}, {
|
|
5657
|
+
status: SubscriptionStatus;
|
|
5658
|
+
ownerId: string;
|
|
5659
|
+
expiresAt: Date;
|
|
5660
|
+
content: {
|
|
5661
|
+
type: "Product";
|
|
5662
|
+
productId: string;
|
|
5663
|
+
license: {
|
|
5664
|
+
externalId?: string | undefined;
|
|
5665
|
+
createdAt?: Date | undefined;
|
|
5666
|
+
maxNumberOfActivations?: number | undefined;
|
|
5667
|
+
offlineActivationsAllowed?: boolean | undefined;
|
|
5668
|
+
activations?: {
|
|
5669
|
+
activationMethod: ActivationMethod;
|
|
5670
|
+
deviceName: string;
|
|
5671
|
+
deviceSignature: string;
|
|
5672
|
+
lastValidation?: Date | undefined;
|
|
5673
|
+
}[] | undefined;
|
|
5674
|
+
};
|
|
5675
|
+
variationId?: string | undefined;
|
|
5676
|
+
} | {
|
|
5677
|
+
type: "Bundle";
|
|
5678
|
+
bundleId: string;
|
|
5679
|
+
variationId?: string | undefined;
|
|
5680
|
+
licenses?: Record<string, {
|
|
5681
|
+
externalId?: string | undefined;
|
|
5682
|
+
createdAt?: Date | undefined;
|
|
5683
|
+
maxNumberOfActivations?: number | undefined;
|
|
5684
|
+
offlineActivationsAllowed?: boolean | undefined;
|
|
5685
|
+
activations?: {
|
|
5686
|
+
activationMethod: ActivationMethod;
|
|
5687
|
+
deviceName: string;
|
|
5688
|
+
deviceSignature: string;
|
|
5689
|
+
lastValidation?: Date | undefined;
|
|
5690
|
+
}[] | undefined;
|
|
5691
|
+
}> | undefined;
|
|
5692
|
+
};
|
|
5693
|
+
startedAt: Date;
|
|
5694
|
+
currency?: string | undefined;
|
|
5695
|
+
externalId?: string | undefined;
|
|
5696
|
+
currentCycle?: number | undefined;
|
|
5697
|
+
}>;
|
|
5698
|
+
|
|
5699
|
+
declare enum SubscriptionStatus {
|
|
5700
|
+
Active = "Active",
|
|
5701
|
+
Expired = "Expired",
|
|
5702
|
+
Cancelled = "Cancelled"
|
|
5703
|
+
}
|
|
5704
|
+
declare enum CycleLength {
|
|
5705
|
+
Daily = "Daily",
|
|
5706
|
+
Weekly = "Weekly",
|
|
5707
|
+
Monthly = "Monthly",
|
|
5708
|
+
Quarterly = "Quarterly",
|
|
5709
|
+
Yearly = "Yearly"
|
|
5710
|
+
}
|
|
5711
|
+
type Subscription = z.infer<typeof subscriptionSchema>;
|
|
5712
|
+
type ImportSubscriptionRequest = z.infer<typeof importSubscriptionRequestSchema>;
|
|
5713
|
+
|
|
5714
|
+
declare class SubscriptionEndpoints {
|
|
5715
|
+
private api;
|
|
5716
|
+
constructor(api: MoonbaseApi);
|
|
5717
|
+
query(opts: {
|
|
5718
|
+
paginationToken?: string;
|
|
5719
|
+
status: SubscriptionStatus;
|
|
5720
|
+
after?: Date;
|
|
5721
|
+
before?: Date;
|
|
5722
|
+
pageSize?: number;
|
|
5723
|
+
}): Promise<Page<Subscription>>;
|
|
5724
|
+
get(subscriptionId: string): Promise<Subscription>;
|
|
5725
|
+
import(subscription: ImportSubscriptionRequest): Promise<Subscription>;
|
|
5726
|
+
}
|
|
5727
|
+
|
|
5037
5728
|
declare const trialSchema: z.ZodObject<{
|
|
5038
5729
|
id: z.ZodString;
|
|
5039
5730
|
externalId: z.ZodOptional<z.ZodString>;
|
|
@@ -5310,9 +6001,9 @@ declare const trialSchema: z.ZodObject<{
|
|
|
5310
6001
|
};
|
|
5311
6002
|
productId: string;
|
|
5312
6003
|
lastValidatedAt: Date;
|
|
6004
|
+
expiresAt: Date;
|
|
5313
6005
|
deviceName: string;
|
|
5314
6006
|
deviceSignature: string;
|
|
5315
|
-
expiresAt: Date;
|
|
5316
6007
|
externalId?: string | undefined;
|
|
5317
6008
|
customer?: {
|
|
5318
6009
|
id: string;
|
|
@@ -5377,9 +6068,9 @@ declare const trialSchema: z.ZodObject<{
|
|
|
5377
6068
|
};
|
|
5378
6069
|
productId: string;
|
|
5379
6070
|
lastValidatedAt: Date;
|
|
6071
|
+
expiresAt: Date;
|
|
5380
6072
|
deviceName: string;
|
|
5381
6073
|
deviceSignature: string;
|
|
5382
|
-
expiresAt: Date;
|
|
5383
6074
|
externalId?: string | undefined;
|
|
5384
6075
|
customer?: {
|
|
5385
6076
|
id: string;
|
|
@@ -5435,18 +6126,18 @@ declare const importTrialRequestSchema: z.ZodObject<{
|
|
|
5435
6126
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
5436
6127
|
}, "strip", z.ZodTypeAny, {
|
|
5437
6128
|
productId: string;
|
|
6129
|
+
expiresAt: Date;
|
|
5438
6130
|
deviceName: string;
|
|
5439
6131
|
deviceSignature: string;
|
|
5440
|
-
expiresAt: Date;
|
|
5441
6132
|
externalId?: string | undefined;
|
|
5442
6133
|
createdAt?: Date | undefined;
|
|
5443
6134
|
ownerId?: string | undefined;
|
|
5444
6135
|
lastValidation?: Date | undefined;
|
|
5445
6136
|
}, {
|
|
5446
6137
|
productId: string;
|
|
6138
|
+
expiresAt: Date;
|
|
5447
6139
|
deviceName: string;
|
|
5448
6140
|
deviceSignature: string;
|
|
5449
|
-
expiresAt: Date;
|
|
5450
6141
|
externalId?: string | undefined;
|
|
5451
6142
|
createdAt?: Date | undefined;
|
|
5452
6143
|
ownerId?: string | undefined;
|
|
@@ -5888,10 +6579,11 @@ declare class MoonbaseClient {
|
|
|
5888
6579
|
activationRequests: ActivationRequestEndpoints;
|
|
5889
6580
|
customers: CustomerEndpoints;
|
|
5890
6581
|
licenses: LicenseEndpoints;
|
|
6582
|
+
subscriptions: SubscriptionEndpoints;
|
|
5891
6583
|
products: ProductEndpoints;
|
|
5892
6584
|
trials: TrialEndpoints;
|
|
5893
6585
|
vouchers: VoucherEndpoints;
|
|
5894
6586
|
orders: OrderEndpoints;
|
|
5895
6587
|
}
|
|
5896
6588
|
|
|
5897
|
-
export { ActivationMethod, type ActivationRequest, ActivationRequestStatus, ActivationStatus, type Bundle, ConflictError, type CreateVoucherRequest, type Customer, type ImportCustomerRequest, type ImportLicenseRequest, type ImportTrialRequest, type License, type LicenseActivation, LicenseStatus, MoonbaseApi, MoonbaseClient, type MoonbaseConfiguration, MoonbaseError, NotAuthenticatedError, NotAuthorizedError, NotFoundError, type Order, OrderStatus, type Page, Platform, type PricingVariation, type Product, type ProductRelease, ProductStatus, type ProvisionLicensesRequest, type Quantifiable, type Trial, TrialStatus, type Voucher, type VoucherCode, objectToQuery };
|
|
6589
|
+
export { ActivationMethod, type ActivationRequest, ActivationRequestStatus, ActivationStatus, type Bundle, ConflictError, type CreateVoucherRequest, type Customer, CycleLength, type ImportCustomerRequest, type ImportLicenseRequest, type ImportSubscriptionRequest, type ImportTrialRequest, type License, type LicenseActivation, LicenseStatus, MoonbaseApi, MoonbaseClient, type MoonbaseConfiguration, MoonbaseError, NotAuthenticatedError, NotAuthorizedError, NotFoundError, type Order, OrderStatus, type Page, Platform, type PricingVariation, type Product, type ProductRelease, ProductStatus, type ProvisionLicensesRequest, type Quantifiable, type Subscription, SubscriptionStatus, type Trial, TrialStatus, type Voucher, type VoucherCode, objectToQuery };
|