@moonbase.sh/api 0.4.34 → 0.4.39
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 +1179 -191
- package/dist/index.d.ts +1179 -191
- package/dist/index.js +140 -26
- package/package.json +1 -1
package/dist/index.d.cts
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,210 +5037,1194 @@ declare class ProductEndpoints {
|
|
|
5034
5037
|
}): Promise<Page<ProductRelease>>;
|
|
5035
5038
|
}
|
|
5036
5039
|
|
|
5037
|
-
declare const
|
|
5040
|
+
declare const subscriptionSchema: z.ZodObject<{
|
|
5038
5041
|
id: z.ZodString;
|
|
5039
5042
|
externalId: z.ZodOptional<z.ZodString>;
|
|
5040
|
-
|
|
5041
|
-
|
|
5042
|
-
deviceSignature: z.ZodString;
|
|
5043
|
-
status: z.ZodNativeEnum<typeof TrialStatus>;
|
|
5043
|
+
ownerId: z.ZodString;
|
|
5044
|
+
status: z.ZodNativeEnum<typeof SubscriptionStatus>;
|
|
5044
5045
|
expiresAt: z.ZodDate;
|
|
5045
|
-
|
|
5046
|
-
|
|
5047
|
-
|
|
5048
|
-
|
|
5049
|
-
|
|
5050
|
-
|
|
5051
|
-
|
|
5052
|
-
|
|
5053
|
-
numberOfLicenses: z.ZodNumber;
|
|
5054
|
-
numberOfTrials: z.ZodNumber;
|
|
5055
|
-
emailConfirmed: z.ZodBoolean;
|
|
5056
|
-
hasPassword: z.ZodBoolean;
|
|
5057
|
-
isDeleted: z.ZodBoolean;
|
|
5058
|
-
ownedProducts: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
|
|
5059
|
-
subscribedProducts: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
|
|
5060
|
-
address: z.ZodNullable<z.ZodObject<{
|
|
5061
|
-
countryCode: z.ZodString;
|
|
5062
|
-
streetAddress1: z.ZodString;
|
|
5063
|
-
streetAddress2: z.ZodNullable<z.ZodString>;
|
|
5064
|
-
locality: z.ZodNullable<z.ZodString>;
|
|
5065
|
-
region: z.ZodNullable<z.ZodString>;
|
|
5066
|
-
postCode: z.ZodNullable<z.ZodString>;
|
|
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;
|
|
5067
5054
|
}, "strip", z.ZodTypeAny, {
|
|
5068
|
-
|
|
5069
|
-
|
|
5070
|
-
streetAddress2: string | null;
|
|
5071
|
-
locality: string | null;
|
|
5072
|
-
region: string | null;
|
|
5073
|
-
postCode: string | null;
|
|
5055
|
+
currency: string;
|
|
5056
|
+
amount: number;
|
|
5074
5057
|
}, {
|
|
5075
|
-
|
|
5076
|
-
|
|
5077
|
-
|
|
5078
|
-
|
|
5079
|
-
|
|
5080
|
-
|
|
5081
|
-
}>>;
|
|
5082
|
-
communicationPreferences: z.ZodObject<{
|
|
5083
|
-
newsletterOptIn: z.ZodBoolean;
|
|
5058
|
+
currency: string;
|
|
5059
|
+
amount: number;
|
|
5060
|
+
}>;
|
|
5061
|
+
discount: z.ZodObject<{
|
|
5062
|
+
currency: z.ZodString;
|
|
5063
|
+
amount: z.ZodNumber;
|
|
5084
5064
|
}, "strip", z.ZodTypeAny, {
|
|
5085
|
-
|
|
5065
|
+
currency: string;
|
|
5066
|
+
amount: number;
|
|
5086
5067
|
}, {
|
|
5087
|
-
|
|
5068
|
+
currency: string;
|
|
5069
|
+
amount: number;
|
|
5088
5070
|
}>;
|
|
5089
|
-
|
|
5090
|
-
|
|
5091
|
-
|
|
5092
|
-
id: z.ZodString;
|
|
5093
|
-
name: z.ZodString;
|
|
5094
|
-
email: z.ZodString;
|
|
5095
|
-
}, "strip", z.ZodTypeAny, {
|
|
5096
|
-
id: string;
|
|
5097
|
-
name: string;
|
|
5098
|
-
email: string;
|
|
5099
|
-
}, {
|
|
5100
|
-
id: string;
|
|
5101
|
-
name: string;
|
|
5102
|
-
email: string;
|
|
5103
|
-
}>;
|
|
5071
|
+
subtotal: z.ZodObject<{
|
|
5072
|
+
currency: z.ZodString;
|
|
5073
|
+
amount: z.ZodNumber;
|
|
5104
5074
|
}, "strip", z.ZodTypeAny, {
|
|
5105
|
-
|
|
5106
|
-
|
|
5107
|
-
id: string;
|
|
5108
|
-
name: string;
|
|
5109
|
-
email: string;
|
|
5110
|
-
};
|
|
5075
|
+
currency: string;
|
|
5076
|
+
amount: number;
|
|
5111
5077
|
}, {
|
|
5112
|
-
|
|
5113
|
-
|
|
5114
|
-
id: string;
|
|
5115
|
-
name: string;
|
|
5116
|
-
email: string;
|
|
5117
|
-
};
|
|
5078
|
+
currency: string;
|
|
5079
|
+
amount: number;
|
|
5118
5080
|
}>;
|
|
5119
|
-
|
|
5120
|
-
|
|
5121
|
-
|
|
5122
|
-
id: z.ZodString;
|
|
5123
|
-
name: z.ZodString;
|
|
5124
|
-
email: z.ZodString;
|
|
5125
|
-
}, "strip", z.ZodTypeAny, {
|
|
5126
|
-
id: string;
|
|
5127
|
-
name: string;
|
|
5128
|
-
email: string;
|
|
5129
|
-
}, {
|
|
5130
|
-
id: string;
|
|
5131
|
-
name: string;
|
|
5132
|
-
email: string;
|
|
5133
|
-
}>;
|
|
5081
|
+
taxes: z.ZodObject<{
|
|
5082
|
+
currency: z.ZodString;
|
|
5083
|
+
amount: z.ZodNumber;
|
|
5134
5084
|
}, "strip", z.ZodTypeAny, {
|
|
5135
|
-
|
|
5136
|
-
|
|
5137
|
-
id: string;
|
|
5138
|
-
name: string;
|
|
5139
|
-
email: string;
|
|
5140
|
-
};
|
|
5085
|
+
currency: string;
|
|
5086
|
+
amount: number;
|
|
5141
5087
|
}, {
|
|
5142
|
-
|
|
5143
|
-
|
|
5144
|
-
|
|
5145
|
-
|
|
5146
|
-
|
|
5147
|
-
|
|
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;
|
|
5148
5100
|
}>;
|
|
5149
5101
|
}, "strip", z.ZodTypeAny, {
|
|
5150
|
-
|
|
5151
|
-
|
|
5152
|
-
|
|
5153
|
-
businessName: string | null;
|
|
5154
|
-
taxId: string | null;
|
|
5155
|
-
numberOfLicenses: number;
|
|
5156
|
-
numberOfTrials: number;
|
|
5157
|
-
emailConfirmed: boolean;
|
|
5158
|
-
hasPassword: boolean;
|
|
5159
|
-
isDeleted: boolean;
|
|
5160
|
-
ownedProducts: string[];
|
|
5161
|
-
subscribedProducts: string[];
|
|
5162
|
-
address: {
|
|
5163
|
-
countryCode: string;
|
|
5164
|
-
streetAddress1: string;
|
|
5165
|
-
streetAddress2: string | null;
|
|
5166
|
-
locality: string | null;
|
|
5167
|
-
region: string | null;
|
|
5168
|
-
postCode: string | null;
|
|
5169
|
-
} | null;
|
|
5170
|
-
communicationPreferences: {
|
|
5171
|
-
newsletterOptIn: boolean;
|
|
5102
|
+
discount: {
|
|
5103
|
+
currency: string;
|
|
5104
|
+
amount: number;
|
|
5172
5105
|
};
|
|
5173
|
-
|
|
5174
|
-
|
|
5175
|
-
|
|
5176
|
-
id: string;
|
|
5177
|
-
name: string;
|
|
5178
|
-
email: string;
|
|
5179
|
-
};
|
|
5106
|
+
original: {
|
|
5107
|
+
currency: string;
|
|
5108
|
+
amount: number;
|
|
5180
5109
|
};
|
|
5181
|
-
|
|
5182
|
-
|
|
5183
|
-
|
|
5184
|
-
|
|
5185
|
-
|
|
5186
|
-
|
|
5187
|
-
|
|
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;
|
|
5188
5121
|
};
|
|
5189
|
-
externalId?: string | undefined;
|
|
5190
5122
|
}, {
|
|
5191
|
-
|
|
5192
|
-
|
|
5193
|
-
|
|
5194
|
-
businessName: string | null;
|
|
5195
|
-
taxId: string | null;
|
|
5196
|
-
numberOfLicenses: number;
|
|
5197
|
-
numberOfTrials: number;
|
|
5198
|
-
emailConfirmed: boolean;
|
|
5199
|
-
hasPassword: boolean;
|
|
5200
|
-
isDeleted: boolean;
|
|
5201
|
-
ownedProducts: string[];
|
|
5202
|
-
subscribedProducts: string[];
|
|
5203
|
-
address: {
|
|
5204
|
-
countryCode: string;
|
|
5205
|
-
streetAddress1: string;
|
|
5206
|
-
streetAddress2: string | null;
|
|
5207
|
-
locality: string | null;
|
|
5208
|
-
region: string | null;
|
|
5209
|
-
postCode: string | null;
|
|
5210
|
-
} | null;
|
|
5211
|
-
communicationPreferences: {
|
|
5212
|
-
newsletterOptIn: boolean;
|
|
5123
|
+
discount: {
|
|
5124
|
+
currency: string;
|
|
5125
|
+
amount: number;
|
|
5213
5126
|
};
|
|
5214
|
-
|
|
5215
|
-
|
|
5216
|
-
|
|
5217
|
-
id: string;
|
|
5218
|
-
name: string;
|
|
5219
|
-
email: string;
|
|
5220
|
-
};
|
|
5127
|
+
original: {
|
|
5128
|
+
currency: string;
|
|
5129
|
+
amount: number;
|
|
5221
5130
|
};
|
|
5222
|
-
|
|
5223
|
-
|
|
5224
|
-
|
|
5225
|
-
id: string;
|
|
5226
|
-
name: string;
|
|
5227
|
-
email: string;
|
|
5228
|
-
};
|
|
5131
|
+
subtotal: {
|
|
5132
|
+
currency: string;
|
|
5133
|
+
amount: number;
|
|
5229
5134
|
};
|
|
5230
|
-
|
|
5231
|
-
|
|
5232
|
-
|
|
5233
|
-
|
|
5234
|
-
|
|
5235
|
-
|
|
5236
|
-
|
|
5237
|
-
|
|
5238
|
-
|
|
5239
|
-
|
|
5240
|
-
|
|
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.ZodDiscriminatedUnion<"type", [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
|
+
}>, z.ZodObject<{
|
|
5161
|
+
type: z.ZodLiteral<"Bundle">;
|
|
5162
|
+
productLicenses: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
5163
|
+
licenseIds: z.ZodArray<z.ZodString, "many">;
|
|
5164
|
+
}, "strip", z.ZodTypeAny, {
|
|
5165
|
+
licenseIds: string[];
|
|
5166
|
+
}, {
|
|
5167
|
+
licenseIds: string[];
|
|
5168
|
+
}>>;
|
|
5169
|
+
}, "strip", z.ZodTypeAny, {
|
|
5170
|
+
type: "Bundle";
|
|
5171
|
+
productLicenses: Record<string, {
|
|
5172
|
+
licenseIds: string[];
|
|
5173
|
+
}>;
|
|
5174
|
+
}, {
|
|
5175
|
+
type: "Bundle";
|
|
5176
|
+
productLicenses: Record<string, {
|
|
5177
|
+
licenseIds: string[];
|
|
5178
|
+
}>;
|
|
5179
|
+
}>, z.ZodObject<{
|
|
5180
|
+
type: z.ZodLiteral<"Subscription">;
|
|
5181
|
+
subscriptionId: z.ZodString;
|
|
5182
|
+
inner: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
5183
|
+
type: z.ZodLiteral<"License">;
|
|
5184
|
+
licenseIds: z.ZodArray<z.ZodString, "many">;
|
|
5185
|
+
}, "strip", z.ZodTypeAny, {
|
|
5186
|
+
type: "License";
|
|
5187
|
+
licenseIds: string[];
|
|
5188
|
+
}, {
|
|
5189
|
+
type: "License";
|
|
5190
|
+
licenseIds: string[];
|
|
5191
|
+
}>, z.ZodObject<{
|
|
5192
|
+
type: z.ZodLiteral<"Bundle">;
|
|
5193
|
+
productLicenses: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
5194
|
+
licenseIds: z.ZodArray<z.ZodString, "many">;
|
|
5195
|
+
}, "strip", z.ZodTypeAny, {
|
|
5196
|
+
licenseIds: string[];
|
|
5197
|
+
}, {
|
|
5198
|
+
licenseIds: string[];
|
|
5199
|
+
}>>;
|
|
5200
|
+
}, "strip", z.ZodTypeAny, {
|
|
5201
|
+
type: "Bundle";
|
|
5202
|
+
productLicenses: Record<string, {
|
|
5203
|
+
licenseIds: string[];
|
|
5204
|
+
}>;
|
|
5205
|
+
}, {
|
|
5206
|
+
type: "Bundle";
|
|
5207
|
+
productLicenses: Record<string, {
|
|
5208
|
+
licenseIds: string[];
|
|
5209
|
+
}>;
|
|
5210
|
+
}>]>;
|
|
5211
|
+
}, "strip", z.ZodTypeAny, {
|
|
5212
|
+
type: "Subscription";
|
|
5213
|
+
subscriptionId: string;
|
|
5214
|
+
inner: {
|
|
5215
|
+
type: "License";
|
|
5216
|
+
licenseIds: string[];
|
|
5217
|
+
} | {
|
|
5218
|
+
type: "Bundle";
|
|
5219
|
+
productLicenses: Record<string, {
|
|
5220
|
+
licenseIds: string[];
|
|
5221
|
+
}>;
|
|
5222
|
+
};
|
|
5223
|
+
}, {
|
|
5224
|
+
type: "Subscription";
|
|
5225
|
+
subscriptionId: string;
|
|
5226
|
+
inner: {
|
|
5227
|
+
type: "License";
|
|
5228
|
+
licenseIds: string[];
|
|
5229
|
+
} | {
|
|
5230
|
+
type: "Bundle";
|
|
5231
|
+
productLicenses: Record<string, {
|
|
5232
|
+
licenseIds: string[];
|
|
5233
|
+
}>;
|
|
5234
|
+
};
|
|
5235
|
+
}>, z.ZodObject<{
|
|
5236
|
+
type: z.ZodLiteral<"NoFulfillment">;
|
|
5237
|
+
}, "strip", z.ZodTypeAny, {
|
|
5238
|
+
type: "NoFulfillment";
|
|
5239
|
+
}, {
|
|
5240
|
+
type: "NoFulfillment";
|
|
5241
|
+
}>]>;
|
|
5242
|
+
}, "strip", z.ZodTypeAny, {
|
|
5243
|
+
type: "Product";
|
|
5244
|
+
quantity: number;
|
|
5245
|
+
productId: string;
|
|
5246
|
+
fulfillment: {
|
|
5247
|
+
type: "License";
|
|
5248
|
+
licenseIds: string[];
|
|
5249
|
+
} | {
|
|
5250
|
+
type: "Bundle";
|
|
5251
|
+
productLicenses: Record<string, {
|
|
5252
|
+
licenseIds: string[];
|
|
5253
|
+
}>;
|
|
5254
|
+
} | {
|
|
5255
|
+
type: "Subscription";
|
|
5256
|
+
subscriptionId: string;
|
|
5257
|
+
inner: {
|
|
5258
|
+
type: "License";
|
|
5259
|
+
licenseIds: string[];
|
|
5260
|
+
} | {
|
|
5261
|
+
type: "Bundle";
|
|
5262
|
+
productLicenses: Record<string, {
|
|
5263
|
+
licenseIds: string[];
|
|
5264
|
+
}>;
|
|
5265
|
+
};
|
|
5266
|
+
} | {
|
|
5267
|
+
type: "NoFulfillment";
|
|
5268
|
+
};
|
|
5269
|
+
}, {
|
|
5270
|
+
type: "Product";
|
|
5271
|
+
quantity: number;
|
|
5272
|
+
productId: string;
|
|
5273
|
+
fulfillment: {
|
|
5274
|
+
type: "License";
|
|
5275
|
+
licenseIds: string[];
|
|
5276
|
+
} | {
|
|
5277
|
+
type: "Bundle";
|
|
5278
|
+
productLicenses: Record<string, {
|
|
5279
|
+
licenseIds: string[];
|
|
5280
|
+
}>;
|
|
5281
|
+
} | {
|
|
5282
|
+
type: "Subscription";
|
|
5283
|
+
subscriptionId: string;
|
|
5284
|
+
inner: {
|
|
5285
|
+
type: "License";
|
|
5286
|
+
licenseIds: string[];
|
|
5287
|
+
} | {
|
|
5288
|
+
type: "Bundle";
|
|
5289
|
+
productLicenses: Record<string, {
|
|
5290
|
+
licenseIds: string[];
|
|
5291
|
+
}>;
|
|
5292
|
+
};
|
|
5293
|
+
} | {
|
|
5294
|
+
type: "NoFulfillment";
|
|
5295
|
+
};
|
|
5296
|
+
}>, z.ZodObject<{
|
|
5297
|
+
type: z.ZodLiteral<"Bundle">;
|
|
5298
|
+
bundleId: z.ZodString;
|
|
5299
|
+
quantity: z.ZodNumber;
|
|
5300
|
+
fulfillment: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
5301
|
+
type: z.ZodLiteral<"License">;
|
|
5302
|
+
licenseIds: z.ZodArray<z.ZodString, "many">;
|
|
5303
|
+
}, "strip", z.ZodTypeAny, {
|
|
5304
|
+
type: "License";
|
|
5305
|
+
licenseIds: string[];
|
|
5306
|
+
}, {
|
|
5307
|
+
type: "License";
|
|
5308
|
+
licenseIds: string[];
|
|
5309
|
+
}>, z.ZodObject<{
|
|
5310
|
+
type: z.ZodLiteral<"Bundle">;
|
|
5311
|
+
productLicenses: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
5312
|
+
licenseIds: z.ZodArray<z.ZodString, "many">;
|
|
5313
|
+
}, "strip", z.ZodTypeAny, {
|
|
5314
|
+
licenseIds: string[];
|
|
5315
|
+
}, {
|
|
5316
|
+
licenseIds: string[];
|
|
5317
|
+
}>>;
|
|
5318
|
+
}, "strip", z.ZodTypeAny, {
|
|
5319
|
+
type: "Bundle";
|
|
5320
|
+
productLicenses: Record<string, {
|
|
5321
|
+
licenseIds: string[];
|
|
5322
|
+
}>;
|
|
5323
|
+
}, {
|
|
5324
|
+
type: "Bundle";
|
|
5325
|
+
productLicenses: Record<string, {
|
|
5326
|
+
licenseIds: string[];
|
|
5327
|
+
}>;
|
|
5328
|
+
}>, z.ZodObject<{
|
|
5329
|
+
type: z.ZodLiteral<"Subscription">;
|
|
5330
|
+
subscriptionId: z.ZodString;
|
|
5331
|
+
inner: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
5332
|
+
type: z.ZodLiteral<"License">;
|
|
5333
|
+
licenseIds: z.ZodArray<z.ZodString, "many">;
|
|
5334
|
+
}, "strip", z.ZodTypeAny, {
|
|
5335
|
+
type: "License";
|
|
5336
|
+
licenseIds: string[];
|
|
5337
|
+
}, {
|
|
5338
|
+
type: "License";
|
|
5339
|
+
licenseIds: string[];
|
|
5340
|
+
}>, z.ZodObject<{
|
|
5341
|
+
type: z.ZodLiteral<"Bundle">;
|
|
5342
|
+
productLicenses: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
5343
|
+
licenseIds: z.ZodArray<z.ZodString, "many">;
|
|
5344
|
+
}, "strip", z.ZodTypeAny, {
|
|
5345
|
+
licenseIds: string[];
|
|
5346
|
+
}, {
|
|
5347
|
+
licenseIds: string[];
|
|
5348
|
+
}>>;
|
|
5349
|
+
}, "strip", z.ZodTypeAny, {
|
|
5350
|
+
type: "Bundle";
|
|
5351
|
+
productLicenses: Record<string, {
|
|
5352
|
+
licenseIds: string[];
|
|
5353
|
+
}>;
|
|
5354
|
+
}, {
|
|
5355
|
+
type: "Bundle";
|
|
5356
|
+
productLicenses: Record<string, {
|
|
5357
|
+
licenseIds: string[];
|
|
5358
|
+
}>;
|
|
5359
|
+
}>]>;
|
|
5360
|
+
}, "strip", z.ZodTypeAny, {
|
|
5361
|
+
type: "Subscription";
|
|
5362
|
+
subscriptionId: string;
|
|
5363
|
+
inner: {
|
|
5364
|
+
type: "License";
|
|
5365
|
+
licenseIds: string[];
|
|
5366
|
+
} | {
|
|
5367
|
+
type: "Bundle";
|
|
5368
|
+
productLicenses: Record<string, {
|
|
5369
|
+
licenseIds: string[];
|
|
5370
|
+
}>;
|
|
5371
|
+
};
|
|
5372
|
+
}, {
|
|
5373
|
+
type: "Subscription";
|
|
5374
|
+
subscriptionId: string;
|
|
5375
|
+
inner: {
|
|
5376
|
+
type: "License";
|
|
5377
|
+
licenseIds: string[];
|
|
5378
|
+
} | {
|
|
5379
|
+
type: "Bundle";
|
|
5380
|
+
productLicenses: Record<string, {
|
|
5381
|
+
licenseIds: string[];
|
|
5382
|
+
}>;
|
|
5383
|
+
};
|
|
5384
|
+
}>, z.ZodObject<{
|
|
5385
|
+
type: z.ZodLiteral<"NoFulfillment">;
|
|
5386
|
+
}, "strip", z.ZodTypeAny, {
|
|
5387
|
+
type: "NoFulfillment";
|
|
5388
|
+
}, {
|
|
5389
|
+
type: "NoFulfillment";
|
|
5390
|
+
}>]>;
|
|
5391
|
+
}, "strip", z.ZodTypeAny, {
|
|
5392
|
+
type: "Bundle";
|
|
5393
|
+
quantity: number;
|
|
5394
|
+
fulfillment: {
|
|
5395
|
+
type: "License";
|
|
5396
|
+
licenseIds: string[];
|
|
5397
|
+
} | {
|
|
5398
|
+
type: "Bundle";
|
|
5399
|
+
productLicenses: Record<string, {
|
|
5400
|
+
licenseIds: string[];
|
|
5401
|
+
}>;
|
|
5402
|
+
} | {
|
|
5403
|
+
type: "Subscription";
|
|
5404
|
+
subscriptionId: string;
|
|
5405
|
+
inner: {
|
|
5406
|
+
type: "License";
|
|
5407
|
+
licenseIds: string[];
|
|
5408
|
+
} | {
|
|
5409
|
+
type: "Bundle";
|
|
5410
|
+
productLicenses: Record<string, {
|
|
5411
|
+
licenseIds: string[];
|
|
5412
|
+
}>;
|
|
5413
|
+
};
|
|
5414
|
+
} | {
|
|
5415
|
+
type: "NoFulfillment";
|
|
5416
|
+
};
|
|
5417
|
+
bundleId: string;
|
|
5418
|
+
}, {
|
|
5419
|
+
type: "Bundle";
|
|
5420
|
+
quantity: number;
|
|
5421
|
+
fulfillment: {
|
|
5422
|
+
type: "License";
|
|
5423
|
+
licenseIds: string[];
|
|
5424
|
+
} | {
|
|
5425
|
+
type: "Bundle";
|
|
5426
|
+
productLicenses: Record<string, {
|
|
5427
|
+
licenseIds: string[];
|
|
5428
|
+
}>;
|
|
5429
|
+
} | {
|
|
5430
|
+
type: "Subscription";
|
|
5431
|
+
subscriptionId: string;
|
|
5432
|
+
inner: {
|
|
5433
|
+
type: "License";
|
|
5434
|
+
licenseIds: string[];
|
|
5435
|
+
} | {
|
|
5436
|
+
type: "Bundle";
|
|
5437
|
+
productLicenses: Record<string, {
|
|
5438
|
+
licenseIds: string[];
|
|
5439
|
+
}>;
|
|
5440
|
+
};
|
|
5441
|
+
} | {
|
|
5442
|
+
type: "NoFulfillment";
|
|
5443
|
+
};
|
|
5444
|
+
bundleId: string;
|
|
5445
|
+
}>]>;
|
|
5446
|
+
pricingVariation: z.ZodObject<{
|
|
5447
|
+
id: z.ZodString;
|
|
5448
|
+
name: z.ZodString;
|
|
5449
|
+
price: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
5450
|
+
}, "strip", z.ZodTypeAny, {
|
|
5451
|
+
id: string;
|
|
5452
|
+
name: string;
|
|
5453
|
+
price: Record<string, number>;
|
|
5454
|
+
}, {
|
|
5455
|
+
id: string;
|
|
5456
|
+
name: string;
|
|
5457
|
+
price: Record<string, number>;
|
|
5458
|
+
}>;
|
|
5459
|
+
lastUpdated: z.ZodObject<{
|
|
5460
|
+
at: z.ZodDate;
|
|
5461
|
+
by: z.ZodObject<{
|
|
5462
|
+
id: z.ZodString;
|
|
5463
|
+
name: z.ZodString;
|
|
5464
|
+
email: z.ZodString;
|
|
5465
|
+
}, "strip", z.ZodTypeAny, {
|
|
5466
|
+
id: string;
|
|
5467
|
+
name: string;
|
|
5468
|
+
email: string;
|
|
5469
|
+
}, {
|
|
5470
|
+
id: string;
|
|
5471
|
+
name: string;
|
|
5472
|
+
email: string;
|
|
5473
|
+
}>;
|
|
5474
|
+
}, "strip", z.ZodTypeAny, {
|
|
5475
|
+
at: Date;
|
|
5476
|
+
by: {
|
|
5477
|
+
id: string;
|
|
5478
|
+
name: string;
|
|
5479
|
+
email: string;
|
|
5480
|
+
};
|
|
5481
|
+
}, {
|
|
5482
|
+
at: Date;
|
|
5483
|
+
by: {
|
|
5484
|
+
id: string;
|
|
5485
|
+
name: string;
|
|
5486
|
+
email: string;
|
|
5487
|
+
};
|
|
5488
|
+
}>;
|
|
5489
|
+
created: z.ZodObject<{
|
|
5490
|
+
at: z.ZodDate;
|
|
5491
|
+
by: z.ZodObject<{
|
|
5492
|
+
id: z.ZodString;
|
|
5493
|
+
name: z.ZodString;
|
|
5494
|
+
email: z.ZodString;
|
|
5495
|
+
}, "strip", z.ZodTypeAny, {
|
|
5496
|
+
id: string;
|
|
5497
|
+
name: string;
|
|
5498
|
+
email: string;
|
|
5499
|
+
}, {
|
|
5500
|
+
id: string;
|
|
5501
|
+
name: string;
|
|
5502
|
+
email: string;
|
|
5503
|
+
}>;
|
|
5504
|
+
}, "strip", z.ZodTypeAny, {
|
|
5505
|
+
at: Date;
|
|
5506
|
+
by: {
|
|
5507
|
+
id: string;
|
|
5508
|
+
name: string;
|
|
5509
|
+
email: string;
|
|
5510
|
+
};
|
|
5511
|
+
}, {
|
|
5512
|
+
at: Date;
|
|
5513
|
+
by: {
|
|
5514
|
+
id: string;
|
|
5515
|
+
name: string;
|
|
5516
|
+
email: string;
|
|
5517
|
+
};
|
|
5518
|
+
}>;
|
|
5519
|
+
}, "strip", z.ZodTypeAny, {
|
|
5520
|
+
status: SubscriptionStatus;
|
|
5521
|
+
id: string;
|
|
5522
|
+
currency: string;
|
|
5523
|
+
total: {
|
|
5524
|
+
discount: {
|
|
5525
|
+
currency: string;
|
|
5526
|
+
amount: number;
|
|
5527
|
+
};
|
|
5528
|
+
original: {
|
|
5529
|
+
currency: string;
|
|
5530
|
+
amount: number;
|
|
5531
|
+
};
|
|
5532
|
+
subtotal: {
|
|
5533
|
+
currency: string;
|
|
5534
|
+
amount: number;
|
|
5535
|
+
};
|
|
5536
|
+
due: {
|
|
5537
|
+
currency: string;
|
|
5538
|
+
amount: number;
|
|
5539
|
+
};
|
|
5540
|
+
taxes: {
|
|
5541
|
+
currency: string;
|
|
5542
|
+
amount: number;
|
|
5543
|
+
};
|
|
5544
|
+
};
|
|
5545
|
+
lastUpdated: {
|
|
5546
|
+
at: Date;
|
|
5547
|
+
by: {
|
|
5548
|
+
id: string;
|
|
5549
|
+
name: string;
|
|
5550
|
+
email: string;
|
|
5551
|
+
};
|
|
5552
|
+
};
|
|
5553
|
+
created: {
|
|
5554
|
+
at: Date;
|
|
5555
|
+
by: {
|
|
5556
|
+
id: string;
|
|
5557
|
+
name: string;
|
|
5558
|
+
email: string;
|
|
5559
|
+
};
|
|
5560
|
+
};
|
|
5561
|
+
ownerId: string;
|
|
5562
|
+
expiresAt: Date;
|
|
5563
|
+
content: {
|
|
5564
|
+
type: "Product";
|
|
5565
|
+
quantity: number;
|
|
5566
|
+
productId: string;
|
|
5567
|
+
fulfillment: {
|
|
5568
|
+
type: "License";
|
|
5569
|
+
licenseIds: string[];
|
|
5570
|
+
} | {
|
|
5571
|
+
type: "Bundle";
|
|
5572
|
+
productLicenses: Record<string, {
|
|
5573
|
+
licenseIds: string[];
|
|
5574
|
+
}>;
|
|
5575
|
+
} | {
|
|
5576
|
+
type: "Subscription";
|
|
5577
|
+
subscriptionId: string;
|
|
5578
|
+
inner: {
|
|
5579
|
+
type: "License";
|
|
5580
|
+
licenseIds: string[];
|
|
5581
|
+
} | {
|
|
5582
|
+
type: "Bundle";
|
|
5583
|
+
productLicenses: Record<string, {
|
|
5584
|
+
licenseIds: string[];
|
|
5585
|
+
}>;
|
|
5586
|
+
};
|
|
5587
|
+
} | {
|
|
5588
|
+
type: "NoFulfillment";
|
|
5589
|
+
};
|
|
5590
|
+
} | {
|
|
5591
|
+
type: "Bundle";
|
|
5592
|
+
quantity: number;
|
|
5593
|
+
fulfillment: {
|
|
5594
|
+
type: "License";
|
|
5595
|
+
licenseIds: string[];
|
|
5596
|
+
} | {
|
|
5597
|
+
type: "Bundle";
|
|
5598
|
+
productLicenses: Record<string, {
|
|
5599
|
+
licenseIds: string[];
|
|
5600
|
+
}>;
|
|
5601
|
+
} | {
|
|
5602
|
+
type: "Subscription";
|
|
5603
|
+
subscriptionId: string;
|
|
5604
|
+
inner: {
|
|
5605
|
+
type: "License";
|
|
5606
|
+
licenseIds: string[];
|
|
5607
|
+
} | {
|
|
5608
|
+
type: "Bundle";
|
|
5609
|
+
productLicenses: Record<string, {
|
|
5610
|
+
licenseIds: string[];
|
|
5611
|
+
}>;
|
|
5612
|
+
};
|
|
5613
|
+
} | {
|
|
5614
|
+
type: "NoFulfillment";
|
|
5615
|
+
};
|
|
5616
|
+
bundleId: string;
|
|
5617
|
+
};
|
|
5618
|
+
startedAt: Date;
|
|
5619
|
+
licenseExpiry: Date;
|
|
5620
|
+
renewedAt: Date | null;
|
|
5621
|
+
nextPaymentScheduledAt: Date | null;
|
|
5622
|
+
cycleLength: CycleLength;
|
|
5623
|
+
currentCycle: number;
|
|
5624
|
+
pricingVariation: {
|
|
5625
|
+
id: string;
|
|
5626
|
+
name: string;
|
|
5627
|
+
price: Record<string, number>;
|
|
5628
|
+
};
|
|
5629
|
+
externalId?: string | undefined;
|
|
5630
|
+
}, {
|
|
5631
|
+
status: SubscriptionStatus;
|
|
5632
|
+
id: string;
|
|
5633
|
+
currency: string;
|
|
5634
|
+
total: {
|
|
5635
|
+
discount: {
|
|
5636
|
+
currency: string;
|
|
5637
|
+
amount: number;
|
|
5638
|
+
};
|
|
5639
|
+
original: {
|
|
5640
|
+
currency: string;
|
|
5641
|
+
amount: number;
|
|
5642
|
+
};
|
|
5643
|
+
subtotal: {
|
|
5644
|
+
currency: string;
|
|
5645
|
+
amount: number;
|
|
5646
|
+
};
|
|
5647
|
+
due: {
|
|
5648
|
+
currency: string;
|
|
5649
|
+
amount: number;
|
|
5650
|
+
};
|
|
5651
|
+
taxes: {
|
|
5652
|
+
currency: string;
|
|
5653
|
+
amount: number;
|
|
5654
|
+
};
|
|
5655
|
+
};
|
|
5656
|
+
lastUpdated: {
|
|
5657
|
+
at: Date;
|
|
5658
|
+
by: {
|
|
5659
|
+
id: string;
|
|
5660
|
+
name: string;
|
|
5661
|
+
email: string;
|
|
5662
|
+
};
|
|
5663
|
+
};
|
|
5664
|
+
created: {
|
|
5665
|
+
at: Date;
|
|
5666
|
+
by: {
|
|
5667
|
+
id: string;
|
|
5668
|
+
name: string;
|
|
5669
|
+
email: string;
|
|
5670
|
+
};
|
|
5671
|
+
};
|
|
5672
|
+
ownerId: string;
|
|
5673
|
+
expiresAt: Date;
|
|
5674
|
+
content: {
|
|
5675
|
+
type: "Product";
|
|
5676
|
+
quantity: number;
|
|
5677
|
+
productId: string;
|
|
5678
|
+
fulfillment: {
|
|
5679
|
+
type: "License";
|
|
5680
|
+
licenseIds: string[];
|
|
5681
|
+
} | {
|
|
5682
|
+
type: "Bundle";
|
|
5683
|
+
productLicenses: Record<string, {
|
|
5684
|
+
licenseIds: string[];
|
|
5685
|
+
}>;
|
|
5686
|
+
} | {
|
|
5687
|
+
type: "Subscription";
|
|
5688
|
+
subscriptionId: string;
|
|
5689
|
+
inner: {
|
|
5690
|
+
type: "License";
|
|
5691
|
+
licenseIds: string[];
|
|
5692
|
+
} | {
|
|
5693
|
+
type: "Bundle";
|
|
5694
|
+
productLicenses: Record<string, {
|
|
5695
|
+
licenseIds: string[];
|
|
5696
|
+
}>;
|
|
5697
|
+
};
|
|
5698
|
+
} | {
|
|
5699
|
+
type: "NoFulfillment";
|
|
5700
|
+
};
|
|
5701
|
+
} | {
|
|
5702
|
+
type: "Bundle";
|
|
5703
|
+
quantity: number;
|
|
5704
|
+
fulfillment: {
|
|
5705
|
+
type: "License";
|
|
5706
|
+
licenseIds: string[];
|
|
5707
|
+
} | {
|
|
5708
|
+
type: "Bundle";
|
|
5709
|
+
productLicenses: Record<string, {
|
|
5710
|
+
licenseIds: string[];
|
|
5711
|
+
}>;
|
|
5712
|
+
} | {
|
|
5713
|
+
type: "Subscription";
|
|
5714
|
+
subscriptionId: string;
|
|
5715
|
+
inner: {
|
|
5716
|
+
type: "License";
|
|
5717
|
+
licenseIds: string[];
|
|
5718
|
+
} | {
|
|
5719
|
+
type: "Bundle";
|
|
5720
|
+
productLicenses: Record<string, {
|
|
5721
|
+
licenseIds: string[];
|
|
5722
|
+
}>;
|
|
5723
|
+
};
|
|
5724
|
+
} | {
|
|
5725
|
+
type: "NoFulfillment";
|
|
5726
|
+
};
|
|
5727
|
+
bundleId: string;
|
|
5728
|
+
};
|
|
5729
|
+
startedAt: Date;
|
|
5730
|
+
licenseExpiry: Date;
|
|
5731
|
+
renewedAt: Date | null;
|
|
5732
|
+
nextPaymentScheduledAt: Date | null;
|
|
5733
|
+
cycleLength: CycleLength;
|
|
5734
|
+
currentCycle: number;
|
|
5735
|
+
pricingVariation: {
|
|
5736
|
+
id: string;
|
|
5737
|
+
name: string;
|
|
5738
|
+
price: Record<string, number>;
|
|
5739
|
+
};
|
|
5740
|
+
externalId?: string | undefined;
|
|
5741
|
+
}>;
|
|
5742
|
+
declare const importSubscriptionRequestSchema: z.ZodObject<{
|
|
5743
|
+
ownerId: z.ZodString;
|
|
5744
|
+
externalId: z.ZodOptional<z.ZodString>;
|
|
5745
|
+
status: z.ZodNativeEnum<typeof SubscriptionStatus>;
|
|
5746
|
+
startedAt: z.ZodDate;
|
|
5747
|
+
expiresAt: z.ZodDate;
|
|
5748
|
+
currentCycle: z.ZodOptional<z.ZodNumber>;
|
|
5749
|
+
currency: z.ZodOptional<z.ZodString>;
|
|
5750
|
+
content: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
5751
|
+
type: z.ZodLiteral<"Product">;
|
|
5752
|
+
productId: z.ZodString;
|
|
5753
|
+
variationId: z.ZodOptional<z.ZodString>;
|
|
5754
|
+
license: z.ZodObject<{
|
|
5755
|
+
externalId: z.ZodOptional<z.ZodString>;
|
|
5756
|
+
createdAt: z.ZodOptional<z.ZodDate>;
|
|
5757
|
+
maxNumberOfActivations: z.ZodOptional<z.ZodNumber>;
|
|
5758
|
+
offlineActivationsAllowed: z.ZodOptional<z.ZodBoolean>;
|
|
5759
|
+
activations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5760
|
+
activationMethod: z.ZodNativeEnum<typeof ActivationMethod>;
|
|
5761
|
+
deviceName: z.ZodString;
|
|
5762
|
+
deviceSignature: z.ZodString;
|
|
5763
|
+
lastValidation: z.ZodOptional<z.ZodDate>;
|
|
5764
|
+
}, "strip", z.ZodTypeAny, {
|
|
5765
|
+
activationMethod: ActivationMethod;
|
|
5766
|
+
deviceName: string;
|
|
5767
|
+
deviceSignature: string;
|
|
5768
|
+
lastValidation?: Date | undefined;
|
|
5769
|
+
}, {
|
|
5770
|
+
activationMethod: ActivationMethod;
|
|
5771
|
+
deviceName: string;
|
|
5772
|
+
deviceSignature: string;
|
|
5773
|
+
lastValidation?: Date | undefined;
|
|
5774
|
+
}>, "many">>;
|
|
5775
|
+
}, "strip", z.ZodTypeAny, {
|
|
5776
|
+
externalId?: string | undefined;
|
|
5777
|
+
createdAt?: Date | undefined;
|
|
5778
|
+
maxNumberOfActivations?: number | undefined;
|
|
5779
|
+
offlineActivationsAllowed?: boolean | undefined;
|
|
5780
|
+
activations?: {
|
|
5781
|
+
activationMethod: ActivationMethod;
|
|
5782
|
+
deviceName: string;
|
|
5783
|
+
deviceSignature: string;
|
|
5784
|
+
lastValidation?: Date | undefined;
|
|
5785
|
+
}[] | undefined;
|
|
5786
|
+
}, {
|
|
5787
|
+
externalId?: string | undefined;
|
|
5788
|
+
createdAt?: Date | undefined;
|
|
5789
|
+
maxNumberOfActivations?: number | undefined;
|
|
5790
|
+
offlineActivationsAllowed?: boolean | undefined;
|
|
5791
|
+
activations?: {
|
|
5792
|
+
activationMethod: ActivationMethod;
|
|
5793
|
+
deviceName: string;
|
|
5794
|
+
deviceSignature: string;
|
|
5795
|
+
lastValidation?: Date | undefined;
|
|
5796
|
+
}[] | undefined;
|
|
5797
|
+
}>;
|
|
5798
|
+
}, "strip", z.ZodTypeAny, {
|
|
5799
|
+
type: "Product";
|
|
5800
|
+
productId: string;
|
|
5801
|
+
license: {
|
|
5802
|
+
externalId?: string | undefined;
|
|
5803
|
+
createdAt?: Date | undefined;
|
|
5804
|
+
maxNumberOfActivations?: number | undefined;
|
|
5805
|
+
offlineActivationsAllowed?: boolean | undefined;
|
|
5806
|
+
activations?: {
|
|
5807
|
+
activationMethod: ActivationMethod;
|
|
5808
|
+
deviceName: string;
|
|
5809
|
+
deviceSignature: string;
|
|
5810
|
+
lastValidation?: Date | undefined;
|
|
5811
|
+
}[] | undefined;
|
|
5812
|
+
};
|
|
5813
|
+
variationId?: string | undefined;
|
|
5814
|
+
}, {
|
|
5815
|
+
type: "Product";
|
|
5816
|
+
productId: string;
|
|
5817
|
+
license: {
|
|
5818
|
+
externalId?: string | undefined;
|
|
5819
|
+
createdAt?: Date | undefined;
|
|
5820
|
+
maxNumberOfActivations?: number | undefined;
|
|
5821
|
+
offlineActivationsAllowed?: boolean | undefined;
|
|
5822
|
+
activations?: {
|
|
5823
|
+
activationMethod: ActivationMethod;
|
|
5824
|
+
deviceName: string;
|
|
5825
|
+
deviceSignature: string;
|
|
5826
|
+
lastValidation?: Date | undefined;
|
|
5827
|
+
}[] | undefined;
|
|
5828
|
+
};
|
|
5829
|
+
variationId?: string | undefined;
|
|
5830
|
+
}>, z.ZodObject<{
|
|
5831
|
+
type: z.ZodLiteral<"Bundle">;
|
|
5832
|
+
bundleId: z.ZodString;
|
|
5833
|
+
variationId: z.ZodOptional<z.ZodString>;
|
|
5834
|
+
licenses: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
5835
|
+
externalId: z.ZodOptional<z.ZodString>;
|
|
5836
|
+
createdAt: z.ZodOptional<z.ZodDate>;
|
|
5837
|
+
maxNumberOfActivations: z.ZodOptional<z.ZodNumber>;
|
|
5838
|
+
offlineActivationsAllowed: z.ZodOptional<z.ZodBoolean>;
|
|
5839
|
+
activations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5840
|
+
activationMethod: z.ZodNativeEnum<typeof ActivationMethod>;
|
|
5841
|
+
deviceName: z.ZodString;
|
|
5842
|
+
deviceSignature: z.ZodString;
|
|
5843
|
+
lastValidation: z.ZodOptional<z.ZodDate>;
|
|
5844
|
+
}, "strip", z.ZodTypeAny, {
|
|
5845
|
+
activationMethod: ActivationMethod;
|
|
5846
|
+
deviceName: string;
|
|
5847
|
+
deviceSignature: string;
|
|
5848
|
+
lastValidation?: Date | undefined;
|
|
5849
|
+
}, {
|
|
5850
|
+
activationMethod: ActivationMethod;
|
|
5851
|
+
deviceName: string;
|
|
5852
|
+
deviceSignature: string;
|
|
5853
|
+
lastValidation?: Date | undefined;
|
|
5854
|
+
}>, "many">>;
|
|
5855
|
+
}, "strip", z.ZodTypeAny, {
|
|
5856
|
+
externalId?: string | undefined;
|
|
5857
|
+
createdAt?: Date | undefined;
|
|
5858
|
+
maxNumberOfActivations?: number | undefined;
|
|
5859
|
+
offlineActivationsAllowed?: boolean | undefined;
|
|
5860
|
+
activations?: {
|
|
5861
|
+
activationMethod: ActivationMethod;
|
|
5862
|
+
deviceName: string;
|
|
5863
|
+
deviceSignature: string;
|
|
5864
|
+
lastValidation?: Date | undefined;
|
|
5865
|
+
}[] | undefined;
|
|
5866
|
+
}, {
|
|
5867
|
+
externalId?: string | undefined;
|
|
5868
|
+
createdAt?: Date | undefined;
|
|
5869
|
+
maxNumberOfActivations?: number | undefined;
|
|
5870
|
+
offlineActivationsAllowed?: boolean | undefined;
|
|
5871
|
+
activations?: {
|
|
5872
|
+
activationMethod: ActivationMethod;
|
|
5873
|
+
deviceName: string;
|
|
5874
|
+
deviceSignature: string;
|
|
5875
|
+
lastValidation?: Date | undefined;
|
|
5876
|
+
}[] | undefined;
|
|
5877
|
+
}>>>;
|
|
5878
|
+
}, "strip", z.ZodTypeAny, {
|
|
5879
|
+
type: "Bundle";
|
|
5880
|
+
bundleId: string;
|
|
5881
|
+
variationId?: string | undefined;
|
|
5882
|
+
licenses?: Record<string, {
|
|
5883
|
+
externalId?: string | undefined;
|
|
5884
|
+
createdAt?: Date | undefined;
|
|
5885
|
+
maxNumberOfActivations?: number | undefined;
|
|
5886
|
+
offlineActivationsAllowed?: boolean | undefined;
|
|
5887
|
+
activations?: {
|
|
5888
|
+
activationMethod: ActivationMethod;
|
|
5889
|
+
deviceName: string;
|
|
5890
|
+
deviceSignature: string;
|
|
5891
|
+
lastValidation?: Date | undefined;
|
|
5892
|
+
}[] | undefined;
|
|
5893
|
+
}> | undefined;
|
|
5894
|
+
}, {
|
|
5895
|
+
type: "Bundle";
|
|
5896
|
+
bundleId: string;
|
|
5897
|
+
variationId?: string | undefined;
|
|
5898
|
+
licenses?: Record<string, {
|
|
5899
|
+
externalId?: string | undefined;
|
|
5900
|
+
createdAt?: Date | undefined;
|
|
5901
|
+
maxNumberOfActivations?: number | undefined;
|
|
5902
|
+
offlineActivationsAllowed?: boolean | undefined;
|
|
5903
|
+
activations?: {
|
|
5904
|
+
activationMethod: ActivationMethod;
|
|
5905
|
+
deviceName: string;
|
|
5906
|
+
deviceSignature: string;
|
|
5907
|
+
lastValidation?: Date | undefined;
|
|
5908
|
+
}[] | undefined;
|
|
5909
|
+
}> | undefined;
|
|
5910
|
+
}>]>;
|
|
5911
|
+
}, "strip", z.ZodTypeAny, {
|
|
5912
|
+
status: SubscriptionStatus;
|
|
5913
|
+
ownerId: string;
|
|
5914
|
+
expiresAt: Date;
|
|
5915
|
+
content: {
|
|
5916
|
+
type: "Product";
|
|
5917
|
+
productId: string;
|
|
5918
|
+
license: {
|
|
5919
|
+
externalId?: string | undefined;
|
|
5920
|
+
createdAt?: Date | undefined;
|
|
5921
|
+
maxNumberOfActivations?: number | undefined;
|
|
5922
|
+
offlineActivationsAllowed?: boolean | undefined;
|
|
5923
|
+
activations?: {
|
|
5924
|
+
activationMethod: ActivationMethod;
|
|
5925
|
+
deviceName: string;
|
|
5926
|
+
deviceSignature: string;
|
|
5927
|
+
lastValidation?: Date | undefined;
|
|
5928
|
+
}[] | undefined;
|
|
5929
|
+
};
|
|
5930
|
+
variationId?: string | undefined;
|
|
5931
|
+
} | {
|
|
5932
|
+
type: "Bundle";
|
|
5933
|
+
bundleId: string;
|
|
5934
|
+
variationId?: string | undefined;
|
|
5935
|
+
licenses?: Record<string, {
|
|
5936
|
+
externalId?: string | undefined;
|
|
5937
|
+
createdAt?: Date | undefined;
|
|
5938
|
+
maxNumberOfActivations?: number | undefined;
|
|
5939
|
+
offlineActivationsAllowed?: boolean | undefined;
|
|
5940
|
+
activations?: {
|
|
5941
|
+
activationMethod: ActivationMethod;
|
|
5942
|
+
deviceName: string;
|
|
5943
|
+
deviceSignature: string;
|
|
5944
|
+
lastValidation?: Date | undefined;
|
|
5945
|
+
}[] | undefined;
|
|
5946
|
+
}> | undefined;
|
|
5947
|
+
};
|
|
5948
|
+
startedAt: Date;
|
|
5949
|
+
currency?: string | undefined;
|
|
5950
|
+
externalId?: string | undefined;
|
|
5951
|
+
currentCycle?: number | undefined;
|
|
5952
|
+
}, {
|
|
5953
|
+
status: SubscriptionStatus;
|
|
5954
|
+
ownerId: string;
|
|
5955
|
+
expiresAt: Date;
|
|
5956
|
+
content: {
|
|
5957
|
+
type: "Product";
|
|
5958
|
+
productId: string;
|
|
5959
|
+
license: {
|
|
5960
|
+
externalId?: string | undefined;
|
|
5961
|
+
createdAt?: Date | undefined;
|
|
5962
|
+
maxNumberOfActivations?: number | undefined;
|
|
5963
|
+
offlineActivationsAllowed?: boolean | undefined;
|
|
5964
|
+
activations?: {
|
|
5965
|
+
activationMethod: ActivationMethod;
|
|
5966
|
+
deviceName: string;
|
|
5967
|
+
deviceSignature: string;
|
|
5968
|
+
lastValidation?: Date | undefined;
|
|
5969
|
+
}[] | undefined;
|
|
5970
|
+
};
|
|
5971
|
+
variationId?: string | undefined;
|
|
5972
|
+
} | {
|
|
5973
|
+
type: "Bundle";
|
|
5974
|
+
bundleId: string;
|
|
5975
|
+
variationId?: string | undefined;
|
|
5976
|
+
licenses?: Record<string, {
|
|
5977
|
+
externalId?: string | undefined;
|
|
5978
|
+
createdAt?: Date | undefined;
|
|
5979
|
+
maxNumberOfActivations?: number | undefined;
|
|
5980
|
+
offlineActivationsAllowed?: boolean | undefined;
|
|
5981
|
+
activations?: {
|
|
5982
|
+
activationMethod: ActivationMethod;
|
|
5983
|
+
deviceName: string;
|
|
5984
|
+
deviceSignature: string;
|
|
5985
|
+
lastValidation?: Date | undefined;
|
|
5986
|
+
}[] | undefined;
|
|
5987
|
+
}> | undefined;
|
|
5988
|
+
};
|
|
5989
|
+
startedAt: Date;
|
|
5990
|
+
currency?: string | undefined;
|
|
5991
|
+
externalId?: string | undefined;
|
|
5992
|
+
currentCycle?: number | undefined;
|
|
5993
|
+
}>;
|
|
5994
|
+
|
|
5995
|
+
declare enum SubscriptionStatus {
|
|
5996
|
+
Active = "Active",
|
|
5997
|
+
Expired = "Expired",
|
|
5998
|
+
Cancelled = "Cancelled"
|
|
5999
|
+
}
|
|
6000
|
+
declare enum CycleLength {
|
|
6001
|
+
Daily = "Daily",
|
|
6002
|
+
Weekly = "Weekly",
|
|
6003
|
+
Monthly = "Monthly",
|
|
6004
|
+
Quarterly = "Quarterly",
|
|
6005
|
+
Yearly = "Yearly"
|
|
6006
|
+
}
|
|
6007
|
+
type Subscription = z.infer<typeof subscriptionSchema>;
|
|
6008
|
+
type ImportSubscriptionRequest = z.infer<typeof importSubscriptionRequestSchema>;
|
|
6009
|
+
|
|
6010
|
+
declare class SubscriptionEndpoints {
|
|
6011
|
+
private api;
|
|
6012
|
+
constructor(api: MoonbaseApi);
|
|
6013
|
+
query(opts: {
|
|
6014
|
+
paginationToken?: string;
|
|
6015
|
+
status: SubscriptionStatus;
|
|
6016
|
+
after?: Date;
|
|
6017
|
+
before?: Date;
|
|
6018
|
+
pageSize?: number;
|
|
6019
|
+
}): Promise<Page<Subscription>>;
|
|
6020
|
+
get(subscriptionId: string): Promise<Subscription>;
|
|
6021
|
+
import(subscription: ImportSubscriptionRequest): Promise<Subscription>;
|
|
6022
|
+
}
|
|
6023
|
+
|
|
6024
|
+
declare const trialSchema: z.ZodObject<{
|
|
6025
|
+
id: z.ZodString;
|
|
6026
|
+
externalId: z.ZodOptional<z.ZodString>;
|
|
6027
|
+
productId: z.ZodString;
|
|
6028
|
+
deviceName: z.ZodString;
|
|
6029
|
+
deviceSignature: z.ZodString;
|
|
6030
|
+
status: z.ZodNativeEnum<typeof TrialStatus>;
|
|
6031
|
+
expiresAt: z.ZodDate;
|
|
6032
|
+
lastValidatedAt: z.ZodDate;
|
|
6033
|
+
customer: z.ZodOptional<z.ZodObject<{
|
|
6034
|
+
id: z.ZodString;
|
|
6035
|
+
externalId: z.ZodOptional<z.ZodString>;
|
|
6036
|
+
name: z.ZodString;
|
|
6037
|
+
businessName: z.ZodNullable<z.ZodString>;
|
|
6038
|
+
taxId: z.ZodNullable<z.ZodString>;
|
|
6039
|
+
email: z.ZodString;
|
|
6040
|
+
numberOfLicenses: z.ZodNumber;
|
|
6041
|
+
numberOfTrials: z.ZodNumber;
|
|
6042
|
+
emailConfirmed: z.ZodBoolean;
|
|
6043
|
+
hasPassword: z.ZodBoolean;
|
|
6044
|
+
isDeleted: z.ZodBoolean;
|
|
6045
|
+
ownedProducts: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
|
|
6046
|
+
subscribedProducts: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
|
|
6047
|
+
address: z.ZodNullable<z.ZodObject<{
|
|
6048
|
+
countryCode: z.ZodString;
|
|
6049
|
+
streetAddress1: z.ZodString;
|
|
6050
|
+
streetAddress2: z.ZodNullable<z.ZodString>;
|
|
6051
|
+
locality: z.ZodNullable<z.ZodString>;
|
|
6052
|
+
region: z.ZodNullable<z.ZodString>;
|
|
6053
|
+
postCode: z.ZodNullable<z.ZodString>;
|
|
6054
|
+
}, "strip", z.ZodTypeAny, {
|
|
6055
|
+
countryCode: string;
|
|
6056
|
+
streetAddress1: string;
|
|
6057
|
+
streetAddress2: string | null;
|
|
6058
|
+
locality: string | null;
|
|
6059
|
+
region: string | null;
|
|
6060
|
+
postCode: string | null;
|
|
6061
|
+
}, {
|
|
6062
|
+
countryCode: string;
|
|
6063
|
+
streetAddress1: string;
|
|
6064
|
+
streetAddress2: string | null;
|
|
6065
|
+
locality: string | null;
|
|
6066
|
+
region: string | null;
|
|
6067
|
+
postCode: string | null;
|
|
6068
|
+
}>>;
|
|
6069
|
+
communicationPreferences: z.ZodObject<{
|
|
6070
|
+
newsletterOptIn: z.ZodBoolean;
|
|
6071
|
+
}, "strip", z.ZodTypeAny, {
|
|
6072
|
+
newsletterOptIn: boolean;
|
|
6073
|
+
}, {
|
|
6074
|
+
newsletterOptIn: boolean;
|
|
6075
|
+
}>;
|
|
6076
|
+
lastUpdated: z.ZodObject<{
|
|
6077
|
+
at: z.ZodDate;
|
|
6078
|
+
by: z.ZodObject<{
|
|
6079
|
+
id: z.ZodString;
|
|
6080
|
+
name: z.ZodString;
|
|
6081
|
+
email: z.ZodString;
|
|
6082
|
+
}, "strip", z.ZodTypeAny, {
|
|
6083
|
+
id: string;
|
|
6084
|
+
name: string;
|
|
6085
|
+
email: string;
|
|
6086
|
+
}, {
|
|
6087
|
+
id: string;
|
|
6088
|
+
name: string;
|
|
6089
|
+
email: string;
|
|
6090
|
+
}>;
|
|
6091
|
+
}, "strip", z.ZodTypeAny, {
|
|
6092
|
+
at: Date;
|
|
6093
|
+
by: {
|
|
6094
|
+
id: string;
|
|
6095
|
+
name: string;
|
|
6096
|
+
email: string;
|
|
6097
|
+
};
|
|
6098
|
+
}, {
|
|
6099
|
+
at: Date;
|
|
6100
|
+
by: {
|
|
6101
|
+
id: string;
|
|
6102
|
+
name: string;
|
|
6103
|
+
email: string;
|
|
6104
|
+
};
|
|
6105
|
+
}>;
|
|
6106
|
+
created: z.ZodObject<{
|
|
6107
|
+
at: z.ZodDate;
|
|
6108
|
+
by: z.ZodObject<{
|
|
6109
|
+
id: z.ZodString;
|
|
6110
|
+
name: z.ZodString;
|
|
6111
|
+
email: z.ZodString;
|
|
6112
|
+
}, "strip", z.ZodTypeAny, {
|
|
6113
|
+
id: string;
|
|
6114
|
+
name: string;
|
|
6115
|
+
email: string;
|
|
6116
|
+
}, {
|
|
6117
|
+
id: string;
|
|
6118
|
+
name: string;
|
|
6119
|
+
email: string;
|
|
6120
|
+
}>;
|
|
6121
|
+
}, "strip", z.ZodTypeAny, {
|
|
6122
|
+
at: Date;
|
|
6123
|
+
by: {
|
|
6124
|
+
id: string;
|
|
6125
|
+
name: string;
|
|
6126
|
+
email: string;
|
|
6127
|
+
};
|
|
6128
|
+
}, {
|
|
6129
|
+
at: Date;
|
|
6130
|
+
by: {
|
|
6131
|
+
id: string;
|
|
6132
|
+
name: string;
|
|
6133
|
+
email: string;
|
|
6134
|
+
};
|
|
6135
|
+
}>;
|
|
6136
|
+
}, "strip", z.ZodTypeAny, {
|
|
6137
|
+
id: string;
|
|
6138
|
+
name: string;
|
|
6139
|
+
email: string;
|
|
6140
|
+
businessName: string | null;
|
|
6141
|
+
taxId: string | null;
|
|
6142
|
+
numberOfLicenses: number;
|
|
6143
|
+
numberOfTrials: number;
|
|
6144
|
+
emailConfirmed: boolean;
|
|
6145
|
+
hasPassword: boolean;
|
|
6146
|
+
isDeleted: boolean;
|
|
6147
|
+
ownedProducts: string[];
|
|
6148
|
+
subscribedProducts: string[];
|
|
6149
|
+
address: {
|
|
6150
|
+
countryCode: string;
|
|
6151
|
+
streetAddress1: string;
|
|
6152
|
+
streetAddress2: string | null;
|
|
6153
|
+
locality: string | null;
|
|
6154
|
+
region: string | null;
|
|
6155
|
+
postCode: string | null;
|
|
6156
|
+
} | null;
|
|
6157
|
+
communicationPreferences: {
|
|
6158
|
+
newsletterOptIn: boolean;
|
|
6159
|
+
};
|
|
6160
|
+
lastUpdated: {
|
|
6161
|
+
at: Date;
|
|
6162
|
+
by: {
|
|
6163
|
+
id: string;
|
|
6164
|
+
name: string;
|
|
6165
|
+
email: string;
|
|
6166
|
+
};
|
|
6167
|
+
};
|
|
6168
|
+
created: {
|
|
6169
|
+
at: Date;
|
|
6170
|
+
by: {
|
|
6171
|
+
id: string;
|
|
6172
|
+
name: string;
|
|
6173
|
+
email: string;
|
|
6174
|
+
};
|
|
6175
|
+
};
|
|
6176
|
+
externalId?: string | undefined;
|
|
6177
|
+
}, {
|
|
6178
|
+
id: string;
|
|
6179
|
+
name: string;
|
|
6180
|
+
email: string;
|
|
6181
|
+
businessName: string | null;
|
|
6182
|
+
taxId: string | null;
|
|
6183
|
+
numberOfLicenses: number;
|
|
6184
|
+
numberOfTrials: number;
|
|
6185
|
+
emailConfirmed: boolean;
|
|
6186
|
+
hasPassword: boolean;
|
|
6187
|
+
isDeleted: boolean;
|
|
6188
|
+
ownedProducts: string[];
|
|
6189
|
+
subscribedProducts: string[];
|
|
6190
|
+
address: {
|
|
6191
|
+
countryCode: string;
|
|
6192
|
+
streetAddress1: string;
|
|
6193
|
+
streetAddress2: string | null;
|
|
6194
|
+
locality: string | null;
|
|
6195
|
+
region: string | null;
|
|
6196
|
+
postCode: string | null;
|
|
6197
|
+
} | null;
|
|
6198
|
+
communicationPreferences: {
|
|
6199
|
+
newsletterOptIn: boolean;
|
|
6200
|
+
};
|
|
6201
|
+
lastUpdated: {
|
|
6202
|
+
at: Date;
|
|
6203
|
+
by: {
|
|
6204
|
+
id: string;
|
|
6205
|
+
name: string;
|
|
6206
|
+
email: string;
|
|
6207
|
+
};
|
|
6208
|
+
};
|
|
6209
|
+
created: {
|
|
6210
|
+
at: Date;
|
|
6211
|
+
by: {
|
|
6212
|
+
id: string;
|
|
6213
|
+
name: string;
|
|
6214
|
+
email: string;
|
|
6215
|
+
};
|
|
6216
|
+
};
|
|
6217
|
+
externalId?: string | undefined;
|
|
6218
|
+
}>>;
|
|
6219
|
+
lastUpdated: z.ZodObject<{
|
|
6220
|
+
at: z.ZodDate;
|
|
6221
|
+
by: z.ZodObject<{
|
|
6222
|
+
id: z.ZodString;
|
|
6223
|
+
name: z.ZodString;
|
|
6224
|
+
email: z.ZodString;
|
|
6225
|
+
}, "strip", z.ZodTypeAny, {
|
|
6226
|
+
id: string;
|
|
6227
|
+
name: string;
|
|
5241
6228
|
email: string;
|
|
5242
6229
|
}, {
|
|
5243
6230
|
id: string;
|
|
@@ -5310,9 +6297,9 @@ declare const trialSchema: z.ZodObject<{
|
|
|
5310
6297
|
};
|
|
5311
6298
|
productId: string;
|
|
5312
6299
|
lastValidatedAt: Date;
|
|
6300
|
+
expiresAt: Date;
|
|
5313
6301
|
deviceName: string;
|
|
5314
6302
|
deviceSignature: string;
|
|
5315
|
-
expiresAt: Date;
|
|
5316
6303
|
externalId?: string | undefined;
|
|
5317
6304
|
customer?: {
|
|
5318
6305
|
id: string;
|
|
@@ -5377,9 +6364,9 @@ declare const trialSchema: z.ZodObject<{
|
|
|
5377
6364
|
};
|
|
5378
6365
|
productId: string;
|
|
5379
6366
|
lastValidatedAt: Date;
|
|
6367
|
+
expiresAt: Date;
|
|
5380
6368
|
deviceName: string;
|
|
5381
6369
|
deviceSignature: string;
|
|
5382
|
-
expiresAt: Date;
|
|
5383
6370
|
externalId?: string | undefined;
|
|
5384
6371
|
customer?: {
|
|
5385
6372
|
id: string;
|
|
@@ -5435,18 +6422,18 @@ declare const importTrialRequestSchema: z.ZodObject<{
|
|
|
5435
6422
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
5436
6423
|
}, "strip", z.ZodTypeAny, {
|
|
5437
6424
|
productId: string;
|
|
6425
|
+
expiresAt: Date;
|
|
5438
6426
|
deviceName: string;
|
|
5439
6427
|
deviceSignature: string;
|
|
5440
|
-
expiresAt: Date;
|
|
5441
6428
|
externalId?: string | undefined;
|
|
5442
6429
|
createdAt?: Date | undefined;
|
|
5443
6430
|
ownerId?: string | undefined;
|
|
5444
6431
|
lastValidation?: Date | undefined;
|
|
5445
6432
|
}, {
|
|
5446
6433
|
productId: string;
|
|
6434
|
+
expiresAt: Date;
|
|
5447
6435
|
deviceName: string;
|
|
5448
6436
|
deviceSignature: string;
|
|
5449
|
-
expiresAt: Date;
|
|
5450
6437
|
externalId?: string | undefined;
|
|
5451
6438
|
createdAt?: Date | undefined;
|
|
5452
6439
|
ownerId?: string | undefined;
|
|
@@ -5888,10 +6875,11 @@ declare class MoonbaseClient {
|
|
|
5888
6875
|
activationRequests: ActivationRequestEndpoints;
|
|
5889
6876
|
customers: CustomerEndpoints;
|
|
5890
6877
|
licenses: LicenseEndpoints;
|
|
6878
|
+
subscriptions: SubscriptionEndpoints;
|
|
5891
6879
|
products: ProductEndpoints;
|
|
5892
6880
|
trials: TrialEndpoints;
|
|
5893
6881
|
vouchers: VoucherEndpoints;
|
|
5894
6882
|
orders: OrderEndpoints;
|
|
5895
6883
|
}
|
|
5896
6884
|
|
|
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 };
|
|
6885
|
+
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 };
|