@internxt/sdk 1.9.29 → 1.9.30
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/README.md
CHANGED
|
@@ -5,3 +5,8 @@
|
|
|
5
5
|
- Create a `.npmrc` file from the `.npmrc.template` example provided in the repo.
|
|
6
6
|
- Replace `TOKEN` with your own [Github Personal Access Token](https://docs.github.com/en/github/authenticating-to-github/keeping-your-account-and-data-secure/creating-a-personal-access-token) with `read:packages` permission **ONLY**
|
|
7
7
|
- Use `yarn` to install project dependencies.
|
|
8
|
+
|
|
9
|
+
## Import style guideline
|
|
10
|
+
|
|
11
|
+
- Always use **relative imports** (e.g., `../utils/helper` or `./myComponent`).
|
|
12
|
+
- Do **NOT** use **absolute imports** (e.g., `src/...`, `@/...`, etc).
|
|
@@ -38,6 +38,9 @@ export declare class Payments {
|
|
|
38
38
|
}): Promise<{
|
|
39
39
|
couponUsed: boolean;
|
|
40
40
|
}>;
|
|
41
|
+
getPromoCodesUsedByUser(): Promise<{
|
|
42
|
+
usedCoupons: string[];
|
|
43
|
+
}>;
|
|
41
44
|
getUserSubscription(userType?: UserType): Promise<UserSubscription>;
|
|
42
45
|
getPrices(currency?: string, userType?: UserType): Promise<DisplayPrice[]>;
|
|
43
46
|
requestPreventCancellation(): Promise<FreeTrialAvailable>;
|
|
@@ -137,6 +137,9 @@ var Payments = /** @class */ (function () {
|
|
|
137
137
|
query.set('code', couponCode);
|
|
138
138
|
return this.client.get("/coupon-in-use?".concat(query.toString()), this.headers());
|
|
139
139
|
};
|
|
140
|
+
Payments.prototype.getPromoCodesUsedByUser = function () {
|
|
141
|
+
return this.client.get('/customer/redeemed-promotion-codes', this.headers());
|
|
142
|
+
};
|
|
140
143
|
Payments.prototype.getUserSubscription = function (userType) {
|
|
141
144
|
var query = new URLSearchParams();
|
|
142
145
|
if (userType)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PaymentMethodVerification, PaymentMethodVerificationPayload } from '
|
|
1
|
+
import { PaymentMethodVerification, PaymentMethodVerificationPayload } from '../../payments/types';
|
|
2
2
|
import { ApiUrl, AppDetails } from '../../shared';
|
|
3
3
|
import { CreatedSubscriptionData } from './types/types';
|
|
4
4
|
interface ObjectStoragePlan {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ApiSecurity, ApiUrl, AppDetails } from '../../shared';
|
|
2
2
|
import { AcceptInvitationToSharedFolderPayload, CreateSharingPayload, GenerateShareLinkPayload, GetShareLinkFolderSizePayload, GetSharedDirectoryPayload, ListAllSharedFoldersResponse, ListPrivateSharedFoldersResponse, ListShareLinksResponse, ListSharedItemsResponse, PublicSharedItemInfo, RemoveUserRolePayload, Role, ShareDomainsResponse, ShareFolderWithUserPayload, ShareLink, SharedFolderSize, SharedFolderUser, SharedFoldersInvitationsAsInvitedUserResponse, SharingInfo, SharingInvite, SharingMeta, UpdateShareLinkPayload, UpdateUserRolePayload, UpdateUserRoleResponse } from './types';
|
|
3
|
-
import { ItemType } from '
|
|
3
|
+
import { ItemType } from '../../workspaces';
|
|
4
4
|
export * as ShareTypes from './types';
|
|
5
5
|
export declare class Share {
|
|
6
6
|
private readonly client;
|