needle-cloud 1.4.0 → 1.5.0
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/CHANGELOG.md +3 -0
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/needle-share-cli/src/web/auth.config.d.ts +3 -0
- package/dist/needle-share-cli/src/web/functions/get.d.ts +13 -3
- package/dist/web/auth.config.d.ts +3 -0
- package/dist/web/functions/get.d.ts +13 -3
- package/package.json +1 -1
|
@@ -28,13 +28,23 @@ export function getDeployments(opts: {
|
|
|
28
28
|
limit?: number;
|
|
29
29
|
}): Promise<Array<Deployment>>;
|
|
30
30
|
/**
|
|
31
|
-
* Get licenses for a specific user. A product type is
|
|
32
|
-
*
|
|
31
|
+
* Get licenses for a specific user. A product type is optional.
|
|
32
|
+
* Only valid licenses are returned
|
|
33
|
+
* @param {{product?:string | string[], includeInvalid?: boolean}} opts
|
|
33
34
|
* @returns {Promise<null | import("../../../../needle-share/types/stripe.js").License[]>}
|
|
34
35
|
*/
|
|
35
36
|
export function getUserLicenses(opts: {
|
|
36
|
-
product
|
|
37
|
+
product?: string | string[];
|
|
38
|
+
includeInvalid?: boolean;
|
|
37
39
|
}): Promise<null | import("../../../../needle-share/types/stripe.js").License[]>;
|
|
40
|
+
/**
|
|
41
|
+
* Checks if the current user owns a specific product. A product type is optional
|
|
42
|
+
* @param {{product?:string | string[]}} opts
|
|
43
|
+
* @returns {Promise<boolean>}
|
|
44
|
+
*/
|
|
45
|
+
export function ownsProduct(opts: {
|
|
46
|
+
product?: string | string[];
|
|
47
|
+
}): Promise<boolean>;
|
|
38
48
|
/**
|
|
39
49
|
* Unfortunately this doesnt get properly bundles in the final output so we have to write the types below directly
|
|
40
50
|
*/
|
|
@@ -28,13 +28,23 @@ export function getDeployments(opts: {
|
|
|
28
28
|
limit?: number;
|
|
29
29
|
}): Promise<Array<Deployment>>;
|
|
30
30
|
/**
|
|
31
|
-
* Get licenses for a specific user. A product type is
|
|
32
|
-
*
|
|
31
|
+
* Get licenses for a specific user. A product type is optional.
|
|
32
|
+
* Only valid licenses are returned
|
|
33
|
+
* @param {{product?:string | string[], includeInvalid?: boolean}} opts
|
|
33
34
|
* @returns {Promise<null | import("../../../../needle-share/types/stripe.js").License[]>}
|
|
34
35
|
*/
|
|
35
36
|
export function getUserLicenses(opts: {
|
|
36
|
-
product
|
|
37
|
+
product?: string | string[];
|
|
38
|
+
includeInvalid?: boolean;
|
|
37
39
|
}): Promise<null | import("../../../../needle-share/types/stripe.js").License[]>;
|
|
40
|
+
/**
|
|
41
|
+
* Checks if the current user owns a specific product. A product type is optional
|
|
42
|
+
* @param {{product?:string | string[]}} opts
|
|
43
|
+
* @returns {Promise<boolean>}
|
|
44
|
+
*/
|
|
45
|
+
export function ownsProduct(opts: {
|
|
46
|
+
product?: string | string[];
|
|
47
|
+
}): Promise<boolean>;
|
|
38
48
|
/**
|
|
39
49
|
* Unfortunately this doesnt get properly bundles in the final output so we have to write the types below directly
|
|
40
50
|
*/
|