@moonbase.sh/api 0.1.121 → 0.1.122
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 +4 -0
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +4 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -423,6 +423,10 @@ var LicenseEndpoints = class {
|
|
|
423
423
|
const response = await this.api.fetch(`/api/licenses/${licenseId}/activations?${objectToQuery(opts)}`);
|
|
424
424
|
return paged(licenseActivationSchema).parse(response.data);
|
|
425
425
|
}
|
|
426
|
+
async getActivation(licenseId, activationId) {
|
|
427
|
+
const response = await this.api.fetch(`/api/licenses/${licenseId}/activations/${activationId}`);
|
|
428
|
+
return licenseActivationSchema.parse(response.data);
|
|
429
|
+
}
|
|
426
430
|
async validateActivation(licenseId, activationId) {
|
|
427
431
|
const response = await this.api.fetch(`/api/licenses/${licenseId}/activations/${activationId}/validate`, "POST");
|
|
428
432
|
return licenseActivationSchema.parse(response.data);
|
package/dist/index.d.cts
CHANGED
|
@@ -1161,6 +1161,7 @@ declare class LicenseEndpoints {
|
|
|
1161
1161
|
productFilter?: string;
|
|
1162
1162
|
pageSize?: number;
|
|
1163
1163
|
}): Promise<Page<LicenseActivation>>;
|
|
1164
|
+
getActivation(licenseId: string, activationId: string): Promise<LicenseActivation>;
|
|
1164
1165
|
validateActivation(licenseId: string, activationId: string): Promise<LicenseActivation>;
|
|
1165
1166
|
revokeActivation(licenseId: string, activationId: string): Promise<LicenseActivation>;
|
|
1166
1167
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1161,6 +1161,7 @@ declare class LicenseEndpoints {
|
|
|
1161
1161
|
productFilter?: string;
|
|
1162
1162
|
pageSize?: number;
|
|
1163
1163
|
}): Promise<Page<LicenseActivation>>;
|
|
1164
|
+
getActivation(licenseId: string, activationId: string): Promise<LicenseActivation>;
|
|
1164
1165
|
validateActivation(licenseId: string, activationId: string): Promise<LicenseActivation>;
|
|
1165
1166
|
revokeActivation(licenseId: string, activationId: string): Promise<LicenseActivation>;
|
|
1166
1167
|
}
|
package/dist/index.js
CHANGED
|
@@ -376,6 +376,10 @@ var LicenseEndpoints = class {
|
|
|
376
376
|
const response = await this.api.fetch(`/api/licenses/${licenseId}/activations?${objectToQuery(opts)}`);
|
|
377
377
|
return paged(licenseActivationSchema).parse(response.data);
|
|
378
378
|
}
|
|
379
|
+
async getActivation(licenseId, activationId) {
|
|
380
|
+
const response = await this.api.fetch(`/api/licenses/${licenseId}/activations/${activationId}`);
|
|
381
|
+
return licenseActivationSchema.parse(response.data);
|
|
382
|
+
}
|
|
379
383
|
async validateActivation(licenseId, activationId) {
|
|
380
384
|
const response = await this.api.fetch(`/api/licenses/${licenseId}/activations/${activationId}/validate`, "POST");
|
|
381
385
|
return licenseActivationSchema.parse(response.data);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moonbase.sh/api",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.122",
|
|
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",
|