@mazmo/sdk 4.1.0 → 5.0.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/README.md +3 -2
- package/dist/index.cjs +0 -4
- package/dist/index.d.cts +0 -137
- package/dist/index.d.ts +0 -137
- package/dist/index.js +0 -4
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -45,11 +45,12 @@ The SDK follows semver, and a release says what changed in the API's public endp
|
|
|
45
45
|
|
|
46
46
|
- **major**: an endpoint was removed, or changed in a way code written against the previous version may
|
|
47
47
|
not handle;
|
|
48
|
-
- **minor**: an endpoint or a
|
|
48
|
+
- **minor**: an endpoint, a field, or a value of an enum was added. Keep a `default` when you switch
|
|
49
|
+
over an enum the API answers, as you do over the error codes;
|
|
49
50
|
- **patch**: the SDK itself changed, not the endpoints.
|
|
50
51
|
|
|
51
52
|
Each release says, at the end of this page, which version of the API it was built against.
|
|
52
53
|
|
|
53
54
|
The reference of every endpoint is at [docs.mazmo.net](https://docs.mazmo.net).
|
|
54
55
|
|
|
55
|
-
Built against version 7.7.
|
|
56
|
+
Built against version 7.7.97 of the Mazmo API.
|
package/dist/index.cjs
CHANGED
|
@@ -82,7 +82,6 @@ var routes = {
|
|
|
82
82
|
},
|
|
83
83
|
bank: {
|
|
84
84
|
acknowledgeCoupon: { method: "PUT", path: "/bank/coupons/:couponCode" },
|
|
85
|
-
createOrder: { method: "POST", path: "/bank/orders" },
|
|
86
85
|
createTransaction: { method: "POST", path: "/bank/transactions" },
|
|
87
86
|
deleteCoupon: { method: "DELETE", path: "/bank/coupons/:couponId" },
|
|
88
87
|
getCoupon: { method: "GET", path: "/bank/coupons/:couponCode" },
|
|
@@ -279,14 +278,11 @@ var routes = {
|
|
|
279
278
|
addToFollowList: { method: "POST", path: "/users/followlists/:listId" },
|
|
280
279
|
assignOrgPoints: { method: "POST", path: "/users/orgpoints/assign" },
|
|
281
280
|
cancelMySubscription: { method: "DELETE", path: "/users/subscriptions" },
|
|
282
|
-
cancelSubscription: { method: "DELETE", path: "/users/subscriptions/:subscriptionId" },
|
|
283
|
-
connectMercadopago: { method: "POST", path: "/users/marketplace/mercadopago" },
|
|
284
281
|
createBlock: { method: "POST", path: "/users/blocks" },
|
|
285
282
|
createFollowList: { method: "POST", path: "/users/followlists" },
|
|
286
283
|
createOrganizationSession: { method: "POST", path: "/users/organizations/session" },
|
|
287
284
|
createReport: { method: "POST", path: "/users/reports" },
|
|
288
285
|
createSavedSearch: { method: "POST", path: "/users/saved-searches" },
|
|
289
|
-
createSubscription: { method: "POST", path: "/users/subscriptions" },
|
|
290
286
|
deleteFollowList: { method: "DELETE", path: "/users/followlists/:listId" },
|
|
291
287
|
deleteSavedSearch: { method: "DELETE", path: "/users/saved-searches/:id" },
|
|
292
288
|
dismissSuggestion: { method: "DELETE", path: "/users/suggestions/:userId" },
|
package/dist/index.d.cts
CHANGED
|
@@ -1441,40 +1441,6 @@ interface Onboarding {
|
|
|
1441
1441
|
emailConfirm: boolean;
|
|
1442
1442
|
};
|
|
1443
1443
|
}
|
|
1444
|
-
interface Order {
|
|
1445
|
-
id: string;
|
|
1446
|
-
buyerId: number;
|
|
1447
|
-
item: {
|
|
1448
|
-
name: string;
|
|
1449
|
-
data?: unknown;
|
|
1450
|
-
};
|
|
1451
|
-
completed: boolean;
|
|
1452
|
-
mercadopago?: {
|
|
1453
|
-
preference?: unknown;
|
|
1454
|
-
};
|
|
1455
|
-
paypal?: {
|
|
1456
|
-
order?: unknown;
|
|
1457
|
-
payments?: unknown[];
|
|
1458
|
-
};
|
|
1459
|
-
gumroad?: {
|
|
1460
|
-
saleId?: string;
|
|
1461
|
-
sale?: unknown;
|
|
1462
|
-
};
|
|
1463
|
-
coupon?: string | Coupon;
|
|
1464
|
-
invoice?: {
|
|
1465
|
-
items: Array<{
|
|
1466
|
-
_id?: string;
|
|
1467
|
-
id?: string;
|
|
1468
|
-
name?: string;
|
|
1469
|
-
total?: number;
|
|
1470
|
-
}>;
|
|
1471
|
-
subtotal?: number;
|
|
1472
|
-
total?: number;
|
|
1473
|
-
currency: "ARS" | "USD";
|
|
1474
|
-
};
|
|
1475
|
-
createdAt: string;
|
|
1476
|
-
updatedAt: string;
|
|
1477
|
-
}
|
|
1478
1444
|
interface OrganizationWebhookDeliveries {
|
|
1479
1445
|
deliveries: OrganizationWebhookDelivery[];
|
|
1480
1446
|
}
|
|
@@ -2922,23 +2888,6 @@ interface BankAcknowledgeCoupon {
|
|
|
2922
2888
|
response: Coupon;
|
|
2923
2889
|
error: ApiErrorOf<"BAD_REQUEST" | "VALIDATION_FAILED" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "RATE_LIMITED" | "EMAIL_VERIFICATION_REQUIRED" | "INTERNAL_ERROR">;
|
|
2924
2890
|
}
|
|
2925
|
-
/**
|
|
2926
|
-
* POST /bank/orders
|
|
2927
|
-
*
|
|
2928
|
-
* Start a purchase
|
|
2929
|
-
*/
|
|
2930
|
-
interface BankCreateOrder {
|
|
2931
|
-
request: {
|
|
2932
|
-
body: {
|
|
2933
|
-
itemName: string;
|
|
2934
|
-
itemData?: unknown;
|
|
2935
|
-
paymentMethod: string;
|
|
2936
|
-
coupon?: string;
|
|
2937
|
-
};
|
|
2938
|
-
};
|
|
2939
|
-
response: Order;
|
|
2940
|
-
error: ApiErrorOf<"BAD_REQUEST" | "VALIDATION_FAILED" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "RATE_LIMITED" | "EMAIL_VERIFICATION_REQUIRED" | "INTERNAL_ERROR"> | ApiErrorOf<"EVENT_STARTED"> | ApiErrorOf<"BANNED"> | ApiErrorOf<"RSVP_LIMIT_REACHED"> | ApiErrorOf<"ENROLLMENT_REQUIRED"> | ApiErrorOf<"ALREADY_RSVPD"> | ApiErrorOf<"MARKETPLACE_NOT_FOUND"> | ApiErrorOf<"IVALID_PAYMENT_METHOD"> | ApiErrorOf<"ITEM_NOT_FOUND"> | ApiErrorOf<"COUPON_DOESNT_EXIST"> | ApiErrorOf<"COUPON_ALREADY_USED"> | ApiErrorOf<"COUPON_EXPIRED">;
|
|
2941
|
-
}
|
|
2942
2891
|
/**
|
|
2943
2892
|
* POST /bank/transactions
|
|
2944
2893
|
*
|
|
@@ -6159,38 +6108,6 @@ interface UsersCancelMySubscription {
|
|
|
6159
6108
|
};
|
|
6160
6109
|
error: ApiErrorOf<"BAD_REQUEST" | "VALIDATION_FAILED" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "RATE_LIMITED" | "EMAIL_VERIFICATION_REQUIRED" | "INTERNAL_ERROR"> | ApiErrorOf<"NOT_ACTIVE_SUBSCRIPTION"> | ApiErrorOf<"CANCEL_ON_PROVIDER_SITE">;
|
|
6161
6110
|
}
|
|
6162
|
-
/**
|
|
6163
|
-
* DELETE /users/subscriptions/:subscriptionId
|
|
6164
|
-
*
|
|
6165
|
-
* Drop a pending subscription
|
|
6166
|
-
*/
|
|
6167
|
-
interface UsersCancelSubscription {
|
|
6168
|
-
request: {
|
|
6169
|
-
params: {
|
|
6170
|
-
subscriptionId: string;
|
|
6171
|
-
};
|
|
6172
|
-
};
|
|
6173
|
-
response: {
|
|
6174
|
-
success: true;
|
|
6175
|
-
result: string;
|
|
6176
|
-
};
|
|
6177
|
-
error: ApiErrorOf<"BAD_REQUEST" | "VALIDATION_FAILED" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "RATE_LIMITED" | "EMAIL_VERIFICATION_REQUIRED" | "INTERNAL_ERROR"> | ApiErrorOf<"INVALID_PARAMS"> | ApiErrorOf<"UNAUTHORIZED"> | ApiErrorOf<"NOT_ACTIVE_SUBSCRIPTION"> | ApiErrorOf<"CANCEL_ON_PROVIDER_SITE">;
|
|
6178
|
-
}
|
|
6179
|
-
/**
|
|
6180
|
-
* POST /users/marketplace/mercadopago
|
|
6181
|
-
*
|
|
6182
|
-
* Connect Mercado Pago
|
|
6183
|
-
*/
|
|
6184
|
-
interface UsersConnectMercadopago {
|
|
6185
|
-
request: {
|
|
6186
|
-
body: {
|
|
6187
|
-
code: string;
|
|
6188
|
-
redirectUri: string;
|
|
6189
|
-
};
|
|
6190
|
-
};
|
|
6191
|
-
response: string;
|
|
6192
|
-
error: ApiErrorOf<"BAD_REQUEST" | "VALIDATION_FAILED" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "RATE_LIMITED" | "EMAIL_VERIFICATION_REQUIRED" | "INTERNAL_ERROR">;
|
|
6193
|
-
}
|
|
6194
6111
|
/**
|
|
6195
6112
|
* POST /users/blocks
|
|
6196
6113
|
*
|
|
@@ -6267,56 +6184,6 @@ interface UsersCreateSavedSearch {
|
|
|
6267
6184
|
};
|
|
6268
6185
|
error: ApiErrorOf<"BAD_REQUEST" | "VALIDATION_FAILED" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "RATE_LIMITED" | "EMAIL_VERIFICATION_REQUIRED" | "INTERNAL_ERROR"> | ApiErrorOf<"LOW_PLAN"> | ApiErrorOf<"LIMIT_REACHED">;
|
|
6269
6186
|
}
|
|
6270
|
-
/**
|
|
6271
|
-
* POST /users/subscriptions
|
|
6272
|
-
*
|
|
6273
|
-
* Subscribe to a membership
|
|
6274
|
-
*/
|
|
6275
|
-
interface UsersCreateSubscription {
|
|
6276
|
-
request: {
|
|
6277
|
-
body: {
|
|
6278
|
-
planName: "BASIC" | "VELVET" | "LATEX" | "LEATHER";
|
|
6279
|
-
provider: "mercadopago" | "gumroad";
|
|
6280
|
-
email?: string;
|
|
6281
|
-
};
|
|
6282
|
-
};
|
|
6283
|
-
response: {
|
|
6284
|
-
success: true;
|
|
6285
|
-
result: string;
|
|
6286
|
-
data: {
|
|
6287
|
-
updated: boolean;
|
|
6288
|
-
};
|
|
6289
|
-
upserted: {
|
|
6290
|
-
subscriptions: Record<string, {
|
|
6291
|
-
id: string;
|
|
6292
|
-
userId: string;
|
|
6293
|
-
provider: "mercadopago" | "paypal" | "gumroad" | "complimentary";
|
|
6294
|
-
providerSubscriptionId?: string;
|
|
6295
|
-
providerSubscriptionInitPoint?: string;
|
|
6296
|
-
status: "active" | "cancelled" | "paused" | "pending";
|
|
6297
|
-
planName: "BASIC" | "VELVET" | "LATEX" | "LEATHER";
|
|
6298
|
-
amount: number;
|
|
6299
|
-
currency: "ARS" | "USD";
|
|
6300
|
-
startedAt?: string;
|
|
6301
|
-
cancelledAt?: string;
|
|
6302
|
-
validUntil?: string;
|
|
6303
|
-
nextPaymentDate?: string;
|
|
6304
|
-
lastPaymentAt?: string;
|
|
6305
|
-
renewalFailed: boolean;
|
|
6306
|
-
manageUrl?: string;
|
|
6307
|
-
payments: Array<{
|
|
6308
|
-
id: string;
|
|
6309
|
-
status?: "approved" | "failed" | "refunded";
|
|
6310
|
-
currency?: "ARS" | "USD";
|
|
6311
|
-
amount: number;
|
|
6312
|
-
paidAt?: string;
|
|
6313
|
-
providerPaymentId?: string;
|
|
6314
|
-
}>;
|
|
6315
|
-
}>;
|
|
6316
|
-
};
|
|
6317
|
-
};
|
|
6318
|
-
error: ApiErrorOf<"BAD_REQUEST" | "VALIDATION_FAILED" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "RATE_LIMITED" | "EMAIL_VERIFICATION_REQUIRED" | "INTERNAL_ERROR"> | ApiErrorOf<"MERCADOPAGO_FOREIGN_PAYER"> | ApiErrorOf<"EMAIL_REQUIRED">;
|
|
6319
|
-
}
|
|
6320
6187
|
/**
|
|
6321
6188
|
* DELETE /users/followlists/:listId
|
|
6322
6189
|
*
|
|
@@ -8313,7 +8180,6 @@ type Endpoints = {
|
|
|
8313
8180
|
};
|
|
8314
8181
|
bank: {
|
|
8315
8182
|
acknowledgeCoupon: BankAcknowledgeCoupon;
|
|
8316
|
-
createOrder: BankCreateOrder;
|
|
8317
8183
|
createTransaction: BankCreateTransaction;
|
|
8318
8184
|
deleteCoupon: BankDeleteCoupon;
|
|
8319
8185
|
getCoupon: BankGetCoupon;
|
|
@@ -8510,14 +8376,11 @@ type Endpoints = {
|
|
|
8510
8376
|
addToFollowList: UsersAddToFollowList;
|
|
8511
8377
|
assignOrgPoints: UsersAssignOrgPoints;
|
|
8512
8378
|
cancelMySubscription: UsersCancelMySubscription;
|
|
8513
|
-
cancelSubscription: UsersCancelSubscription;
|
|
8514
|
-
connectMercadopago: UsersConnectMercadopago;
|
|
8515
8379
|
createBlock: UsersCreateBlock;
|
|
8516
8380
|
createFollowList: UsersCreateFollowList;
|
|
8517
8381
|
createOrganizationSession: UsersCreateOrganizationSession;
|
|
8518
8382
|
createReport: UsersCreateReport;
|
|
8519
8383
|
createSavedSearch: UsersCreateSavedSearch;
|
|
8520
|
-
createSubscription: UsersCreateSubscription;
|
|
8521
8384
|
deleteFollowList: UsersDeleteFollowList;
|
|
8522
8385
|
deleteSavedSearch: UsersDeleteSavedSearch;
|
|
8523
8386
|
dismissSuggestion: UsersDismissSuggestion;
|
package/dist/index.d.ts
CHANGED
|
@@ -1441,40 +1441,6 @@ interface Onboarding {
|
|
|
1441
1441
|
emailConfirm: boolean;
|
|
1442
1442
|
};
|
|
1443
1443
|
}
|
|
1444
|
-
interface Order {
|
|
1445
|
-
id: string;
|
|
1446
|
-
buyerId: number;
|
|
1447
|
-
item: {
|
|
1448
|
-
name: string;
|
|
1449
|
-
data?: unknown;
|
|
1450
|
-
};
|
|
1451
|
-
completed: boolean;
|
|
1452
|
-
mercadopago?: {
|
|
1453
|
-
preference?: unknown;
|
|
1454
|
-
};
|
|
1455
|
-
paypal?: {
|
|
1456
|
-
order?: unknown;
|
|
1457
|
-
payments?: unknown[];
|
|
1458
|
-
};
|
|
1459
|
-
gumroad?: {
|
|
1460
|
-
saleId?: string;
|
|
1461
|
-
sale?: unknown;
|
|
1462
|
-
};
|
|
1463
|
-
coupon?: string | Coupon;
|
|
1464
|
-
invoice?: {
|
|
1465
|
-
items: Array<{
|
|
1466
|
-
_id?: string;
|
|
1467
|
-
id?: string;
|
|
1468
|
-
name?: string;
|
|
1469
|
-
total?: number;
|
|
1470
|
-
}>;
|
|
1471
|
-
subtotal?: number;
|
|
1472
|
-
total?: number;
|
|
1473
|
-
currency: "ARS" | "USD";
|
|
1474
|
-
};
|
|
1475
|
-
createdAt: string;
|
|
1476
|
-
updatedAt: string;
|
|
1477
|
-
}
|
|
1478
1444
|
interface OrganizationWebhookDeliveries {
|
|
1479
1445
|
deliveries: OrganizationWebhookDelivery[];
|
|
1480
1446
|
}
|
|
@@ -2922,23 +2888,6 @@ interface BankAcknowledgeCoupon {
|
|
|
2922
2888
|
response: Coupon;
|
|
2923
2889
|
error: ApiErrorOf<"BAD_REQUEST" | "VALIDATION_FAILED" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "RATE_LIMITED" | "EMAIL_VERIFICATION_REQUIRED" | "INTERNAL_ERROR">;
|
|
2924
2890
|
}
|
|
2925
|
-
/**
|
|
2926
|
-
* POST /bank/orders
|
|
2927
|
-
*
|
|
2928
|
-
* Start a purchase
|
|
2929
|
-
*/
|
|
2930
|
-
interface BankCreateOrder {
|
|
2931
|
-
request: {
|
|
2932
|
-
body: {
|
|
2933
|
-
itemName: string;
|
|
2934
|
-
itemData?: unknown;
|
|
2935
|
-
paymentMethod: string;
|
|
2936
|
-
coupon?: string;
|
|
2937
|
-
};
|
|
2938
|
-
};
|
|
2939
|
-
response: Order;
|
|
2940
|
-
error: ApiErrorOf<"BAD_REQUEST" | "VALIDATION_FAILED" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "RATE_LIMITED" | "EMAIL_VERIFICATION_REQUIRED" | "INTERNAL_ERROR"> | ApiErrorOf<"EVENT_STARTED"> | ApiErrorOf<"BANNED"> | ApiErrorOf<"RSVP_LIMIT_REACHED"> | ApiErrorOf<"ENROLLMENT_REQUIRED"> | ApiErrorOf<"ALREADY_RSVPD"> | ApiErrorOf<"MARKETPLACE_NOT_FOUND"> | ApiErrorOf<"IVALID_PAYMENT_METHOD"> | ApiErrorOf<"ITEM_NOT_FOUND"> | ApiErrorOf<"COUPON_DOESNT_EXIST"> | ApiErrorOf<"COUPON_ALREADY_USED"> | ApiErrorOf<"COUPON_EXPIRED">;
|
|
2941
|
-
}
|
|
2942
2891
|
/**
|
|
2943
2892
|
* POST /bank/transactions
|
|
2944
2893
|
*
|
|
@@ -6159,38 +6108,6 @@ interface UsersCancelMySubscription {
|
|
|
6159
6108
|
};
|
|
6160
6109
|
error: ApiErrorOf<"BAD_REQUEST" | "VALIDATION_FAILED" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "RATE_LIMITED" | "EMAIL_VERIFICATION_REQUIRED" | "INTERNAL_ERROR"> | ApiErrorOf<"NOT_ACTIVE_SUBSCRIPTION"> | ApiErrorOf<"CANCEL_ON_PROVIDER_SITE">;
|
|
6161
6110
|
}
|
|
6162
|
-
/**
|
|
6163
|
-
* DELETE /users/subscriptions/:subscriptionId
|
|
6164
|
-
*
|
|
6165
|
-
* Drop a pending subscription
|
|
6166
|
-
*/
|
|
6167
|
-
interface UsersCancelSubscription {
|
|
6168
|
-
request: {
|
|
6169
|
-
params: {
|
|
6170
|
-
subscriptionId: string;
|
|
6171
|
-
};
|
|
6172
|
-
};
|
|
6173
|
-
response: {
|
|
6174
|
-
success: true;
|
|
6175
|
-
result: string;
|
|
6176
|
-
};
|
|
6177
|
-
error: ApiErrorOf<"BAD_REQUEST" | "VALIDATION_FAILED" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "RATE_LIMITED" | "EMAIL_VERIFICATION_REQUIRED" | "INTERNAL_ERROR"> | ApiErrorOf<"INVALID_PARAMS"> | ApiErrorOf<"UNAUTHORIZED"> | ApiErrorOf<"NOT_ACTIVE_SUBSCRIPTION"> | ApiErrorOf<"CANCEL_ON_PROVIDER_SITE">;
|
|
6178
|
-
}
|
|
6179
|
-
/**
|
|
6180
|
-
* POST /users/marketplace/mercadopago
|
|
6181
|
-
*
|
|
6182
|
-
* Connect Mercado Pago
|
|
6183
|
-
*/
|
|
6184
|
-
interface UsersConnectMercadopago {
|
|
6185
|
-
request: {
|
|
6186
|
-
body: {
|
|
6187
|
-
code: string;
|
|
6188
|
-
redirectUri: string;
|
|
6189
|
-
};
|
|
6190
|
-
};
|
|
6191
|
-
response: string;
|
|
6192
|
-
error: ApiErrorOf<"BAD_REQUEST" | "VALIDATION_FAILED" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "RATE_LIMITED" | "EMAIL_VERIFICATION_REQUIRED" | "INTERNAL_ERROR">;
|
|
6193
|
-
}
|
|
6194
6111
|
/**
|
|
6195
6112
|
* POST /users/blocks
|
|
6196
6113
|
*
|
|
@@ -6267,56 +6184,6 @@ interface UsersCreateSavedSearch {
|
|
|
6267
6184
|
};
|
|
6268
6185
|
error: ApiErrorOf<"BAD_REQUEST" | "VALIDATION_FAILED" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "RATE_LIMITED" | "EMAIL_VERIFICATION_REQUIRED" | "INTERNAL_ERROR"> | ApiErrorOf<"LOW_PLAN"> | ApiErrorOf<"LIMIT_REACHED">;
|
|
6269
6186
|
}
|
|
6270
|
-
/**
|
|
6271
|
-
* POST /users/subscriptions
|
|
6272
|
-
*
|
|
6273
|
-
* Subscribe to a membership
|
|
6274
|
-
*/
|
|
6275
|
-
interface UsersCreateSubscription {
|
|
6276
|
-
request: {
|
|
6277
|
-
body: {
|
|
6278
|
-
planName: "BASIC" | "VELVET" | "LATEX" | "LEATHER";
|
|
6279
|
-
provider: "mercadopago" | "gumroad";
|
|
6280
|
-
email?: string;
|
|
6281
|
-
};
|
|
6282
|
-
};
|
|
6283
|
-
response: {
|
|
6284
|
-
success: true;
|
|
6285
|
-
result: string;
|
|
6286
|
-
data: {
|
|
6287
|
-
updated: boolean;
|
|
6288
|
-
};
|
|
6289
|
-
upserted: {
|
|
6290
|
-
subscriptions: Record<string, {
|
|
6291
|
-
id: string;
|
|
6292
|
-
userId: string;
|
|
6293
|
-
provider: "mercadopago" | "paypal" | "gumroad" | "complimentary";
|
|
6294
|
-
providerSubscriptionId?: string;
|
|
6295
|
-
providerSubscriptionInitPoint?: string;
|
|
6296
|
-
status: "active" | "cancelled" | "paused" | "pending";
|
|
6297
|
-
planName: "BASIC" | "VELVET" | "LATEX" | "LEATHER";
|
|
6298
|
-
amount: number;
|
|
6299
|
-
currency: "ARS" | "USD";
|
|
6300
|
-
startedAt?: string;
|
|
6301
|
-
cancelledAt?: string;
|
|
6302
|
-
validUntil?: string;
|
|
6303
|
-
nextPaymentDate?: string;
|
|
6304
|
-
lastPaymentAt?: string;
|
|
6305
|
-
renewalFailed: boolean;
|
|
6306
|
-
manageUrl?: string;
|
|
6307
|
-
payments: Array<{
|
|
6308
|
-
id: string;
|
|
6309
|
-
status?: "approved" | "failed" | "refunded";
|
|
6310
|
-
currency?: "ARS" | "USD";
|
|
6311
|
-
amount: number;
|
|
6312
|
-
paidAt?: string;
|
|
6313
|
-
providerPaymentId?: string;
|
|
6314
|
-
}>;
|
|
6315
|
-
}>;
|
|
6316
|
-
};
|
|
6317
|
-
};
|
|
6318
|
-
error: ApiErrorOf<"BAD_REQUEST" | "VALIDATION_FAILED" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "RATE_LIMITED" | "EMAIL_VERIFICATION_REQUIRED" | "INTERNAL_ERROR"> | ApiErrorOf<"MERCADOPAGO_FOREIGN_PAYER"> | ApiErrorOf<"EMAIL_REQUIRED">;
|
|
6319
|
-
}
|
|
6320
6187
|
/**
|
|
6321
6188
|
* DELETE /users/followlists/:listId
|
|
6322
6189
|
*
|
|
@@ -8313,7 +8180,6 @@ type Endpoints = {
|
|
|
8313
8180
|
};
|
|
8314
8181
|
bank: {
|
|
8315
8182
|
acknowledgeCoupon: BankAcknowledgeCoupon;
|
|
8316
|
-
createOrder: BankCreateOrder;
|
|
8317
8183
|
createTransaction: BankCreateTransaction;
|
|
8318
8184
|
deleteCoupon: BankDeleteCoupon;
|
|
8319
8185
|
getCoupon: BankGetCoupon;
|
|
@@ -8510,14 +8376,11 @@ type Endpoints = {
|
|
|
8510
8376
|
addToFollowList: UsersAddToFollowList;
|
|
8511
8377
|
assignOrgPoints: UsersAssignOrgPoints;
|
|
8512
8378
|
cancelMySubscription: UsersCancelMySubscription;
|
|
8513
|
-
cancelSubscription: UsersCancelSubscription;
|
|
8514
|
-
connectMercadopago: UsersConnectMercadopago;
|
|
8515
8379
|
createBlock: UsersCreateBlock;
|
|
8516
8380
|
createFollowList: UsersCreateFollowList;
|
|
8517
8381
|
createOrganizationSession: UsersCreateOrganizationSession;
|
|
8518
8382
|
createReport: UsersCreateReport;
|
|
8519
8383
|
createSavedSearch: UsersCreateSavedSearch;
|
|
8520
|
-
createSubscription: UsersCreateSubscription;
|
|
8521
8384
|
deleteFollowList: UsersDeleteFollowList;
|
|
8522
8385
|
deleteSavedSearch: UsersDeleteSavedSearch;
|
|
8523
8386
|
dismissSuggestion: UsersDismissSuggestion;
|
package/dist/index.js
CHANGED
|
@@ -80,7 +80,6 @@ var routes = {
|
|
|
80
80
|
},
|
|
81
81
|
bank: {
|
|
82
82
|
acknowledgeCoupon: { method: "PUT", path: "/bank/coupons/:couponCode" },
|
|
83
|
-
createOrder: { method: "POST", path: "/bank/orders" },
|
|
84
83
|
createTransaction: { method: "POST", path: "/bank/transactions" },
|
|
85
84
|
deleteCoupon: { method: "DELETE", path: "/bank/coupons/:couponId" },
|
|
86
85
|
getCoupon: { method: "GET", path: "/bank/coupons/:couponCode" },
|
|
@@ -277,14 +276,11 @@ var routes = {
|
|
|
277
276
|
addToFollowList: { method: "POST", path: "/users/followlists/:listId" },
|
|
278
277
|
assignOrgPoints: { method: "POST", path: "/users/orgpoints/assign" },
|
|
279
278
|
cancelMySubscription: { method: "DELETE", path: "/users/subscriptions" },
|
|
280
|
-
cancelSubscription: { method: "DELETE", path: "/users/subscriptions/:subscriptionId" },
|
|
281
|
-
connectMercadopago: { method: "POST", path: "/users/marketplace/mercadopago" },
|
|
282
279
|
createBlock: { method: "POST", path: "/users/blocks" },
|
|
283
280
|
createFollowList: { method: "POST", path: "/users/followlists" },
|
|
284
281
|
createOrganizationSession: { method: "POST", path: "/users/organizations/session" },
|
|
285
282
|
createReport: { method: "POST", path: "/users/reports" },
|
|
286
283
|
createSavedSearch: { method: "POST", path: "/users/saved-searches" },
|
|
287
|
-
createSubscription: { method: "POST", path: "/users/subscriptions" },
|
|
288
284
|
deleteFollowList: { method: "DELETE", path: "/users/followlists/:listId" },
|
|
289
285
|
deleteSavedSearch: { method: "DELETE", path: "/users/saved-searches/:id" },
|
|
290
286
|
dismissSuggestion: { method: "DELETE", path: "/users/suggestions/:userId" },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mazmo/sdk",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0",
|
|
4
4
|
"description": "Typed client for the Mazmo API",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://docs.mazmo.net",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"node": ">=18"
|
|
34
34
|
},
|
|
35
35
|
"mazmo": {
|
|
36
|
-
"commit": "
|
|
37
|
-
"apiVersion": "7.7.
|
|
36
|
+
"commit": "53ee69223787f0d1b01b5438692665206360a93c",
|
|
37
|
+
"apiVersion": "7.7.97"
|
|
38
38
|
}
|
|
39
39
|
}
|