@gymspace/sdk 1.9.33 → 1.9.35
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.d.mts +63 -13
- package/dist/index.d.ts +63 -13
- package/dist/index.js +13 -10
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +13 -10
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/models/catalog.ts +27 -1
- package/src/models/index.ts +1 -0
- package/src/models/receivables.ts +32 -0
- package/src/resources/auth.ts +15 -0
- package/src/resources/receivables.ts +19 -10
package/dist/index.mjs
CHANGED
|
@@ -513,6 +513,16 @@ var AuthResource = class extends BaseResource {
|
|
|
513
513
|
options
|
|
514
514
|
);
|
|
515
515
|
}
|
|
516
|
+
/**
|
|
517
|
+
* Get member invitation details
|
|
518
|
+
* GET /auth/members/invite/:token
|
|
519
|
+
*/
|
|
520
|
+
async getMemberInvitationDetails(token, options) {
|
|
521
|
+
return this.client.get(
|
|
522
|
+
`${this.basePath}/members/invite/${token}`,
|
|
523
|
+
options
|
|
524
|
+
);
|
|
525
|
+
}
|
|
516
526
|
/**
|
|
517
527
|
* Refresh member access token
|
|
518
528
|
* POST /auth/members/refresh
|
|
@@ -2637,22 +2647,15 @@ var MembersResource = class extends BaseResource {
|
|
|
2637
2647
|
|
|
2638
2648
|
// src/resources/receivables.ts
|
|
2639
2649
|
var ReceivablesResource = class extends BaseResource {
|
|
2640
|
-
/**
|
|
2641
|
-
* Get paginated list of pending contract installments with filtering, sorting, and organization scope support.
|
|
2642
|
-
* @param params Optional query parameters for filtering, pagination, and sorting
|
|
2643
|
-
* @returns Paginated list of installment receivables with summary
|
|
2644
|
-
*/
|
|
2645
2650
|
async getInstallmentReceivables(params) {
|
|
2646
2651
|
return this.client.get("/receivables/installments", params);
|
|
2647
2652
|
}
|
|
2648
|
-
/**
|
|
2649
|
-
* Get paginated list of unpaid sales with filtering, sorting, and organization scope support.
|
|
2650
|
-
* @param params Optional query parameters for filtering, pagination, and sorting
|
|
2651
|
-
* @returns Paginated list of sale receivables with summary
|
|
2652
|
-
*/
|
|
2653
2653
|
async getSaleReceivables(params) {
|
|
2654
2654
|
return this.client.get("/receivables/sales", params);
|
|
2655
2655
|
}
|
|
2656
|
+
async getMyDebts() {
|
|
2657
|
+
return this.client.get("/receivables/my-debts");
|
|
2658
|
+
}
|
|
2656
2659
|
};
|
|
2657
2660
|
|
|
2658
2661
|
// src/sdk.ts
|